/* RESET & VARIABLES */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --clr-bg: #f1f4f9;
  --clr-surface: #e9ecf2;
  --clr-text: #1c2330;
  --clr-accent: #ff7d1a;
  /* deeper orange */
  --clr-accent-dark: #d96a18;
  --clr-red: #d12b2c;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0, 0, 0, .08);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --max-width: 1200px;
  --nav-height: 4rem;
}

/* GLOBAL */
html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6
}

a {
  text-decoration: none;
  color: inherit
}

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto
}

/* NAVBAR */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-surface);
  box-shadow: var(--shadow)
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height)
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.6rem)
}

.logo-icon {
  width: 38px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding: .25rem 0
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition)
}

.nav-links a:hover::after {
  width: 100%
}

.join-btn {
  display: inline-block;
  padding: .55rem 1.4rem;
  border-radius: var(--max-width);
  background: var(--clr-accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition)
}

.join-btn:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px)
}

/* Dropdown */
.dropdown {
  position: relative
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 180px;
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: .5rem 0
}

.dropdown.open>.dropdown-menu {
  list-style: none;
  display: flex
}

.dropdown-menu li {
  list-style: none;
  padding: .55rem 1rem
}

.dropdown-menu li:hover {
  background: var(--clr-bg)
}

/* Mobile hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--clr-text);
  transition: transform .35s, var(--transition)
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg)
}

.burger.active span:nth-child(2) {
  opacity: 0
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg)
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
  z-index: 1050;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto
}

@media(max-width:880px) {
  .burger {
    display: flex
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 70%;
    max-width: 320px;
    flex-direction: column;
    padding-top: 6rem;
    background: var(--clr-surface);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1)
  }

  .nav-links.open {
    transform: none
  }

  .dropdown-menu {
    list-style: none;
    position: static;
    box-shadow: none
  }
}

/* HERO SPLIT */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  text-align: left;
  gap: 3rem;
  padding-inline: clamp(1rem, 6vw, 3rem)
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .35));
  backdrop-filter: blur(3px);
  z-index: -1
}

.hero-left {
  flex: 1
}

.hero-left h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--clr-accent-dark)
}

.hero-left p {
  font-size: clamp(1.0rem, 2.1vw, 1.2rem);
  margin-block: 1rem 2rem;
  max-width: 480px
}

.cta {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  padding: .7rem 1.6rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition)
}

.cta:hover {
  background: var(--clr-accent-dark);
  transform: translateY(-2px)
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center
}

.hero-right img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

@media(max-width:820px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center
  }

  .hero-right img {
    max-width: 90%
  }
}

/* SPONSORS */
.sponsors {
  padding-block: 8rem;
}

.sponsors h2 {
  text-align: center;
  color: var(--clr-accent);
  font-weight: 800;
  margin-bottom: 2rem;
}

.sponsor-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-grid img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}


/* STATS */
.stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-block: 3rem
}

.stat {
  flex: 1 1 clamp(120px, 20%, 240px);
  text-align: center
}

.stat h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--clr-accent);
  font-weight: 800
}

/* GALLERY */
.gallery {
  padding-block: 4rem;
  text-align: center;
  color: var(--clr-accent);
}

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

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: var(--shadow)
}

/* PAGE HERO */
.page-hero {
  background: var(--clr-surface);
  text-align: center;
  padding-block: 4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05)
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--clr-red);
  font-weight: 800
}

/* CONTENT */
.content {
  padding-block: 3rem
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding-block: 3rem;
  margin-top: 1.2rem;
}

.about-text {
  flex: 1 1 320px
}

.about-img {
  flex: 0 1 320px;
  text-align: center
}

.about-img img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media(max-width:800px) {
  .about-grid {
    flex-direction: column
  }
}

/* ── COACHES GRID ─────────────────────────────────────── */
.coaches {
  padding-block: 4rem;
  text-align: center
}

.coaches h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--clr-red);
  margin-bottom: 2rem
}

.coaches-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.coach-card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition)
}

.coach-card:hover {
  transform: translateY(-6px)
}

.coach-card img {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.coach-card h3 {
  margin: .6rem 0 .25rem;
  font-size: 1.35rem
}

.coach-card .role {
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: .6rem
}

.coach-card .desc {
  font-size: .95rem;
  line-height: 1.55
}


/* TIMELINE */
.timeline {
  position: relative;
  padding-block: 4rem
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--clr-accent)
}

.timeline-item {
  position: relative;
  width: 44%;
  margin-block: 2rem;
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition)
}

.timeline-item:hover {
  transform: translateY(-4px)
}

.timeline-item img {
  width: 100%;
  border-radius: var(--radius);
  margin-top: .8rem
}

.timeline-item:nth-child(odd) {
  left: 0
}

.timeline-item:nth-child(even) {
  left: 56%
}

@media(max-width:820px) {
  .timeline::before {
    left: 8px;
    transform: none
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    padding-left: 2.2rem
  }
}

.tl-text h3 {
  color: var(--clr-accent);
  margin-bottom: .4rem
}

/* DEPARTMENTS */
.departments {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.dept {
  background: var(--clr-surface);
  border: 2px solid var(--clr-accent);
  border-radius: var(--radius);
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition)
}

.dept:hover {
  transform: translateY(-6px)
}

/* PDF/Sponsors */
.pdf-viewer {
  margin: 2rem 0;
  border: 2px solid var(--clr-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.sponsor-grid {
  display: grid;
  gap: 1.5rem;
  margin-block: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))
}

.sponsor-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain
}

/* FOOTER */
footer {
  background: var(--clr-surface);
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  color: var(--clr-text);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, .05)
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap
}

.social a {
  font-size: 1.4rem;
  color: var(--clr-text);
  margin-left: .75rem;
  transition: color .25s
}

.social a:first-child {
  margin-left: 0
}

.social a:hover {
  color: var(--clr-accent)
}

.emoji {
  font-size: 1.4rem;
  line-height: 1
}

/* SIDE PANEL */
.side-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: min(90%, 360px);
  height: 100vh;
  background: var(--clr-surface);
  padding: 1.5rem;
  box-shadow: -4px 0 12px rgba(0, 0, 0, .15);
  transition: right .35s cubic-bezier(.4, 0, .2, 1);
  z-index: 1200;
  overflow-y: auto
}

.side-panel.open {
  right: 0
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--clr-red);
  cursor: pointer
}

.side-panel img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.side-panel h2 {
  margin-top: 1rem;
  color: var(--clr-accent)
}

.side-panel ul {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: disc
}