/* ==========================================================================
   ELITE MARATHON - GALLERY VIDEOS & PHOTOS ENHANCED MEDIA STYLES
   Fully Responsive for Web and Mobile View
   ========================================================================== */

/* Jump Navigation Pills */
.gallery-jump-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 28px;
  padding: 4px 0;
}

.gallery-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  padding: 9px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.gallery-jump-pill:hover,
.gallery-jump-pill.active {
  background: #005daa;
  color: #ffffff;
  border-color: #005daa;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 93, 170, 0.28);
  text-decoration: none;
}

.gallery-jump-pill.pill-photo-2025 {
  border-color: #f59e0b;
  color: #92400e;
  background: #fefce8;
}

.gallery-jump-pill.pill-photo-2025:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.gallery-jump-pill.pill-photo-2024 {
  border-color: #0284c7;
  color: #0369a1;
  background: #f0f9ff;
}

.gallery-jump-pill.pill-photo-2024:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0369a1;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.gallery-jump-pill.pill-video-2025 {
  border-color: #ef4444;
  color: #dc2626;
  background: #fef2f2;
}

.gallery-jump-pill.pill-video-2025:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

.gallery-jump-pill.pill-video-2024 {
  border-color: #6366f1;
  color: #4f46e5;
  background: #eef2ff;
}

.gallery-jump-pill.pill-video-2024:hover {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Master Video Section (Now Below Photos) */
.gallery-video-section {
  padding: 60px 0 70px;
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
}

.edition-group-wrap {
  margin-bottom: 48px;
}

.edition-title-bar,
.photo-edition-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
  margin: 40px 0 24px;
}

.edition-title-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.edition-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.edition-year-badge {
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
  text-transform: uppercase;
}

.edition-year-badge.badge-2025 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.edition-year-badge.badge-2024 {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.edition-year-badge.badge-brand {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.edition-heading-text {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.edition-heading-sub {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.edition-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edition-counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.edition-counter-chip.chip-2025 {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.edition-counter-chip.chip-2024 {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.edition-counter-chip.chip-brand {
  color: #047857;
  background: #d1fae5;
  border-color: #a7f3d0;
}

/* 2025 Hero Feature Video Card */
.hero-video-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 2px solid rgba(251, 191, 36, 0.45);
  transition: all 0.3s ease;
  max-width: 980px;
  margin: 0 auto;
}

.hero-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  border-color: #f59e0b;
}

.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-player-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube Thumbnail Poster Card with Interactive Red Play Button */
.yt-thumb-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  cursor: pointer;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.yt-thumb-card-frame:hover .yt-thumb-img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.yt-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.yt-thumb-card-frame:hover .yt-thumb-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.5) 100%);
}

.yt-play-btn-pulse {
  width: 72px;
  height: 50px;
  background: #ef4444;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5), 0 0 0 0 rgba(239, 68, 68, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ytPlayPulse 2.5s infinite;
}

.yt-play-btn-pulse i {
  margin-left: 3px;
}

.yt-thumb-card-frame:hover .yt-play-btn-pulse {
  transform: scale(1.16);
  background: #dc2626;
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.7);
}

@keyframes ytPlayPulse {
  0% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 0 16px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4), 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.yt-card-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-card-badge-bottom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-video-body {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
}

.hero-video-meta {
  flex: 1;
  min-width: 260px;
}

.hero-video-meta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 5px;
}

.hero-video-meta p {
  color: #64748b;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}

.btn-yt-watch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-yt-watch:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.5);
  color: #ffffff !important;
}

/* 2024 Video Grid Cards (3 Columns) */
.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-grid-item-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  border: 1.5px solid #e2e8f0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.video-grid-item-card:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.video-grid-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.video-grid-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
}

.video-grid-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.45;
}

/* Photo Section Headings */
.gallery-photos-section {
  padding: 30px 0 60px;
}

/* Homepage Video Feature Spotlight Card */
.home-video-spotlight-section {
  margin: 50px 0 20px;
}

.home-video-spotlight-card {
  background: radial-gradient(circle at 10% 20%, #0d2818 0%, #04140b 90%);
  border-radius: 24px;
  padding: 36px 32px;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3), 0 0 25px rgba(251, 191, 36, 0.15);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.home-video-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.home-video-title-wrap {
  text-align: left;
}

.home-video-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.home-video-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.home-video-sub {
  color: #cbd5e1;
  font-size: 14px;
  margin: 0;
}

.home-video-tamil {
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.home-video-player-wrap {
  max-width: 900px;
  margin: 0 auto 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.home-video-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-watch-yt-glow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  transition: all 0.25s ease;
  animation: ytBtnPulse 2.8s infinite;
}

.btn-watch-yt-glow:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.65);
  color: #ffffff !important;
}

@keyframes ytBtnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6), 0 6px 20px rgba(239, 68, 68, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0), 0 10px 28px rgba(239, 68, 68, 0.65);
  }
}

.btn-all-videos-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.btn-all-videos-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-video-body {
    padding: 16px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-yt-watch {
    width: 100%;
    justify-content: center;
  }
  
  .home-video-spotlight-card {
    padding: 22px 16px;
  }
  
  .edition-heading-text {
    font-size: 18px;
  }
  
  .video-cards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-jump-pill {
    padding: 7px 14px;
    font-size: 12px;
  }
}
