/* ============================================
   FC Bosna - Visual Enhancements
   Parallax, Animations, Modern Design Patterns
   ============================================ */

/* ---------- Enhanced CSS Variables ---------- */
:root {
  --glow-blue: rgba(26, 63, 165, 0.15);
  --glow-yellow: rgba(232, 185, 49, 0.2);
  --gradient-hero: linear-gradient(135deg, #e8efff 0%, #c8d8ff 30%, #6b8fe0 70%, #1a3fa5 100%);
  --gradient-dark: linear-gradient(135deg, #0d2461 0%, #1a3fa5 50%, #0f1d52 100%);
  --gradient-accent: linear-gradient(135deg, #e8b931 0%, #d4a520 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

/* ---------- Smooth Page Load ---------- */
body {
  animation: pageLoad 0.6s ease-out;
}
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Enhanced Hero Section ---------- */
.hero {
  background: var(--gradient-hero);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}
.hero-bg {
  z-index: 0;
}

/* Floating particles effect */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

/* Soccer ball emoji particles */
.hero-particle.soccer-ball-particle {
  font-size: 18px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  animation-name: soccerBallFloat;
}
.hero-particle.soccer-ball-particle:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; animation-duration: 9s; font-size: 22px; }
.hero-particle.soccer-ball-particle:nth-child(2) { left: 20%; top: 65%; animation-delay: 2s; animation-duration: 11s; font-size: 14px; }
.hero-particle.soccer-ball-particle:nth-child(4) { left: 55%; top: 20%; animation-delay: 1.5s; animation-duration: 8s; font-size: 16px; }
.hero-particle.soccer-ball-particle:nth-child(6) { left: 80%; top: 55%; animation-delay: 3s; animation-duration: 10s; font-size: 20px; }
.hero-particle.soccer-ball-particle:nth-child(9) { left: 92%; top: 25%; animation-delay: 4.5s; animation-duration: 12s; font-size: 12px; }

/* Glowing dot particles */
.hero-particle.glow-particle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
  box-shadow: 0 0 12px 3px rgba(218, 165, 32, 0.3);
  animation-name: glowFloat;
}
.hero-particle.glow-particle:nth-child(3) { left: 38%; top: 30%; animation-delay: 0.8s; animation-duration: 7s; width: 10px; height: 10px; }
.hero-particle.glow-particle:nth-child(5) { left: 65%; top: 75%; animation-delay: 2.5s; animation-duration: 9s; width: 6px; height: 6px; }
.hero-particle.glow-particle:nth-child(7) { left: 45%; top: 85%; animation-delay: 1s; animation-duration: 6s; width: 5px; height: 5px; }
.hero-particle.glow-particle:nth-child(8) { left: 15%; top: 45%; animation-delay: 3.5s; animation-duration: 8s; width: 12px; height: 12px; }
.hero-particle.glow-particle:nth-child(10) { left: 75%; top: 10%; animation-delay: 5s; animation-duration: 10s; width: 7px; height: 7px; }

@keyframes soccerBallFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 0.5; }
  25%  { transform: translate(25px, -40px) rotate(90deg) scale(1.1); opacity: 0.6; }
  50%  { transform: translate(-15px, -70px) rotate(200deg) scale(0.9); opacity: 0.35; }
  75%  { transform: translate(35px, -30px) rotate(300deg) scale(1.05); opacity: 0.55; }
  90%  { opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0; }
}
@keyframes glowFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  15%  { opacity: 0.4; }
  30%  { transform: translate(15px, -25px) scale(1.5); opacity: 0.6; box-shadow: 0 0 18px 5px rgba(218, 165, 32, 0.4); }
  50%  { transform: translate(-10px, -50px) scale(0.8); opacity: 0.25; }
  70%  { transform: translate(20px, -35px) scale(1.3); opacity: 0.5; box-shadow: 0 0 20px 6px rgba(218, 165, 32, 0.35); }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.5; }
  50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.2; }
  75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.4; }
}

/* Hero player image */
.hero-player-img {
  max-width: 540px;
  border-radius: 13%;
  border: 3px solid var(--primary-blue);
  width: 200%;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.25));
  animation: heroPlayerEntrance 1s ease-out 0.3s both;
  transition: transform 0.4s ease;
}
.hero-player-img:hover {
  transform: scale(1.03) translateY(-4px);
}
@keyframes heroPlayerEntrance {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
  .hero-player-img {
    max-width: 280px;
  }
}

/* Enhanced hero text */
.hero-text h1 {
  position: relative;
}
.hero-text h1 span:first-child {
  background: linear-gradient(135deg, var(--text-dark), #142f80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text h1 span:last-child {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero value tags glow */
.hero-value-tag {
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.hero-value-tag:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(232, 185, 49, 0.3);
}

/* ---------- Enhanced Page Headers ---------- */
.page-header {
  background: var(--gradient-dark);
  position: relative;
  padding: 160px 0 80px;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
  opacity: 1;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-light), transparent);
}
.page-header h1 {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-header p {
  position: relative;
  z-index: 2;
}

/* Animated underline for page headers */
.page-header h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 16px auto 0;
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.3s both;
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

/* ---------- Parallax Sections ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

/* ---------- Stats / Counter Section ---------- */
.stats-section {
  padding: 80px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}
.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  transition: all 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(232, 185, 49, 0.3);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  padding: 100px 0;
  background: white;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 5%;
  font-size: 20rem;
  font-family: Georgia, serif;
  color: var(--primary-blue);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  min-width: 100%;
  padding: 50px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent-yellow);
  line-height: 1;
  opacity: 0.5;
}
.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
}
.testimonial-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.testimonial-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.testimonial-nav:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}
.testimonial-prev { left: -22px; }
.testimonial-next { right: -22px; }

/* ---------- Timeline Section ---------- */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-light);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-yellow));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent-yellow);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-blue);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }
.timeline-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  margin-bottom: 6px;
}
.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Philosophy Cards ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.philosophy-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.philosophy-card:hover::before {
  transform: scaleX(1);
}
.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}
.philosophy-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(26, 63, 165, 0.25);
  transition: all 0.4s ease;
}
.philosophy-card:hover .philosophy-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(26, 63, 165, 0.35);
}
.philosophy-card h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.philosophy-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Progress Bars ---------- */
.progress-section {
  padding: 80px 0;
  background: white;
}
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.progress-item {
  margin-bottom: 24px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label span:first-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.progress-label span:last-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--primary-blue);
}
.progress-bar {
  height: 10px;
  background: var(--bg-light);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-fill.animated {
  width: var(--progress-width);
}

/* ---------- Achievement Badges ---------- */
.achievements-section {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.achievement-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.achievement-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(232, 185, 49, 0.05));
  pointer-events: none;
}
.achievement-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.achievement-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-yellow), #f0c84d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(232, 185, 49, 0.3);
  transition: all 0.4s ease;
}
.achievement-card:hover .achievement-badge {
  transform: scale(1.15) rotate(10deg);
}
.achievement-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.achievement-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA Banner Section ---------- */
.cta-banner {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(232,185,49,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
}
.cta-banner h2 {
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- Image Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,36,97,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h5 {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Training Schedule Cards ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.schedule-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.schedule-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.schedule-card-header {
  background: var(--primary-blue);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.schedule-card-header h5 {
  font-size: 0.9rem;
  margin: 0;
  letter-spacing: 0.05em;
}
.schedule-card-header .day-badge {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
}
.schedule-card-body {
  padding: 20px 24px;
}
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-item-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.schedule-item-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Enhanced Ambition / Parallax CTA ---------- */
.ambition-section {
  background-attachment: fixed;
}
.ambition-bg img {
  transition: transform 0.3s ease;
}
.ambition-content h2 {
  letter-spacing: 0.15em;
}
.ambition-content .tag {
  animation: float 3s ease-in-out infinite;
}

/* ---------- Scroll-triggered animations ---------- */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.fade-rotate {
  opacity: 0;
  transform: rotate(-3deg) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-rotate.visible {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ---------- Enhanced Section Labels ---------- */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-yellow);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Glassmorphism Cards ---------- */
.glass-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------- Gradient text utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--accent-yellow), #d4a520);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Enhanced Donations Section ---------- */
.donations-grid {
  position: relative;
}
.donations-left {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
  position: relative;
  overflow: hidden;
}
.donations-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/300px repeat;
  opacity: 0.5;
}
.donations-left > * { position: relative; z-index: 1; }

/* ---------- Enhanced Tryouts CTA ---------- */
.tryouts-cta {
  position: relative;
  overflow: hidden;
}
.tryouts-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.tryouts-cta > .container { position: relative; z-index: 1; }

/* ---------- Enhanced Footer ---------- */
.footer-banner {
  position: relative;
  height: 240px;
}
.footer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/300px repeat;
  opacity: 0.3;
}
.footer-banner p {
  position: relative;
  z-index: 1;
}

/* ---------- Pulse animation for CTAs ---------- */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 49, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(232, 185, 49, 0); }
}

/* ---------- Typed cursor effect ---------- */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-yellow);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- Tooltip ---------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--primary-dark);
  color: white;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Enhanced Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; padding-right: 0; text-align: left !important; }
  .timeline-item .timeline-dot { left: 11px !important; right: auto !important; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-card { padding: 24px 16px; }
  .stat-number { font-size: 2.2rem; }
  .testimonial-card { padding: 30px 20px; }
  .testimonial-prev, .testimonial-next { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .parallax-bg { background-attachment: scroll; }
  .ambition-section { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}


/* ============================================
   GALLERY SLIDESHOW
   ============================================ */
.gallery-slideshow-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1628;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-track .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
}

.slideshow-track .slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-track .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Navigation Arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slide-arrow:hover {
  background: rgba(26, 63, 165, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.slide-prev {
  left: 20px;
}

.slide-next {
  right: 20px;
}

/* Dot Indicators */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slide-dots .dot.active {
  background: #1a3fa5;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(26, 63, 165, 0.6);
}

.slide-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Slide Counter */
.slide-counter {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .slideshow-container {
    aspect-ratio: 4 / 3;
  }

  .slide-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

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

  .slide-dots {
    bottom: 12px;
    gap: 5px;
    padding: 6px 10px;
  }

  .slide-dots .dot {
    width: 8px;
    height: 8px;
  }

  .slide-counter {
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    aspect-ratio: 3 / 4;
  }
}



/* ============================================================
   ============  2026 FUTURISTIC PREMIUM REDESIGN  ============
   ============================================================ */

/* ---------- Bebas Neue heading refinement ---------- */
h1, h2, h3, h4, h5, .section-label {
  letter-spacing: 0.04em;
}
.section-label { letter-spacing: 0.22em; }

/* ---------- Glassmorphism Navbar ---------- */
.navbar {
  background: rgba(10, 15, 30, 0.72) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 200, 0, 0.14);
  box-shadow: 0 6px 30px rgba(0,0,0,0.28);
}
.navbar .nav-links a { color: rgba(255,255,255,0.86); }
.navbar .nav-links a:hover,
.navbar .nav-links a.active { color: var(--accent-yellow); }
.navbar .nav-logo img { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.navbar.scrolled { background: rgba(8, 12, 25, 0.92) !important; }
.dropdown-menu {
  background: rgba(13, 36, 97, 0.96) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245,200,0,0.16);
}
.dropdown-menu a { color: rgba(255,255,255,0.85) !important; }
.dropdown-menu a:hover { background: rgba(245,200,0,0.14) !important; color: var(--accent-yellow) !important; }

/* ---------- Pill-shaped gold CTA buttons ---------- */
.btn {
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.btn-primary {
  background: linear-gradient(135deg, #f5c800 0%, #ffd94a 50%, #e0a800 100%);
  color: #0d2461;
  box-shadow: 0 8px 26px rgba(245,200,0,0.32);
}
.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(245,200,0,0.55);
  transform: translateY(-3px);
}
.btn-glow {
  background: linear-gradient(135deg, #f5c800 0%, #ffd94a 50%, #e0a800 100%);
  color: #0d2461;
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(245,200,0,0.6);
  animation: btnGlow 2.4s ease-in-out infinite;
}
@keyframes btnGlow {
  0%,100% { box-shadow: 0 8px 24px rgba(245,200,0,0.35); }
  50% { box-shadow: 0 10px 40px rgba(245,200,0,0.7); }
}

/* ---------- Scroll-triggered animation classes ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible { opacity: 1; transform: none; }
.animate-on-scroll.slide-left  { transform: translateX(-60px); }
.animate-on-scroll.slide-right { transform: translateX(60px); }
.animate-on-scroll.fade-up     { transform: translateY(50px); }
.animate-on-scroll.zoom-in     { transform: scale(0.9); }
.animate-on-scroll.is-visible.slide-left,
.animate-on-scroll.is-visible.slide-right,
.animate-on-scroll.is-visible.fade-up,
.animate-on-scroll.is-visible.zoom-in { transform: none; }
.animate-on-scroll.d1 { transition-delay: 0.12s; }
.animate-on-scroll.d2 { transition-delay: 0.24s; }
.animate-on-scroll.d3 { transition-delay: 0.36s; }
.animate-on-scroll.d4 { transition-delay: 0.48s; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
  background: #0a0f1e;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 6s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* CSS fallback: first slide visible before JS fires */
.hero-slide:first-child {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.hero-slide:first-child.deactivated {
  opacity: 0;
  z-index: 1;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(13,36,97,0.72) 100%);
}
.hero-slider-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-slider-content h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
  margin: 0;
  animation: heroTitleIn 1s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-slider-content .hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent-yellow);
  font-size: clamp(0.75rem, 1.8vw, 1.1rem);
  margin: 18px 0 34px;
  animation: heroTitleIn 1s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-slider-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroTitleIn 1s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.hero-nav-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
}
.hero-arrow {
  pointer-events: auto;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10,15,30,0.35);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--accent-yellow); color: #0d2461; border-color: var(--accent-yellow); }
.hero-nav-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 6;
}
.hero-nav-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-nav-dots button.active { background: var(--accent-yellow); width: 34px; border-radius: 6px; }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  background: var(--bg-dark3);
  color: #fff;
  padding: 90px 0;
}
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.stat-item { text-align: center; padding: 20px; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(135deg, #f5c800, #ffe27a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  font-weight: 600;
}
@media (max-width: 700px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   NEW KIT REVEAL / JERSEY SHOWCASE
   ============================================================ */
.jersey-showcase {
  position: relative;
  background: radial-gradient(circle at 70% 40%, #12306e 0%, #0d2461 45%, #0a0f1e 100%);
  color: #fff;
  padding: 110px 0;
  overflow: hidden;
}
.jersey-showcase::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(245,200,0,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.jersey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.jersey-reveal .kit-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-yellow);
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(245,200,0,0.4);
  border-radius: 999px;
}
.jersey-reveal h2 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  margin-bottom: 18px;
  color: #fff;
}
.jersey-reveal p { color: rgba(255,255,255,0.8); font-size: 1.08rem; max-width: 520px; margin-bottom: 28px; }
.jersey-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(245,200,0,0.5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(245,200,0,0.25);
  animation: jerseyFloat 6s ease-in-out infinite;
}
.jersey-card img { width: 100%; display: block; }
@keyframes jerseyFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 860px) {
  .jersey-grid { grid-template-columns: 1fr; text-align: center; }
  .jersey-reveal p { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   MODERN DARK PROGRAM CARDS (index + programs)
   ============================================================ */
.programs-dark {
  background: linear-gradient(180deg, #0a0f1e 0%, #111827 100%);
  color: #fff;
  padding: 100px 0;
}
.programs-dark .section-header { text-align: center; margin-bottom: 56px; }
.programs-dark h2 { color: #fff; }
.program-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.program-card-modern {
  display: block;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 30px 24px;
  color: #fff;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.program-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(245,200,0,0.4);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5);
}
.program-card-modern:hover::before { transform: scaleX(1); }
.program-card-modern .age-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #0d2461;
  background: var(--accent-yellow);
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.program-card-modern h4 { color: #fff; margin-bottom: 8px; }
.program-card-modern p { color: rgba(255,255,255,0.62); font-size: 0.92rem; margin-bottom: 16px; }
.program-card-modern .card-link { color: var(--accent-yellow); font-weight: 400; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 1000px) { .program-grid-modern { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .program-grid-modern { grid-template-columns: 1fr; } }

/* ============================================================
   MODERN GALLERY GRID + LIGHTBOX
   ============================================================ */
.gallery-modern {
  background: #0a0f1e;
  padding: 100px 0;
  color: #fff;
}
.gallery-modern .section-header { text-align: center; margin-bottom: 50px; }
.gallery-modern h2 { color: #fff; }
.gallery-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item::after {
  content: '⤢';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(13,36,97,0) 0%, rgba(13,36,97,0.65) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item:hover::after { opacity: 1; }
@media (max-width: 900px) { .gallery-grid-modern { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 26px; right: 26px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent-yellow); color: #0d2461; }

/* ============================================================
   FULL-WIDTH CTA SECTION WITH BG IMAGE
   ============================================================ */
.cta-banner {
  position: relative;
  padding: 130px 0;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.78) 0%, rgba(13,36,97,0.86) 100%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 620px; margin: 0 auto 32px; }
.cta-banner .cta-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 120px 24px 70px;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,30,0.72) 0%, rgba(13,36,97,0.82) 100%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .container h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 6rem); }
.page-hero .container p { color: var(--accent-yellow); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); color: #fff; }
.page-hero p { color: var(--accent-yellow); text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; font-size: 0.9rem; margin-top: 10px; }

/* ---------- Section heading accent underline ---------- */
.section-header h2::after {
  content: '';
  display: block;
  width: 70px; height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
  .jersey-card, .hero-slide { animation: none !important; }
}



/* ============================================================
   TASK 4 — Modern philosophy-grid SVG icons
   ============================================================ */
.philosophy-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent-yellow);
  filter: drop-shadow(0 0 0 rgba(245,200,0,0));
  transition: filter 0.4s ease, transform 0.4s ease;
}
.philosophy-card:hover .philosophy-icon svg {
  filter: drop-shadow(0 0 10px rgba(245,200,0,0.7));
}

/* ============================================================
   TASK 3 — Staff "What Makes Our Staff Different" feature grid
   ============================================================ */
.staff-diff-section {
  padding: 90px 0;
  background: linear-gradient(160deg, #0d2461 0%, #071531 100%);
}
.staff-diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.staff-diff-card {
  background: #111827;
  border-radius: 16px;
  padding: 34px 26px;
  position: relative;
  border-top: 3px solid var(--accent-yellow);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.staff-diff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.5);
}
.staff-diff-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,200,0,0.12);
  margin-bottom: 22px;
}
.staff-diff-icon svg {
  width: 34px;
  height: 34px;
  color: var(--accent-yellow);
}
.staff-diff-card h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.staff-diff-card p {
  color: rgba(255,255,255,0.68);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   TASK 8 — Unified consolidated footer
   ============================================================ */
.site-footer {
  background: #0d2461;
  border-top: 3px solid var(--accent-yellow);
  padding: 40px 20px 20px;
  color: #fff;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  height: 40px;
  width: auto;
}
.footer-clubname {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--accent-yellow); }
.footer-socials {
  display: flex;
  gap: 14px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-socials a:hover {
  background: var(--accent-yellow);
  color: #0d2461;
  transform: translateY(-3px);
}
.footer-socials svg { width: 20px; height: 20px; }
.footer-bottom-bar {
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.footer-bottom-bar p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom-bar .footer-location { color: rgba(255,255,255,0.55); }

/* ============================================================
   TASK 7 — Comprehensive mobile responsiveness
   ============================================================ */
@media (max-width: 900px) {
  .staff-diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* Page heroes shorter on mobile */
  .page-hero { min-height: 280px; padding: 100px 20px 50px; }
  .page-hero h1, .page-hero .container h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); }

  /* Hero slider fills viewport, buttons stack */
  .hero-slider { height: 90vh; min-height: 460px; }
  .hero-slider-cta { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-slider-cta .btn { width: 100%; justify-content: center; }
  .hero-slider-content h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .hero-arrow { width: 40px; height: 40px; }

  /* Jersey showcase stacks */
  .jersey-grid { grid-template-columns: 1fr; text-align: center; }

  /* Staff feature grid 2x2 */
  .staff-diff-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .staff-diff-card { padding: 26px 20px; }

  /* Footer stacks vertically */
  .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
  .footer-nav { gap: 18px; }

  /* Touch targets */
  .nav-links a, .mobile-menu a, .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 480px) {
  .page-hero { min-height: 240px; }
  .staff-diff-grid { grid-template-columns: 1fr; }
  .gallery-grid-modern { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .hero-slider-content h1 { font-size: clamp(2.6rem, 20vw, 4rem); }
}


/* TASK 7 — grid breakpoint refinements (philosophy 2-col tablet, program 2-col tablet) */
@media (max-width: 900px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .program-grid-modern { grid-template-columns: 1fr; }
}

/* Home FanShop / Kit carousel */
.fc-showcase-slide{display:none}.fc-showcase-slide.is-active{display:block;animation:fcSlideIn .35s ease both}
@keyframes fcSlideIn{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.fc-showcase-controls{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:34px;position:relative;z-index:3}
.fc-showcase-arrow{width:42px;height:42px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(255,255,255,.08);color:white;cursor:pointer;font-size:22px}
.fc-showcase-arrow:hover,.fc-showcase-arrow:focus-visible{background:#f5c800;color:#09152c}
.fc-showcase-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.35);border:0;cursor:pointer;padding:0}
.fc-showcase-dot.is-active{background:#f5c800;box-shadow:0 0 0 3px rgba(245,200,0,.18)}
.fc-showcase .jersey-card{animation:none}.fc-showcase .jersey-card img{aspect-ratio:1/1;object-fit:cover}
@media(prefers-reduced-motion:reduce){.fc-showcase-slide.is-active{animation:none}}

/* FC Bosna responsive navigation and compact footer */
.mobile-menu .mobile-club-link { display:none; }
.mobile-menu .mobile-club-link.show { display:flex; }
.mobile-club-toggle .mobile-menu-arrow { margin-left:auto; }
@media (max-width: 768px) {
 .site-footer .footer-inner { gap: 16px; }
 .site-footer .footer-nav { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px;width:100%;max-width:540px;margin:0 auto;align-items:center; }
 .site-footer .footer-nav a {display:flex;justify-content:center;text-align:center;min-height:38px;padding:5px 2px;font-size:.88rem;line-height:1.25;}
 .site-footer .footer-bottom-bar {margin-top:16px;padding-top:12px;}
}
@media (max-width: 480px) {
 .site-footer .footer-nav {flex-direction:unset;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;max-width:340px;}
 .site-footer .footer-nav a {min-height:36px;font-size:.88rem;}
 .site-footer .footer-brand-col {justify-content:center;}
 .site-footer .footer-socials {justify-content:center;}
}
