/* ============================================
   ART FOR AWARENESS — Design System
   Primary: #1B4332 (Deep Forest Green)
   Accent: #C97B5E (Terracotta)
   Background: #FAF3E0 (Warm Cream)
   Text: #1A1A1A (Charcoal)
   Accent Gold: #D4A574 / #E8B57F
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─── */
:root {
  --primary: #1B4332;
  --primary-dark: #143824;
  --primary-light: #2D6A4F;
  --primary-pale: #E8F5E9;
  --secondary: #C97B5E;
  --secondary-light: #D88E72;
  --accent: #D4A574;
  --navy: #1A1A1A;
  --navy-mid: #2D2D2D;
  --dark: #1A1A1A;
  --gold: #D4A574;
  --gold-light: #E8B57F;
  --silver: #8A9BA8;
  --bronze: #CD7F32;
  --cream: #FAF3E0;
  --cream-light: #F5DEB3;
  --bg: #FAF3E0;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #6B6B6B;
  --border: #D4C4A8;
  --border-light: #ECE2D0;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 3px rgba(26,26,26,0.06);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,26,0.12);
  --shadow-xl: 0 16px 48px rgba(26,26,26,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ─── */
*, *::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(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); line-height: 1.7; }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 560px; margin: 0 auto 48px; font-size: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); letter-spacing: 0.02em; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,67,50,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--primary-dark); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-lg); }

/* ─── Cards ─── */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-body { padding: 24px; }

/* ─── Pills / Badges ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-primary { background: var(--primary-pale); color: var(--primary); }
.pill-gold { background: #fef3c7; color: #92400e; }
.pill-navy { background: var(--navy); color: white; }
.pill-teal-solid { background: var(--primary); color: white; }
.pill-gray { background: var(--border); color: var(--text-secondary); }
.rank-gold { background: var(--gold); color: white; }
.rank-silver { background: var(--silver); color: white; }
.rank-bronze { background: var(--bronze); color: white; }

/* ─── HEADER ─── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 70px; max-width: 1200px; margin: 0 auto;
}
.logo {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem;
  color: var(--navy); white-space: nowrap; flex-shrink: 0;
}
.logo span { color: var(--primary); }
nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem;
  color: var(--text-secondary); transition: var(--transition); white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: var(--primary-pale); }
.nav-link.active { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.btn-login { color: var(--text-secondary); font-weight: 600; font-size: 0.88rem; padding: 8px 16px; border-radius: var(--radius-md); transition: var(--transition); font-family: var(--font-heading); }
.btn-login:hover { color: var(--primary); background: var(--primary-pale); }
.btn-register { background: var(--primary); color: white; padding: 10px 20px; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; transition: var(--transition); }
.btn-register:hover { background: var(--primary-dark); }

/* ─── HERO CAROUSEL ─── */
.hero-carousel { position: relative; overflow: hidden; background: var(--navy); }
.carousel-slides { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide {
  min-width: 100%; min-height: calc(100vh - 80px); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 100%, rgba(46,107,122,0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 90% 90%, rgba(212,165,116,0.18) 0%, transparent 55%),
    linear-gradient(135deg, rgba(13,33,55,0.88) 0%, rgba(27,67,50,0.78) 50%, rgba(45,106,79,0.6) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; padding: 0 32px; text-align: center;
}
.slide-tag { margin-bottom: 16px; }
/* Hero Download Art Sheet button — high-contrast against the dark green
   hero so it doesn't blend with the gradient. Uses brand secondary
   (terracotta) so it pops without leaving the palette. */
.slide-actions .btn-primary {
  background: var(--secondary);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(201, 123, 94, 0.35);
}
.slide-actions .btn-primary::after { display: none; }
.slide-actions .btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201, 123, 94, 0.45);
}
.slide-title {
  color: white; margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.01em;
  text-wrap: balance; -webkit-text-wrap: balance;
  overflow-wrap: break-word;
}
.slide-desc {
  color: rgba(255,255,255,0.78);
  max-width: 460px; margin: 0 auto 36px;
  font-size: 1rem; line-height: 1.55;
  text-wrap: balance; -webkit-text-wrap: balance;
}
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* Single-slide carousel: no need for arrows / dots noise */
.hero-carousel.single-slide .carousel-arrow,
.hero-carousel.single-slide .carousel-dots { display: none !important; }
.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: var(--transition); cursor: pointer; }
.dot.active { background: white; width: 24px; border-radius: 4px; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.3); }
.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

/* Mobile: hide arrows so they stop overlapping hero copy.
   The dot indicators + swipe remain available for navigation. */
@media (max-width: 720px) {
  .carousel-arrow { display: none; }
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--navy);
  padding: 0;
}
.stats-inner {
  display: flex; justify-content: center; gap: 0;
  max-width: 1200px; margin: 0 auto;
}
.stat-item {
  flex: 1; padding: 20px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ─── UPCOMING EVENTS ─── */
.event-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: var(--transition);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--border-light);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.event-date-num { font-family: var(--font-heading); font-size: 3rem; font-weight: 900; color: var(--border); line-height: 1; }
.event-month { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 800; color: var(--primary); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.event-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.event-desc { color: var(--text-secondary); font-size: 0.9rem; flex: 1; }
.event-card-footer { margin-top: auto; }

/* ─── DREAM GENERATOR ─── */
.dream-section {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative; overflow: hidden;
}
.dream-section::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.dream-section::after {
  content: '';
  position: absolute; right: 80px; bottom: -80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.dream-content { position: relative; z-index: 1; }
.dream-title { color: white; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 12px; }
.dream-desc { color: rgba(255,255,255,0.75); margin-bottom: 28px; max-width: 520px; }
.dream-output {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  min-height: 72px;
  display: flex; align-items: center;
  margin-top: 20px;
}
.dream-output p {
  color: rgba(255,255,255,0.9);
  font-style: italic; font-size: 1.05rem; font-family: var(--font-heading);
  font-weight: 500;
}
.btn-generate {
  background: white; color: var(--primary);
  padding: 12px 28px; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* ─── GALLERY OF MASTERS (Winners) ─── */
.winner-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow-sm); transition: var(--transition); }
.winner-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.winner-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.winner-img-placeholder { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #1d4f5c 0%, #2E6B7A 50%, #3d8fa2 100%); display: flex; align-items: center; justify-content: center; }
.winner-rank-badge {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.winner-info { padding: 20px; }
.winner-name { font-family: var(--font-heading); font-weight: 800; color: var(--navy); margin-bottom: 4px; font-size: 1.05rem; }
.winner-artist { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.winner-meta { display: flex; align-items: center; justify-content: space-between; }
.winner-category { background: var(--border); color: var(--text-secondary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.winner-age { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

/* ─── EVENT CARD with image ─── */
.event-card.has-image {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.event-card.has-image .event-image {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--primary-pale);
}
.event-card.has-image .event-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-card.has-image:hover .event-image img { transform: scale(1.04); }
.event-card.has-image .event-card-inner {
  padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1;
}

/* ─── CATEGORIES with image ─── */
.category-card.has-image {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border-light);
}
.category-card.has-image .category-image {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--primary-pale);
}
.category-card.has-image .category-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card.has-image:hover .category-image img { transform: scale(1.05); }
.category-card.has-image .category-content { padding: 24px; }
.category-card.has-image.dark { background: var(--navy); }
.category-card.has-image.dark h3 { color: white; }
.category-card.has-image.dark p { color: rgba(255,255,255,0.75); }
.category-card.has-image.teal { background: var(--primary); }
.category-card.has-image.teal h3 { color: white; }
.category-card.has-image.teal p { color: rgba(255,255,255,0.85); }
.category-card.has-image.dark .category-age-pill { background: rgba(255,255,255,0.15); color: white; }
.category-card.has-image.teal .category-age-pill { background: rgba(255,255,255,0.2); color: white; }

/* ─── CATEGORIES (legacy) ─── */
.category-card {
  border-radius: var(--radius-lg); padding: 32px; transition: var(--transition);
  cursor: pointer; overflow: hidden; position: relative;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card.dark { background: var(--navy); color: white; }
.category-card.light { background: var(--bg-card); border: 1px solid var(--border); }
.category-card.teal { background: var(--primary); color: white; }
.category-card.dark h3, .category-card.teal h3 { color: white; }
.category-card.dark p, .category-card.teal p { color: rgba(255,255,255,0.75); }
.category-age-pill {
  display: inline-block; padding: 5px 14px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.category-card.dark .category-age-pill { background: rgba(255,255,255,0.12); color: white; }
.category-card.light .category-age-pill { background: var(--border); color: var(--navy); }
.category-card.teal .category-age-pill { background: rgba(255,255,255,0.2); color: white; }
.category-icon { font-size: 2.5rem; margin-bottom: 16px; }

/* ─── PRIZES ─── */
.prizes-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(46,107,122,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(212,165,116,0.08) 0%, transparent 70%),
    var(--navy);
  position: relative;
}
/* Soft fade on the top edge so the cream section above blends into the navy */
.prizes-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, rgba(250,243,224,0.45) 0%, transparent 100%);
  pointer-events: none;
}
.prize-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
  transition: var(--transition);
}
.prize-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.prize-icon { font-size: 3rem; margin-bottom: 16px; }
.prize-title { color: white; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.prize-desc { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.prize-card.featured {
  background: linear-gradient(135deg, rgba(197,160,40,0.2) 0%, rgba(197,160,40,0.05) 100%);
  border-color: rgba(197,160,40,0.4);
}
.prize-card.featured .prize-title { color: var(--gold); }
.prize-amount { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--gold); }

/* ─── Prize cards v2 — gradient-rich, ranked ─── */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 32px auto 0;
}
.prize-card-v2 {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.prize-card-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--prize-gradient, linear-gradient(135deg,#fff,#ddd));
  opacity: 0.12;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.prize-card-v2:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,0.25); }
.prize-card-v2:hover::before { opacity: 0.2; }
.prize-card-v2-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 140%; height: 80%;
  background: var(--prize-gradient);
  filter: blur(40px); opacity: 0.25;
  pointer-events: none; z-index: 0;
}
.prize-card-v2-icon {
  position: relative; z-index: 1;
  font-size: 2.6rem; line-height: 1; margin-bottom: 8px;
}
.prize-card-v2-rank {
  position: relative; z-index: 1;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}
.prize-card-v2-amount {
  position: relative; z-index: 1;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900;
  color: white; margin-bottom: 4px; letter-spacing: -0.01em;
}
.prize-card-v2-title {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem; font-weight: 600; margin-bottom: 12px;
}
.prize-card-v2-desc {
  position: relative; z-index: 1;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem; line-height: 1.55; margin: 0;
}
.prize-card-v2.is-featured {
  border-color: rgba(212,165,116,0.4);
  box-shadow: 0 0 0 1px rgba(212,165,116,0.15) inset;
}
.prize-card-v2.is-cert .prize-card-v2-amount,
.prize-card-v2.is-cert .prize-card-v2-title { color: #2a1a0c; }
.prize-card-v2.is-cert .prize-card-v2-rank { color: rgba(0,0,0,0.5); }
.prize-card-v2.is-cert .prize-card-v2-desc { color: rgba(0,0,0,0.65); }
.prize-card-v2.is-cert::before { opacity: 0.95; }

@media (max-width: 1024px) {
  .prize-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}
@media (max-width: 480px) {
  /* Keep a 2×2 grid on mobile so 4 prize cards don't take 4 full screens of scroll */
  .prize-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prize-card-v2 { padding: 18px 12px; }
  .prize-card-v2-icon { font-size: 2rem; margin-bottom: 4px; }
  .prize-card-v2-rank { font-size: 0.6rem; margin-bottom: 6px; }
  .prize-card-v2-amount { font-size: 1.1rem; }
  .prize-card-v2-title { font-size: 0.82rem; margin-bottom: 8px; }
  .prize-card-v2-desc { font-size: 0.74rem; line-height: 1.45; }
}

/* ─── Category section v2 — stage-grouped gradient cards ─── */
.category-section { padding: 64px 0; }
.cat-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 32px auto 0;
}
/* Students card spans the full width on desktop so all 12 grade pills
   have room to breathe. The other three cards sit in the 2-col grid. */
.cat-stage-card.is-wide { grid-column: 1 / -1; }
.cat-stage-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-stage-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--stage-bg);
}
.cat-stage-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--stage-bg);
  opacity: 0.05;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cat-stage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-stage-card:hover::after { opacity: 0.1; }
.cat-stage-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.cat-stage-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 0;
}
.cat-stage-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cat-stage-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  position: relative; z-index: 1;
}
.cat-stage-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: white;
  color: var(--navy);
  border: 1px solid var(--border-light);
}
@media (max-width: 480px) {
  .cat-stage-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-stage-card { padding: 18px 16px; }
  .cat-stage-header h3 { font-size: 1rem; }
  .cat-stage-pill { font-size: 0.74rem; padding: 5px 10px; }
}

/* ─── CTA banner with multi-layer gradient + radial glow ─── */
.cta-banner-section {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(212,165,116,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 20% 100%, rgba(46,107,122,0.25) 0%, transparent 65%),
    linear-gradient(135deg, var(--dark) 0%, var(--primary) 70%, #2D6A4F 100%);
}
.cta-banner-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, rgba(250,243,224,0.45) 0%, transparent 100%);
  pointer-events: none; z-index: 0;
}

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-family: var(--font-heading);
  font-weight: 700; font-size: 1rem; color: var(--navy);
  transition: var(--transition); gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-muted); transition: var(--transition); }
.faq-item.open .faq-icon { background: var(--primary); border-color: var(--primary); color: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 0 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ─── INSTAGRAM GRID ─── */
.instagram-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.insta-item {
  aspect-ratio: 1; border-radius: 4px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-pale) 100%);
  overflow: hidden; position: relative; cursor: pointer;
}
.insta-item::after {
  content: '♥'; position: absolute; inset: 0;
  background: rgba(46,107,122,0.75); color: white; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.insta-item:hover::after { opacity: 1; }

/* ─── CALENDAR PAGE ─── */
.calendar-section { background: var(--bg-white); min-height: 100vh; padding: 48px 0; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.calendar-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: white; color: var(--navy); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.calendar-nav-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.calendar-month-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: var(--transition);
  border: 2px solid var(--border); background: white; color: var(--text-secondary);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.calendar-grid-wrap { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.weekday { padding: 14px; text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day {
  min-height: 88px; padding: 10px; border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); cursor: pointer;
  transition: var(--transition); position: relative;
}
.cal-day:hover { background: var(--primary-pale); }
.cal-day.other-month { opacity: 0.35; }
.cal-day.today { background: var(--primary-pale); }
.cal-day.today .cal-day-num { background: var(--primary); color: white; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cal-day.selected { background: var(--primary-pale); outline: 2px solid var(--primary); }
.cal-day-num { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 4px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.cal-day-events { display: flex; gap: 3px; flex-wrap: wrap; }
.cal-event-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-competition { background: var(--primary); }
.dot-workshop { background: var(--gold); }
.dot-special { background: var(--silver); }
.calendar-legend { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Event sidebar */
.calendar-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.event-sidebar { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 28px; }
.sidebar-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.sidebar-event-item { padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-light); margin-bottom: 12px; cursor: pointer; transition: var(--transition); }
.sidebar-event-item:hover { border-color: var(--primary); background: var(--primary-pale); }
.sidebar-event-type { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sidebar-event-name { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.sidebar-event-time { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(13,33,55,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-xl);
  padding: 40px; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-xl); position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-lg { max-width: 640px; }
.modal-xl { max-width: 780px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 1.2rem; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--navy); }
.modal h2 { margin-bottom: 8px; }
.modal .modal-desc { color: var(--text-secondary); margin-bottom: 28px; font-size: 0.9rem; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-md); font-size: 0.9rem; color: var(--navy);
  background: var(--bg); transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px rgba(46,107,122,0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 0.85rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-btn {
  width: 100%; padding: 11px; border-radius: var(--radius-md);
  border: 2px solid var(--border); background: white;
  font-family: var(--font-body); font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: var(--transition); color: var(--navy);
}
.social-btn:hover { border-color: var(--primary); background: var(--primary-pale); }
.form-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); }
.form-submit:hover { background: var(--primary-dark); }

/* ─── WIZARD / STEPPER ─── */
.wizard-steps { display: flex; align-items: center; gap: 0; margin-bottom: 40px; }
.wizard-step { display: flex; align-items: center; flex: 1; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border);
  background: white; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; color: var(--text-muted);
  flex-shrink: 0; transition: var(--transition);
}
.step-circle.done { background: var(--primary); border-color: var(--primary); color: white; }
.step-circle.active { border-color: var(--primary); color: var(--primary); }
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 4px; }
.step-connector.done { background: var(--primary); }
.wizard-step-label { display: none; }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-pale); }
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-zone h4 { margin-bottom: 8px; color: var(--navy); }
.upload-zone p { font-size: 0.85rem; color: var(--text-muted); }
.upload-preview { margin-top: 16px; border-radius: var(--radius-md); overflow: hidden; display: none; }
.upload-preview img { width: 100%; max-height: 200px; object-fit: cover; }

/* ─── GALLERY PAGE ─── */
.gallery-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.filter-select {
  padding: 8px 16px; border: 2px solid var(--border); border-radius: var(--radius-pill);
  font-size: 0.85rem; font-family: var(--font-body); color: var(--text-secondary);
  background: white; cursor: pointer; outline: none; transition: var(--transition);
}
.filter-select:focus { border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden; background: white;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-img-placeholder { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.gallery-info { padding: 14px 16px; }
.gallery-artist { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.gallery-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 4px; }

/* ─── RESULTS PAGE ─── */
.results-hero {
  background: var(--navy); padding: 60px 0;
  text-align: center;
}
.results-hero h1 { color: white; }
.results-hero p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 12px auto 0; }
.results-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-top: 40px; align-items: start; }
.results-sidebar { background: white; border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-md); }
.results-main { }
.result-card {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
  transition: var(--transition); border: 1px solid var(--border-light);
}
.result-card:hover { box-shadow: var(--shadow-md); border-color: var(--border); }
.result-rank { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; width: 48px; flex-shrink: 0; text-align: center; }
.result-rank.gold { color: var(--gold); }
.result-rank.silver { color: var(--silver); }
.result-rank.bronze { color: var(--bronze); }
.result-art { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.result-art-placeholder { width: 80px; height: 60px; border-radius: var(--radius-sm); background: var(--primary-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.result-info { flex: 1; }
.result-name { font-weight: 700; color: var(--navy); }
.result-artist { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.result-cat { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ─── ORGANIZATION PAGE ─── */
.org-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  padding: 80px 0; text-align: center;
}
.org-hero h1 { color: white; }
.org-hero p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 16px auto 32px; }
.how-it-works { display: flex; gap: 0; position: relative; }
.how-step { flex: 1; text-align: center; padding: 32px 24px; position: relative; }
.how-step:not(:last-child)::after {
  content: '→'; position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--border);
}
.how-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.how-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--primary); opacity: 0.3; margin-bottom: 4px; }
.benefit-card { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: var(--transition); }
.benefit-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.benefit-icon { font-size: 2rem; margin-bottom: 12px; }

/* ─── ABOUT PAGE ─── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-visual { background: linear-gradient(135deg, var(--primary-pale) 0%, #d0eaef 100%); border-radius: var(--radius-xl); padding: 48px; text-align: center; }
.about-visual-icon { font-size: 5rem; margin-bottom: 16px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.achievement-card { background: white; border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.achievement-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900; color: var(--primary); }
.achievement-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }

/* ─── CONTACT PAGE ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: white; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-details h4 { color: var(--navy); margin-bottom: 4px; }
.contact-details p { font-size: 0.88rem; }

/* ─── DASHBOARD ─── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; min-height: calc(100vh - 70px); }
.dashboard-sidebar {
  background: white; border-right: 1px solid var(--border-light);
  padding: 32px 0; position: sticky; top: 70px;
  height: calc(100vh - 70px); overflow-y: auto;
}
.sidebar-user { padding: 0 24px 28px; border-bottom: 1px solid var(--border-light); margin-bottom: 12px; }
.user-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: white;
  margin-bottom: 12px; font-family: var(--font-heading);
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: var(--text-secondary);
  font-weight: 500; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav-item:hover { color: var(--primary); background: var(--primary-pale); }
.sidebar-nav-item.active { color: var(--primary); background: var(--primary-pale); border-left-color: var(--primary); font-weight: 700; }
.dashboard-main { padding: 32px 32px 32px 0; }
.dash-section-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.stat-card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); text-align: center; }
.stat-card .stat-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-card .stat-label { color: var(--text-secondary); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.submission-table { width: 100%; border-collapse: collapse; }
.submission-table th { text-align: left; padding: 12px 16px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; background: var(--bg); border-bottom: 2px solid var(--border); }
.submission-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; color: var(--text-secondary); }
.submission-table tr:hover td { background: var(--primary-pale); }
.cert-card { background: white; border-radius: var(--radius-lg); border: 2px solid var(--border-light); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.cert-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cert-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cert-title { font-weight: 800; color: var(--navy); margin-bottom: 4px; font-size: 0.95rem; }
.cert-event { color: var(--text-muted); font-size: 0.82rem; }

/* Impact Dashboard */
.impact-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl); padding: 32px;
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.impact-stat { text-align: center; flex: 1; min-width: 120px; }
.impact-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; color: white; }
.impact-label { color: rgba(255,255,255,0.7); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.tree-icon { font-size: 2rem; color: var(--gold-light); }

/* ─── FOOTER ─── */
footer {
  background: #0a1929;
  padding: 60px 0 0;
  color: rgba(255,255,255,0.75);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: white; margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.88rem; max-width: 300px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-newsletter { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter input { flex: 1; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: white; font-size: 0.85rem; outline: none; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter button { padding: 10px 18px; background: var(--primary); color: white; border-radius: var(--radius-md); font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-heading); }
.footer-newsletter button:hover { background: var(--primary-light); }
.footer-col h4 { color: var(--primary-light); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-heading); }
.footer-col a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 12px; transition: var(--transition); }
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-bottom { text-align: center; padding: 20px 24px; font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ─── Toast Notification ─── */
.toast-container { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast-container .toast { pointer-events: auto; }
.toast {
  background: var(--navy); color: white;
  padding: 14px 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--primary); }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Page loading animation (overridden by polish section) ─── */

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; height: auto; display: flex; flex-wrap: wrap; padding: 16px; gap: 4px; }
  .dashboard-main { padding: 24px; }
  .about-intro { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide { min-height: calc(100vh - 64px); height: auto; }
  .slide-content { padding: 60px 24px; max-width: 100%; }
  .slide-title { font-size: 1.9rem; line-height: 1.2; }
  .slide-desc { font-size: 0.95rem; max-width: 100%; }
  .hero-carousel h1 { font-size: 1.9rem; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex: calc(50% - 0.5px); }
  nav { display: none; }
  .how-it-works { flex-direction: column; }
  .how-step::after { display: none; }
  .achievement-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .dream-section { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .modal { padding: 24px; }
  .carousel-slide { min-height: calc(100vh - 64px); height: auto; }
  .slide-content { padding: 48px 16px; }
  .slide-title { font-size: 1.7rem; line-height: 1.2; }
  .slide-desc { font-size: 0.92rem; line-height: 1.55; }
}

/* ─── Mobile polish pass (D + E + F): bigger hero CTA, more breathing room,
       cleaner type hierarchy. Scoped to ≤768px, doesn't touch desktop. ─── */
@media (max-width: 768px) {
  /* D — hero CTA: bigger, comfortable width, no jittery glow */
  .slide-actions { flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 280px; margin: 0 auto; }
  .slide-actions .btn { width: 100%; padding: 14px 22px; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em; }
  /* E — section rhythm: more space between sections, less inside */
  .section { padding: 56px 0; }
  /* F — type hierarchy: section titles stand out from body */
  .section-title { font-size: 1.4rem; line-height: 1.25; margin-bottom: 8px; }
  .section-subtitle { font-size: 0.92rem; line-height: 1.55; max-width: 100%; padding: 0 8px; margin-bottom: 28px; }
  /* Event card mobile: more legible */
  .event-card-inner { padding: 18px; }
  .event-title { font-size: 1.05rem; line-height: 1.3; }
  .event-desc { font-size: 0.86rem; line-height: 1.55; }
  /* Prize cards mobile: tighter padding so 3 cards fit comfortably */
  .prize-card { padding: 22px 18px; }
  /* FAQ on mobile */
  .faq-question { font-size: 0.95rem; padding: 16px 18px; }
}
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section-title { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.88rem; margin-bottom: 24px; }
  .slide-actions { max-width: 100%; }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-teal { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: white; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-color { color: var(--primary); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Type Scale Utilities ─── */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.8rem; }
.text-3xl { font-size: 2.2rem; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ─── Section Background Utilities ─── */
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg); }
.bg-navy { background: var(--navy); }
.bg-primary { background: var(--primary); }

/* ─── Empty State ─── */
.empty-state { text-align: center; padding: 60px 24px; }
@media (max-width: 768px) { .empty-state { padding: 40px 16px; } }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }

/* ─── Thumbnail ─── */
.thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.thumb-placeholder { width: 48px; height: 36px; border-radius: 6px; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ─── Card Body Centered ─── */
.card-centered { text-align: center; padding: 32px; }
@media (max-width: 768px) { .card-centered { padding: 24px 16px; } }

/* ─── Financial Row ─── */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.info-row:last-child { border-bottom: none; }

/* ─── Event Flex Layout ─── */
.event-flex { display: flex; gap: 16px; align-items: flex-start; }
@media (max-width: 480px) { .event-flex { gap: 12px; } }

/* ─── Flex Center Wrap ─── */
.flex-center-wrap { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Active States (all interactive elements) ─── */
.btn:active, .btn-primary:active, .btn-outline:active, .btn-dark:active, .btn-gold:active, .form-submit:active, .btn-generate:active {
  transform: scale(0.97); transition-duration: 0.08s;
}
.filter-tab:active, .social-btn:active, .calendar-nav-btn:active {
  transform: scale(0.95); transition-duration: 0.08s;
}
.card:active, .event-card:active, .winner-card:active, .gallery-item:active, .category-card:active, .impact-stat-card:active {
  transform: translateY(-1px); transition-duration: 0.08s;
}

/* ─── Consistent Card Hover (standardize to -4px / shadow-md) ─── */
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.achievement-card:hover, .contact-info-card:hover, .stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ─── Scroll Reveal Animation ─── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.visible { animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal.visible:nth-child(2) { animation-delay: 0.08s; }
.reveal.visible:nth-child(3) { animation-delay: 0.16s; }
.reveal.visible:nth-child(4) { animation-delay: 0.24s; }
.reveal.visible:nth-child(5) { animation-delay: 0.32s; }
.reveal.visible:nth-child(6) { animation-delay: 0.40s; }

/* ─── Smooth hover glow for primary buttons ─── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover::after { opacity: 1; }

/* ─── Stagger animation for grid children ─── */
.grid-3 > *, .grid-4 > * { opacity: 0; animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.grid-3 > *:nth-child(1), .grid-4 > *:nth-child(1) { animation-delay: 0s; }
.grid-3 > *:nth-child(2), .grid-4 > *:nth-child(2) { animation-delay: 0.06s; }
.grid-3 > *:nth-child(3), .grid-4 > *:nth-child(3) { animation-delay: 0.12s; }
.grid-3 > *:nth-child(4) { animation-delay: 0.18s; }
.grid-4 > *:nth-child(4) { animation-delay: 0.18s; }
.grid-3 > *:nth-child(5) { animation-delay: 0.24s; }
.grid-3 > *:nth-child(6) { animation-delay: 0.30s; }

/* ─── Smooth page transition (improved) ─── */
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
#page-content {
  animation: pageEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: calc(100vh - 80px); /* keep footer below the fold while JS hydrates the page */
}

/* ─── Category section: stage-grouped grade pills ─── */
.category-stage-section .cat-group { margin-bottom: 14px; }
.category-stage-section .cat-group:last-child { margin-bottom: 0; }
.category-stage-section .cat-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-stage-section .cat-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.category-stage-section .cat-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.category-stage-section .cat-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: white;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.category-stage-section .cat-pill:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .category-stage-section .cat-pill { padding: 4px 10px; font-size: 0.74rem; }
  .category-stage-section .cat-group-label { font-size: 0.65rem; margin-bottom: 6px; }
  .category-stage-section .cat-group-pills { gap: 5px; }
  .category-stage-section .cat-group { margin-bottom: 12px; }
}

/* ─── Top progress bar shown during SPA navigation ─── */
@keyframes pageLoadingSlide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(20%); }
  100% { transform: translateX(100%); }
}
body.page-loading::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary, #1B4332) 30%, var(--primary-light, #2D6A4F) 60%, transparent 100%);
  z-index: 9999;
  animation: pageLoadingSlide 1.1s ease-in-out infinite;
  pointer-events: none;
}

/* ─── Toast slide in + slide out ─── */
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast { animation: toastIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

/* ─── Carousel dot pulse on active ─── */
.dot.active { animation: dotPulse 0.4s ease; }
@keyframes dotPulse { 0% { transform: scale(0.8); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ─── Stats counter entrance ─── */
.impact-stat-card { opacity: 0; animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.impact-stat-card:nth-child(1) { animation-delay: 0s; }
.impact-stat-card:nth-child(2) { animation-delay: 0.1s; }
.impact-stat-card:nth-child(3) { animation-delay: 0.2s; }
.impact-stat-card:nth-child(4) { animation-delay: 0.3s; }

/* ─── Smooth focus ring animation ─── */
@keyframes focusRing { from { box-shadow: 0 0 0 0px rgba(27,107,125,0.4); } to { box-shadow: 0 0 0 4px rgba(27,107,125,0.15); } }

/* ─── Winner card image hover zoom ─── */
.winner-card .winner-img, .winner-card .winner-img-placeholder { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.winner-card:hover .winner-img, .winner-card:hover .winner-img-placeholder { transform: scale(1.04); }

/* ─── Gallery item image hover zoom ─── */
.gallery-item .gallery-img, .gallery-item .gallery-img-placeholder { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-item:hover .gallery-img, .gallery-item:hover .gallery-img-placeholder { transform: scale(1.05); }

/* ─── FAQ smooth expand ─── */
.faq-answer { transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease; opacity: 0; }
.faq-item.open .faq-answer { opacity: 1; }
.faq-icon { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }

/* ─── Dream Generator text reveal ─── */
.dream-output p { transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1); }

/* ─── Header shadow on scroll (applied via JS) ─── */
#site-header { transition: box-shadow 0.3s ease; }
#site-header.scrolled { box-shadow: 0 2px 20px rgba(15,27,45,0.1); }

/* ─── Mobile Menu ─── */
.mobile-menu-btn {
  display: none; font-size: 1.5rem; color: var(--navy);
  padding: 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.mobile-menu-btn:hover { background: var(--primary-pale); color: var(--primary); }
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex; align-items: center; justify-content: center;
    margin-left: auto;       /* push hamburger to far right */
    order: 99;               /* and lock it to the end of the header flex row */
    font-size: 1.7rem;
    padding: 8px 10px;
  }
  nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 16px;
    box-shadow: var(--shadow-lg); border-top: 1px solid var(--border-light); z-index: 99;
  }
  nav.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: var(--radius-sm); }
  .nav-link.active { border-bottom: none; background: var(--primary-pale); border-radius: var(--radius-sm); }
  /* Auth UI is hidden site-wide; collapse the empty container so the
     hamburger has room on the right. */
  .header-actions { display: none; }
  .btn-register { padding: 8px 14px; font-size: 0.8rem; }
}

/* ─── Impact Stats Grid (Redesigned) ─── */
.impact-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.impact-stat-card {
  background: var(--bg-card); border-radius: var(--radius-xl); padding: 28px 24px;
  text-align: center; border: 1px solid var(--border-light);
  transition: var(--transition);
}
.impact-stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.impact-stat-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px;
}
.impact-stat-value {
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 900;
  line-height: 1; margin-bottom: 6px;
}
.impact-stat-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 768px) {
  .impact-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .impact-stat-card { padding: 14px 10px; border-radius: var(--radius-lg); }
  .impact-stat-icon { width: 36px; height: 36px; font-size: 1rem; margin-bottom: 8px; }
  .impact-stat-value { font-size: 1.4rem; margin-bottom: 2px; }
  .impact-stat-label { font-size: 0.66rem; letter-spacing: 0.04em; }
  /* Tighten the wrapping <section> padding on the homepage stats band */
  #home-impact-stats { padding: 32px 0 !important; }
  #home-impact-stats h2 { font-size: 1.15rem !important; margin-bottom: 18px !important; }
}
@media (max-width: 480px) {
  .impact-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ─── Focus Visible (Keyboard Accessibility) ─── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible, .btn-primary:focus-visible, .btn-outline:focus-visible, .btn-dark:focus-visible, .btn-gold:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(46,107,122,0.2);
}
.nav-link:focus-visible { background: var(--primary-pale); color: var(--primary); }
.form-submit:focus-visible, .social-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal-close:focus-visible { outline: 2px solid var(--primary); background: var(--border); }
.filter-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.carousel-arrow:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.sidebar-nav-item:focus-visible { color: var(--primary); background: var(--primary-pale); outline: none; border-left-color: var(--primary); }

/* ─── Contrast Fixes ─── */
.footer-bottom { color: rgba(255,255,255,0.55); }
.cal-day.other-month { opacity: 0.5; }

/* ─── Toast Icon ─── */
.toast-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}
.toast.success .toast-icon { background: var(--success); color: white; }
.toast.error .toast-icon { background: var(--error); color: white; }
.toast.info .toast-icon { background: var(--primary); color: white; }

/* ─── Responsive: Calendar on mobile ─── */
@media (max-width: 600px) {
  .calendar-days { font-size: 0.8rem; }
  .cal-day { min-height: 52px; padding: 4px; }
  .cal-day-num { font-size: 0.8rem; width: 22px; height: 22px; }
  .cal-event-dot { width: 5px; height: 5px; }
  .weekday { padding: 8px 2px; font-size: 0.65rem; }
}

/* ─── Responsive: Table scroll ─── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
  .submission-table { min-width: 560px; }
  .result-card { flex-wrap: wrap; }
  .impact-bar { padding: 20px; gap: 16px; }
  .impact-num { font-size: 1.4rem; }
}

/* ─── Prefers Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .carousel-slides { transition: none; }
}

/* ─── Mobile rhythm pass ─── */
/* The page was reading as a series of full-screen-tall slabs on mobile.
   This block tightens vertical rhythm so sections breathe without
   demanding a full viewport each. */
@media (max-width: 720px) {
  /* Hero: was calc(100vh - 64px), which made the slide eat the whole
     screen and pushed everything else (stats, events) below the fold. */
  .carousel-slide { min-height: clamp(440px, 70vh, 620px); }
  .slide-content { padding: 40px 20px; }

  /* Section padding: 80px feels generous on desktop, suffocating on mobile
     because every transition becomes a long empty band. */
  .section { padding: 48px 0; }
  .section-subtitle { margin-bottom: 28px; font-size: 0.95rem; }
  .category-section { padding: 40px 0; }
  .cta-banner-section { padding: 44px 0; }
  .prizes-section { padding: 44px 0; }

  /* Stats placeholder: before stats resolve, the band was carving out
     ~400px of black void. Compact it so the loading flash is one line tall. */
  #home-impact-stats { padding: 28px 0 !important; }
  #home-impact-stats > .container { min-height: 0; }
  #home-impact-stats > .container.text-center > p {
    font-size: 0.85rem; padding: 12px 0;
  }

  /* FAQ: collapsed rows were ~64px each. 5 rows = 320px of nothing. */
  .faq-question { padding: 14px 0; font-size: 0.95rem; gap: 12px; }
  .faq-icon { width: 24px; height: 24px; font-size: 0.9rem; }
  .faq-answer-inner { padding: 0 0 14px; font-size: 0.9rem; line-height: 1.6; }

  /* Section titles: cap the size so the serif headline doesn't dominate
     every break and create the "shouty" rhythm. */
  .section-title { font-size: 1.45rem; line-height: 1.2; margin-bottom: 8px; }
}
