/* StaffNursePrep — Liquid Glass design system (minimalist / Apple-inspired) + day/night */
:root {
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glass-blur: blur(24px) saturate(160%);
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --theme-duration: 0.45s;
  /* Default = dark tokens until JS sets data-theme (FOUC-safe for night) */
  --bg: #07080c;
  --bg-elevated: #0e1016;
  --text: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.78);
  --muted: rgba(245, 245, 247, 0.55);
  --primary: #7dd3fc;
  --primary-soft: rgba(125, 211, 252, 0.18);
  --accent: #c4b5fd;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.12) 100%
  );
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --grad: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 48%, #f0abfc 100%);
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --blob-a: rgba(125, 211, 252, 0.45);
  --blob-b: rgba(196, 181, 253, 0.4);
  --blob-c: rgba(240, 171, 252, 0.35);
  --nav-active-bg: rgba(255, 255, 255, 0.92);
  --nav-active-fg: #0a0a0c;
  --btn-primary-bg: rgba(255, 255, 255, 0.94);
  --btn-primary-fg: #0a0a0c;
  --header-bg: rgba(7, 8, 12, 0.35);
  --input-bg: rgba(0, 0, 0, 0.25);
  --option-bg: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] {
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --bg: #07080c;
  --bg-elevated: #0e1016;
  --text: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.78);
  --muted: rgba(245, 245, 247, 0.55);
  --primary: #7dd3fc;
  --primary-soft: rgba(125, 211, 252, 0.18);
  --accent: #c4b5fd;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-highlight: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(255, 255, 255, 0.12) 100%
  );
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --grad: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 48%, #f0abfc 100%);
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.1);
  --blob-a: rgba(125, 211, 252, 0.45);
  --blob-b: rgba(196, 181, 253, 0.4);
  --blob-c: rgba(240, 171, 252, 0.35);
  --nav-active-bg: rgba(255, 255, 255, 0.92);
  --nav-active-fg: #0a0a0c;
  --btn-primary-bg: rgba(255, 255, 255, 0.94);
  --btn-primary-fg: #0a0a0c;
  --header-bg: rgba(7, 8, 12, 0.4);
  --input-bg: rgba(0, 0, 0, 0.25);
  --option-bg: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] {
  --success: #047857;
  --danger: #b91c1c;
  --warning: #b45309;
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: rgba(29, 29, 31, 0.72);
  --muted: rgba(29, 29, 31, 0.52);
  --primary: #0284c7;
  --primary-soft: rgba(2, 132, 199, 0.12);
  --accent: #7c3aed;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.25) 35%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 255, 255, 0.35) 100%
  );
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --grad: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 48%, #ec4899 100%);
  --surface: rgba(255, 255, 255, 0.55);
  --surface2: rgba(255, 255, 255, 0.75);
  --blob-a: rgba(56, 189, 248, 0.45);
  --blob-b: rgba(167, 139, 250, 0.4);
  --blob-c: rgba(244, 114, 182, 0.32);
  --nav-active-bg: #1d1d1f;
  --nav-active-fg: #f5f5f7;
  --btn-primary-bg: #1d1d1f;
  --btn-primary-fg: #f5f5f7;
  --header-bg: rgba(238, 241, 246, 0.55);
  --input-bg: rgba(255, 255, 255, 0.7);
  --option-bg: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    transition: background-color var(--theme-duration) var(--ease), color var(--theme-duration) var(--ease);
  }
  body,
  .site-header,
  .card,
  .hero-panel,
  .nav,
  .lang-switch,
  .theme-switch,
  .xp-chip,
  .btn,
  .disclaimer,
  .option,
  .footer {
    transition:
      background-color var(--theme-duration) var(--ease),
      color var(--theme-duration) var(--ease),
      border-color var(--theme-duration) var(--ease),
      box-shadow var(--theme-duration) var(--ease),
      transform 0.25s var(--ease);
  }
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Layered soft color blobs */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
body::before {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -12%;
  left: -10%;
  background: radial-gradient(circle, var(--blob-a) 0%, transparent 70%);
}
body::after {
  width: min(65vw, 480px);
  height: min(65vw, 480px);
  top: 18%;
  right: -15%;
  background: radial-gradient(circle, var(--blob-b) 0%, transparent 70%);
}
.bg-blob-3 {
  position: fixed;
  width: min(60vw, 440px);
  height: min(60vw, 440px);
  bottom: -8%;
  left: 30%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.4;
  background: radial-gradient(circle, var(--blob-c) 0%, transparent 70%);
}

.site-header,
.container,
.footer {
  position: relative;
  z-index: 1;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.9; }
img { max-width: 100%; }

/* —— Glass primitive —— */
.glass {
  background: var(--glass-bg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  background-image: var(--glass-highlight);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  isolation: isolate;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass,
  .site-header,
  .nav,
  .lang-switch,
  .theme-switch,
  .xp-chip,
  .card,
  .btn-ghost,
  .hero-badge,
  .disclaimer,
  .hero-panel {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .glass,
  .card,
  .hero-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
  .card::before,
  .hero-panel::before,
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      transparent 55%
    );
    opacity: 0.7;
  }
}
/* Fallback when backdrop-filter unsupported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html[data-theme="dark"] .glass,
  html[data-theme="dark"] .site-header,
  html[data-theme="dark"] .card,
  html[data-theme="dark"] .hero-panel,
  html[data-theme="dark"] .nav,
  html[data-theme="dark"] .lang-switch,
  html[data-theme="dark"] .theme-switch,
  html[data-theme="dark"] .xp-chip,
  html[data-theme="dark"] .btn-ghost,
  html[data-theme="dark"] .hero-badge,
  html[data-theme="dark"] .disclaimer {
    background: rgba(22, 24, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  html[data-theme="light"] .glass,
  html[data-theme="light"] .site-header,
  html[data-theme="light"] .card,
  html[data-theme="light"] .hero-panel,
  html[data-theme="light"] .nav,
  html[data-theme="light"] .lang-switch,
  html[data-theme="light"] .theme-switch,
  html[data-theme="light"] .xp-chip,
  html[data-theme="light"] .btn-ghost,
  html[data-theme="light"] .hero-badge,
  html[data-theme="light"] .disclaimer {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.1);
  }
}

/* Theme segmented control */
.theme-switch {
  display: flex;
  gap: 0.12rem;
  background: var(--glass-bg);
  border-radius: var(--radius-pill);
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 16px rgba(0, 0, 0, 0.08);
}
.theme-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.theme-btn:hover { color: var(--text); }
.theme-btn.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.theme-btn:active { transform: scale(0.96); }
.theme-btn svg { width: 14px; height: 14px; display: block; }
html[data-theme="light"] .theme-switch,
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .nav,
html[data-theme="light"] .xp-chip {
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .site-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .card,
html[data-theme="light"] .hero-panel {
  border-color: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .option {
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text);
}


/* —— Header / pill nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 1rem;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { opacity: 1; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
.nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.nav a {
  color: var(--text-secondary);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.nav a.active {
  color: var(--nav-active-fg);
  background: var(--nav-active-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav a:active { transform: scale(0.97); }

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.lang-switch {
  display: flex;
  gap: 0.15rem;
  background: var(--glass-bg);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-fg);
}
.lang-btn:active { transform: scale(0.96); }

.xp-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* —— Layout —— */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 4rem;
}
.home-main { padding-top: 2rem; }

.hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}
.hero-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 2rem;
  border-radius: 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5.2vw, 2.75rem);
  line-height: 1.12;
  margin-bottom: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--text);
}
.hero .hero-lede {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
}
.cta-row {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.4rem;
  font-weight: 560;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; opacity: 1; }
.btn:active { transform: scale(0.98) translateY(0); }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-wa { background: #25d366; color: #052e16; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.5rem 0 1.15rem;
  text-align: center;
}
.section-title {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .hero-panel { padding: 2.75rem 2.5rem 2.25rem; }
  .home-main { padding-top: 3rem; }
}

.card {
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--glass-shadow);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s;
  color: inherit;
  text-decoration: none;
  display: block;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  text-decoration: none;
  opacity: 1;
}
a.card:active { transform: translateY(-1px) scale(0.995); }
.card h2, .card h3 { margin-bottom: 0.45rem; font-weight: 600; letter-spacing: -0.02em; }
.card h2 { font-size: 1.15rem; }
.card h3 { font-size: 1rem; }
.card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; }
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.card.pink .card-icon,
.card.purple .card-icon,
.card.green .card-icon,
.card.amber .card-icon {
  background: rgba(255, 255, 255, 0.08);
}

.muted { color: var(--muted); }
.disclaimer {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 1.25rem 0;
  line-height: 1.45;
}
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.5;
}

/* —— Quiz / tools / challenge (keep functional, lightly glass) —— */
.quiz-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 1rem;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--grad);
  width: 0%;
  transition: width 0.35s var(--ease);
}
.q-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.q-stem { font-size: 1.08rem; font-weight: 560; margin-bottom: 1rem; letter-spacing: -0.015em; }
.options { display: flex; flex-direction: column; gap: 0.55rem; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  background: var(--option-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.option:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}
.option:active:not(:disabled) { transform: scale(0.99); }
.option:disabled { cursor: default; opacity: 0.95; }
.option .letter {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-weight: 650;
  font-size: 0.75rem;
}
.option.correct { border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.1); }
.option.correct .letter { background: var(--success); color: #052e16; }
.option.wrong { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.1); }
.option.wrong .letter { background: var(--danger); color: #450a0a; }
.feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: none;
}
.feedback.show { display: block; }
.feedback.ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--success); }
.feedback.bad { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.feedback .explain { color: var(--text); margin-top: 0.5rem; font-size: 0.88rem; }
.quiz-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.result-score {
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.result-stats { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0; }
.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  text-align: center;
  min-width: 90px;
}
.stat-pill strong { display: block; font-size: 1.25rem; color: var(--primary); }
.stat-pill span { font-size: 0.72rem; color: var(--muted); }

.form-grid { display: grid; gap: 0.85rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 550;
  margin-bottom: 0.35rem;
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus,
.field select:focus {
  outline: 2px solid rgba(125, 211, 252, 0.45);
  border-color: transparent;
}
.result-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.28);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: center;
  display: none;
}
.result-box.show { display: block; }
.result-box .sub { font-weight: 450; font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
  margin-top: 0.75rem;
}
.cd-cell {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.4rem;
}
.cd-cell strong { display: block; font-size: 1.4rem; color: var(--accent); }
.cd-cell span { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.exam-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.exam-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 1rem;
  border-left: 3px solid var(--primary);
}
.exam-item.tba { border-left-color: rgba(251, 191, 36, 0.7); }
.exam-item h4 { font-size: 0.92rem; margin-bottom: 0.25rem; font-weight: 560; }
.exam-item .src { font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }

.challenge-q { font-size: 1.1rem; font-weight: 560; margin: 1rem 0; letter-spacing: -0.015em; }
.streak-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--glass-bg);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
}
.streak-fire { font-size: 1.75rem; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* Soft page enter (skipped if reduced motion) */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-panel { animation: fade-up 0.7s var(--ease-out) both; }
  .home-features .card {
    animation: fade-up 0.65s var(--ease-out) both;
  }
  .home-features .card:nth-child(1) { animation-delay: 0.05s; }
  .home-features .card:nth-child(2) { animation-delay: 0.1s; }
  .home-features .card:nth-child(3) { animation-delay: 0.15s; }
  .home-features .card:nth-child(4) { animation-delay: 0.2s; }
  .home-features .card:nth-child(5) { animation-delay: 0.25s; }
  .home-features .card:nth-child(6) { animation-delay: 0.3s; }
}

/* —— Tasteful nursing design accents —— */
.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 1.75rem; height: 1.75rem; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  margin-bottom: 0.85rem;
}
.icon-chip .icon { width: 1.4rem; height: 1.4rem; }

.card-icon.icon-chip {
  font-size: 0;
  margin-bottom: 0.85rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 45%, transparent),
    transparent
  );
}
.section-divider .divider-mark {
  display: inline-flex;
  color: var(--accent);
  opacity: 0.85;
}

.deco-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
}
.deco-shapes .shape {
  position: absolute;
  opacity: 0.14;
  color: var(--primary);
}
.deco-shapes .shape-cross { top: 12%; right: 6%; width: 48px; height: 48px; }
.deco-shapes .shape-capsule { bottom: 14%; left: 8%; width: 56px; height: 56px; transform: rotate(-18deg); }
.deco-shapes .shape-heart { top: 55%; right: 18%; width: 36px; height: 36px; opacity: 0.1; }

.hero {
  position: relative;
}
.hero-panel { overflow: hidden; }
.hero-panel > * { position: relative; z-index: 1; }

.ecg-wrap {
  margin-top: 1.35rem;
  height: 44px;
  width: 100%;
  max-width: 420px;
  color: var(--primary);
  opacity: 0.85;
}
.ecg-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ecg-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ecg-glow {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-opacity: 0.18;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .ecg-line {
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: ecg-draw 3.2s var(--ease-out) infinite;
  }
  .ecg-glow {
    stroke-dasharray: 480;
    stroke-dashoffset: 480;
    animation: ecg-draw 3.2s var(--ease-out) infinite;
  }
}
@keyframes ecg-draw {
  0% { stroke-dashoffset: 480; opacity: 0.35; }
  18% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.4; }
}

.exam-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 0.5rem;
}
@media (min-width: 720px) {
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
}
.exam-card-featured {
  grid-column: 1 / -1;
}
.exam-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.source-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.source-list a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.9rem;
}
.source-list a:hover { background: var(--surface2); }
.source-list .src-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}
.fact-table th,
.fact-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--glass-border) 70%, transparent);
  vertical-align: top;
}
.fact-table th {
  color: var(--muted);
  font-weight: 600;
  width: 38%;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.syllabus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.syllabus-chips span {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.motif-rail {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.25rem;
  opacity: 0.9;
}
.motif-rail .icon-chip {
  margin-bottom: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
}


/* Accessibility skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

html[lang="hi"] body,
html[lang="bn"] body {
  font-family: var(--font);
  letter-spacing: 0;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.exam-card h2 { font-size: 1.1rem; margin: 0.5rem 0 0.35rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--glass-border);
}


/* —— Jobs box (Govt / Private tabs) —— */
.jobs-box {
  margin-top: 0.5rem;
}
.jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: fit-content;
  max-width: 100%;
}
.jobs-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.jobs-tab.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-fg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.jobs-list {
  display: grid;
  gap: 0.85rem;
}
.job-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.job-card-sample {
  border-style: dashed;
  opacity: 0.92;
}
.job-title {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.job-org {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.5rem;
}
.job-source {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.job-source a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jobs-empty { margin: 0.5rem 0; }
.jobs-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}
#jobs-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
html[data-theme="light"] .job-card,
html[data-theme="light"] .jobs-tabs {
  border-color: rgba(15, 23, 42, 0.1);
}


/* —— Nursing fun fact of the day —— */
.fact-box {
  margin-top: 0.5rem;
}
.fact-box .module-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.fact-box .module-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.fact-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.fact-source {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}
.fact-source a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fact-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Health sector govt announcements —— */
.announce-box {
  margin-top: 0.5rem;
}
.announce-box .module-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.announce-box .module-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
#announce-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.announce-list {
  display: grid;
  gap: 0.85rem;
}
.announce-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.announce-title {
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.announce-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
}
.announce-source {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}
.announce-source a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce-empty { margin: 0.5rem 0; }
.announce-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}
.announce-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
html[data-theme="light"] .announce-card {
  border-color: rgba(15, 23, 42, 0.1);
}
.home-modules {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

/* ——— Inspiring nurses (Liquid Glass strip) ——— */
.nurses-strip {
  margin: 1.25rem 0 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  background-image: var(--glass-highlight);
  overflow: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nurses-strip {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
}
.nurses-inner {
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
  min-height: 0;
}
.nurses-media {
  flex: 0 0 72px;
  width: 72px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(127, 140, 180, 0.18);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
}
.nurses-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nurses-initials {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--accent, #7dd3fc);
  opacity: 0.9;
}
.nurses-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nurses-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.nurses-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.25;
}
.nurses-caption {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.88;
}
.nurses-quote {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}
.nurses-quote blockquote {
  margin: 0;
  font-style: italic;
}
.nurses-qsrc {
  font-size: 0.72rem;
  margin-left: 0.25rem;
  opacity: 0.75;
}
.nurses-credit {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  opacity: 0.62;
}
.nurses-credit a { text-decoration: underline; text-underline-offset: 2px; }
.nurses-dots {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.nurses-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(127, 140, 180, 0.35);
  cursor: pointer;
}
.nurses-dot.active {
  background: var(--accent, #38bdf8);
  transform: scale(1.15);
}
@media (min-width: 720px) {
  .nurses-strip { padding: 1rem 1.25rem; }
  .nurses-media { flex-basis: 88px; width: 88px; height: 110px; }
  .nurses-name { font-size: 1.12rem; }
}

/* ——— Quiz feedback FX ——— */
.snp-fx-canvas { pointer-events: none; }
.feedback.snp-fx-ok {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.45), 0 0 24px rgba(52, 211, 153, 0.25);
  transition: box-shadow 0.35s ease;
}
@keyframes snp-wobble {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-0.4deg); }
  40% { transform: translateX(5px) rotate(0.4deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.snp-fx-bad {
  animation: snp-wobble 0.45s ease;
}
.snp-fx-bad-static,
.option.wrong {
  /* colour feedback always available */
}
@media (prefers-reduced-motion: reduce) {
  .snp-fx-bad { animation: none; }
  .snp-fx-canvas { display: none !important; }
  .feedback.snp-fx-ok { box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.55); }
}
