/* ---------- HERO: LAYOUT & IMAGE CARD ---------- */

.group-hero {
  position: relative;
  inline-size: 100%;
  margin: 0 !important;
  /* give it just a tiny vertical breathing room but keep it tight */
  padding-block: clamp(0.4rem, 1vh, 0.9rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* taller hero so the photo feels big & important */
  min-height: clamp(520px, 78vh, var(--hero-max-h));
}

/* subtle “halo” so it blends into near-black background */
.group-hero::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(circle at top center, rgba(15,23,42,0.9), transparent 60%),
    radial-gradient(circle at bottom center, rgba(15,23,42,0.7), transparent 70%);
  z-index: -1;
}

.hero-media {
  position: relative;
  /* let it breathe more horizontally */
  width: min(100%, 1320px);
  aspect-ratio: 1391 / 809;
  padding: 0;
  border-radius: clamp(18px, 2.5vw, 26px);
  /* softer glow so it blends into the page instead of feeling like a box */
  box-shadow:
    0 26px 70px rgba(0,0,0,0.85),
    0 0 0 1px rgba(15,23,42,0.8);
}

/* inner wrapper stays mostly the same */
.hero-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;                 /* clips everything */
  transform: translateZ(0);
  z-index: 0;
  background: none;
}

/* BACK LAYER: tinted, slightly transparent hero-back.jpg */
.hero-media-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* a bit darker so it melts into your near-black background */
    radial-gradient(circle at top center, rgba(2,6,23,0.6), transparent 55%),
    linear-gradient(
      135deg,
      rgba(6, 75, 106, 0.35),    /* dark club blue */
      rgba(2, 6, 23, 0.65)       /* near-black */
    ),
    url("/images/night-soccer-stadium-min.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  opacity: 0.9;                   /* slightly transparent so BG and content blend */
  z-index: 0;
}
/* FRONT LAYER: hero-front.png, no overlay, no blend */
.hero-media-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* 1) Jersey-style diagonal stripes */
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 2px,
      rgba(255, 255, 255, 0.0) 2px,
      rgba(255, 255, 255, 0.0) 10px
    ),
    /* 2) Soft light beams from top corners */
    radial-gradient(circle at 15% 0%, rgba(148, 163, 184, 0.18) 0, transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(148, 163, 184, 0.14) 0, transparent 55%),
    /* 3) The original front hero PNG */
    url("/images/hero_new.png");
/* Size per layer (same order as above) */
  background-size:
    auto,          /* stripes repeat naturally */
    100% 100%,     /* left light */
    100% 100%,     /* right light */
    contain;       /* hero PNG */

  /* Position per layer */
  background-position:
    center,        /* stripes */
    center,        /* light left */
    center,        /* light right */
    center bottom; /* hero PNG */

  /* Repeat behavior */
  background-repeat:
    repeat,
    no-repeat,
    no-repeat,
    no-repeat;

  /* Blend so the pattern softens the image, not hide it */
  background-blend-mode:
    soft-light,    /* stripes */
    soft-light,    /* left light */
    soft-light,    /* right light */
    normal;        /* PNG just sits at the bottom */

  opacity: 0.98;           /* still almost fully visible */
  z-index: 1;
  pointer-events: none;    /* keep your CTAs clickable */
}

/* keep this exactly as you had it */
.hero-media-inner > .overlay {
  position: absolute;
  inset: 0;                         /* fill entire hero image */
  z-index: 2;                       /* sits above both hero images */
  display: flex;
  align-items: flex-end;            /* card sits on bottom */
  justify-content: center;
  pointer-events: none;
}

/* Gold “card” background at the bottom, same width as hero */
.hero-media-inner > .overlay::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 22vh, 140px);
  background: linear-gradient(
    90deg,
    rgba(210,167,0,0.92) 0%,
    rgba(243,215,123,0.90) 35%,
    rgba(243,215,123,0.40) 55%,
    rgba(243,215,123,0.0) 100%
  );
  box-shadow:
    0 -2px 12px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
  border-radius: 0 0 clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
  pointer-events: none;
  z-index: 1;                       /* under ball & text */
}

/* Card content (text + buttons) */
.overlay-card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  max-width: 100%;
  padding: clamp(10px, 1.8vh, 14px) clamp(14px, 3vw, 22px);
  margin: 0;
  border-radius: 0 0 clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;

  pointer-events: auto;
  color: #ffffff;
  z-index: 4;                       /* above ball */
}

/* Pattern now guaranteed inside the clipped area */
.overlay-card::before{
  content: "";
  position: absolute;
  inset: -25%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.20) 0 4px,
      transparent 4px 10px
    );
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}



/* Left: title, Right: CTAs */
.overlay-title-col{
  min-width: 0;
}
.overlay-ctas-col{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


/* ---------- STACKED TITLE (bottom-left, no panel behind) ---------- */
.stacked-title{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: .06em;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
  text-align: left;
}

/* FC / Blau-Weiss / Erlenbach: white text */
.stacked-title .line{
  display: block;
  color: #ffffff;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.7),
    0 3px 10px rgba(0,0,0,0.6);
}

/* Juniors: strong glow + subtle 3D bevel */
.stacked-title .gold{
  position: relative;
  color: #fffbe2;
  text-shadow:
    0 1px 0 rgba(80,50,0,0.95),
    0 2px 0 rgba(80,50,0,0.95),
    0 0 14px rgba(243,215,123,1),
    0 0 32px rgba(243,215,123,0.95),
    0 10px 26px rgba(0,0,0,0.95);
}

/* bottom “bevel” highlight */
.stacked-title .gold::before{
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(243,215,123,0.0),
    rgba(243,215,123,0.98),
    rgba(243,215,123,0.0)
  );
  opacity: 0.95;
}

/* top glow rim */
.stacked-title .gold::after{
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0, transparent 70%);
  opacity: 0.85;
}

/* ---------- HERO CTAS & BUTTONS (right side) ---------- */

.hero-ctas{
  display: inline-flex;
  gap: clamp(8px, 1.4vw, 16px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Hero-specific button style (sporty, pill-shaped) */
.hero-ctas .btn{
  --btn-pad-y: 10px;
  --btn-pad-x: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  text-decoration: none;
  position: relative;
  /*overflow: hidden;*/
  box-shadow:
    0 6px 16px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.35);
  transition:
    transform .12s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease,
    color .2s ease,
    opacity .2s ease;
}

.hero-ctas .btn:hover::before{
  opacity: 1;
  transform: translateX(30%);
}

/* Primary (register) – bright gold */
.hero-ctas .hero-primary{
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1300;
  border-color: rgba(255,255,255,0.7);
}
.hero-ctas .hero-primary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    0 0 18px rgba(243,215,123,0.9);
}
.hero-ctas .hero-primary:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Secondary (next match) – sporty blue pill */
.hero-ctas .hero-secondary{
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}
.hero-ctas .hero-secondary:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.35),
    0 0 16px rgba(0,128,203,0.9);
}
.hero-ctas .hero-secondary:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}





/* ---------- SOCCER BALL (INTERACTIVE) ---------- */
/* Appears below overlay-card, still inside hero image */
/* Ball: inside overlay, clipped with hero-media-inner too */
.ball-anim{
  --size: 88px;
  --logo: url('/images/logo.svg');

  position: absolute;
  top: 0%;
  left: 0%;
  z-index: 3;                      /* 1: bg, 3: ball, 4: text */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #111;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
  will-change: transform, filter;
  pointer-events: auto;

  background:
    radial-gradient(ellipse at 35% 30%, #fff 0%, #f7f8fb 46%, #e6ecf3 65%, rgba(0,0,0,.18) 85%, rgba(0,0,0,.35) 100%);
}
/* keep your ::before / ::after ball styling as you have it */


.ball-anim::before{
  content:"";
  position:absolute; inset:0; border-radius:50%;
  pointer-events:none;
  background:
    var(--logo) center/50% no-repeat,
    radial-gradient(circle, rgba(255,255,255,.95) 0 60%, var(--blue) 45% 49%, transparent 50%) center/44% 44% no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 52'> <defs> <pattern id='hex' width='30' height='17.32' patternUnits='userSpaceOnUse' y='0' x='0'> <g stroke='%23222' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'> <path d='M5,8.66 L10,0.0 L20,0.0 L25,8.66 L20,17.32 L10,17.32 Z'/><path d='M0,8.66 L5,8.66'/><path d='M25,8.66 L30,8.66'/></g></pattern></defs><rect width='100%' height='100%' fill='url(%23hex)'/></svg>")
      center/140% 140% no-repeat;
}

.ball-anim::after{
  content:"";
  position:absolute; inset:0; border-radius:50%;
  pointer-events:none;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.55) 0 10%, transparent 14%),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,.15) 0 12%, transparent 14%);
}

/* Reduced motion: JS will early-return, but keep safe here too */
@media (prefers-reduced-motion: reduce){
  .ball-anim{
    transform: none !important;
  }
}

@media (max-width: 768px){
  /* Let the whole hero breathe on mobile */
  .group-hero{
    min-height: auto;
    padding: 20px 16px 40px;
    align-items: flex-start;
    margin-inline: 0;
  }

  .hero-media{
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  }

  /* Reserve *more* space under the image for the card */
  .hero-media-inner{
    margin-bottom: clamp(160px, 36vh, 240px);
    overflow: visible;
    border-radius: 18px 18px 0px 0px;
  }

  /* No big gold band behind – the card has its own bg */
  .hero-media-inner > .overlay::before{
    content: none;
  }

  /* Overlay: still absolute, but pushed further below the image */
  .hero-media-inner > .overlay{
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: -30vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: auto; /* keep buttons clickable */
  }

    .overlay-card {
    grid-template-columns: 1fr;      /* stack title + CTAs */
    align-items: center;
    text-align: center;

    /* Make sure it can't be wider than the screen */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    margin: 0 auto;
    padding: 18px 20px 22px;
    border-radius: 0 0 18px 18px;

    /* Gold → transparent background */
    background: linear-gradient(
      135deg,
      rgba(210,167,0,0.95) 0%,
      rgba(243,215,123,0.9) 40%,
      rgba(243,215,123,0.35) 70%,
      rgba(243,215,123,0.0) 100%
    );
    box-shadow:
      0 10px 26px rgba(0,0,0,0.35),
      0 0 0 1px rgba(255,255,255,0.3);

    /* Kill any scroll inside the card */
    overflow: hidden;
  }

  /* Keep the pattern *inside* the card on mobile */
  .overlay-card::before {
    inset: 0;          /* no negative inset */
    opacity: 0.3;      /* keep your softness */
  }

  /* Optional: center the content nicely */
  .overlay-title-col,
  .overlay-ctas-col {
    justify-content: center;
  }

  .overlay-title-col{
    width: 100%;
    text-align: center;
  }

  .stacked-title{
    text-align: center;
    font-size: clamp(1.4rem, 6vw, 1.9rem);
  }

  .hero-ctas{
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }


}


/* ---- News section shell ---- */

.news-section {
  position: relative;
}

.news-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.news-heading-left h2 {
  margin: 0.1rem 0 0;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(6,75,106,0.9);
  border: 1px solid rgba(243,215,123,0.7);
  color: #f4f4f4;
}

/* "See all" button tweak */

.news-see-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.news-see-all-chevron {
  display: inline-block;
  transform: translateY(1px);
}

/* ---- Carousel layout ---- */
.news-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

/* Scrollable center window that can show ~3 cards */
.news-carousel-window {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

/* Optional nicer scrollbars (WebKit) */




/* Track holding the cards */
.news-carousel-window .carousel-track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.6rem 1.2rem 1rem;
  scroll-snap-type: x mandatory;
}

/* Hide ugly scrollbars */
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Arrow buttons */

.caro-btn {
  border: none;
  color: #ffffff;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.4);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.caro-btn i {
  font-size: 0.9rem;
}

.caro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  background: radial-gradient(circle at 30% 30%, #ffffff, #f3d77b);

}

.caro-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.caro-btn[disabled],
.caro-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* ---- News cards (sporty style) ---- */

.news-card {
  scroll-snap-align: center;
  /* bigger base size; still works with the carousel */
  flex: 0 0 min(450px, 90vw);
  max-width: 650px;

  background: #fff;
  backdrop-filter: blur(10px);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border: 1px solid rgba(255,255,255,0.45);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0,0,0,0.3);
  border-color: rgba(243,215,123,0.9);
}

.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */

.news-image-wrapper {
  position: relative;
  padding-top: 70%;
  background: radial-gradient(circle at center, #0b1220 0, #020617 55%);
  overflow: hidden;
}

.news-image-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly center the image */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;              /* entire image always visible */
}
.news-card:hover .news-image-wrapper img {
  transform: translate(-50%, -50%) scale(1.06);
}

/* Placeholder if no image */

.news-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(188,214,241,0.85);
  font-size: 2rem;
}

/* Ribbon tag over image */

.news-image-ribbon {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6,75,106,0.9);
  border: 1px solid rgba(243,215,123,0.85);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fefcef;
}

/* Body */

.news-card-body {
  padding: 0.9rem 1.1rem 1.1rem;
}

.news-card-meta {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(15,23,42,0.9);
  margin: 0 0 0.35rem;
}

.news-card-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 1.02rem;
  color: #0080cb;
  margin: 0 0 0.35rem;
}

.news-card-excerpt {
  font-size: 0.9rem;
  color: rgba(11,18,32,0.9);
  margin: 0;
}

/* Responsive tweaks */

/* ---------- Responsive: 2 cards on mobile/tablet ---------- */

/* ---------- TABLET: 2 cards visible ---------- */
@media (max-width: 900px) {
  .news-carousel-window .carousel-track {
    padding-inline: 0.75rem;
  }

  .news-card {
    flex: 0 0 calc((100% - 1.2rem) / 2); /* 2 per "page" */
    max-width: 420px;
  }
}

/* ---------- PHONE: 1 full-width card, no previews ---------- */
@media (max-width: 600px) {
  .news-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .news-carousel-window {
    overflow-x: auto;               /* allow arrows + swipe */
  }

  /* Remove the dark fade so the card isn't visually cut off */
  .news-carousel-window::before,
  .news-carousel-window::after {
    display: none;
  }

  .news-carousel-window .carousel-track {
    padding: 0.6rem 0 1rem;         /* no side padding */
    gap: 0;
    justify-content: flex-start;
  }

  .news-card {
    flex: 0 0 100%;                 /* exactly one card in view */
    max-width: 100%;
  }
}

.news-heading-left h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb; /* almost white for contrast */
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

/* Optional: subtle gold underline for extra “club” feel */
.news-heading-left h2::after {
  content: "";
  display: block;
  margin-top: 0.3rem;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
}

.news-see-all {
  justify-content: right;
  align-items: end;
}

/* ===================== Next Match Hero ===================== */

.match-hero {
  position: relative;
}

.match-card {
  border-radius: 1.6rem;
  padding: 1.75rem 2rem;
  background:
    radial-gradient(circle at top left, rgba(243,215,123,0.16), transparent 55%),
    linear-gradient(135deg, #020617, #064b6a 45%, #0080cb 90%);
  color: #f9fafb;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

.match-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .match-hero-inner {
    grid-template-columns: 1fr;
  }
}

.match-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(243,215,123,0.85);
}

.match-hero-title {
  margin: .35rem 0 .6rem;
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.match-hero-meta {
  font-size: .9rem;
  opacity: .9;
}

.match-hero-meta strong {
  font-size: 1.05rem;
}

.match-hero-vs {
  display: grid;
  grid-template-columns: 1.1fr auto 1.1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.match-hero-team {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(15,23,42,0.5));
  border-radius: 1.1rem;
  padding: .6rem .9rem;
  text-align: center;
  border: 1px solid rgba(188,214,241,0.5);
}

.match-hero-team-label {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}

.match-hero-team-name {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-hero-team--home .match-hero-team-name {
  color: var(--gold-light);
}

.match-hero-vs-label {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .9;
}

.match-hero-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Right side: pitch image / graphic feel */

.match-hero-graphic {
  position: relative;
  height: 100%;
  min-height: 180px;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at center, rgba(15,118,110,0.9), rgba(6,78,59,0.95)),
    url('/images/pitch-texture.png');
  background-size: cover;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.7);
}

.match-hero-graphic::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 1.2rem;
  border: 2px solid rgba(226,232,240,0.75);
}

/* You can reuse your .ball-anim inside here if you want */


/* ===================== Other Events (fixtures) ===================== */

.events-section .section-tag--fixtures {
  background: rgba(15,23,42,0.95);
  border-color: rgba(188,214,241,0.9);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.event-card {
  border-radius: 1.2rem;
  padding: .85rem 1rem;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.7));
  border: 1px solid rgba(148,163,184,0.5);
  color: #e5e7eb;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
}

.event-date-pill {
  align-self: center;
  padding: .4rem .7rem;
  border-radius: .9rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(243,215,123,0.8);
  font-size: .78rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.event-body-top {
  font-size: .88rem;
  margin-bottom: .25rem;
}

.event-body-top .team-home {
  font-weight: 700;
  text-transform: uppercase;
}

.event-body-top .vs {
  margin: 0 .25rem;
  opacity: .8;
}

.event-body-top .team-away {
  font-weight: 600;
}

.event-meta {
  font-size: .78rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  opacity: .85;
}

.event-home-tag {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.event-home-tag--home {
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.8);
}

.event-home-tag--away {
  background: rgba(248,113,113,0.12);
  color: #fecaca;
  border: 1px solid rgba(248,113,113,0.8);
}

.event-location {
  opacity: .9;
}

/* ===================== Teams grid (bigger photos) ===================== */
.team-card-age {
  font-size: .8rem;
  color: rgba(209,213,219,0.9);
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
  gap: 1.3rem;
  margin-top: 1rem;
}


/* One column on mobile */
@media (max-width: 640px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
}
.team-card {
  border-radius: 1.4rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  transform-origin: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.team-image-wrap {
  position: relative;
  overflow: hidden;
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.04);
  transition: transform .3s ease-out;
}

.team-card:hover .team-image-wrap img {
  transform: scale(1.08);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.95), transparent 55%);
}

.team-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.team-tagline {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.9);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold-light);
}

/* ===================== CTA section ===================== */

/* ===================== CTA section ===================== */

.cta-hero {
  position: relative;
}

/* Card wrapper */
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: clamp(1.6rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(243,215,123,0.18), transparent 55%),
    linear-gradient(135deg, rgba(6,75,106,0.95), rgba(15,23,42,0.96));
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  color: #f9fafb;
  border: 1px solid rgba(148,163,184,0.5);
}

@media (max-width: 768px) {
  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-photo {
    order: -1; /* photo on top on mobile */
  }

  .cta-actions {
    justify-content: center;
  }

  .cta-benefits {
    align-items: center;
  }
}

/* Header (tag + title) */

.cta-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(243,215,123,0.75);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-heading {
  margin: 0.1rem 0 0.5rem;
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.cta-heading::after {
  content: "";
  display: block;
  margin-top: 0.35rem;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
}

/* Body copy */

.cta-text {
  max-width: 34rem;
  font-size: 0.96rem;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0.65rem 0 0.9rem;
}

/* Bullet benefits */

.cta-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cta-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: rgba(226,232,240,0.95);
}

.cta-benefits i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(243,215,123,0.6);
  font-size: 0.85rem;
  color: var(--gold-light);
  box-shadow: 0 4px 10px rgba(0,0,0,0.45);
}

/* Buttons */

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.cta-btn-primary {
  color: #0b1220;
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cta-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.45);
}

.cta-btn-secondary {
  border-color: rgba(148,163,184,0.9);
  color: #e5e7eb;
  background: rgba(15,23,42,0.7);
}

.cta-btn-secondary:hover {
  background: rgba(15,23,42,0.95);
}

/* Photo side */

.cta-photo {
  justify-self: center;
}

.cta-photo-inner {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.7);
  isolation: isolate;
}

/* glowing “pitch” plate behind photo */
.cta-photo-glow {
  position: absolute;
  inset: 12% 6% 6%;
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top, rgba(243,215,123,0.3), transparent 60%),
    radial-gradient(circle at bottom, rgba(34,197,94,0.35), transparent 70%);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
}

.cta-photo-inner img {
  position: relative;
  display: block;
  width: min(800px, 100%);
  height: auto;
  object-fit: contain;
  z-index: 1;
  transform: scale(1);
  transition: transform 0.25s ease-out;
}

.cta-photo-inner:hover img {
  transform: scale(1.04);
}

/* badge bottom-left on photo */

.cta-photo-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6,75,106,0.96);
  border: 1px solid rgba(243,215,123,0.9);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.cta-photo-badge::before {
  content: "★";
  color: var(--gold-light);
  font-size: 0.8rem;
}


/* ===================== Stats – scoreboard ===================== */

.stats-head h2 {
  margin-top: .2rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #f9fafb;
}

.section-tag--stats {
  background: rgba(15,23,42,0.95);
  border-color: rgba(243,215,123,0.8);
}

.stats-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.4rem;
}

@media (max-width: 800px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stats-scoreboard {
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.8));
  border-radius: 1.4rem;
  padding: 1.2rem 1.6rem;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.7);
}

.score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
}

.score-row + .score-row {
  border-top: 1px dashed rgba(148,163,184,0.6);
}

.score-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .85;
}

.score-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.score-row--highlight .score-value {
  color: var(--gold-light);
}

.score-pill {
  margin-left: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgba(22,163,74,0.16);
  border: 1px solid rgba(22,163,74,0.9);
  color: #bbf7d0;
}

.score-sub {
  font-size: .8rem;
  opacity: .8;
}

.stats-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-tile {
  padding: .9rem 1rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at top right, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.7);
}

.stat-label {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .85;
}

.stat-big {
  margin-top: .25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.stat-training .stat-label {
  margin-bottom: .4rem;
}

.training-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(51,65,85,0.8);
}

.training-bar-fill {
  --pct: 0;
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--pct));
  background: linear-gradient(to right, var(--gold-light), var(--gold));
  transition: transform .5s ease-out;
}

.training-meta {
  margin-top: .35rem;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  opacity: .85;
}

.training-target {
  font-style: italic;
}


/* Sponsors section background */
.sponsors-section {
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.92));
  border-radius: 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  width: 100%;
}

/* Tag color */
.section-tag--sponsors {
  background: rgba(15,23,42,0.95);
  border-color: rgba(243,215,123,0.75);
}

/* Sponsors layout – grid, but mobile friendly */
.sponsors-row {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 600px) {
  .sponsors-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 per row on phones */
  }
}

/* Sponsor card */
.sponsor-pill {
  border-radius: 1.1rem;
  padding: 0.75rem 1rem;
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sponsor-pill a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #e5e7eb;
}

.sponsor-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  border-color: rgba(243,215,123,0.9);
}

/* Logo */
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.sponsor-logo img {
  max-width: 140px;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
  border-radius: 10px;
}

.sponsor-name-fallback {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Name text */
.sponsor-name {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.95);
  justify-content: center;
  text-align: center;
  align-items: center;
}

/* Optional tier accents */
.sponsor-pill--gold {
  border-color: rgba(243,215,123,0.9);
}

.sponsor-pill--silver {
  border-color: rgba(148,163,184,0.9);
}

.sponsor-pill--bronze {
  border-color: rgba(180,83,9,0.8);
}


.match-hero-graphic {
  position: relative;
  height: 100%;
  min-height: 200px;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);

  /* Field photo with a subtle dark overlay */
  background-image:
    linear-gradient(to top, rgba(3,7,18,0.75), rgba(3,7,18,0.1)),
    url('/images/field.jpg');  /* <-- your field image */
  background-size: cover;
  background-position: center;
}



/* FIFA CARDS */

/* ===================== FIFA PLAYER CARDS ===================== */

.fifa-players-section {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.fifa-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}

/* Scrollable window */
.fifa-carousel-window {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;           /* Firefox */
}

.fifa-carousel-window::-webkit-scrollbar {
  display: none;                   /* WebKit */
}

/* Track holding the cards – this REPLACES the old grid rule */
.fifa-card-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(1.4rem, 2.8vw, 2.4rem);
  padding: 0.6rem 0.6rem 1rem;
  justify-content: flex-start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Section heading */
.section-heading-fifa {
  margin: 0.15rem 0 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f9fafb;
  text-shadow: 0 3px 10px rgba(0,0,0,0.85);
}

/* Card wrapper */
.fifa-card {
  position: relative;
  perspective: 1400px;
  /* wider cards on desktop */
  flex: 0 0 min(320px, 30vw);
  scroll-snap-align: start;
}
/* Arrow buttons (similar to news) */
.fifa-caro-btn {
  border: none;
  color: #ffffff;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.4);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease,
    background 0.12s ease;
}

.fifa-caro-btn i {
  font-size: 0.9rem;
}

.fifa-caro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
  background: radial-gradient(circle at 30% 30%, #ffffff, #f3d77b);
}

.fifa-caro-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

.fifa-caro-btn[disabled],
.fifa-caro-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

/* Shield-shaped card */
.fifa-card-inner {
  position: relative;
  height: 100%;
  min-height: 320px;
  padding: 0.8rem;
  border-radius: 26px 26px 34px 34px;
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.76), rgba(15,23,42,0.7)),
    url("/images/card-bg.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 45px rgba(0,0,0,0.55);
  overflow: hidden;
  transform-origin: center bottom;
  transform: translateY(0) scale(1);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
}

/* Inset border inside the card */
.fifa-card-inner::before {
  content: "";
  position: absolute;
  inset: 7px 7px 10px;
  border-radius: 22px 22px 30px 30px;
  border: 1px solid rgba(243,215,123,0.9);
  pointer-events: none;
  z-index: 5;
}

/* Hover effect */
.fifa-card:hover .fifa-card-inner {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 28px 70px rgba(0,0,0,0.75);
}

/* ---------------- Left gold stripe ---------------- */

.fifa-card-stripe {
  position: absolute;
  inset: 0;
  margin-left: 10%;
  width: 20%; /* narrower strip */
  background: linear-gradient(
    to bottom,
    #fef3c7 0%,
    var(--gold-light) 35%,
    var(--gold) 72%,
    #78350f 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.35);
  z-index: 2;
}

/* Glow / fade that spills under the stats on the right */
.fifa-card-stripe::after {
  content: "";
  position: absolute;
  top: 0;
  right: -55%;
  width: 95%;
  height: 100%;
  background: radial-gradient(
    circle at left center,
    rgba(243,215,123,0.55) 0%,
    rgba(243,215,123,0.28) 35%,
    transparent 75%
  );
  opacity: 0.8;
  pointer-events: none;
}

/* Jersey number */
.fifa-jersey {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #0080cb;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Club logo circle below jersey */
.fifa-logo-wrap {
  margin-top: 0.4rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(15,23,42,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

.fifa-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------------- Right-hand content ---------------- */

.fifa-card-main {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0.6rem 0.6rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Player photo */
.fifa-photo-wrap {
  width: 100%;
  max-width: 250px; /* bigger photo */
  aspect-ratio: 3 / 4;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.fifa-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* keep full image visible */
  object-position: 80% center; 
  margin: 0;      
  z-index: 10;
}

/* Player name */
.fifa-player-name {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: #f9fafb;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  white-space: nowrap;
}

/* ---------------- Stats as a table ---------------- */

/* Grid acts like a table wrapper */
.fifa-stats-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.2rem;
  row-gap: 0.35rem;
  font-size: 0.78rem;
  padding-top: 0.5rem;
  margin-top: 0.15rem;
  color: #e5e7eb;
}

.fifa-details {
    width: 120%;
    padding-inline: 20%;
    background-color: #02061767;
    overflow: visible;
    padding-bottom: 20px;

}
/* Top rule above the “table” */
.fifa-stats-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148,163,184,0.9),
    transparent
  );
}

/* Vertical divider between the two columns */
.fifa-stats-grid::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(148,163,184,0.9) 20%,
    rgba(148,163,184,0.9) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Each cell = one stat */
.fifa-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.1rem 0;
}

/* Label on the left */
.fifa-stat-row .label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.7rem;
  color: rgba(209,213,219,0.9);
}

/* Value on the right */
.fifa-stat-row .value {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--gold-light);
}

/* ---------------- Responsive tweaks ---------------- */

/* Tablet: 2 cards in view */
@media (max-width: 900px) {
  .fifa-card {
    flex: 0 0 48vw;
  }
}

/* Phones: exactly 1 card in view, swipe left/right */
@media (max-width: 600px) {
  .fifa-carousel-window {
    padding-inline: 0;           /* keep it tight */
    overflow-x: auto;      /* ensure it can actually scroll */

  }

  .fifa-card-grid {
    gap: 0;                      /* no peeking of next card */
    justify-content: flex-start; 
  }

  .fifa-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

    .fifa-player-name {
    font-size: 1.1rem;      /* tweak this value to taste */
    letter-spacing: 0.12em; /* optional: reduce spacing too */
  }

}


/* Top-right badge with golden glow */
.fifa-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle at 50% 30%,
              rgba(254, 249, 195, 0.35) 0,
              rgba(234, 179, 8, 0.3) 40%,
              rgba(120, 53, 15, 0.35) 100%);
  box-shadow:
    0 0 12px rgba(250, 204, 21, 0.2),
    0 0 28px rgba(250, 204, 21, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;          /* above inner border / stripe / player */
  pointer-events: none; /* keep hover handling on the whole card */
}

/* subtle outer halo behind the badge */
.fifa-badge::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle,
              rgba(250, 250, 210, 0.253),
              transparent 90%);
  opacity: 0.85;
  z-index: 1;
}

/* badge image */
.fifa-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}


.fifa-group {
  margin-top: 1.5rem;
}

.fifa-group-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5edf9;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.fifa-group-title span {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(188,214,241,0.9);
}

/* -------- Teams stats "scoreboard" -------- */

.teams-stats-section {
  padding-top: clamp(1.8rem, 3vw, 2.4rem);
}

.teams-stats-card {
  border-radius: 15px;
  margin-top: 2vh;
  display: grid;
  gap: 1.4rem;

  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.92));
  border-radius: 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}

/* Top row – big KPIs in rings */

.teams-stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 720px) {
  .teams-stats-kpi-row {
    grid-template-columns: 1fr;
  }
}

.stat-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-kpi-ring {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  padding: 6px;
  background: radial-gradient(circle at center, rgba(15,23,42,1), rgba(15,23,42,0.9));
  box-shadow: 0 14px 30px rgba(0,0,0,0.7);

  /* NEW: start slightly shrunk and subtle */
  transform: translateZ(0) scale(0.8);
  opacity: 0.25;
  transition:
    transform 0.6s ease-out,
    opacity 0.6s ease-out,
    box-shadow 0.2s ease-out;
}

/* When animated in (JS adds this class) */
.stat-kpi-ring.kpi-animated {
  transform: translateZ(0) scale(1);
  opacity: 1;
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);
}

/* keep your existing ::before / ::after gradient setup */
.stat-kpi-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 240deg,
    var(--gold-light),
    var(--gold),
    var(--blue),
    var(--blue-dark),
    var(--gold-light)
  );
  opacity: 0.85;
}

.stat-kpi-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: radial-gradient(circle at center, #020617, #020617);
}

/* Pseudo-elements: background layer */
.stat-kpi-ring::before,
.stat-kpi-ring::after {
  z-index: 0;
}

/* Number: foreground layer */
.stat-kpi-number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: #f9fafb !important;
}

.stat-kpi-ring--gold::before {
  background: conic-gradient(from 220deg, var(--gold-light), var(--gold), #4b5563, var(--gold-light));
}
.stat-kpi-ring--blue::before {
  background: conic-gradient(from 200deg, var(--blue), var(--blue-dark), #0ea5e9, var(--blue));
}
.stat-kpi-ring--mixed::before {
  background: conic-gradient(from 210deg, var(--gold), var(--blue), var(--gold-light), var(--blue-dark));
}

.stat-kpi-ring:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.8);
}

.stat-kpi-label {
  margin-top: .4rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(226,232,240,0.9);
}

.stat-kpi-sub {
  margin-top: .1rem;
  font-size: .8rem;
  color: rgba(209,213,219,0.9);
}

/* Middle row – progress bar strip */

.teams-stats-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr);
  gap: .4rem;
}

.progress-labels {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  align-items: baseline;
  justify-content: space-between;
}

.progress-title {
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(226,232,240,0.92);
}

.progress-sub {
  font-size: .82rem;
  color: rgba(209,213,219,0.9);
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.75);
}

.progress-bar-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;

  /* Start empty */
  transform: scaleX(0);

  background: linear-gradient(to right, var(--blue), var(--gold));
  box-shadow: 0 0 18px rgba(56,189,248,0.5);

  /* Smooth grow */
  transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.2, 1);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(156,163,175,0.95);
}

/* Bottom grid – detail cards */

.teams-stats-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .8rem;
}

.detail-card {
  padding: .7rem .8rem;
  border-radius: 1rem;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(51,65,85,0.9);
    justify-self: center;
  align-items: center;
  text-align: center;
}

.detail-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(148,163,184,0.96);
}

.detail-value {
  margin-top: .15rem;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #f9fafb;
  justify-self: center;
  align-items: center;
  text-align: center;
}

.detail-sub {
  margin-top: .2rem;
  font-size: .8rem;
  color: rgba(209,213,219,0.9);
}


/* FAIR PLAY */

.fair-play-section {
  width: 100%;
}
.fair-play-inner {
   display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1.2rem 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.92));
  border-radius: 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  color: #e5edf9;
}

/* Icon bubble */
.fair-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(243,215,123,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.7);
  flex-shrink: 0;
}

.fair-play-icon img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* Text */
.fair-play-text h2{
  margin: 0 0 .2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #f9fafb;
}

.fair-play-text p {
  margin: .2rem 0;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(226,232,240,0.95);
}

/* Mobile layout */
@media (max-width: 640px) {
  .fair-play-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .fair-play-icon {
    margin-inline: 0;
  }
}
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-head .news-see-all {
  margin-left: auto;   /* pushes it all the way to the right */
}


