/* ═══════════════════════════════════════════════════════════
   Convention Media Section Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Poster Carousel ── */
.tg-poster-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.tg-poster-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.tg-poster-slide {
  min-width: 33.333%;
  padding: 0 0.5rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

.tg-poster-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tg-poster-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.tg-poster-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background-color: #0d1b2a;
  display: block;
}

@media (min-width: 768px) {
  .tg-poster-img {
    height: 480px;
  }
}

.tg-poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2.5rem 1rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tg-poster-card:hover .tg-poster-overlay {
  opacity: 1;
}

.tg-poster-badge {
  display: inline-block;
  background: #F5A623;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tg-poster-title {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.3rem 0 0.2rem;
  line-height: 1.3;
}

.tg-poster-date {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  margin: 0;
}

/* Carousel Buttons */
.tg-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #0055A5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 10;
  transition: all 0.2s ease;
}

.tg-carousel-btn:hover {
  background: #0055A5;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.tg-carousel-prev { left: 10px; }
.tg-carousel-next { right: 10px; }

/* Dots */
.tg-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.tg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tg-dot.active {
  background: #0055A5;
  transform: scale(1.3);
}

/* ── Video Grid ── */
.tg-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tg-video-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #000;
}

.tg-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.tg-video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.tg-promo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tg-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

.tg-video-play-overlay:hover {
  background: rgba(0,0,0,0.25);
}

.tg-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245,166,35,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}

.tg-video-play-overlay:hover .tg-play-btn {
  transform: scale(1.15);
  background: #F5A623;
}

.tg-play-btn i {
  margin-left: 3px; /* visual centering for play icon */
}

.tg-video-label {
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.tg-video-play-overlay.playing {
  opacity: 0;
}

.tg-video-play-overlay.playing:hover {
  opacity: 1;
}

/* ── Program Download Button ── */
.tg-program-download-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0055A5, #003d7a);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,85,165,0.3);
}

.tg-program-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,85,165,0.4);
  background: linear-gradient(135deg, #0066cc, #0055A5);
  color: white;
  text-decoration: none;
}

/* ── Lightbox ── */
.tg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}

.tg-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}

.tg-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 10;
}

.tg-lightbox-close:hover {
  transform: scale(1.2);
}

.tg-lightbox-prev,
.tg-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.tg-lightbox-prev:hover,
.tg-lightbox-next:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.1);
}

.tg-lightbox-prev { left: -70px; }
.tg-lightbox-next { right: -70px; }

.tg-lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* Video modal */
.tg-video-modal-content {
  width: 90vw;
  max-width: 900px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tg-poster-slide {
    min-width: 50%;
  }
  .tg-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tg-poster-slide {
    min-width: 100%;
  }
  .tg-video-grid {
    grid-template-columns: 1fr;
  }
  .tg-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .tg-lightbox-prev { left: 10px; }
  .tg-lightbox-next { right: 10px; }
  .tg-lightbox-content img {
    max-width: 95vw;
  }
  .tg-play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}
