/* ============================================
   LOVEWORLD MEDICAID - Premium Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --primary: #0A4D6E;
  --primary-light: #1A7BA0;
  --accent: #E8A020;
  --accent-warm: #F5C842;
  --white: #FFFFFF;
  --cream: #FAF8F3;
  --dark: #0D1B2A;
  --text: #2C3E50;
  --text-muted: #6B7C93;
  --border: rgba(10, 77, 110, 0.12);
  --card-shadow: 0 8px 40px rgba(10, 77, 110, 0.10);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--dark);
}

.mono { font-family: 'Space Mono', monospace; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--white);
  letter-spacing: 2px;
}
.preloader-logo span { color: var(--accent); }
.preloader-bar {
  width: 200px; height: 2px; background: rgba(255,255,255,0.15);
  border-radius: 10px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 10px;
  animation: fillBar 1.8s ease forwards;
}
@keyframes fillBar { to { width: 100%; } }

/* ============================================
   NAVIGATION
   ============================================ */
.nav-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px;
  transition: var(--transition);
}
.nav-wrapper.scrolled {
  background: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  max-width: 1400px; margin: 0 auto;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.nav-logo-mark::after {
  content: '+';
  color: white; font-size: 22px; font-weight: 700;
  font-family: 'Space Mono', monospace;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.nav-logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.85);
  font-size: 0.875rem; font-weight: 500;
  padding: 8px 16px; border-radius: 8px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: rgba(232, 160, 32, 0.08);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
}
.nav-cta:hover {
  background: var(--accent-warm) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 160, 32, 0.4) !important;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: var(--dark); border-radius: 14px;
  padding: 10px; min-width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 16px !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: var(--accent) !important; background: rgba(232,160,32,0.08) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #041420 0%, #0A2535 40%, #0D3348 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(var(--primary-light), transparent);
  top: -200px; right: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(var(--accent), transparent);
  bottom: -100px; left: 200px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-image-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%; overflow: hidden;
}
.hero-image-panel img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.25;
  filter: saturate(0.5);
}
.hero-image-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark) 10%, transparent 60%, rgba(13,27,42,0.7) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px; width: 100%;
  padding-top: 100px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.3);
  border-radius: 50px; padding: 8px 20px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-badge span {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--white); line-height: 1.08;
  margin-bottom: 28px; max-width: 680px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-title em {
  font-style: italic; color: var(--accent);
  display: block;
}
.hero-subtitle {
  font-size: 1.15rem; color: rgba(255,255,255,0.65);
  max-width: 520px; margin-bottom: 48px;
  line-height: 1.8;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.6s both;
  margin-bottom: 60px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--dark);
  padding: 16px 36px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 160, 32, 0.4);
  color: var(--dark);
  text-decoration: none;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  padding: 16px 36px; border-radius: 50px;
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  text-decoration: none;
}

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}
.hero-stat-item { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-stat-divider {
  width: 1px; background: rgba(255,255,255,0.1);
  align-self: stretch;
}

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

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px; background: rgba(255,255,255,0.15);
  position: relative; overflow: hidden; border-radius: 1px;
}
.scroll-line::after {
  content: ''; position: absolute;
  top: -100%; width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; } 100% { top: 200%; }
}
.scroll-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; color: rgba(255,255,255,0.3);
  letter-spacing: 3px; text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
section { position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-label span {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--primary-light); }

.section-subtitle {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 580px; line-height: 1.8;
}

/* ============================================
   MEDICAID ACRONYM SECTION
   ============================================ */
.acronym-section {
  background: var(--cream);
  overflow: hidden;
}
.acronym-section::before {
  content: 'MEDICAID';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: 18vw; font-weight: 700;
  color: rgba(10, 77, 110, 0.03);
  white-space: nowrap; letter-spacing: 20px;
  pointer-events: none; user-select: none;
}

.acronym-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}
.acronym-card {
  background: white;
  padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.acronym-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.acronym-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); z-index: 1; }
.acronym-card:hover::before { transform: scaleX(1); }

.acronym-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 700;
  color: var(--primary); line-height: 1;
  margin-bottom: 12px; opacity: 0.9;
}
.acronym-word {
  font-weight: 700; font-size: 0.95rem;
  color: var(--dark); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.acronym-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   IMPACT COUNTER SECTION
   ============================================ */
.impact-section {
  background: linear-gradient(135deg, var(--primary) 0%, #062A40 100%);
  position: relative; overflow: hidden;
}
.impact-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(232,160,32,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(26,123,160,0.12) 0%, transparent 50%);
}
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; position: relative; z-index: 1;
}
.impact-item {
  text-align: center; padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.impact-item:last-child { border-right: none; }
.impact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.impact-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.impact-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  color: var(--white); line-height: 1;
  margin-bottom: 8px;
}
.impact-number sup { font-size: 1.5rem; color: var(--accent); }
.impact-label {
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  text-transform: uppercase; letter-spacing: 2px;
  font-family: 'Space Mono', monospace;
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */
.programs-section { background: var(--white); }
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 60px;
}
.program-card {
  border-radius: 20px; overflow: hidden;
  position: relative; aspect-ratio: 3/4;
  cursor: pointer; transition: var(--transition);
}
.program-card:hover { transform: scale(1.02); }
.program-card img {
  width: 100%; height: 100%;
  object-fit: cover; transition: var(--transition);
  filter: saturate(0.8);
}
.program-card:hover img { transform: scale(1.06); filter: saturate(1); }
.program-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,20,35,0.95) 0%, rgba(6,20,35,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.program-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(232,160,32,0.15);
  border: 1px solid rgba(232,160,32,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.program-icon svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.program-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 8px;
}
.program-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--white);
  margin-bottom: 12px;
}
.program-desc {
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 20px;
}
.program-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.program-card:hover .program-link { opacity: 1; transform: translateY(0); }

/* Large card */
.program-card.large { grid-column: span 2; aspect-ratio: 16/9; }

/* ============================================
   VISION 10K SECTION
   ============================================ */
.vision-section {
  background: var(--cream);
  position: relative;
}
.vision-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.vision-content { max-width: 560px; }
.vision-progress {
  background: rgba(10,77,110,0.06);
  border-radius: 16px; padding: 32px;
  margin-top: 36px;
}
.vision-progress-title {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
}
.progress-bar-wrap {
  background: rgba(10,77,110,0.1);
  border-radius: 50px; height: 8px; overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  width: 0%; transition: width 1.5s ease;
}
.progress-stats {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-muted);
}
.progress-stats strong { color: var(--primary); font-weight: 700; }

.vision-visual {
  position: relative;
}
.vision-img-main {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/5;
}
.vision-img-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.vision-img-float {
  position: absolute; bottom: -30px; left: -40px;
  width: 200px; border-radius: 16px; overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--card-shadow);
  aspect-ratio: 4/3;
}
.vision-img-float img { width: 100%; height: 100%; object-fit: cover; }

.vision-badge {
  position: absolute; top: 30px; right: -20px;
  background: var(--accent); border-radius: 16px;
  padding: 20px 24px; text-align: center;
  box-shadow: 0 12px 40px rgba(232,160,32,0.3);
}
.vision-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--dark);
  line-height: 1;
}
.vision-badge-text {
  font-size: 0.75rem; color: rgba(13,27,42,0.7);
  margin-top: 4px; font-weight: 500;
}

/* ============================================
   STORIES SECTION
   ============================================ */
.stories-section { background: var(--white); }
.stories-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 56px;
}
.stories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.story-card {
  border-radius: 20px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow);
  text-decoration: none; color: inherit;
}
.story-img {
  aspect-ratio: 16/10; overflow: hidden;
  position: relative;
}
.story-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .story-img img { transform: scale(1.05); }
.story-img-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: var(--dark);
  padding: 4px 14px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  font-family: 'Space Mono', monospace;
}
.story-body { padding: 24px 28px 28px; }
.story-date {
  font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 10px;
  font-family: 'Space Mono', monospace;
}
.story-title {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 12px;
  line-height: 1.4; color: var(--dark);
  transition: color 0.3s;
}
.story-card:hover .story-title { color: var(--primary); }
.story-excerpt {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   DONATE CTA SECTION
   ============================================ */
.donate-cta {
  background: var(--dark); position: relative; overflow: hidden;
}
.donate-cta-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}
.donate-cta-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(26,123,160,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(232,160,32,0.08) 0%, transparent 50%);
}
.donate-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; padding: 48px;
}
.donate-amounts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 24px;
}
.donate-amt {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 10px;
  text-align: center; cursor: pointer;
  transition: var(--transition);
  background: transparent; color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
}
.donate-amt:hover, .donate-amt.active {
  border-color: var(--accent);
  background: rgba(232,160,32,0.12);
  color: var(--accent);
}
.donate-custom {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 14px 20px;
  width: 100%; color: white; font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; margin-bottom: 20px;
  transition: var(--transition);
}
.donate-custom:focus { border-color: var(--accent); }
.donate-custom::placeholder { color: rgba(255,255,255,0.3); }

.donate-type {
  display: flex; gap: 12px; margin-bottom: 28px;
}
.donate-type-btn {
  flex: 1; padding: 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: rgba(255,255,255,0.6);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; transition: var(--transition);
}
.donate-type-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary);
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section { background: var(--cream); }
.news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px; margin-top: 60px;
}
.news-featured {
  border-radius: 20px; overflow: hidden;
  background: var(--white); position: relative;
  text-decoration: none; color: inherit; display: block;
  transition: var(--transition);
}
.news-featured:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); text-decoration: none; color: inherit; }
.news-featured-img {
  aspect-ratio: 16/9; overflow: hidden;
}
.news-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.news-featured:hover .news-featured-img img { transform: scale(1.04); }
.news-featured-body { padding: 32px; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  background: var(--white); border-radius: 16px;
  padding: 24px; display: flex; gap: 20px;
  text-decoration: none; color: inherit;
  transition: var(--transition);
}
.news-item:hover { transform: translateX(4px); box-shadow: var(--card-shadow); text-decoration: none; color: inherit; }
.news-item-img {
  width: 90px; height: 90px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
}
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-title {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 6px; color: var(--dark);
  line-height: 1.4;
}
.news-item-date {
  font-size: 0.75rem; color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section { background: var(--white); padding: 60px 0; }
.partners-track-wrap {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.partners-track {
  display: flex; gap: 48px; align-items: center;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo {
  height: 48px; filter: grayscale(1) opacity(0.5);
  transition: var(--transition);
  flex-shrink: 0;
}
.partner-logo:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #060F1A;
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--white);
  margin-bottom: 4px;
}
.footer-brand-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--accent);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.footer-desc { font-size: 0.875rem; line-height: 1.8; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2; }

.footer-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  color: var(--white); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  text-decoration: none; color: rgba(255,255,255,0.55);
  font-size: 0.875rem; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
  display: flex; gap: 12px; margin-bottom: 16px;
}
.footer-contact-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-contact-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; }
.footer-contact-text { font-size: 0.8rem; line-height: 1.6; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.8rem; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

/* ============================================
   MODALS & FORMS
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,15,26,0.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white); border-radius: 24px;
  padding: 0; max-width: 600px; width: 95%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 36px 40px 28px;
  border-radius: 24px 24px 0 0;
  position: relative;
}
.modal-header h3 {
  color: white; font-family: 'Playfair Display', serif;
  font-size: 1.6rem; margin-bottom: 4px;
}
.modal-header p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer; color: white;
  font-size: 18px; display: flex; align-items: center;
  justify-content: center; transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-body { padding: 36px 40px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text); background: var(--cream);
  outline: none; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
  background: linear-gradient(135deg, var(--accent) 0%, #F5A820 100%);
  padding: 80px 0;
}
.subscribe-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.subscribe-text h2 {
  font-size: 2.2rem; color: var(--dark); margin-bottom: 8px;
}
.subscribe-text p { color: rgba(13,27,42,0.65); font-size: 1rem; }
.subscribe-form { display: flex; gap: 12px; flex: 1; max-width: 480px; }
.subscribe-input {
  flex: 1; padding: 16px 24px; border-radius: 50px;
  border: none; outline: none; font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
}
.btn-dark {
  background: var(--dark); color: white;
  padding: 16px 32px; border-radius: 50px;
  border: none; cursor: pointer; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; white-space: nowrap;
  transition: var(--transition);
}
.btn-dark:hover { background: var(--primary); }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative; min-height: 100vh;
  overflow: hidden; background: var(--dark);
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none; z-index: 0;
}
.slide.active { opacity: 1; pointer-events: all; z-index: 1; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(4,20,32,0.90) 0%,
    rgba(4,20,32,0.60) 50%,
    rgba(4,20,32,0.25) 100%);
}
.slide-overlay-dark {
  position: absolute; inset: 0;
  background: rgba(4,20,32,0.65);
}
.slide-content {
  position: relative; z-index: 2;
  padding: 140px 0 100px;
  width: 100%;
}
.slide-badge,
.slide-title,
.slide-subtitle,
.slide-actions {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide.active .slide-badge     { opacity:1; transform:none; transition-delay:0.3s; }
.slide.active .slide-title     { opacity:1; transform:none; transition-delay:0.5s; }
.slide.active .slide-subtitle  { opacity:1; transform:none; transition-delay:0.7s; }
.slide.active .slide-actions   { opacity:1; transform:none; transition-delay:0.9s; }

/* Nav dots */
.slider-dots {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer; border: none; padding: 0;
  transition: all 0.4s ease;
}
.slider-dot.active {
  width: 30px; border-radius: 4px;
  background: var(--accent);
}
/* Arrow buttons */
.slider-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; left: 0;
  display: flex; justify-content: space-between;
  padding: 0 28px; z-index: 10; pointer-events: none;
}
.slider-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); pointer-events: all;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.slider-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.slider-arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.5; }
/* Progress bar */
.slider-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.08); z-index: 10;
}
.slider-progress-fill {
  height: 100%; background: var(--accent); width: 0%;
}
.slider-progress-fill.running { transition: width 5s linear; }

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top-btn {
  position: fixed; bottom: 30px; right: 30px; z-index: 500;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary); color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  box-shadow: 0 8px 24px rgba(10,77,110,0.3);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--accent); transform: translateY(-2px); }
.scroll-top-btn svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }

/* ============================================
   ANIMATIONS / REVEAL
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .acronym-grid { grid-template-columns: repeat(4, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card.large { grid-column: span 2; }
  .vision-inner { grid-template-columns: 1fr; gap: 40px; }
  .vision-visual { display: none; }
  .donate-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 64px 0; }
  .nav-wrapper { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-content { padding: 0 20px; padding-top: 100px; }
  .hero-image-panel { width: 100%; opacity: 0.15; }
  .hero-stats { gap: 24px; }
  .hero-stat-divider { display: none; }
  .acronym-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .program-card.large { grid-column: span 1; }
  .stories-grid { grid-template-columns: 1fr; }
  .stories-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .subscribe-inner { flex-direction: column; }
  .subscribe-form { flex-direction: column; width: 100%; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   MOBILE NAV MENU
   ============================================ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 998;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-nav.open {
  opacity: 1; visibility: visible; transform: translateX(0);
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: rgba(255,255,255,0.8);
  text-decoration: none; padding: 12px 40px;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: none; color: white;
  font-size: 28px; cursor: pointer;
}
