/*
Theme Name: SAT Olympiad Nepal
Theme URI: https://edfadmissions.com
Author: EDF Admissions
Author URI: https://edfadmissions.com
Description: Official theme for SAT Olympiad Nepal 2025. A premium dark educational theme for Nepal's biggest SAT competition platform, featuring a bold navy and gold design language.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sat-olympiad
Tags: education, dark, one-page, custom-colors, custom-logo, featured-images, full-width-template
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --navy:        #0a0e2e;
  --deep:        #060919;
  --gold:        #f5c842;
  --gold-light:  #fde988;
  --crimson:     #e63950;
  --sky:         #4fc3f7;
  --white:       #f8f9ff;
  --muted:       #8890b8;
  --card:        rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-pill: 50px;
  --shadow-gold: 0 8px 30px rgba(245,200,66,0.3);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.4);
  --transition:  all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { line-height: 1.7; }

.text-gold    { color: var(--gold); }
.text-sky     { color: var(--sky); }
.text-muted   { color: var(--muted); }
.text-crimson { color: var(--crimson); }
.text-center  { text-align: center; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 6rem 2rem; }
.section-pad-sm { padding: 4rem 2rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .section-pad { padding: 4rem 1.25rem; }
}

/* ============================================================
   COMPONENTS - BADGE
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

/* ============================================================
   COMPONENTS - BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(245,200,66,0.5);
  color: var(--deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(245,200,66,0.4);
}

.btn-outline-gold:hover {
  background: rgba(245,200,66,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   COMPONENTS - CARDS
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-deep);
  background: #ffffff;
  color: var(--deep);
}

.card-gold {
  background: linear-gradient(135deg, rgba(245,200,66,0.1), rgba(245,200,66,0.03));
  border-color: rgba(245,200,66,0.25);
}

.card-sky {
  background: linear-gradient(135deg, rgba(79,195,247,0.1), rgba(79,195,247,0.03));
  border-color: rgba(79,195,247,0.2);
}

/* ============================================================
   COMPONENTS - META CHIPS
   ============================================================ */
.meta-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(248,249,255,0.7);
}

.chips-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================================
   COMPONENTS - DIVIDERS
   ============================================================ */
.divider-gold {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: none;
  margin: 0;
}

.section-stripe {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* ── HEADER BAR ─────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(6,9,25,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

#site-header.scrolled { background: rgba(6,9,25,0.98); }

.site-branding .site-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
}
.site-branding .site-title span { color: var(--gold); }
.site-branding .custom-logo-link img { height: 44px; width: auto; }

/* ── DESKTOP NAV (inside header, flex row) ──────────── */
.desktop-nav {
  display: flex;
  align-items: center;
}

#primary-menu {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none; margin: 0; padding: 0;
}

#primary-menu a {
  color: var(--muted);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s; text-decoration: none;
}

#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--white); }

#primary-menu .menu-cta > a {
  background: var(--gold);
  color: var(--deep) !important;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
#primary-menu .menu-cta > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.35);
}

/* ── HAMBURGER — hidden on desktop ─────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--white); padding: 0.5rem 0.7rem;
  font-size: 1.3rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  z-index: 1100; position: relative;
}

/* ── MOBILE OVERLAY NAV — hidden by default ─────────── */
.mobile-nav {
  display: none; /* never shows on desktop */
}

/* ── MOBILE BREAKPOINT ≤ 900px ───────────────────────── */
@media (max-width: 900px) {
  #site-header { padding: 1rem 1.25rem; }

  /* Hide desktop nav entirely */
  .desktop-nav { display: none !important; }

  /* Show hamburger */
  .menu-toggle { display: flex; }

  /* Mobile overlay: hidden until .open added by JS */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: rgba(6, 9, 25, 0.99);
    padding: 80px 1.5rem 2rem;
    overflow-y: auto;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  /* Open state */
  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
  }

  .mobile-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0;
  }

  .mobile-nav ul li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .mobile-nav ul li:last-child { border-bottom: none; padding-top: 1rem; }

  .mobile-nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem; font-weight: 500;
    color: rgba(248,249,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-nav ul li a:hover { color: var(--white); }

  .mobile-nav ul li.menu-cta a {
    display: inline-flex; align-items: center;
    background: var(--gold);
    color: var(--deep) !important;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700; font-family: var(--font-display);
  }
}

@media (max-width: 480px) {
  #site-header { padding: 0.9rem 1rem; }
  .site-branding .site-title { font-size: 1.1rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(79,195,247,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(245,200,66,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(230,57,80,0.1) 0%, transparent 50%),
    linear-gradient(165deg, #0f1535 0%, #060919 50%, #0a0720 100%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  animation: heroFloat 8s ease-in-out infinite; pointer-events: none;
}

.hero-orb-1 { width: 420px; height: 420px; background: rgba(79,195,247,0.15); top: 8%; right: 3%; animation-delay: 0s; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(245,200,66,0.10); bottom: 18%; left: 8%; animation-delay: -3s; }
.hero-orb-3 { width: 200px; height: 200px; background: rgba(230,57,80,0.12); top: 48%; right: 28%; animation-delay: -5s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.hero-slogan {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.12rem;
  color: rgba(248,249,255,0.72);
  max-width: 560px;
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.hero-highlights { display: flex; gap: 2rem; flex-wrap: wrap; }

.highlight-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem;
  color: rgba(248,249,255,0.6);
}

.highlight-item .icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex; justify-content: center; gap: 5rem;
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-card {
  background: linear-gradient(135deg, rgba(79,195,247,0.09), rgba(10,14,46,0.7));
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: visible;
}

.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.about-card-mission {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.about-location-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--deep);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 10px 40px rgba(245,200,66,0.3);
}

.about-tags { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; }

.about-tag {
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.about-tag-sky   { background: rgba(79,195,247,0.1); border:1px solid rgba(79,195,247,0.2); color:var(--sky); }
.about-tag-gold  { background: rgba(245,200,66,0.1); border:1px solid rgba(245,200,66,0.2); color:var(--gold); }
.about-tag-red   { background: rgba(230,57,80,0.1);  border:1px solid rgba(230,57,80,0.2);  color:#ff7088; }
.about-tag-white { background: rgba(255,255,255,0.05); border:1px solid var(--border); color:var(--muted); }

/* ============================================================
   REWARDS / WHY SECTION
   ============================================================ */
.reward-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.reward-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.6);
  box-shadow: var(--shadow-deep);

  color: var(--deep);
}

.reward-card.featured {
  background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(245,200,66,0.04));
  border-color: rgba(245,200,66,0.28);
}

.reward-emoji { font-size: 2rem; margin-bottom: 1rem; display: block; }
.reward-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.reward-desc  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   FORMAT SECTION
   ============================================================ */
.format-subject {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: var(--transition);
}



.format-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}

.format-icon-math    { background: rgba(245,200,66,0.15); }
.format-icon-reading { background: rgba(79,195,247,0.15); }
.format-icon-logic   { background: rgba(230,57,80,0.15);  }

.format-subject-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.format-subject-desc { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

.format-note {
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-wrap {
  position: relative;
  margin-top: 3rem;
}

.timeline-wrap::before {
  content: '';
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--sky), transparent);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd)  { flex-direction: row-reverse; }

.timeline-content {
  width: 44%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(245,200,66,0.25);
  transform: scale(1.02);
}

.timeline-item:nth-child(odd) .timeline-content  { margin-right: auto; margin-left: 0; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; margin-right: 0; }

.timeline-dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 1.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--deep);
  box-shadow: 0 0 0 4px rgba(245,200,66,0.3);
  z-index: 1;
}

.timeline-step  { font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin-bottom: 0.35rem; }
.timeline-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.timeline-date  { font-size: 0.83rem; color: var(--muted); }

@media (max-width: 768px) {
  .timeline-wrap::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: column; }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { width: 100%; margin-left: 3rem; }
  .timeline-dot { left: 20px; top: 1.5rem; transform: none; }
}

/* ============================================================
   ELIGIBILITY
   ============================================================ */
.elig-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.elig-card:hover {
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-4px);

  color: var(--deep);
}

.elig-num {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  color: var(--sky); line-height: 1;
  margin-bottom: 0.5rem;
}

.elig-label { font-size: 0.87rem; color: var(--muted); }

/* ============================================================
   REGISTRATION
   ============================================================ */
.reg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.reg-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);

  color: var(--deep);
  border-color: rgba(255,255,255,0.6);
}

.reg-card.featured {
  border-color: rgba(245,200,66,0.35);
  background: linear-gradient(135deg, rgba(245,200,66,0.08), rgba(10,14,46,0.8));
}

.reg-badge {
  position: absolute; top: 1.3rem; right: 1.3rem;
  background: var(--gold); color: var(--deep);
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
}

.reg-type  { font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.4rem; font-weight: 600; }
.reg-title { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--white); }
.reg-desc  { font-size: 0.9rem; color: rgba(248,249,255,0.6); margin-bottom: 1.5rem; line-height: 1.65; }

.reg-includes { list-style: none; margin-bottom: 2rem; }

.reg-includes li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.86rem;
  color: rgba(248,249,255,0.75);
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--border);
}

/* ── Light background card (Option 01 style) — force dark text ── */
.reg-card:not(.featured) {
  background: rgba(255,255,255,0.06);
}
.reg-card:not(.featured) .reg-type     { color: var(--muted); }
.reg-card:not(.featured) .reg-title    { color: var(--white); }
.reg-card:not(.featured) .reg-desc     { color: rgba(248,249,255,0.6); }
.reg-card:not(.featured) .reg-includes li { color: rgba(248,249,255,0.75); border-bottom-color: var(--border); }
.reg-card:not(.featured) .check        { color: var(--gold); }

.reg-includes li:last-child { border-bottom: none; }
.check { color: var(--gold); font-size: 0.88rem; margin-top: 0.1rem; flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(245,200,66,0.25); }

.faq-question {
  width: 100%; background: var(--card); border: none;
  color: var(--white); padding: 1.3rem 1.5rem;
  text-align: left;
  font-family: var(--font-body); font-size: 0.96rem; font-weight: 500;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(255,255,255,0.06); }
.faq-icon { font-size: 1.2rem; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  background: rgba(255,255,255,0.02);
}

.faq-answer.open { max-height: 320px; padding: 1rem 1.5rem 1.5rem; }
.faq-answer p { font-size: 0.9rem; color: rgba(248,249,255,0.65); line-height: 1.75; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: var(--white);
  display: block;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);

  color: var(--deep);
}

.contact-icon { font-size: 2rem; margin-bottom: 1rem; }

.contact-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-val {
  font-size: 0.7rem;
  color: rgba(248,249,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.contact-val-email    { font-size: 0.65rem; white-space: nowrap; letter-spacing: -0.02em; }
.contact-val-location { white-space: normal; line-height: 1.5; }

/* ── HOVER: force ALL text dark — every selector variant ── */


.contact-cta {
  background: rgba(245,200,66,0.08);
  border-color: rgba(245,200,66,0.25);
}

.contact-cta .contact-type { color: var(--gold) !important; }
.contact-cta .contact-val  { color: var(--gold) !important; font-weight: 600; }



/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000; justify-content: center;
  align-items: center; padding: 2rem;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: #0d1130;
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 24px; padding: 3rem;
  max-width: 560px; width: 100%;
  position: relative;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: var(--muted); font-size: 1.5rem; cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-title { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin-bottom: 0.4rem; }
.modal-sub   { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.8rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: rgba(248,249,255,0.7); margin-bottom: 0.35rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body); font-size: 0.93rem;
  transition: border-color 0.2s; outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(245,200,66,0.5); }

.form-group select option { background: #0d1130; color: var(--white); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
}

.footer-logo span { color: var(--gold); }

.footer-copy { font-size: 0.78rem; color: var(--muted); }

.footer-links { display: flex; gap: 1.2rem; }

.footer-links a {
  color: var(--muted); font-size: 0.83rem;
  text-decoration: none; transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

@media (max-width: 600px) {
  #colophon { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.wp-block-image { margin: 1.5rem 0; }
.wp-block-image img { border-radius: var(--radius-md); }

.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { text-align: center; margin: 0 auto; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; overflow: hidden;
  position: absolute; width: 1px;
}

/* ============================================================
   SINGLE / PAGE CONTENT
   ============================================================ */
.entry-content {
  max-width: 760px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 { margin-bottom: 1rem; margin-top: 2rem; }

.entry-content p { color: rgba(248,249,255,0.75); margin-bottom: 1.2rem; }

.entry-content a { color: var(--gold); }
.entry-content a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE POLISH
   ============================================================ */
@media (max-width: 768px) {
  .hero-section { padding: 7rem 1.25rem 3rem; }
  .stats-bar { gap: 2rem; }
  .about-location-badge { position: static; margin-top: 1.5rem; display: inline-block; }
}

/* ============================================================
   MOBILE RESPONSIVE ENHANCEMENTS (v1.1)
   Full responsive overhaul for phones, tablets, and desktops
   ============================================================ */

/* Viewport meta is already set — ensure no horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   HERO — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .hero-section {
    padding: 6rem 1rem 3rem;
    min-height: 100svh; /* small viewport height for mobile browsers */
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero-slogan {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero-sub {
    font-size: 0.97rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Shrink decorative orbs on mobile — less GPU overhead */
  .hero-orb-1 { width: 220px; height: 220px; }
  .hero-orb-2 { width: 160px; height: 160px; }
  .hero-orb-3 { width: 120px; height: 120px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-section { padding: 7rem 1.5rem 3.5rem; }
  .hero-title { font-size: clamp(2.6rem, 7vw, 4rem); }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-buttons .btn { flex: 1 1 180px; justify-content: center; }
}

/* ============================================================
   STATS BAR — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .stat-num { font-size: 1.9rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .stats-bar {
    gap: 1.5rem 3rem;
    padding: 2rem 1.5rem;
    justify-content: center;
  }
}

/* NAVIGATION — MOBILE POLISH handled in the @media (max-width: 900px) block above */

@media (max-width: 480px) {
  #site-header { padding: 0.9rem 1rem; }
  .site-branding .site-title { font-size: 1.1rem; }
  .site-branding .custom-logo-link img { height: 36px; }
}

/* ============================================================
   ABOUT SECTION — MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .about-location-badge {
    position: static;
    display: inline-block;
    margin-top: 1.5rem;
    right: auto;
    bottom: auto;
  }
}

@media (max-width: 480px) {
  .about-card { padding: 1.5rem 1.25rem; }
  .about-card-mission { font-size: 1.15rem; }
  .about-tags { gap: 0.5rem; }
  .about-tag { font-size: 0.75rem; padding: 0.55rem 0.9rem; }
}

/* ============================================================
   CARDS — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .card,
  .reward-card,
  .reg-card { padding: 1.5rem 1.25rem; }

  /* Remove hover-lift on touch — no hover state on mobile */
  @media (hover: none) {
    .card:hover,
    .reward-card:hover,
    .reg-card:hover,
    .elig-card:hover,
    .contact-card:hover { transform: none; }
  }
}

/* ============================================================
   GRID OVERRIDES — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
}

/* ============================================================
   FORMAT SECTION — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .format-subject { padding: 1rem 1.1rem; }
  .format-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .format-subject-name { font-size: 0.93rem; }
}

/* ============================================================
   TIMELINE — MOBILE (already has 768px breakpoint, add 480px)
   ============================================================ */
@media (max-width: 480px) {
  .timeline-content {
    padding: 1.1rem 1.2rem;
    margin-left: 2.5rem !important;
  }

  .timeline-dot { left: 12px; }
  .timeline-wrap::before { left: 15px; }

  .timeline-title { font-size: 0.95rem; }
}

/* ============================================================
   REGISTRATION CARDS — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .reg-card { padding: 2rem 1.5rem; }
  .reg-title { font-size: 1.3rem; }
  .reg-includes li { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .reg-card { padding: 1.5rem 1.25rem; }
  .reg-badge { font-size: 0.57rem; top: 1rem; right: 1rem; }
}

/* ============================================================
   MODAL — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }

  .modal-box {
    border-radius: 24px 24px 0 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
    max-height: 92svh;
    overflow-y: auto;
    animation: slideUp 0.35s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .form-row { grid-template-columns: 1fr; }
  .modal-title { font-size: 1.4rem; }
}

/* ============================================================
   FAQ — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .faq-question { padding: 1.1rem 1.1rem; font-size: 0.9rem; }
  .faq-answer.open { padding: 0.8rem 1.1rem 1.2rem; }
}

/* ============================================================
   CONTACT CARDS — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .contact-card { padding: 1.5rem 1.25rem; }
  .contact-val { font-size: 0.73rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   FOOTER — MOBILE
   ============================================================ */
@media (max-width: 600px) {
  #colophon {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
}

/* ============================================================
   SECTION PADDING — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .section-pad    { padding: 3rem 1rem; }
  .section-pad-sm { padding: 2rem 1rem; }
  .container      { padding: 0 1rem; }

  h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  h3 { font-size: 1.2rem; }
}

/* ============================================================
   TABLET (769px – 1024px) FINE-TUNING
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title { font-size: clamp(2.8rem, 5vw, 4rem); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-pad { padding: 5rem 2rem; }
  #site-header { padding: 1rem 2rem; }
}

/* ============================================================
   TOUCH-SPECIFIC IMPROVEMENTS
   ============================================================ */

/* Make all interactive elements at least 44px tall for touch targets */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding: 0.85rem 1.8rem;
  }

  .faq-question { min-height: 52px; }

  .menu-toggle { min-height: 44px; min-width: 44px; }

  /* Remove hover effects that look broken on touch */
  .card:hover,
  .format-subject:hover,
  .contact-card:hover,
  .elig-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline-gold:hover {
    transform: none;
  }
}

/* ============================================================
   CHIPS ROW — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .chips-row { gap: 0.5rem; }
  .meta-chip { font-size: 0.74rem; padding: 0.3rem 0.75rem; }
}

/* ============================================================
   ELIGIBILITY CARDS — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .elig-num { font-size: 2rem; }
  .elig-label { font-size: 0.8rem; }
  .elig-card { padding: 1.5rem 1rem; }
}

/* ============================================================
   BADGE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .badge { font-size: 0.68rem; padding: 0.35rem 0.85rem; }
}

/* ============================================================
   PREVENT TEXT ZOOM ON INPUT FOCUS (iOS)
   ============================================================ */
@media (max-width: 600px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}

/* ============================================================
   SAFE AREA INSETS (iPhone notch / home bar)
   ============================================================ */
#site-header {
  padding-left: max(3rem, env(safe-area-inset-left));
  padding-right: max(3rem, env(safe-area-inset-right));
}

@media (max-width: 900px) {
  #site-header {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

#colophon {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

@media (max-width: 600px) {
  #colophon {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   UTILITY — HIDE/SHOW BY BREAKPOINT
   ============================================================ */
.hide-mobile  { display: block; }
.show-mobile  { display: none;  }

@media (max-width: 600px) {
  .hide-mobile { display: none;  }
  .show-mobile { display: block; }
}


/* ============================================================
   MOBILE IMPROVEMENTS v2 — Nav untouched
   Covers: Hero, Stats, About, Rewards, Format, Timeline,
           Eligibility, Registration, FAQ, Contact, Footer,
           Modal, Buttons, Typography, Touch targets
   ============================================================ */

/* ── GLOBAL ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container      { padding: 0 1.1rem; }
  .section-pad    { padding: 3rem 1.1rem; }
  .section-pad-sm { padding: 2rem 1.1rem; }
  h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  h3 { font-size: 1.2rem; }
}

/* ── HERO ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-section {
    padding: 5.5rem 1.1rem 3rem;
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 6rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    letter-spacing: -0.03em;
  }

  .hero-slogan {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    letter-spacing: 0.08em;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 0.65rem;
  }

  .highlight-item { font-size: 0.83rem; }

  /* Shrink orbs — reduces GPU load on mobile */
  .hero-orb-1 { width: 180px; height: 180px; right: -20px; }
  .hero-orb-2 { width: 140px; height: 140px; }
  .hero-orb-3 { width: 100px; height: 100px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero-section { padding: 7rem 1.5rem 4rem; }
  .hero-title { font-size: clamp(2.6rem, 7vw, 4rem); }
  .hero-buttons .btn { flex: 1 1 180px; justify-content: center; }
}

/* ── STATS BAR ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 0.5rem;
    padding: 1.8rem 1.1rem;
    text-align: center;
  }
  .stat-num   { font-size: 2rem; }
  .stat-label { font-size: 0.7rem; }
}

/* ── ABOUT ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-location-badge {
    position: static;
    display: inline-block;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-card          { padding: 1.5rem 1.1rem; }
  .about-card-mission  { font-size: 1.1rem; line-height: 1.5; }
  .about-tags          { gap: 0.4rem; margin-top: 1rem; }
  .about-tag           { font-size: 0.72rem; padding: 0.45rem 0.8rem; }
}

/* ── REWARD / WHY CARDS ──────────────────────────────────── */
@media (max-width: 480px) {
  .reward-card         { padding: 1.4rem 1.1rem; }
  .reward-emoji        { font-size: 1.7rem; margin-bottom: 0.7rem; }
  .reward-title        { font-size: 0.98rem; }
  .reward-desc         { font-size: 0.83rem; }
}

/* ── FORMAT SECTION ──────────────────────────────────────── */
@media (max-width: 480px) {
  .format-subject      { padding: 0.9rem 1rem; gap: 0.75rem; }
  .format-icon         { width: 36px; height: 36px; font-size: 1rem; border-radius: 8px; }
  .format-subject-name { font-size: 0.9rem; }
  .format-subject-desc { font-size: 0.78rem; }
  .format-note         { padding: 1rem 1.1rem; font-size: 0.85rem; }
}

/* ── TIMELINE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .timeline-wrap::before { left: 18px; }

  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: column; }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    margin-left: 3rem;
    margin-right: 0;
  }

  .timeline-dot { left: 18px; transform: none; }
}

@media (max-width: 480px) {
  .timeline-content {
    padding: 1rem 1.1rem;
    margin-left: 2.5rem !important;
  }
  .timeline-dot         { left: 10px; width: 12px; height: 12px; top: 1.2rem; }
  .timeline-wrap::before{ left: 14px; }
  .timeline-title       { font-size: 0.92rem; }
  .timeline-date        { font-size: 0.78rem; }
  .timeline-step        { font-size: 0.68rem; }
}

/* ── ELIGIBILITY CARDS ───────────────────────────────────── */
@media (max-width: 480px) {
  .elig-card  { padding: 1.4rem 1rem; }
  .elig-num   { font-size: 2.1rem; }
  .elig-label { font-size: 0.8rem; }
}

/* ── REGISTRATION CARDS ──────────────────────────────────── */
@media (max-width: 768px) {
  .reg-card              { padding: 2rem 1.5rem; }
  .reg-title             { font-size: 1.3rem; }
  .reg-desc              { font-size: 0.85rem; }
  .reg-includes li       { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .reg-card   { padding: 1.5rem 1.1rem; }
  .reg-title  { font-size: 1.2rem; }
  .reg-badge  { font-size: 0.55rem; top: 0.9rem; right: 0.9rem; }
}

/* ── FAQ ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .faq-question        { padding: 1rem 1.1rem; font-size: 0.88rem; line-height: 1.5; }
  .faq-icon            { font-size: 1.1rem; }
  .faq-answer.open     { padding: 0.8rem 1.1rem 1.2rem; }
  .faq-answer p        { font-size: 0.85rem; }
}

/* ── CONTACT CARDS ───────────────────────────────────────── */
@media (max-width: 480px) {
  .contact-card   { padding: 1.4rem 1.1rem; }
  .contact-icon   { font-size: 1.7rem; margin-bottom: 0.7rem; }
  .contact-val    { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── CARDS GENERAL ───────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 1.4rem 1.1rem; }
}

/* Disable hover lifts on touch devices — they look sticky */
@media (hover: none) {
  .card:hover,
  .reward-card:hover,
  .reg-card:hover,
  .elig-card:hover,
  .contact-card:hover,
  .format-subject:hover { transform: none !important; box-shadow: none !important; }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline-gold:hover { transform: none !important; }
}

/* ── MODAL ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    border-radius: 24px 24px 0 0;
    padding: 2rem 1.25rem 2.5rem;
    max-width: 100%;
    max-height: 92svh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
  }

  @keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0.7; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .form-row     { grid-template-columns: 1fr; gap: 0; }
  .modal-title  { font-size: 1.35rem; }
  .modal-sub    { font-size: 0.82rem; margin-bottom: 1.3rem; }
}

/* ── BUTTONS — touch targets ─────────────────────────────── */
@media (pointer: coarse) {
  .btn          { min-height: 48px; padding: 0.9rem 1.8rem; }
  .faq-question { min-height: 52px; }
  .menu-toggle  { min-height: 44px; min-width: 44px; }
}

/* ── INPUTS — prevent iOS zoom on focus ──────────────────── */
@media (max-width: 600px) {
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px !important; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  #colophon {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.1rem;
    gap: 0.6rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  .footer-copy { font-size: 0.75rem; }
}

/* ── CHIPS / META ────────────────────────────────────────── */
@media (max-width: 480px) {
  .chips-row  { gap: 0.45rem; }
  .meta-chip  { font-size: 0.72rem; padding: 0.28rem 0.7rem; }
}

/* ── TABLET 769–1024 ─────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title  { font-size: clamp(2.8rem, 5vw, 4rem); }
  .grid-3      { grid-template-columns: repeat(2, 1fr); }
  .grid-4      { grid-template-columns: repeat(2, 1fr); }
  .section-pad { padding: 5rem 2rem; }
}

/* ── SAFE AREA (iPhone notch / home bar) ─────────────────── */
@media (max-width: 600px) {
  #colophon {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}


/* ============================================================
   HOVER TEXT VISIBILITY — targeted per element, no wildcard
   ============================================================ */

/* ── Generic .card (What is SAT Olympiad mini cards) ──── */
.card:hover { background: #ffffff; color: var(--deep) !important; }
.card:hover p   { color: #555 !important; }
.card:hover div { color: var(--deep) !important; }

/* ── Reward cards ────────────────────────────────────── */
.reward-card:hover { background: #ffffff; }
.reward-card:hover .reward-title { color: var(--deep) !important; }
.reward-card:hover .reward-desc  { color: #555 !important; }

/* ── Eligibility cards ───────────────────────────────── */
.elig-card:hover { background: #ffffff; }
.elig-card:hover .elig-num                              { color: #1565c0 !important; }
.elig-card:hover [style*="font-family"][style*="700"]   { color: var(--deep) !important; }
.elig-card:hover .elig-label                            { color: #555 !important; }

/* ── Registration cards ──────────────────────────────── */
.reg-card:hover { background: #ffffff; }
.reg-card:hover .reg-type              { color: #888 !important; }
.reg-card:hover .reg-title             { color: var(--deep) !important; }
.reg-card:hover .reg-desc              { color: #555 !important; }
.reg-card:hover .check                 { color: #2e7d32 !important; }
.reg-card:hover .reg-includes li       { color: var(--deep) !important; }
.reg-card:hover .reg-badge             { background: var(--gold); color: var(--deep) !important; }

/* ── Contact cards ───────────────────────────────────── */
.contact-card:hover { background: #ffffff; }
.contact-card:hover .contact-type { color: #888 !important; }
.contact-card:hover .contact-val  { color: var(--deep) !important; }

/* Contact CTA — gold tones on white */
.contact-cta:hover .contact-type { color: #b8860b !important; }
.contact-cta:hover .contact-val  { color: #b8860b !important; }

/* ── Format subjects ─────────────────────────────────── */
.format-subject:hover { background: #ffffff; }
.format-subject:hover .format-subject-name { color: var(--deep) !important; }
.format-subject:hover .format-subject-desc { color: #555 !important; }
