/* Sports & Games page (requirements/sports-games.html) — every rule scoped
   to .sg-page so it doesn't leak into the site header/footer. Class names
   .btn/.lead from the design are renamed .sg-btn/.sg-lead because Bootstrap
   already styles those. */

html { scroll-behavior: smooth; }

.sg-page {
  --navy: #122A4E;
  --navy-deep: #0B1D38;
  --coral: #FF6B3D;
  --gold: #F4B93F;
  --leaf: #3AA76D;
  --cream: #F7F4EE;
  --paper: #FFFFFF;
  --ink: #16213A;
  --ink-soft: #5A6478;
  --line: rgba(18,42,78,0.12);
  --radius: 14px;

  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  text-align: left;
  overflow-x: hidden;
}
.sg-page *, .sg-page *::before, .sg-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sg-page h1, .sg-page h2, .sg-page h3, .sg-page h4 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.sg-page a, .sg-page a:hover, .sg-page a:focus { color: inherit; text-decoration: none; }
.sg-page img { max-width: 100%; display: block; }
.sg-page .wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .sg-page .wrap { padding: 0 20px; } }

/* Keep in-page anchor targets clear of the site header */
.sg-page section[id] { scroll-margin-top: 80px; }

/* ============ HERO (compact) ============ */
.sg-page .hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 65%, #1A3B68 100%);
  color: #fff;
  padding: 44px 0 0;
  overflow: hidden;
}
.sg-page .hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(244,185,63,0.10) 0, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255,107,61,0.14) 0, transparent 40%);
  pointer-events: none;
}
.sg-page .hero-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-bottom: 36px;
}
.sg-page .hero h1 { font-size: clamp(30px, 4.6vw, 46px); color: #fff; max-width: 760px; text-align: center; }
.sg-page .hero h1 em { font-style: normal; color: var(--gold); }
.sg-page .hero p.sg-lead { margin: 16px auto 0; font-size: 15.5px; font-weight: 400; max-width: 520px; color: #C6CFE3; text-align: center; }
.sg-page .hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }
.sg-page .sg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; line-height: 1.5;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.sg-page .sg-btn:hover { transform: translateY(-2px); }
.sg-page .sg-btn-fill, .sg-page .sg-btn-fill:hover { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -8px rgba(255,107,61,0.6); }
.sg-page .sg-btn-ghost, .sg-page .sg-btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.sg-page .sg-btn-ghost:hover { border-color: #fff; }

.sg-page .hero-stats { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.sg-page .hero-stats .stat b { font-family: 'Archivo Black'; font-weight: 400; font-size: 26px; color: var(--gold); display: block; }
.sg-page .hero-stats .stat span { font-size: 11.5px; color: #AEB9D1; text-transform: uppercase; letter-spacing: .04em; }

.sg-page .hero-wave { display: block; width: 100%; height: auto; margin-top: -2px; }

/* ============ SECTIONS ============ */
.sg-page .section { padding: 56px 0; }
.sg-page .section.alt { background: var(--paper); }
.sg-page .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sg-page .sec-tag {
  font-size: 12.5px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.sg-page .sec-tag::before { content: ""; width: 18px; height: 3px; background: var(--coral); border-radius: 3px; }
.sg-page .sec-head h2 { font-size: clamp(24px,2.8vw,32px); color: var(--navy-deep); max-width: 600px; }
.sg-page .sec-head p { color: var(--ink-soft); max-width: 380px; font-size: 14.5px; }

/* ============ SPORTS GRID W/ PHOTO SPACE ============ */
.sg-page .sports-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .sg-page .sports-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .sg-page .sports-grid { grid-template-columns: repeat(2,1fr); } }

.sg-page .sport-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.sg-page .sport-card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px -18px rgba(18,42,78,0.28); }

.sg-page .photo-frame {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sg-page .sport-card:nth-child(5n+2) .photo-frame { background: linear-gradient(135deg, var(--coral), #C6491F); }
.sg-page .sport-card:nth-child(5n+3) .photo-frame { background: linear-gradient(135deg, var(--leaf), #206B44); }
.sg-page .sport-card:nth-child(5n+4) .photo-frame { background: linear-gradient(135deg, var(--gold), #C98E1B); }
.sg-page .sport-card:nth-child(5n+5) .photo-frame { background: linear-gradient(135deg, #5A6ED0, #313E8E); }

/* Photos are portrait; keep the players (not the ground) in the frame */
.sg-page .photo-frame img,
.sg-page .legend-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sg-page .photo-frame img { object-position: center 20%; }
.sg-page .legend-photo img { object-position: center top; }

.sg-page .sport-label { padding: 12px 14px 14px; }
.sg-page .sport-label h3 { font-family: 'Work Sans'; font-weight: 700; font-size: 14.5px; color: var(--ink); }

/* ============ COACHES BAND ============ */
.sg-page .coach-band { background: var(--navy-deep); color: #fff; padding: 40px 0; position: relative; overflow: hidden; }
.sg-page .coach-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,107,61,0.18), transparent 70%);
}
.sg-page .coach-inner { display: flex; align-items: center; gap: 34px; justify-content: space-between; flex-wrap: wrap; position: relative; }
.sg-page .coach-text { max-width: 540px; }
.sg-page .coach-text .sec-tag { color: var(--gold); }
.sg-page .coach-text .sec-tag::before { background: var(--gold); }
.sg-page .coach-text h2 { font-size: clamp(21px,2.6vw,27px); color: #fff; margin-bottom: 10px; }
.sg-page .coach-text p { color: #B7C1D7; font-size: 14.5px; }
.sg-page .coach-pills { display: flex; gap: 14px; flex-wrap: wrap; }
.sg-page .pill { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 14px 18px; min-width: 130px; }
.sg-page .pill b { font-family: 'Archivo Black'; font-weight: 400; font-size: 22px; color: var(--coral); display: block; }
.sg-page .pill span { font-size: 11.5px; color: #AEB9D1; }

/* ============ ZERO PERIOD (compact) ============ */
.sg-page .zero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .sg-page .zero-grid { grid-template-columns: 1fr; } }

.sg-page .clock-visual {
  position: relative; aspect-ratio: 1/1; width: 100%; max-width: 250px; margin: 0 auto;
  border-radius: 50%; background: conic-gradient(from -90deg, var(--coral) 0deg 40deg, var(--line) 40deg 360deg);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.sg-page .clock-inner {
  width: 100%; height: 100%; border-radius: 50%; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sg-page .clock-inner b { font-family: 'Archivo Black'; font-weight: 400; font-size: 32px; color: var(--navy-deep); }
.sg-page .clock-inner span { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.sg-page .clock-visual .tick { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--paper); }
.sg-page .tick-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.sg-page .tick-2 { top: 50%; right: 5%; transform: translateY(-50%); background: var(--leaf); }
.sg-page .tick-3 { bottom: 5%; left: 50%; transform: translateX(-50%); background: #4A5EBD; }
.sg-page .tick-4 { top: 50%; left: 5%; transform: translateY(-50%); background: var(--coral); }

.sg-page .zero-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sg-page .zero-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 13px 16px; border-radius: 12px; }
.sg-page .zero-list .num { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.sg-page .zero-list p { font-size: 13.5px; color: var(--ink-soft); }
.sg-page .zero-list strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; }

.sg-page .cbse-note {
  display: flex; gap: 16px; align-items: flex-start; background: #EEF3EC;
  border: 1px solid rgba(58,167,109,0.3); border-radius: 14px; padding: 20px 22px; margin-top: 28px;
}
.sg-page .cbse-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: var(--leaf); color: #fff; display: flex; align-items: center; justify-content: center; }
.sg-page .cbse-note p { font-size: 13.5px; color: #2E4D3A; }
.sg-page .cbse-note strong { color: var(--navy-deep); font-weight: 700; }

/* ============ LEGENDS SECTION ============ */
.sg-page .legends-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .sg-page .legends-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .sg-page .legends-grid { grid-template-columns: repeat(2,1fr); } }

.sg-page .legend-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sg-page .legend-photo {
  position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: linear-gradient(160deg, #22345A, #0B1D38);
  display: flex; align-items: center; justify-content: center;
}
.sg-page .legend-card:nth-child(5n+2) .legend-photo { background: linear-gradient(160deg, #C6491F, #7A2B0F); }
.sg-page .legend-card:nth-child(5n+3) .legend-photo { background: linear-gradient(160deg, #206B44, #123C26); }
.sg-page .legend-card:nth-child(5n+4) .legend-photo { background: linear-gradient(160deg, #C98E1B, #7A5510); }
.sg-page .legend-card:nth-child(5n+5) .legend-photo { background: linear-gradient(160deg, #313E8E, #1B2358); }
.sg-page .legend-photo .initials { font-family: 'Archivo Black', sans-serif; font-size: 30px; color: rgba(255,255,255,0.22); }
.sg-page .legend-body { padding: 12px 14px 15px; }
.sg-page .legend-sport { font-size: 10.5px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.sg-page .legend-body h3 { font-family: 'Work Sans'; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 6px; line-height: 1.06; }
.sg-page .legend-body p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }

/* ============ ACHIEVEMENTS ============ */
.sg-page .ach-strip {
  background: linear-gradient(135deg, var(--coral), #E14E22); border-radius: 20px; padding: 38px 34px; color: #fff;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.sg-page .ach-strip::after { content: ""; position: absolute; left: -60px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.sg-page .ach-strip h2 { font-size: clamp(22px,2.8vw,28px); position: relative; color: #fff; }
.sg-page .ach-strip p { font-size: 14.5px; color: rgba(255,255,255,0.9); margin-top: 12px; max-width: 440px; position: relative; }
.sg-page .ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.sg-page .ach-item { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 16px; text-align: center; }
.sg-page .ach-item b { font-family: 'Archivo Black'; font-weight: 400; font-size: 26px; display: block; }
.sg-page .ach-item span { font-size: 11.5px; color: rgba(255,255,255,0.85); }
@media (max-width: 820px) { .sg-page .ach-strip { grid-template-columns: 1fr; padding: 30px 24px; } }

.sg-page .levels-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.sg-page .level-chip { display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); padding: 10px 18px; border-radius: 100px; font-weight: 600; font-size: 13px; color: var(--navy-deep); }
.sg-page .level-chip .lc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.sg-page .level-chip:nth-child(2) .lc-dot { background: var(--gold); }
.sg-page .level-chip:nth-child(3) .lc-dot { background: var(--coral); }
.sg-page .level-chip:nth-child(4) .lc-dot { background: #4A5EBD; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sg-page .sport-card, .sg-page .sg-btn { transition: none; }
}

/* Click a photo to open it larger (fancybox, loaded site-wide) */
.sg-page .sg-zoom {
  position: absolute; inset: 0;
  display: block;
  cursor: zoom-in;
}
.sg-page .sg-zoom:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
