/* ===========================================================
   ECLIPSE WEBSITE THEME (CLEANED)
   =========================================================== */

/* ---------------------------
   ROOT VARIABLES
--------------------------- */
:root {
  --lunar: #04041C;
  --solarflare: #F46421;
  --supernova: #D2800E;
  --starlight: #FFE202;
  --white: #FFFFFF;
  --font-heading: 'Satoshi Variable', sans-serif;
  --font-body: 'Nebula Sans', sans-serif;

  /* Achievements media controls */
  --ach-wide-media: 220px;
  --ach-media-ratio: 16 / 7.5;
}

/* ---------------------------
   GLOBAL RESET
--------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: #000000;
  color: var(--white);
  line-height: 1.6;
}

/* ---------------------------
   HEADINGS
--------------------------- */
h1, h2, h3 { font-family: var(--font-heading); margin-bottom: 0.5em; }
h1 { font-size: 2.5rem; color: var(--solarflare); text-align: center; text-decoration: none;}
h2 { font-size: 2rem;   color: var(--solarflare); text-align: center; text-decoration: none;}
h3 { font-size: 1.5rem; color: var(--solarflare); text-decoration: none;}

/* ---------------------------
   NAVIGATION
--------------------------- */
nav {
  background-color: var(--lunar);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 2em;
  border-bottom: 2px solid var(--solarflare);
  position: sticky; top: 0; z-index: 1000;
  min-height: 60px;
}
nav a img.logo { height: 40px; width: auto; display: block; }
nav div { display: flex; align-items: center; height: 100%; }
nav a {
  position: relative;
  text-decoration: none; color: var(--white);
  margin: 0 1em; font-weight: 500; display: flex; align-items: center;
  transition: color 0.3s; padding: 0;
}
nav a:hover { color: var(--solarflare); text-decoration: none; }

/* underline on hover */
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--solarflare);
  transition: width .25s ease;
}
nav a:hover::after { width: 100%; }

/* current page */
nav a.active {
  color: var(--supernova);
  font-weight: 700;
}
nav a.active::after { width: 100%; }

/* ---------------------------
   BUTTONS
--------------------------- */
.button {
  background-color: var(--starlight); color: var(--lunar);
  padding: 0.7em 1.5em; border: none; border-radius: 8px;
  font-size: 1rem; cursor: pointer; font-weight: bold; text-decoration: none;
  display: inline-block; text-align: center;
  transition: background-color 0.3s, transform 0.2s;
}
.button:hover { background-color: var(--supernova); color: var(--white); transform: translateY(-2px); }

/* ---------------------------
   SECTIONS
--------------------------- */
section { padding: 4em 10%; }

/* ---------------------------
   MODERN CARD (generic)
--------------------------- */
.card {
  /* visual shell */
  background: linear-gradient(180deg, #0a0a2a 0%, #121232 100%);
  color: #f0f0f5;
  border-radius: 10px;
  border: 1px solid rgba(244,100,33,0.2);
  padding: 2rem;
  margin: 1.5em 0;
  backdrop-filter: blur(4px);
  background-clip: padding-box;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

  /* layout */
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); /* text | image */
  gap: 1.5rem;
  align-items: center; /* vertical centering */
}
.card:hover { transform: translateY(-6px); border-color: var(--solarflare); box-shadow: 0 8px 24px rgba(244,100,33,0.35); }
.card.in-view { transform: scale(1.01); }

.card h2, .card h3 { color: var(--solarflare); margin: 0 0 .5rem 0; text-align: left;}
.card p { margin: 0; color: #eaeaf2; line-height: 1.5; }

/* stack text nicely */
.card-content,
.card-text-block {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
}

/* place text & image */
.card > :not(.card-img) { grid-column: 1; align-self: center; justify-self: start; }
.card > .card-img,
.card > img.card-img {
  grid-column: 2;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  align-self: center;
  justify-self: end;
}
/* ===========================
   TEAM PAGE (original layout)
=========================== */
.team-section { 
  padding: 4em 10%; 
  display: grid; 
  gap: 2rem; 
}

.team-card { 
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 2rem; 
  padding: 1.5rem; 
  background: linear-gradient(180deg, #0a0a2a 0%, #121232 100%);
  border: 1px solid rgba(244,100,33,.20);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}

.team-img { 
  width: 38%; 
  min-width: 240px; 
  height: 260px; 
  object-fit: cover; 
  border-radius: 10px; 
}

.team-card .card-content { 
  flex: 1; 
}

.team-card h2 { 
  margin: 0 0 .25rem 0; 
}

.team-card .role { 
  margin: 0 0 .75rem 0; 
  font-size: 1.05rem; 
  color: var(--solarflare); 
}

.team-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 40px rgba(244,100,33,.28); 
}

@media (max-width: 900px) {
  .team-img { 
    width: 100%; 
    height: 220px; 
  }
}

/* mobile stack */
@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; }
  .card > .card-img { grid-column: 1; justify-self: stretch; }
}

/* ---------------------------
   FOOTER
--------------------------- */
footer {
  text-align: center; padding: 1.5em; background-color: var(--lunar);
  border-top: 2px solid var(--solarflare); color: var(--white); font-size: 0.9rem;
}

/* ---------------------------
   RESPONSIVE (global)
--------------------------- */
@media (max-width: 768px) {
  nav { flex-direction: column; }
  nav a { margin: 0.5em 0; }
  section { padding: 2em 5%; }
}

/* ---------------------------------------------------
   HERO BANNER – full-bleed with dark overlay & parallax
--------------------------------------------------- */
section.hero-banner { padding: 0; margin: 0; }
.hero-banner {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  height: 500px; overflow: hidden;
  background-image: url('../img/hero_image.png');
  background-attachment: fixed; background-position: bottom center; background-size: cover; padding: 0;
}
.hero-banner::before { content: ""; position: absolute; inset: 0; background: rgba(4,4,28,0.7); z-index: 1; }
.hero-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; text-align: center; padding: 0 1em; }

.hero-banner h1 { font-size: 4rem; color: var(--solarflare); text-align: center; line-height: 4rem; }
.hero-banner p { font-size: 1.6rem;}
/* Optional alt hero image */
.hero-banner2 {
  position: re; width: 100vw; margin-left: calc(50% - 50vw);
  height: 500px; background-image: url('../img/2024Nats.JPG');
  background-attachment: fixed; background-position: top center; background-size: cover; padding: 0;
}

/* Team hero (full-bleed, with bar) */
.hero-banner--team {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 500px;
  background-image: url('../img/img_8541.JPG');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  padding: 0;
  border-bottom: 2px solid var(--solarflare);
}
@media (max-width: 768px){ .hero-banner--team { background-attachment: scroll; } }

.hero-overlay { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  z-index: 2; 
  text-align: center; 
  padding: 0 0.5em; /* Reduced from 1em to 0.5em */
}

/* ===========================
   SPONSORSHIP PAGE
=========================== */
.sponsor-heading {
  padding: 2.2em 10%;
  background: linear-gradient(180deg, rgba(10,10,42,0.65), rgba(4,4,28,0.9));
  border-top: 2px solid var(--solarflare);
  border-bottom: 2px solid rgba(244,100,33,0.25);
}
.sponsor-heading--tight { padding: 1.8em 10%; }
.sponsor-heading__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.sponsor-heading h2 { margin-bottom: .25em; }
.sponsor-heading p  { color: #eaeaf2; }

/* Partners grid */
.partners-grid {
  padding: 3em 10%;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
}

/* Supporters logo wall */
.supporters-wall {
  padding: 3em 10%;
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.25rem; align-items: center; justify-items: center;
}
@media (min-width: 680px)  { .supporters-wall { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .supporters-wall { grid-template-columns: repeat(5,1fr); } }

.supporter {
  display: block; background: var(--white); border-radius: 12px;
  padding: .9rem 1rem; box-shadow: 0 0 10px rgba(244,100,33,0.28);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.supporter img { width: 140px; height: 70px; object-fit: contain; display: block; filter: grayscale(25%); }
.supporter:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(244,100,33,.28); }
.supporter:hover img { filter: grayscale(0%); }

/* Become a Sponsor – CTA */
.sponsor-cta {
  position: relative; padding: 4em 10%;
  background:
    radial-gradient(900px 900px at 15% -10%, rgba(244,100,33,.16), transparent 60%),
    radial-gradient(800px 800px at 85% 120%, rgba(255,226,2,.12), transparent 60%),
    #000000;
  border-top: 2px solid rgba(244,100,33,.35);
  border-bottom: 2px solid rgba(244,100,33,.2);
}
.cta-card {
  background: var(--white); color: var(--lunar);
  border-radius: 16px; box-shadow: 0 0 24px rgba(244,100,33,.35);
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; padding: 2rem 2.25rem;
}
.cta-copy h2 { margin-top: 0; text-align: left; }
.cta-copy p  { margin: .5rem 0 1rem; }
.cta-benefits { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.cta-benefits li { position: relative; padding-left: 1.6rem; margin: .4rem 0; }
.cta-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--supernova); font-weight: 700; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* CTA buttons */
.sponsor-cta .button { background-color: var(--solarflare); color: var(--white); border: none; }
.sponsor-cta .button:hover { background-color: var(--supernova); color: var(--white); }
.sponsor-cta .button--ghost { background: transparent; color: var(--solarflare); border: 2px solid var(--solarflare); }
.sponsor-cta .button--ghost:hover { background: var(--solarflare); color: var(--white); }

/* CTA stats */
.cta-aside { display: grid; gap: 1rem; align-content: center; }
.stat {
  background: linear-gradient(180deg,#0a0a2a 0%, #121232 100%);
  border: 1px solid rgba(244,100,33,.28); border-radius: 12px;
  text-align: center; padding: 1rem; box-shadow: 0 10px 28px rgba(244,100,33,.25);
}
.stat span {
  display: block; font-size: 2.2rem; color: var(--solarflare);
  text-shadow: 0 0 10px rgba(244,100,33,.5); line-height: 1;
}
.stat small { display: block; color: #eaeaf2; margin-top: .35rem; }

@media (max-width: 980px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card  { grid-template-columns: 1fr; }
  .partner-card.alt .partner-media, .partner-card.alt .card-content { order: initial; }
  .partner-logo { max-width: 280px; height: 120px; }
  .cta-card { grid-template-columns: 1fr; }
}

/* ===========================
   Sponsorship Partner Cards
   =========================== */
.partner-card {
  display: grid;
  grid-template-columns: 1fr 220px;   /* text left | logo right */
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #0a0a2a 0%, #121232 100%);
  border: 1px solid rgba(244,100,33,0.20);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}


.partner-logo {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: .5rem .75rem;
  box-shadow: 0 0 8px rgba(0,0,0,.05) inset;
}


.partner-card h3 {
  margin: 0;
  text-align: left;
  color: var(--solarflare);
}
.partner-card p {
  margin: 0;
  line-height: 1.55;
  color: #eaeaf2;
}



/* wider cards for special sponsors */
.partner-card--wide {
  grid-column: 1 / -1;
}

/* responsive stacking */
@media (max-width: 980px) {
  .partner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .partner-logo {
    max-width: 280px;
    height: 120px;
    margin: 0 auto;
  }
}

/* ===========================
   ACHIEVEMENTS (sponsorship-style)
=========================== */
.ach-year-heading {
  padding: 2.2em 10%;
  background: linear-gradient(180deg, rgba(10,10,42,0.65), rgba(4,4,28,0.9));
  border-top: 2px solid var(--solarflare);
  border-bottom: 2px solid rgba(244,100,33,0.25);
}
.ach-year-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.ach-year-heading h2 { margin-bottom: .25em; }
.ach-year-heading p  { color: #eaeaf2; }

.ach-year-grid {
  padding: 3em 10%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem 1.5rem;
}

/* Ach card */
.ach-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  grid-template-areas:
    "title list"
    "media media";
  align-items: start; gap: .6rem 1.25rem; padding: 1.4rem 1.6rem;
}
.ach-card > h3 { grid-area: title; margin: 0; text-align: left; }
.ach-card > .ach-list { grid-area: list; margin: 0; padding-left: 1.1em; }
.ach-card .ach-media {
  grid-area: media; margin: .4rem 0 0 0;
  aspect-ratio: var(--ach-media-ratio);
  border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.ach-card .ach-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wide Ach card */
.ach-card--wide {
  grid-template-columns: 1.2fr 1.4fr;
  grid-template-areas:
    "title media"
    "list  media";
  align-items: start; gap: .8rem 1.25rem;
}
.ach-card--wide > h3 { grid-area: title; text-align: left; margin: 0; }
.ach-card--wide > .ach-list { grid-area: list; margin: 0; padding-left: 1.1em; }

/* final media for wide cards (single definition) */
.ach-card--wide .ach-media {
  grid-area: media;
  width: 100%;
  aspect-ratio: 5 / 2;   /* 2.5:1 */
  justify-self: stretch;
  align-self: center;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.ach-card--wide .ach-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (max-width: 900px) {
  .ach-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title" "list" "media";
  }
  .ach-card--wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title" "list" "media";
  }
  .ach-card--wide .ach-media { width: 100%; aspect-ratio: 16 / 9; margin-top: .6rem; justify-self: stretch; }
}

/* World Finals emphasis & animated waves */
.ach-worldfinals { position: relative; padding: 4em 10%; overflow: hidden;
  background:
    radial-gradient(900px 900px at 15% -10%, rgba(244,100,33,.16), transparent 60%),
    radial-gradient(800px 800px at 85% 120%, rgba(255,226,2,.12), transparent 60%),
    var(--lunar);
  border-top: 2px solid rgba(244,100,33,.35);
}
.wf-card { position: relative; z-index: 3; background: var(--lunar);
  border-radius: 16px; box-shadow: 0 0 24px rgba(244,100,33,.35); padding: 2rem 2.25rem; text-align: center; }
.wf-card h2 { margin: 0 0 .35rem 0; }
.wf-card p { margin: 0; }

.wf-waves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.wf-track { position: absolute; left: 0; bottom: -4px; display: flex; width: 200%; animation: wfSlide 12s linear infinite; will-change: transform; }
.wf-svg { flex: 0 0 50%; height: 240px; }
.wf-svg path { fill: rgba(244, 100, 33, 0.33); }
@keyframes wfSlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wf-waves::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 240px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='rgba(244,100,33,0.22)' d='M0,30 C200,70 400,10 600,30 C800,50 1000,10 1200,30 L1200,120 L0,120 Z'/%3E%3C/svg%3E") repeat-x bottom / 1200px 120px;
  animation: wfSlide 18s linear infinite reverse;
}
@media (prefers-reduced-motion: reduce) {
  .wf-track, .wf-waves::after { animation: none; }
}

/* ===========================
   TEAM PAGE
=========================== */
.team-section { padding: 4em 10%; display: grid; gap: 2rem; }
.team-card { display: flex; flex-direction: row; align-items: center; gap: 2rem; padding: 1.5rem; }
.team-card:nth-child(even) { flex-direction: row-reverse; }
.team-img { width: 38%; min-width: 240px; height: 260px; object-fit: cover; border-radius: 10px; }
.team-card .card-content { flex: 1; }
.team-card h2 { margin: 0 0 .25rem 0; }
.team-card .role { margin: 0 0 .75rem 0; font-size: 1.05rem; color: var(--solarflare); }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(244,100,33,.28); }
@media (max-width: 900px) {
  .team-card, .team-card:nth-child(even) { flex-direction: column; }
  .team-img { width: 100%; height: 220px; }
}

/* ===========================
   Custom Bullet Points
=========================== */
.ach-card .ach-list { list-style: none; margin: 0; padding: 0; position: relative; }
.ach-card .ach-list::before {
  content: ""; position: absolute; left: 0.56rem; top: .45rem; bottom: .45rem;
  width: 2px; background: linear-gradient(180deg, rgba(255,226,2,.35), rgba(244,100,33,.35)); border-radius: 2px;
}
.ach-card .ach-list li {
  position: relative; padding: .35rem .5rem .35rem 1.6rem; border-radius: 8px;
  transition: background .25s ease, transform .25s ease;
}
.ach-card .ach-list li:hover { background: rgba(4, 4, 28, 0.06); transform: translateX(2px); }
.ach-card .ach-list li::before {
  content: ""; position: absolute; left: .2rem; top: .58rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--starlight);
  box-shadow: 0 0 0 2px rgba(244,100,33,.60), 0 0 10px rgba(244,100,33,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ach-card .ach-list li:hover::before {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(244,100,33,.80), 0 0 16px rgba(244,100,33,.55);
}
.ach-card .ach-list li strong { color: var(--solarflare); font-weight: 700; }

/* ===========================
   Feature ribbon / split band / mini timeline
=========================== */
.feature-ribbon{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap: 1rem; padding: 1.2rem 10%;
  background: #000000;
  border-bottom: 1px solid rgba(244,100,33,.25);
}
.fr-item{ text-align:center; padding: .8rem 0; border-left: 1px solid rgba(255,255,255,.06); }
.fr-item:first-child{ border-left: 0; }
.fr-num{ display:block; font-size: 2rem; line-height:1; color: var(--starlight); text-shadow: 0 0 12px rgba(255,226,2,.35); }
.fr-item small{font-size: large; display:block; color:#eaeaf2; margin-top:.25rem; }
@media (max-width: 800px){ .feature-ribbon{ grid-template-columns:1fr; } .fr-item{ border-left:0; } }

.split-band{
  display:grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items:center;
  padding: 3.5rem 10%;
  background: radial-gradient(900px 900px at 15% -10%, rgba(244,100,33,.14), transparent 60%), #000000;
  border-top: 1px solid rgba(244,100,33,.25);
}
.split-copy h2{ text-align:left; margin-bottom:.5rem; }
.split-copy p{ color:#eaeaf2; margin: .25rem 0 1rem; }
.split-media{ margin:0; }
.split-media img{
  width:100%; height: 340px; object-fit: cover; display:block;
  border-radius: 14px; box-shadow: 0 10px 28px rgba(244,100,33,.25);
}
@media (max-width: 980px){ .split-band{ grid-template-columns:1fr; } .split-media img{ height: 260px; } }

.mini-timeline{ padding: 3rem 10%; background:#0a0a2a; border-top:1px solid rgba(255,255,255,.06); }
.mini-timeline h2{ margin-bottom: .8rem; }
.mt-line{ list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.mt-line li{ display:grid; grid-template-columns: 90px 1fr; align-items:center; padding:.5rem .75rem; border-radius:10px; background: rgba(255,255,255,.03); }
.mt-year{ display:inline-block; font-weight:700; color: var(--solarflare); }
.mt-text{ color:#eaeaf2; }
.mt-cta{ margin-top:1rem; text-align:center; }

/* ===========================
   Sponsor Marquee – FINAL version
=========================== */
/* Card shell (optional, matches theme) */
.marquee-card {
  background: linear-gradient(180deg, #0a0a2a 0%, #121232 100%);
  border: 1px solid rgba(244,100,33,.20);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.marquee-card h2 { margin: 0 0 .6rem 0; color: var(--solarflare); text-align: left; }

/* marquee core */
.sponsor-marquee {
  --marquee-h: 100px;          /* uniform logo height */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: var(--marquee-h);
  gap: 2rem;
  border-radius: 10px;
  isolation: isolate;
}

/* moving rows (duplicate for seamless loop) */
.sponsor-marquee__content {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: marquee-scroll 25s linear infinite;
}

/* consistent logo boxes */
.sponsor-marquee__item {
  flex: 0 0 auto;
  width: 160px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: .5rem;
}

/* logos stay centered & contained */
.sponsor-marquee__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


/* loop */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (max-width: 900px) {
  .sponsor-marquee { --marquee-h: 90px; }
}

/* ===== Restore original Team card layout (override global .card grid) ===== */
.card.team-card {
  display: flex !important;              /* kill grid from .card */
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
}

/* neutralize the global .card child grid placement */
.card.team-card > :not(.card-img) {
  grid-column: auto !important;
  justify-self: auto !important;
  align-self: center;
}
.card.team-card > .card-img {
  grid-column: auto !important;
  justify-self: auto !important;
  align-self: center;
}

/* image + content sizing like before */
.card.team-card .team-img {
  width: 38%;
  min-width: 240px;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
}
.card.team-card .card-content {
  flex: 1;
}
.card.team-card h2 {
  margin: 0 0 .25rem 0;
}
.card.team-card .role {
  margin: 0 0 .75rem 0;
  font-size: 1.05rem;
  color: var(--solarflare);
}

/* alternate left/right rows */
.card.team-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* hover polish */
.card.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(244,100,33,.28);
}

/* stack on mobile */
@media (max-width: 900px) {
  .card.team-card,
  .card.team-card:nth-child(even) {
    flex-direction: column;
  }
  .card.team-card .team-img {
    width: 100%;
    height: 220px;
  }
}

/* Put text on the left, logo on the right */
.partner-card {
  display: grid;
  grid-template-columns: 1fr 220px;  /* text | logo */
  align-items: center;
  gap: 1.25rem;
}

/* override the global `.card > :not(.card-img)` */
.partner-card > .card-content {
  grid-column: 1 !important;
  align-self: center;
  justify-self: start;
}

.partner-card > .partner-media {
  grid-column: 2 !important;
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* logo */
.partner-card .partner-logo {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: .5rem .75rem;
  box-shadow: 0 0 8px rgba(0,0,0,.05) inset;
}



/* Mobile: stack cleanly */
@media (max-width: 980px) {
  .partner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .partner-card > .card-content,
  .partner-card > .partner-media {
    grid-column: 1 !important;
    justify-self: center;
  }
  .partner-card .partner-logo {
    max-width: 280px;
    height: 120px;
  }
}


a {
  text-decoration: none;
}




/* ===========================
   Dark Mode Override
   =========================== */

/* Whole site background becomes black */
body {
  background-color: #000000 !important;
}

/* Cards adopt Lunar background with lighter text for readability */
.card,
.partner-card,
.team-card,
.cta-card,
.wf-card,
.marquee-card {
  background: var(--lunar) !important;
  color: var(--white) !important;
  border: 1px solid rgba(244,100,33,0.25) !important; /* subtle Solarflare border */
  box-shadow: 0 4px 12px rgba(0,0,0,0.6) !important;
}

/* Headings inside cards still pop with Solarflare */
.card h2, .card h3,
.partner-card h3,
.team-card h2,
.cta-card h2,
.wf-card h2 {
  color: var(--solarflare) !important;
}

/* Paragraph text softer off-white */
.card p,
.partner-card p,
.team-card p,
.cta-card p,
.wf-card p {
  color: #eaeaf2 !important;
}

/* Solarflare glow hover effect for cards */
.card:hover,
.partner-card:hover,
.team-card:hover,
.cta-card:hover,
.wf-card:hover,
.marquee-card:hover {
  box-shadow: 0 0 18px rgba(244, 100, 33, 0.65); /* Solarflare glow */
  transform: translateY(-4px); /* subtle lift */
  border-color: var(--solarflare); /* reinforce edge glow */
}

/* ===========================
   MOBILE RESPONSIVE FIXES
   ========================== */

/* 1. REMOVE THE PROBLEMATIC DESKTOP LOCK */
/* Remove or comment out the @media (max-width: 2000px) block entirely */

/* 2. IMPROVED MOBILE BREAKPOINTS */
/* Mobile First Approach - Base styles for mobile, then enhance for larger screens */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1em;
    min-height: auto;
  }
  
  nav a {
    margin: 0.3em 0;
    padding: 0.5em;
    text-align: center;
  }
  
  nav a img.logo {
    height: 35px;
    margin-bottom: 0.5em;
  }
}

/* 3. HERO BANNER MOBILE FIXES */
@media (max-width: 768px) {
  .hero-banner,
  .hero-banner2,
  .hero-banner--team {
    height: 350px; /* Reduce height on mobile */
    background-attachment: scroll; /* Fix Safari mobile issues */
    margin-left: 0; /* Remove full viewport width */
    width: 100%; /* Use container width instead */
  }
  
  .hero-banner h1 {
    font-size: 2.5rem; /* Reduce from 4rem */
    line-height: 2.5rem;
  }
  
  .hero-banner p {
    font-size: 1.2rem; /* Reduce from 1.6rem */
  }
  
  .hero-overlay {
    padding: 0 1.5em;
  }
}

/* 4. CARD SYSTEM MOBILE OPTIMISATION */
@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 1rem;
    padding: 1.5rem;
    margin: 1em 0;
  }
  
  .card > .card-img,
  .card > img.card-img {
    grid-column: 1;
    grid-row: 1; /* Image first on mobile */
    max-height: 200px;
    width: 100%;
    justify-self: stretch;
  }
  
  .card > :not(.card-img) {
    grid-column: 1;
    grid-row: 2; /* Content second */
    justify-self: stretch;
  }
}

/* 5. TEAM CARDS MOBILE STACKING */
@media (max-width: 900px) {
  .card.team-card,
  .card.team-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  
  .card.team-card .team-img {
    width: 100%;
    min-width: unset; /* Remove fixed minimum */
    max-width: 280px; /* Prevent oversized images */
    height: 220px;
    margin: 0 auto;
  }
  
  .card.team-card .card-content {
    width: 100%;
  }
}

/* 6. PARTNER CARDS MOBILE FIXES */
@media (max-width: 900px) {
  .partner-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .partner-card > .card-content,
  .partner-card > .partner-media {
    grid-column: 1;
    justify-self: center;
  }
  
  .partner-card .partner-logo {
    max-width: 200px;
    height: 100px;
    margin: 0 auto;
  }
}

/* 7. ACHIEVEMENTS CARDS MOBILE LAYOUT */
@media (max-width: 900px) {
  .ach-year-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 2em 5%;
  }
  
  .ach-card,
  .ach-card--wide {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "list"
      "media";
    gap: 1rem;
  }
  
  .ach-card .ach-media,
  .ach-card--wide .ach-media {
    aspect-ratio: 16 / 9; /* More mobile-friendly ratio */
    margin-top: 0.5rem;
  }
}

/* 8. TYPOGRAPHY SCALING */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.4rem; }
  
  section {
    padding: 2em 5%; /* Reduce side padding */
  }
}

/* 9. SPONSORS MARQUEE MOBILE */
@media (max-width: 768px) {
  .sponsor-marquee {
    --marquee-h: 80px;
  }
  
  .sponsor-marquee__item {
    width: 120px;
    height: 70px;
  }
}

/* 10. UTILITY CLASSES FOR MOBILE */
.mobile-hidden {
  display: block;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
}

/* 11. PREVENT HORIZONTAL SCROLL */
* {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

/* 12. IMPROVED TOUCH TARGETS */
@media (max-width: 768px) {
  .button {
    padding: 1em 1.5em;
    font-size: 1.1rem;
    min-height: 44px; /* Accessibility touch target size */
  }
  
  nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===========================
   CRITICAL FIX FOR CARD STACKING ISSUE
   ========================== */

/* Remove the problematic max-width rule that's causing overflow */
* {
  /* REMOVE OR COMMENT OUT: max-width: 100%; */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fixed Partner Card Mobile Layout */
@media (max-width: 980px) {
  .partner-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 1.5rem !important;
    text-align: center;
    padding: 1.5rem;
    position: relative; /* Ensure proper stacking context */
  }
  
  .partner-card > .card-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    align-self: start !important;
    position: relative;
    z-index: 1;
  }
  
  .partner-card > .partner-media {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    align-self: start !important;
    position: relative;
    z-index: 1;
  }
  
  .partner-card .partner-logo {
    max-width: 280px;
    height: 120px;
    margin: 0 auto;
    display: block;
  }
}

/* Enhanced Mobile Responsive Fixes */
@media (max-width: 768px) {
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Fix hero banner full-width issues */
  .hero-banner,
  .hero-banner2,
  .hero-banner--team {
    width: 100% !important;
    margin-left: 0 !important;
    height: 300px;
    background-attachment: scroll;
  }
  
  /* Partners grid mobile fixes */
  .partners-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 2rem 5%;
  }
  
  /* Typography scaling for mobile */
  .hero-banner h1 {
    font-size: 2.2rem !important;
    line-height: 2.4rem !important;
  }
  
  .hero-banner p {
    font-size: 1.1rem !important;
  }
  
  /* Section padding adjustments */
  section {
    padding: 2rem 5% !important;
  }
  
  /* Navigation mobile improvements */
  nav {
    flex-direction: column;
    padding: 1rem;
    min-height: auto;
  }
  
  nav div {
    flex-direction: column;
    width: 100%;
  }
  
  nav a {
    margin: 0.3rem 0;
    padding: 0.7rem;
    text-align: center;
    width: 100%;
  }
}

/* Additional fix for supporters wall */
@media (max-width: 768px) {
  .supporters-wall {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    padding: 2rem 5%;
  }
  
  .supporter {
    padding: 0.7rem;
  }
  
  .supporter img {
    width: 120px;
    height: 60px;
  }
}

/* CTA Card Mobile Fix */
@media (max-width: 980px) {
  .cta-card {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    text-align: center;
  }
  
  .cta-aside {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Sponsor marquee mobile optimization */
@media (max-width: 768px) {
  .sponsor-marquee {
    --marquee-h: 70px;
  }
  
  .sponsor-marquee__item {
    width: 100px;
    height: 60px;
  }
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Container overflow fixes */
.container,
section,
.partners-grid,
.supporters-wall {
  max-width: 100%;
  overflow-x: hidden;
}

/* Button mobile improvements */
@media (max-width: 768px) {
  .button {
    padding: 0.9rem 1.3rem;
    font-size: 1rem;
    min-height: 48px;
    width: auto;
    display: inline-block;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
  
  .cta-actions .button {
    width: 100%;
    max-width: 280px;
  }
}

/* ===========================
   COMPREHENSIVE MOBILE FIXES
   ========================== */

/* 1. NAVIGATION BAR MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 0.8rem 1rem; /* Reduced padding */
    min-height: auto;
    gap: 0.5rem; /* Add gap between logo and links */
  }
  
  nav a img.logo {
    height: 32px; /* Smaller logo */
    margin-bottom: 0.3rem; /* Reduced margin */
  }
  
  nav div {
    flex-direction: row; /* Keep navigation links horizontal */
    flex-wrap: wrap; /* Allow wrapping if needed */
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
  }
  
  nav a {
    margin: 0.2rem 0.4rem; /* Reduced margins */
    padding: 0.4rem 0.8rem; /* Smaller padding */
    font-size: 0.9rem; /* Slightly smaller text */
    min-height: auto; /* Remove fixed height */
    border-radius: 4px;
  }
  
  /* Active link styling for mobile */
  nav a.active {
    background-color: rgba(244, 100, 33, 0.1);
  }
}

/* 2. ACHIEVEMENT CARDS MOBILE FIXES */
@media (max-width: 900px) {
  /* Achievement year grid - single column */
  .ach-year-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 2rem 5%;
  }
  
  /* Standard achievement cards */
  .ach-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "list"
      "media" !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
  }
  
  /* Wide achievement cards */
  .ach-card--wide {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "list"
      "media" !important;
    gap: 1rem !important;
    padding: 1.5rem !important;
  }
  
  /* Achievement card elements positioning */
  .ach-card > h3,
  .ach-card--wide > h3 {
    grid-area: title !important;
    text-align: center !important;
    margin: 0 0 1rem 0 !important;
  }
  
  .ach-card > .ach-list,
  .ach-card--wide > .ach-list {
    grid-area: list !important;
    margin: 0 !important;
    padding-left: 0 !important;
  }
  
  .ach-card .ach-media,
  .ach-card--wide .ach-media {
    grid-area: media !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    margin: 1rem 0 0 0 !important;
    justify-self: stretch !important;
    align-self: start !important;
  }
  
  .ach-card .ach-media img,
  .ach-card--wide .ach-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}

/* 3. SPONSOR MARQUEE MOBILE FIXES */
@media (max-width: 768px) {
  /* Marquee container adjustments */
  .sponsor-marquee {
    --marquee-h: 70px !important;
    height: 70px !important;
    gap: 1rem !important;
  }
  
  /* Marquee content styling */
  .sponsor-marquee__content {
    gap: 1rem !important;
    animation-duration: 30s; /* Slower animation for better readability */
  }
  
  /* Individual sponsor logo containers */
  .sponsor-marquee__item {
    flex: 0 0 auto !important;
    width: 100px !important;
    height: 60px !important;
    min-width: 100px !important;
    padding: 0.3rem !important;
    background: #fff;
    border-radius: 6px;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Sponsor logos sizing */
  .sponsor-marquee__logo {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Marquee card container */
  .marquee-card {
    padding: 1rem !important;
    margin: 1rem 0 !important;
  }
  
  .marquee-card h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
  }
}

/* 4. HOMEPAGE CARDS MOBILE FIXES */
@media (max-width: 768px) {
  .homepage-cards {
    padding: 2rem 5% !important;
  }
  
  .homepage-cards .card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    text-align: center;
  }
  
  .homepage-cards .card-text-block {
    grid-row: 2 !important;
    grid-column: 1 !important;
  }
  
  .homepage-cards .card-img {
    grid-row: 1 !important;
    grid-column: 1 !important;
    max-height: 200px !important;
    width: 100% !important;
    justify-self: stretch !important;
  }
  
  .homepage-cards .card ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* 5. FEATURE RIBBON MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .feature-ribbon {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding: 1.5rem 5% !important;
  }
  
  .fr-item {
    border-left: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 1rem 0 !important;
  }
  
  .fr-item:last-child {
    border-bottom: none;
  }
  
  .fr-num {
    font-size: 1.8rem !important;
  }
}

/* 6. SPLIT BAND MOBILE LAYOUT */
@media (max-width: 768px) {
  .split-band {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2.5rem 5% !important;
  }
  
  .split-media {
    grid-row: 1; /* Image first on mobile */
  }
  
  .split-copy {
    grid-row: 2; /* Text second on mobile */
    text-align: center;
  }
  
  .split-media img {
    height: 200px !important;
    width: 100%;
    object-fit: cover;
  }
}

/* 7. WORLD FINALS SECTION MOBILE */
@media (max-width: 768px) {
  .ach-worldfinals {
    padding: 3rem 5% !important;
  }
  
  .wf-card {
    padding: 1.5rem !important;
  }
  
  .wf-card h2 {
    font-size: 1.8rem !important;
  }
}

/* 8. GENERAL TYPOGRAPHY MOBILE SCALING */
@media (max-width: 768px) {
  h1 { font-size: 2rem !important; }
  h2 { font-size: 1.6rem !important; }
  h3 { font-size: 1.3rem !important; }
  
  .hero-banner h1 {
    font-size: 2.2rem !important;
    line-height: 2.4rem !important;
  }
  
  .hero-banner p {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }
}

/* 9. PREVENT HORIZONTAL SCROLL */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

* {
  box-sizing: border-box !important;
}

/* 10. ACHIEVEMENT LIST MOBILE STYLING */
@media (max-width: 768px) {
  .ach-card .ach-list,
  .ach-card--wide .ach-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 400px;
    position: relative;
  }
  
  .ach-card .ach-list::before,
  .ach-card--wide .ach-list::before {
    display: none; /* Remove connecting line on mobile */
  }
  
  .ach-card .ach-list li,
  .ach-card--wide .ach-list li {
    padding: 0.5rem 0 0.5rem 2rem !important;
    text-align: left;
    position: relative;
    border-radius: 6px;
    margin: 0.3rem 0;
  }
  
  .ach-card .ach-list li::before,
  .ach-card--wide .ach-list li::before {
    left: 0.5rem !important;
    top: 0.7rem !important;
    width: 0.6rem !important;
    height: 0.6rem !important;
  }
}

/* 11. BUTTON MOBILE IMPROVEMENTS */
@media (max-width: 768px) {
  .button {
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    border-radius: 6px;
  }
}

/* 12. FOOTER MOBILE */
@media (max-width: 768px) {
  footer {
    padding: 1.5rem 5% !important;
    font-size: 0.9rem !important;
  }
}

/* ===========================
   TARGETED SPONSOR MARQUEE FIX
   ========================== */

/* Reset and fix the marquee container */
@media (max-width: 768px) {
  .sponsor-marquee {
    --marquee-h: 80px !important;
    height: 80px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* Fix the marquee content containers */
  .sponsor-marquee__content {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    animation: marquee-scroll 35s linear infinite !important;
    white-space: nowrap !important;
  }
  
  /* Individual sponsor logo containers - Critical sizing */
  .sponsor-marquee__item {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 70px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    padding: 0.4rem !important;
    background: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Logo image constraints */
  .sponsor-marquee__logo {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Marquee card wrapper adjustments */
  .marquee-card {
    padding: 1rem 0.5rem 1.2rem !important;
    margin: 1rem 0 !important;
    overflow: hidden !important;
  }
  
  .marquee-card h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.8rem !important;
    text-align: center !important;
  }
}

/* Additional fix for very small screens */
@media (max-width: 480px) {
  .sponsor-marquee {
    --marquee-h: 75px !important;
    height: 75px !important;
  }
  
  .sponsor-marquee__content {
    gap: 1.2rem !important;
    animation-duration: 40s !important;
  }
  
  .sponsor-marquee__item {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 65px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }
}

/* Ensure the marquee works properly on all mobile orientations */
@media (max-width: 768px) and (orientation: landscape) {
  .sponsor-marquee {
    --marquee-h: 70px !important;
    height: 70px !important;
  }
  
  .sponsor-marquee__item {
    height: 60px !important;
  }
}

/* Fix for container that might be constraining the marquee */
@media (max-width: 768px) {
  .carousel-rail {
    width: 100% !important;
    overflow: hidden !important;
    padding: 1rem 0 !important;
  }
  
  /* Ensure no parent containers are constraining width */
  .homepage-cards,
  .carousel-rail,
  .marquee-card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* Performance optimization for mobile */
@media (max-width: 768px) {
  .sponsor-marquee__content {
    will-change: transform !important;
    transform: translateZ(0) !important;
  }
  
  /* Pause animation on touch for better mobile UX */
  .sponsor-marquee:hover .sponsor-marquee__content {
    animation-play-state: paused !important;
  }
}

/* ===========================
   HAMBURGER MENU STYLES
   ========================== */

/* Hide hamburger menu on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  z-index: 1001;
}

/* Hamburger lines */
.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Desktop navigation - ensure it stays visible */
.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--white);
  margin: 0 1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  padding: 0;
}

.nav-link:hover {
  color: var(--solarflare);
  text-decoration: none;
}

/* Underline animation for navigation links */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--solarflare);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active navigation link styling */
.nav-link.active {
  color: var(--supernova);
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
}

/* ===========================
   MOBILE NAVIGATION STYLES
   ========================== */

@media (max-width: 768px) {
  /* Show hamburger menu on mobile */
  .nav-toggle {
    display: flex !important;
  }
  
  /* Navigation container adjustments */
  nav {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    min-height: 60px;
    position: relative;
  }
  
  /* Mobile navigation menu */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--lunar);
    border-top: 2px solid var(--solarflare);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* Show mobile menu when active */
  .nav-menu.active {
    transform: translateX(0);
  }
  
  /* Mobile navigation links */
  .nav-link {
    margin: 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    background-color: rgba(244, 100, 33, 0.1);
    transition: all 0.3s ease;
    position: relative;
  }
  
  .nav-link:hover {
    background-color: rgba(244, 100, 33, 0.2);
    transform: translateY(-2px);
  }
  
  .nav-link.active {
    background-color: var(--solarflare);
    color: var(--white);
  }
  
  /* Remove desktop underline animation on mobile */
  .nav-link::after {
    display: none;
  }
  
  /* Hamburger animation when menu is open */
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Body scroll lock when menu is open */
  body.nav-open {
    overflow: hidden;
  }
  
  /* Logo sizing for mobile */
  nav a img.logo {
    height: 35px;
    width: auto;
  }
}

/* Smooth transitions for better UX */
@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .hamburger-line,
  .nav-link {
    transition: none;
  }
}

/* Mobile landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .nav-menu {
    height: calc(100vh - 60px);
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===========================
   HAMBURGER MENU STYLES - CONSOLIDATED
   ========================== */

/* Hide hamburger menu on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.25rem;
  z-index: 1001;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  gap: 6px;
  position: relative;
}

/* Hover and focus effects */
.nav-toggle:hover {
  background-color: rgba(244, 100, 33, 0.1);
}

.nav-toggle:focus {
  outline: 2px solid var(--solarflare);
  outline-offset: 2px;
  background-color: rgba(244, 100, 33, 0.15);
}

/* Hamburger lines */
.hamburger-line {
  display: block;
  width: 18px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* When menu is active, hide lines and show close symbol */
.nav-toggle.active .hamburger-line {
  opacity: 0;
  transform: scale(0);
}

/* Add close symbol when active */
.nav-toggle.active::after {
  content: "×";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  color: var(--solarflare);
  font-weight: 600;
  line-height: 1;
}

/* Active state container styling */
.nav-toggle.active {
  background-color: rgba(244, 100, 33, 0.15);
}

/* Desktop navigation */
.nav-menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--white);
  margin: 0 1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  padding: 0;
}

.nav-link:hover {
  color: var(--solarflare);
  text-decoration: none;
}

/* Desktop underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--solarflare);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active link styling */
.nav-link.active {
  color: var(--supernova);
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
}

/* ===========================
   MOBILE NAVIGATION
   ========================== */

@media (max-width: 768px) {
  /* Show hamburger on mobile */
  .nav-toggle {
    display: flex !important;
  }
  
  /* Navigation container */
  nav {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    min-height: 70px;
    position: relative;
  }
  
  /* Mobile menu */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--lunar);
    border-top: 2px solid var(--solarflare);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem 1rem;
    gap: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* Show menu when active */
  .nav-menu.active {
    transform: translateX(0);
  }
  
  /* Mobile navigation links */
  .nav-link {
    margin: 0;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    background-color: rgba(244, 100, 33, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link:hover {
    background-color: rgba(244, 100, 33, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(244, 100, 33, 0.2);
  }
  
  .nav-link.active {
    background-color: var(--solarflare);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(244, 100, 33, 0.4);
  }
  
  /* Remove desktop underline on mobile */
  .nav-link::after {
    display: none;
  }
  
  /* Body scroll lock */
  body.nav-open {
    overflow: hidden;
  }
  
  /* Logo sizing */
  nav a img.logo {
    height: 38px;
    width: auto;
  }
  
  /* Focus states */
  .nav-toggle:focus {
    outline: 2px solid var(--solarflare);
    outline-offset: 2px;
    background-color: rgba(244, 100, 33, 0.2);
  }
  
  .nav-link:focus {
    outline: 2px solid var(--solarflare);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(244, 100, 33, 0.3);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  nav {
    min-height: 65px;
    padding: 0.75rem 1.25rem;
  }
  
  .nav-toggle {
    width: 2.5rem;
    height: 2rem;
    padding: 0.6rem;
    gap: 5px;
  }
  
  .hamburger-line {
    width: 16px;
  }
  
  .nav-toggle.active::after {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    top: 65px;
    height: calc(100vh - 65px);
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .nav-link {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.875rem 1rem;
  }
  
  .nav-toggle {
    width: 2.5rem;
    height: 2rem;
    padding: 0.625rem;
    gap: 5px;
  }
  
  .hamburger-line {
    width: 16px;
  }
  
  .nav-toggle.active::after {
    font-size: 1.1rem;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .hamburger-line,
  .nav-link,
  .nav-toggle {
    transition: none;
  }
}

/* ===========================
   SPLIT MEDIA IMAGE FIX
   Replace the existing .split-media img rules with this
   ========================== */

.split-media img {
  width: 100%;
  height: auto; /* Let height scale naturally */
  min-height: 200px; /* Ensure minimum height for very wide images */
  max-height: 400px; /* Prevent overly tall images on desktop */
  object-fit: contain; /* Show full image without cropping */
  object-position: center; /* Center the image */
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(244,100,33,.25);
  background-color: rgba(10,10,42,0.3); /* Subtle background for letterboxing */
}

/* Mobile adjustments */
@media (max-width: 980px) {
  .split-band { 
    grid-template-columns: 1fr; 
  }
  
  .split-media img { 
    max-height: 300px; /* Slightly smaller max on tablet */
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .split-media img {
    max-height: 250px; /* Even smaller max on mobile */
    min-height: 160px;
  }
}
.hero-overlay { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  z-index: 2; 
  text-align: center; 
  padding: 0 0.1em; /* Better balance - not too tight, not too loose */
}
/* ===========================
   COMPREHENSIVE SPONSOR MARQUEE FIX
   Add this to the very bottom of your CSS file
   ========================== */

/* Reset ALL marquee styles and apply consistent sizing */
.sponsor-marquee {
  --marquee-h: 100px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  height: var(--marquee-h) !important;
  gap: 2rem !important;
  border-radius: 10px !important;
  isolation: isolate !important;
  width: 100% !important;
}

/* Target ALL content containers (both original and duplicate) */
.sponsor-marquee .sponsor-marquee__content {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: marquee-scroll 25s linear infinite !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* Critical: Target ALL items in ALL content containers */
.sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
  flex: 0 0 160px !important;
  width: 160px !important;
  height: 90px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 0.5rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Logo sizing consistency */
.sponsor-marquee .sponsor-marquee__content .sponsor-marquee__logo {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
}

/* Tablet/small desktop range fix */
@media (max-width: 1200px) and (min-width: 901px) {
  .sponsor-marquee {
    --marquee-h: 95px !important;
    height: 95px !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content {
    gap: 1.8rem !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
    flex: 0 0 150px !important;
    width: 150px !important;
    height: 85px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
}

/* Medium screen adjustments */
@media (max-width: 900px) and (min-width: 769px) {
  .sponsor-marquee {
    --marquee-h: 90px !important;
    height: 90px !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content {
    gap: 1.6rem !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
    flex: 0 0 140px !important;
    width: 140px !important;
    height: 80px !important;
    min-width: 140px !important;
    max-width: 140px !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .sponsor-marquee {
    --marquee-h: 80px !important;
    height: 80px !important;
    width: 100% !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content {
    gap: 1.5rem !important;
    animation-duration: 35s !important;
    will-change: transform !important;
    transform: translateZ(0) !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 70px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    padding: 0.4rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__logo {
    max-width: 95% !important;
    max-height: 95% !important;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .sponsor-marquee {
    --marquee-h: 75px !important;
    height: 75px !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content {
    gap: 1.2rem !important;
    animation-duration: 40s !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
    flex: 0 0 110px !important;
    width: 110px !important;
    height: 65px !important;
    min-width: 110px !important;
    max-width: 110px !important;
  }
}

/* Container fixes */
.marquee-card {
  padding: 1.25rem 1.25rem 1.5rem !important;
  margin: 1rem 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.carousel-rail {
  width: 100% !important;
  overflow: hidden !important;
  padding: 1rem 0 !important;
}

/* Performance optimizations */
.sponsor-marquee .sponsor-marquee__content {
  contain: layout style paint !important;
}

/* Hover pause functionality */
.sponsor-marquee:hover .sponsor-marquee__content {
  animation-play-state: paused !important;
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .sponsor-marquee {
    --marquee-h: 70px !important;
    height: 70px !important;
  }
  
  .sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
    height: 60px !important;
  }
}

/* Fallback for older browsers */
.sponsor-marquee .sponsor-marquee__content .sponsor-marquee__item {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}