/* ================================================
   JOHN HOPKINS FOUNDATION - MODERN REDESIGN
   ================================================ */

:root {
  /* Primary Colors */
  --primary-blue: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;

  /* Accent Colors */
  --accent-gold: #ffc107;
  --accent-amber: #ffca28;
  --success-green: #34a853;

  /* Neutrals */
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --light-gray: #e9ecef;
  --text-dark: #202124;
  --text-gray: #5f6368;
  --text-muted: #70757a;

  /* Component Variables */
  --green: #2e7d32;
  --accent: #ffc107;
  --muted: #eeb817;
  --dark: #222;
  --max-width: 1200px;
  --radius: 12px;
  --gap: 24px;
  --nav-height: 72px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);

  /* Breakpoints */
  --bp-xs: 320px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
  --card: rgba(8, 10, 14, 0.6);
  --text: #e8eef6;
  --muted: #a6b0bd;
  --glass: rgba(255, 255, 255, 0.03);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  background-color: #05060a;
}

/* ================================================
   BASE STYLES
   ================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  background: var(--light-bg);
  padding-top: var(--nav-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.site-header {
  height: auto;
  min-height: var(--nav-height);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  font-size: 1.1rem;
}

.brand img {
  height: 50px;
  max-width: 180px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-gray);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav a:hover {
  background: var(--primary-light);
  color: var(--primary-blue);
}

.nav a.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.nav a.cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 20px;
}

.nav a.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dark);
}

/* ================================================
   MODERN HERO SECTION
   ================================================ */
.hero {
  padding: 0;
  margin-top: var(--nav-height);
}

/* Full-width Hero */
.hero-modern {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 50%, #1565c0 100%);
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-modern .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-content-modern {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.hero-content-modern h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-content-modern p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px 0;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-hero-primary {
  background: var(--accent-gold);
  color: var(--text-dark);
}

.btn-hero-primary:hover {
  background: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.35);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

/* Hero Card */
.hero-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-card h3 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin: 0;
  font-weight: 600;
}

.hero-card .goal-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 16px 0;
}

.hero-card .progress {
  height: 14px;
  background: var(--light-gray);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-card .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success-green), #4caf50);
  border-radius: 7px;
}

.hero-card-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.hero-card-stat {
  text-align: center;
}

.hero-card-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.hero-card-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.hero-card-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Legacy Hero Support */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start
}

.hero-left h2 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: var(--dark)
}

.lead {
  color: #556;
  margin: 10px 0 16px 0
}

.goal-card {
  display: flex;
  background: var(--primary-light);
  border-radius: 12px;
  padding: 18px;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.goal-left {
  flex: 1;
  min-width: 200px;
}

.goal-right {
  flex-shrink: 0;
}

.goal-right img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08)
}

.goal-card h3 {
  margin: 0 0 6px 0;
  color: var(--primary-blue)
}

.goal-amount {
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0;
  color: var(--primary-blue)
}

.progress-wrap {
  margin-top: 8px
}

.progress {
  height: 12px;
  background: #e9e7e2;
  border-radius: 8px;
  overflow: hidden
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), #4a90e2);
  width: 0
}

.progress-wrap small {
  display: block;
  margin-top: 6px;
  color: #667
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
  border: 0;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  font-weight: bold;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue)
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn.large {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: 1rem
}

/* ================================================
   INFO CARD (Hero Sidebar)
   ================================================ */
.info-card {
  background: #73a5df;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0
}

.checklist li {
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  color: #333
}

.small-circles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.small-circles img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  margin-top: 12px;
}

.donate-quick {
  margin-top: 15px;
}

/* ================================================
   ABOUT PREVIEW
   ================================================ */
.about-preview {
  padding: 30px 0;
  color: green;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.1em;
  line-height: 2.1em;
}

/* ================================================
   ABOUT PAGE GRID (Responsive)
   ================================================ */
.about-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.about-text {
  order: 1;
}

.about-image-container {
  order: 2;
}

.about-image-container img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ================================================
   RESEARCH PAGE GRID (Responsive)
   ================================================ */
.research-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.research-image-container {
  order: 1;
}

.research-content {
  order: 2;
}

/* ================================================
   DONATION CARDS
   ================================================ */
.cards {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  min-width: 280px;
}

.content {
  padding: 30px 0
}

/* Ethan image - fixed from 500px */
.ethan {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.ethan img {
  max-width: 100%;
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.help {
  border: solid gold 2px;
  background-color: green;
  color: white;
  font-size: 1.1rem;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  width: 8rem;
  height: 4rem;
  border-radius: 12px;
  cursor: pointer;
}

.videos {
  padding-left: 2em;
  margin: left 20px;
}

/* ================================================
   TEAM GRID
   ================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
  color: green;
}

.team {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.team h4 {
  margin: 12px 0 6px 0
}

.team p {
  color: #666;
  font-size: 0.9rem;
  margin: 0
}

.team img {
  width: 100%;
  max-width: 300px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px
}

/* ================================================
   PROGRAMS GRID
   ================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px
}

.program {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04)
}

/* ================================================
   MEDIA / VIDEO GRID
   ================================================ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.video-card {
  background: var(--card, #fff);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.video-card video,
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 220px;
  border-radius: 8px;
  border: 0;
  background: #000;
  display: block;
}

/* ================================================
   CONTACT PAGE
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px
}

.contact-form {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-info {
  background: rgb(98, 98, 253);
  padding: 16px;
  border-radius: 10px
}

/* ================================================
   FORMS
   ================================================ */
.donation-form input,
.donation-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.donation-form button,
.contact-form button {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer
}

.donation-actions {
  margin: 12px 0
}

/* ================================================
   CAROUSEL
   ================================================ */
.carousel {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #5ca3f5;
  box-shadow: var(--shadow, 0 6px 18px rgba(0, 0, 0, 0.06));
  padding: 12px;
  transition: background 240ms ease, box-shadow 240ms ease;
}

.carousel-track {
  display: flex;
  gap: 12px;
  will-change: transform;
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.media {
  width: 160px;
  min-width: 120px;
  height: 110px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-start;
}

.carousel-controls button {
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  transition: background 180ms ease, transform 120ms ease;
}

.carousel-controls button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 220ms ease;
  flex: 0 0 auto;
}

.dot.active {
  transform: scale(1.18);
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(31, 111, 235, 0.14);
  animation: dotPulse 1.5s ease-in-out;
}

@keyframes dotPulse {
  0% {
    transform: scale(1.18)
  }

  50% {
    transform: scale(1.28);
    box-shadow: 0 6px 24px rgba(31, 111, 235, 0.28)
  }

  100% {
    transform: scale(1.18)
  }
}

/* ================================================
   STATISTICS SECTION
   ================================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.75rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ================================================
   PATIENT STORIES SECTION
   ================================================ */
.patient-stories {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.story-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.story-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-card:hover .story-image img {
  transform: scale(1.05);
}

.story-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #dc3545;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.story-content {
  padding: 24px;
}

.story-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.story-content .age {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
}

.story-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.story-cta:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ================================================
   WAYS TO HELP SECTION
   ================================================ */
.ways-to-help {
  background: var(--light-bg);
  padding: 80px 24px;
}

.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.help-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.help-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.help-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.help-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.help-card .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.help-card .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ================================================
   EMERGENCY BANNER
   ================================================ */
.emergency-banner {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  padding: 40px 24px;
}

.emergency-content {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
}

.emergency-text h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.emergency-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  line-height: 1.6;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #dc3545;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.emergency-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ================================================
   MODERN FOOTER
   ================================================ */
.site-footer {
  background: var(--text-dark);
  padding: 60px 24px 24px;
  margin-top: 0;
  border-top: none;
}

.footer-modern {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-2px);
}

/* Legacy Footer Support */
.note {
  font-size: 0.9rem;
  color: #666
}

/* ================================================
   RESEARCH SECTION (Parallax)
   ================================================ */
.research-section {
  background: url('https://images.unsplash.com/photo-1520975594081-7448f0a38c33?auto=format&fit=crop&w=800&q=80') center/cover fixed;
  padding: 40px 15px;
}

.overlayyy {
  background: rgba(6, 58, 130, 0.92);
  padding: 30px 15px;
  border-radius: 8px;
}

/* ================================================
   IMAGE + ZOOM ANIMATION
   ================================================ */
.image-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.image-container img {
  width: 100%;
  border-radius: 4px;
  transition: transform 1.2s ease;
}

.image-container.show img {
  transform: scale(1.05);
}

.tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #003a78;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  border-radius: 4px;
  color: white;
}

.line {
  width: 0;
  height: 2px;
  background: white;
  margin: 10px 0 20px 0;
  transition: width 1s ease 0.5s;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal.show .line {
  width: 60px;
}

/* ================================================
   BUTTON WITH EFFECT
   ================================================ */
.btn-donate {
  margin-top: 25px;
  background: #ffcc00;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  filter: drop-shadow(0 0 0px #ffd84d);
  transition: transform 0.3s, filter 0.3s;
}

.btn-donate:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 10px #ffd84d);
}

/* ================================================
   MAP CONTAINER
   ================================================ */
.map-container {
  width: 100%;
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
   ================================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-right {
    order: -1;
  }

  .info-card {
    margin-bottom: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* Hero Modern Responsive */
  .hero-modern .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content-modern {
    max-width: 100%;
  }

  .hero-content-modern h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Stats Section Responsive */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Emergency Banner Responsive */
  .emergency-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .emergency-btn {
    justify-content: center;
  }

  /* Footer Responsive */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* About Preview Responsive */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .about-grid .about-image {
    order: -1;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header-inner {
    padding: 10px 15px;
  }

  .brand img {
    height: 3rem;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f8f9fa;
    flex-direction: column;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    gap: 8px;
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 20px 0;
  }

  .hero-left h2 {
    font-size: 1.5rem;
  }

  .goal-card {
    flex-direction: column;
    padding: 15px;
  }

  .goal-right {
    order: -1;
  }

  .goal-right img {
    width: 120px;
    height: 120px;
  }

  .goal-amount {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cards {
    flex-direction: column;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    margin-top: 10px;
  }

  .footer-nav a {
    margin: 0 8px;
  }

  .carousel-slide {
    padding: 8px;
    gap: 8px;
  }

  .media {
    width: 120px;
    height: 84px;
  }

  .research-section {
    padding: 30px 15px;
  }

  .overlayyy {
    padding: 20px 15px;
  }

  .image-container {
    max-width: 100%;
  }

  .ethan img {
    max-width: 100%;
  }

  .help {
    width: 100%;
    max-width: 200px;
    height: auto;
    min-height: 50px;
  }

  .about-preview {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Large mobile phones */
@media (max-width: 480px) {
  :root {
    --nav-height: 60px;
  }

  body {
    padding-top: var(--nav-height);
  }

  .brand img {
    height: 2.5rem;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .hero-left h2 {
    font-size: 1.3rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .goal-amount {
    font-size: 1.3rem;
  }

  .progress-bar {
    height: 10px;
  }

  .info-card {
    padding: 15px;
  }

  .checklist li {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 15px;
  }

  .donation-form input,
  .donation-form textarea,
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 14px;
  }

  .site-footer {
    padding: 15px 0;
    margin-top: 20px;
  }

  .small-circles img {
    width: 45px;
    height: 45px;
  }

  .video-card video,
  .video-card iframe {
    max-height: 180px;
  }

  .team img {
    height: 140px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .ethan img {
    max-width: 100%;
  }

  .help {
    font-size: 1rem;
  }

  .about-preview {
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 250px;
  }

  .videos {
    padding-left: 1em;
  }

  /* Hero Modern Mobile */
  .hero-modern {
    padding: 40px 16px 60px;
  }

  .hero-content-modern h1 {
    font-size: 1.75rem;
  }

  .hero-content-modern p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-hero {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-card .goal-amount {
    font-size: 2rem;
  }

  /* Stats Mobile */
  .stats-section {
    padding: 40px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  /* Patient Stories Mobile */
  .patient-stories {
    padding: 40px 16px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Emergency Banner Mobile */
  .emergency-banner {
    padding: 30px 16px;
  }

  .emergency-text h2 {
    font-size: 1.25rem;
  }

  .emergency-text p {
    font-size: 0.95rem;
  }

  .emergency-btn {
    width: 100%;
    justify-content: center;
  }

  /* Ways to Help Mobile */
  .ways-to-help {
    padding: 40px 16px;
  }

  .ways-grid {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* About Preview Mobile */
  .about-grid {
    gap: 20px !important;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .about-content p {
    font-size: 0.95rem;
  }
}

/* Small mobile phones */
@media (max-width: 320px) {
  :root {
    --nav-height: 55px;
  }

  .brand img {
    height: 2rem;
  }

  .nav-toggle {
    font-size: 1.2rem;
  }

  .hero-left h2 {
    font-size: 1.1rem;
  }

  .goal-amount {
    font-size: 1.1rem;
  }

  .goal-card {
    padding: 12px;
  }

  .info-card {
    padding: 12px;
  }

  .card {
    padding: 12px;
    min-width: 100%;
  }

  .ethan img {
    max-width: 100%;
  }

  .team img {
    height: 120px;
  }

  .btn-primary,
  .btn-outline {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .help {
    font-size: 0.9rem;
    padding: 10px;
  }

  .small-circles img {
    width: 40px;
    height: 40px;
  }
}

/* Print styles */
@media print {

  .site-header,
  .nav-toggle,
  .carousel,
  .btn-donate,
  .btn {
    display: none !important;
  }

  body {
    background: none;
    padding-top: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .hero-grid {
    display: block;
  }

  .card,
  .team,
  .program {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000;
  }

  .nav a {
    border: 1px solid currentColor;
  }

  .card,
  .team,
  .program {
    border: 2px solid currentColor;
  }
}