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

:root {
  --green-deep: #0d3d27;
  --green-mid: #1e6b45;
  --green-light: #3d9b6e;
  --green-pale: #e8f5ee;
  --teal-trust: #0d9488;
  --teal-pale: #ccfbf1;
  --amber: #f59e0b;
  --red-alert: #dc2626;
  --cream: #f8faf8;
  --white: #ffffff;
  --text-dark: #0f172a;
  --text-mid: #475569;
  --text-light: #64748b;
  --shadow: 0 4px 24px rgba(13,61,39,0.1);
  --shadow-lg: 0 12px 48px rgba(13,61,39,0.15);
  --radius: 16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,122,79,0.1);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--green-light); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--green-mid); }

.nav-cta {
  background: var(--green-mid); color: #fff;
  padding: 10px 22px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

.nav-cta-outline {
  border: 2px solid var(--green-mid); color: var(--green-mid);
  padding: 8px 20px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  transition: all .2s;
}
.nav-cta-outline:hover { background: var(--green-pale); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-links a.active {
  color: #0f766e; 
  font-weight: 600;
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #0f766e;
  border-radius: 2px;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-deep);
}
.emg{ 
  background-color: var(--red-alert);
}
.emg:hover {
  background-color: #c0392b;
}
/* MOBILE RESPONSIVE */
@media (max-width: 992px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(250,248,243,0.98);
    padding: 20px;
    gap: 20px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-right {
    display: none;
  }

  .nav-links li {
    text-align: center;
  }
}
/* ── AUTH PAGES (Login / Signup) ── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 60px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,125,0.12), transparent 70%);
}
.auth-card {
  background: #fff; border-radius: 24px;
  padding: 48px 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(45,122,79,0.08);
  position: relative; z-index: 1;
}
.auth-card .logo { display: inline-block; margin-bottom: 8px; }
.auth-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 900; color: var(--green-deep);
  margin-bottom: 8px;
}
.auth-card .subtitle {
  color: var(--text-mid); font-size: 0.9rem;
  margin-bottom: 28px;
}
.auth-form label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text-dark); margin-bottom: 6px;
}
.auth-form input {
  width: 100%; padding: 14px 18px;
  border: 1px solid rgba(45,122,79,0.2);
  border-radius: 12px; font-size: 0.95rem;
  font-family: inherit; margin-bottom: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,79,0.12);
}
.auth-form .btn-submit {
  width: 100%; background: var(--green-mid); color: #fff;
  border: none; padding: 14px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  margin-top: 8px; margin-bottom: 20px;
  transition: background .2s, transform .2s;
}
.auth-form .btn-submit:hover {
  background: var(--green-deep); transform: translateY(-1px);
}
.auth-card .auth-footer {
  text-align: center; font-size: 0.88rem; color: var(--text-mid);
}
.auth-card .auth-footer a {
  color: var(--green-mid); font-weight: 600; text-decoration: none;
}
.auth-card .auth-footer a:hover { text-decoration: underline; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,125,0.12), transparent 70%);
  animation: pulse 6s ease-in-out infinite;
}
/* .hero::after {
  content: '';
  position: absolute; bottom: -80px; left: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08), transparent 70%);
  animation: pulse 8s ease-in-out infinite reverse;
} */

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-pale); color: var(--green-deep);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
  border: 1px solid rgba(76,175,125,0.3);
  animation: fadeUp .6s ease both;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-light);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.1;
  color: var(--green-deep);
  margin-bottom: 20px;
  animation: fadeUp .7s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--green-light); }

.hero p {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-mid); max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp .7s .2s ease both;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.btn-primary {
  background: var(--green-mid); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(45,122,79,0.35);
  transition: all .2s;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(45,122,79,0.4); }

.btn-emergency {
  background: var(--red-alert); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(224,62,62,0.35);
  transition: all .2s; display: flex; align-items: center; gap: 8px;
}
.btn-emergency:hover { background: #c0392b; transform: translateY(-2px); }

/* .hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: fadeUp .8s .2s ease both;
}

.health-card {
  background: #fff; border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 380px;
  position: relative; z-index: 1;
}

.card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--green-deep); }
.card-header p { font-size: 0.78rem; color: var(--text-light); }

.symptom-list { list-style: none; margin-bottom: 20px; }
.symptom-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem; color: var(--text-mid);
}
.symptom-list li:last-child { border: none; }
.symptom-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem; flex-shrink: 0;
  color: var(--green-mid);
}

.severity-bar {
  background: #f0f5f2; border-radius: 8px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.severity-label { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.severity-badge {
  background: #fff3cd; color: #856404;
  padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
}

.floating-badge {
  position: absolute; top: -20px; right: -20px;
  background: var(--amber); color: #fff;
  padding: 10px 16px; border-radius: 16px;
  font-size: 0.78rem; font-weight: 700;
  box-shadow: 0 4px 16px rgba(245,166,35,0.4);
}

.floating-alert {
  position: absolute; bottom: -20px; left: -20px;
  background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--green-deep);
}
.alert-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-light); flex-shrink: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
} */
/* Container and Card Base */
.hero-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.health-card {
  background: #ffffff;
  width: 100%;
  max-width: 350px;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* 1. Floating Badge Animation */
.floating-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: #1e6b45;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 107, 69, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* 2. Header Styles */
.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 2rem;
  background: #e8f5e9;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.card-header h3 { margin: 0; font-size: 1.1rem; color: #1a1a1a; }
.card-header p { margin: 0; font-size: 0.85rem; color: #666666; }

/* 3. Staggered Symptom List Animation */
.symptom-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.symptom-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #1a1a1a;
  opacity: 0;
  animation: slideIn 0.5s ease-out forwards;
}

.symptom-list li:nth-child(1) { animation-delay: 0.2s; }
.symptom-list li:nth-child(2) { animation-delay: 0.4s; }
.symptom-list li:nth-child(3) { animation-delay: 0.6s; }
.symptom-list li:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.symptom-check { color: #22c55e; font-weight: bold; }

/* 4. Severity Bar */
.severity-bar {
  background: #fff5f5;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #dc2626;
}

.severity-label { 
  font-size: 0.7rem; 
  font-weight: 800; 
  color: #dc2626; 
  text-transform: uppercase; 
  letter-spacing: 0.5px;
}

.severity-badge { font-size: 0.85rem; font-weight: 600; color: #b91c1c; }

/* 5. Floating Alert & Pulsing Dot */
.floating-alert {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #1e6b45;
  background: #e8f5e9;
  padding: 10px 14px;
  border-radius: 12px;
}

.alert-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.alert-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Card Entrance Animation */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ── STATS BAR ── */
.stats-bar {
  background: var(--green-deep); padding: 40px 5%;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900; color: var(--green-light);
  display: block;
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 4px; }

/* ── SECTION COMMONS ── */
section { padding: 90px 5%; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-mid); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--green-light); }

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--green-deep);
  line-height: 1.15; margin-bottom: 16px;
}
h2.section-title em { font-style: italic; color: var(--green-light); }

.section-sub {
  color: var(--text-mid); font-size: 1rem; line-height: 1.7;
  max-width: 560px; margin-bottom: 56px;
}

/* ── HOW IT WORKS ── */
.how-it-works { background: #fff; }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step-card {
  background: var(--cream); border-radius: 20px; padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(45,122,79,0.08);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 900;
  color: var(--green-light); line-height: 1;
  margin-bottom: 12px;
}
.step-icon { font-size: 1.8rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.step-card p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.6; }

/* ── SYMPTOM CHECKER ── */

/* ── FEATURES ── */
.features-section { background: var(--cream); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff; border-radius: 20px; padding: 28px;
  border: 1px solid rgba(45,122,79,0.08);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 18px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--green-deep); margin-bottom: 8px; }
.feature-card p { font-size: 0.86rem; color: var(--text-mid); line-height: 1.7; }
.feature-tag {
  display: inline-block; margin-top: 14px;
  background: var(--green-pale); color: var(--green-mid);
  padding: 4px 12px; border-radius: 50px; font-size: 0.74rem; font-weight: 600;
}

/* ── EMERGENCY ── */
.emergency-section { background: #fff; }
.emergency-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
}

.hospital-cards { display: flex; flex-direction: column; gap: 16px; }
.hospital-card {
  background: var(--cream); border-radius: 16px; padding: 18px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid rgba(45,122,79,0.08);
  transition: all .2s;
}
.hospital-card:hover { background: var(--green-pale); border-color: var(--green-light); }
.hospital-card.urgent { border-color: var(--red-alert); background: #fff5f5; }

.hosp-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.hosp-name { font-weight: 700; font-size: 0.95rem; color: var(--green-deep); margin-bottom: 4px; }
.hosp-meta { font-size: 0.78rem; color: var(--text-mid); }
.hosp-beds { margin-left: auto; flex-shrink: 0; text-align: right; }
.beds-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--green-mid); line-height: 1;
}
.beds-label { font-size: 0.7rem; color: var(--text-light); }
.bed-critical { color: var(--red-alert) !important; }

.sos-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--red-alert); color: #fff;
  border: none; width: 100%; padding: 16px;
  border-radius: 14px; font-size: 1rem; font-weight: 700;
  cursor: pointer; margin-top: 20px;
  box-shadow: 0 4px 20px rgba(224,62,62,0.3);
  transition: all .2s; letter-spacing: 0.5px;
}
.sos-btn:hover { background: #c0392b; transform: scale(1.01); box-shadow: 0 6px 28px rgba(224,62,62,0.4); }

/* ── LANGUAGES ── */
.languages-section { background: var(--green-pale); text-align: center; }
.lang-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 40px;
}
.lang-chip {
  background: #fff; border: 1px solid rgba(45,122,79,0.15);
  border-radius: 50px; padding: 10px 24px;
  font-size: 0.9rem; font-weight: 500; color: var(--green-deep);
  box-shadow: 0 2px 8px rgba(45,122,79,0.08);
  transition: all .2s;
}
.lang-chip:hover { background: var(--green-mid); color: #fff; transform: translateY(-2px); }

/* ── CTA ── */
.cta-section {
  background: var(--green-deep);
  text-align: center; padding: 100px 5%;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76,175,125,0.12), transparent 70%);
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: #fff; margin-bottom: 16px; position: relative;
}
.cta-section h2 em { color: var(--green-light); font-style: italic; }
.cta-section p {
  color: rgba(255,255,255,0.7); font-size: 1rem;
  max-width: 480px; margin: 0 auto 36px; line-height: 1.7;
  position: relative;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-white {
  background: #fff; color: var(--green-deep);
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 700;
  transition: all .2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,255,255,0.25); }
.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600;
  transition: all .2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ── FOOTER ── */
footer {
  background: #111; color: rgba(255,255,255,0.6);
  padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
footer .logo { color: #fff; }
footer p { font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 24px; padding: 40px;
  max-width: 480px; width: 90%; position: relative;
  transform: translateY(20px); transition: transform .3s;
  text-align: center;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900; color: var(--green-deep); margin-bottom: 12px;
}
.modal p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }
.modal-numbers { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.num-badge {
  background: var(--green-pale); border-radius: 12px; padding: 12px 20px;
  text-align: center;
}
.num-badge strong { display: block; font-size: 1.2rem; color: var(--green-deep); }
.num-badge span { font-size: 0.75rem; color: var(--text-light); }
.modal-close {
  background: var(--green-mid); color: #fff; border: none;
  padding: 12px 32px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.modal-close:hover { background: var(--green-deep); }
.modal-x {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.2rem; cursor: pointer; color: var(--text-light);
}

/* ── PAGE CONTENT (About, Contact) ── */
.page-content {
  padding: 120px 5% 80px;
  max-width: 800px; margin: 0 auto;
}
.page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--green-deep);
  margin-bottom: 24px;
}
.page-content h1 em { font-style: italic; color: var(--green-light); }
.page-content p {
  font-size: 1rem; line-height: 1.8; color: var(--text-mid);
  margin-bottom: 20px;
}
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li {
  padding: 12px 0; border-bottom: 1px solid rgba(45,122,79,0.1);
  display: flex; align-items: center; gap: 12px;
}
.contact-list a { color: var(--green-mid); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ── INNER PAGE HERO (subpages) ── */
.inner-hero {
  padding: 140px 5% 60px;
  background: linear-gradient(160deg, var(--green-deep) 0%, #14532d 50%, var(--green-mid) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(61,155,110,0.2), transparent 60%);
  border-radius: 50%;
}
.inner-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; margin-bottom: 16px;
  opacity: 0.9;
}
.inner-hero .breadcrumb a { color: var(--green-pale); text-decoration: none; }
.inner-hero .breadcrumb a:hover { text-decoration: underline; }
.inner-hero .breadcrumb span { color: rgba(255,255,255,0.6); }
.inner-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
}
.inner-hero h1 em { font-style: italic; color: var(--green-pale); }
.inner-hero .inner-hero-p {
  font-size: 1rem;
  max-width: 560px;
  opacity: 0.9;
  line-height: 1.6;
  position: relative;
}

/* ── TRUST / DECISION CARDS (Should I go now?) ── */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.decision-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(13,61,39,0.08);
  transition: transform .2s, box-shadow .2s;
}
.decision-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.decision-card.go-now { border-left: 4px solid var(--red-alert); }
.decision-card.clinic { border-left: 4px solid var(--amber); }
.decision-card.home { border-left: 4px solid var(--green-mid); }
.decision-card .dc-icon { font-size: 2rem; margin-bottom: 12px; }
.decision-card h3 { font-size: 1.1rem; color: var(--green-deep); margin-bottom: 8px; }
.decision-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ── HEALTH EDUCATION TIP CARDS ── */
.features-grid-tip {
  display: grid; grid-template-columns: repeat(minmax(280px, 1fr));
  gap: 24px;align-content: center;justify-content: center;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(13,61,39,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all .2s;
}
.tip-card:hover { box-shadow: var(--shadow); border-color: var(--green-light); }
.tip-card .tip-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tip-card h3 { font-size: 1rem; color: var(--green-deep); margin-bottom: 6px; }
.tip-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ── EMERGENCY CONTACT PAGE (big call buttons) ── */
.emergency-contacts-section { padding: 60px 5% 80px; }
.emergency-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}
.emergency-contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 2px solid rgba(220,38,38,0.15);
  transition: all .2s;
}
.emergency-contact-card:hover {
  border-color: var(--red-alert);
  box-shadow: 0 8px 32px rgba(220,38,38,0.2);
}
.emergency-contact-card .ec-icon { font-size: 2.5rem; margin-bottom: 12px; }
.emergency-contact-card .ec-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-deep);
  display: block;
  margin-bottom: 4px;
}
.emergency-contact-card .ec-label { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 16px; }
.emergency-contact-card a.call-btn {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .2s;
}
.emergency-contact-card a.call-btn:hover { background: var(--green-deep); }
.emergency-contact-card.ambulance a.call-btn { background: var(--red-alert); }
.emergency-contact-card.ambulance a.call-btn:hover { background: #b91c1c; }

/* ── TRUST BANNER ── */
.trust-banner {
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--green-pale) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid rgba(13,148,136,0.2);
}
.trust-banner .tb-icon { font-size: 3rem; flex-shrink: 0; }
.trust-banner h3 { font-size: 1.2rem; color: var(--green-deep); margin-bottom: 6px; }
.trust-banner p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.6; margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 40px; }
  .hero-visual { display: none; }
  .checker-container { grid-template-columns: 1fr; }
  .emergency-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .inner-hero { padding: 120px 5% 48px; }
  .emergency-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .symptom-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .auth-card { padding: 32px 24px; }
  .emergency-cards { grid-template-columns: 1fr; }
  .trust-banner { flex-direction: column; text-align: center; padding: 24px; }
}
/* test.css */
/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: 50px;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  background: var(--green-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.lang-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--green-pale);
}

.lang-option.active {
  background: var(--green-mid);
  color: var(--white);
}

.lang-flag {
  font-size: 1.2rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--green-pale);
  border-top-color: var(--green-mid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Voice Assistant */
.voice-assistant {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.voice-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mid), var(--green-light));
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(46, 125, 79, 0.3);
  transition: all 0.3s ease;
  animation: pulse-voice 2s infinite;
}

.voice-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(46, 125, 79, 0.4);
}

@keyframes pulse-voice {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(46, 125, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 79, 0);
  }
}

.voice-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 300px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: none;
  animation: slideIn 0.3s ease;
}

.voice-panel.show {
  display: block;
}

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

.voice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  color: var(--white);
}

.voice-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.voice-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.voice-close:hover {
  opacity: 1;
}

.voice-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: 0.9rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-mid);
  transition: all 0.3s ease;
}

.voice-status.listening .status-indicator {
  background: var(--red-alert);
  animation: pulse-listening 1s infinite;
}

@keyframes pulse-listening {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.voice-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
}

.voice-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--green-light);
  border-radius: 8px;
  background: none;
  color: var(--green-deep);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-control-btn:hover {
  background: var(--green-pale);
  transform: translateY(-1px);
}

.voice-control-btn:nth-child(3) {
  grid-column: span 2;
}

.voice-commands {
  padding: 16px;
  background: var(--cream);
  border-top: 1px solid rgba(46, 125, 79, 0.1);
}

.commands-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.voice-commands ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.voice-commands li {
  font-size: 0.8rem;
  color: var(--text-mid);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.voice-commands li::before {
  content: '🎤';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Translation transition */
[data-i18n] {
  transition: opacity 0.2s ease;
}

[data-i18n].translating {
  opacity: 0.5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .language-switcher {
    top: 70px;
    right: 10px;
  }
  
  .voice-panel {
    width: 280px;
    right: 0;
    bottom: 70px;
  }
  
  .voice-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .language-switcher {
    position: static;
    margin: 10px;
  }
  
  .lang-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .lang-dropdown {
    width: 100%;
    position: static;
    margin-top: 5px;
  }
}
/* Language Dropdown */
.lang-select {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
}

/* Voice Button */
.voice-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1e6b45, #3d9b6e);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all .3s ease;
  z-index: 1000;
}

.voice-btn.listening {
  animation: pulseMic 1.2s infinite;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

@keyframes pulseMic {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.6); }
  70% { box-shadow: 0 0 0 20px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

/* RH Voice Assistant */

.rh-mic{
  position:fixed;
  bottom:30px;
  right:30px;
  width:70px;
  height:70px;
  background:linear-gradient(135deg,#1e6b45,#3d9b6e);
  color:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
  transition:.3s;
  z-index:9999;
}

.rh-mic.listening{
  animation:rhPulse 1.2s infinite;
  background:#dc2626;
}

@keyframes rhPulse{
  0%{box-shadow:0 0 0 0 rgba(220,38,38,.7);}
  70%{box-shadow:0 0 0 25px rgba(220,38,38,0);}
  100%{box-shadow:0 0 0 0 rgba(220,38,38,0);}
}