/* ==========================================================================
   Literating India Foundation — Design System & Stylesheet
   Fonts are preconnected and preloaded in HTML <head> for zero render-blocking latency.
   ========================================================================== */

:root {
  /* Core Color Palette - Master Reference */
  --ink: #0B1F3A;
  --ink-deep: #07192F;
  --blue: #1B4F9C;
  --blue-deep: #123A73;
  --sky: #EAF1FB;
  --paper: #FFFFFF;
  --cream: #F8F9FA;
  --slate: #5B6B7C;
  --slate-deep: #1E293B;
  --line: #D9E3F2;
  --line-deep: #BFD0E8;
  --gold: #D97706;
  --gold-dark: #B45309;
  --gold-tint: #F7EDD2;

  /* Additional Functional Tokens */
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --danger-border: #FCA5A5;
  --success: #16A34A;
  --success-bg: #ECFDF5;
  --focus-ring: rgba(27, 79, 156, 0.35);

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1180px;
  --container-narrow: 840px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06), 0 1px 2px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 37, 69, 0.08), 0 2px 4px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 12px 28px rgba(11, 37, 69, 0.1), 0 4px 10px rgba(11, 37, 69, 0.05);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility Focus-Visible */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--ink);
  color: #FFFFFF !important;
  padding: 0.65rem 1.25rem;
  z-index: 99999;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--gold);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + 1.25rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

[id], :target {
  scroll-margin-top: calc(72px + 1.25rem);
}

body {
  font-family: var(--font-sans);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  position: relative;
}

main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

img, svg, picture, video, iframe, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
  word-break: break-word;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-deep);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' auto;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

.display-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.text-muted {
  color: var(--slate);
}

.text-center {
  text-align: center;
}

/* Eyebrow Label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.eyebrow.eyebrow-dark {
  color: var(--gold);
}

/* Tags & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background-color: var(--sky);
  color: var(--blue);
  border: 1px solid var(--line);
  letter-spacing: 0.02em;
}

.tag-gold {
  background-color: var(--gold-tint);
  color: var(--gold-dark);
  border-color: rgba(108, 77, 0, 0.25);
  font-weight: 600;
}

/* ==========================================================================
   Signature Motif: Signal Bars (.signal)
   ========================================================================== */

.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  width: auto;
  vertical-align: middle;
}

.signal span, .signal-bar {
  display: block;
  width: 3px;
  background-color: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.signal span:nth-child(1) { height: 25%; }
.signal span:nth-child(2) { height: 50%; }
.signal span:nth-child(3) { height: 75%; }
.signal span:nth-child(4) { height: 100%; }

.signal-lg {
  height: 20px;
  gap: 3.5px;
}
.signal-lg span {
  width: 4px;
}

.signal-sm {
  height: 11px;
  gap: 2px;
}
.signal-sm span {
  width: 2.5px;
}

/* ==========================================================================
   Layout Containers & Sections
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-pad {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-pad-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-tint {
  background-color: var(--sky);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: 
    radial-gradient(circle at 85% 15%, rgba(27, 79, 156, 0.09) 0%, transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(179, 134, 11, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, var(--sky) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-deep);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #2E7D32;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.hero-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.4);
  animation: pulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

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

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 37, 69, 0.08);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--slate);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Glassmorphism Visual Hero Card */
.hero-visual-card {
  background: rgba(11, 37, 69, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(11, 37, 69, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(27, 79, 156, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.hero-card-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B4C4D9;
}

.hero-signal-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.hero-helpline-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-helpline-info h2,
.hero-helpline-info h4 {
  font-size: 0.9375rem;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}

.hero-helpline-info p {
  font-size: 0.75rem;
  color: #B4C4D9;
  margin: 0;
}

.hero-helpline-btn {
  background-color: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.hero-helpline-btn:hover {
  background-color: #D4A017;
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-feature-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-feature-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #DDE7F5;
}

.hero-feature-tag svg {
  color: var(--gold);
  flex-shrink: 0;
}

.page-header {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  background-color: var(--sky);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background-color: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}

.btn-primary:hover {
  background-color: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--sky);
  color: var(--ink);
  border-color: var(--line-deep);
}

.btn-secondary:hover {
  background-color: var(--paper);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line-deep);
}

.btn-outline:hover {
  background-color: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-gold {
  background-color: #EBB328;
  color: #0B2545;
  border-color: #DDA31A;
  font-weight: 600;
}

.btn-gold:hover {
  background-color: #DDA31A;
  color: #0B2545;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: #FFFFFF;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.05);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  padding: 0.25rem 0;
  min-height: 44px;
  min-width: 44px;
}

.brand-logo-img {
  height: clamp(38px, 4.5vw, 48px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

.footer-brand-logo-wrap {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 220px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.5rem;
}

.footer-brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.brand-link .brand-mark {
  color: var(--blue);
  display: flex;
  align-items: center;
}

.brand-link:hover {
  color: var(--blue);
}

.brand-link .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-link .brand-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.brand-link .brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.mobile-drawer-footer {
  display: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--blue);
  border-radius: 1px;
}

.header-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.05);
}

.nav-toggle:hover {
  background: var(--sky);
  border-color: var(--line-deep);
  transform: translateY(-1px);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--ink);
  border-radius: 4px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.3s ease;
  transform-origin: center;
}

/* When navigation is open */
.nav-open .nav-toggle {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

.nav-open .nav-toggle:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.nav-open .nav-toggle .hamburger-bar {
  background-color: #FFFFFF;
}

.nav-open .hamburger-bar.bar-1 {
  transform: translateY(6.75px) rotate(45deg);
}

.nav-open .hamburger-bar.bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-open .hamburger-bar.bar-3 {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* ==========================================================================
   Floating Government Affiliation Disclaimer Notification
   ========================================================================== */

.gov-notice-banner {
  position: fixed;
  top: calc(72px + 10px);
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  z-index: 990;
  max-width: min(calc(100vw - 1.5rem), 680px);
  width: max-content;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.gov-notice-banner.is-scrolled,
.gov-notice-banner.is-dismissed,
.site-header.nav-open ~ .gov-notice-banner,
body.nav-open .gov-notice-banner,
body.nav-locked .gov-notice-banner {
  opacity: 0;
  transform: translate(-50%, -10px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
}

.gov-notice-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 10px 25px -4px rgba(11, 37, 69, 0.12),
              0 3px 8px -2px rgba(11, 37, 69, 0.06);
  color: var(--ink, #07192F);
  font-family: var(--font-sans, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.gov-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D97706;
  flex-shrink: 0;
}

.gov-notice-tag {
  display: inline-flex;
  align-items: center;
  background: #FEF3C7;
  color: #92400E;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(217, 119, 6, 0.25);
  flex-shrink: 0;
}

.gov-notice-text {
  font-weight: 500;
  color: var(--ink, #07192F);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.gov-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.2rem;
  margin-left: 0.25rem;
  color: var(--slate, #64748B);
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, background-color 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.gov-notice-close:hover {
  color: var(--ink, #07192F);
  background-color: rgba(11, 37, 69, 0.08);
}

.gov-notice-close:focus-visible {
  outline: 2px solid var(--blue, #1D4ED8);
  outline-offset: 1px;
}

@media (max-width: 768px) {
  .gov-notice-banner {
    top: calc(68px + 8px);
    width: min(calc(100vw - 1.25rem), 480px);
    max-width: calc(100vw - 1.25rem);
  }

  .gov-notice-inner {
    width: 100%;
    padding: 0.4rem 0.75rem;
    gap: 0.45rem;
    border-radius: 12px;
    justify-content: space-between;
  }

  .gov-notice-text {
    white-space: normal;
    font-size: 0.75rem;
    text-align: left;
    flex: 1;
  }
}

/* ==========================================================================
   Cards (.card)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.card-grid > * {
  min-width: 0;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.card-grid-2 > * {
  min-width: 0;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.curriculum-grid > * {
  min-width: 0;
}

.card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.contact-form-card {
  padding: 2.25rem;
}

.card:hover {
  border-color: var(--line-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-tint {
  background-color: var(--sky);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.card-body {
  color: var(--slate);
  font-size: 0.96875rem;
  flex: 1 1 auto;
}

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Pillars (.pillar)
   ========================================================================== */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}

.pillar-grid > * {
  min-width: 0;
}

.pillar {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
}

.pillar:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background-color: var(--sky);
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--slate);
}

/* ==========================================================================
   Stat Strip (.stat-strip)
   ========================================================================== */

.stat-strip {
  background-color: var(--ink);
  color: var(--paper);
  padding: 2.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-num .stat-accent {
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: #B4C4D9;
  max-width: 220px;
  line-height: 1.4;
}

/* ==========================================================================
   Team / Person (.person)
   ========================================================================== */

.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}

.person-grid > * {
  min-width: 0;
}

.person {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.person:hover {
  border-color: var(--line-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.person-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background-color: var(--sky);
  border: 2px solid var(--line-deep);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.person-avatar.avatar-gold {
  background-color: var(--gold-tint);
  color: var(--gold);
  border-color: rgba(179, 134, 11, 0.3);
}

.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.person-role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
}

.person-bio {
  font-size: 0.90625rem;
  color: var(--slate);
  line-height: 1.55;
  margin-top: auto;
}

/* ==========================================================================
   Blog Post Row (.post-row)
   ========================================================================== */

.post-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: var(--transition);
}

.post-row:hover {
  background-color: rgba(234, 241, 251, 0.35);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  border-radius: var(--radius-sm);
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.post-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--blue);
}

.post-excerpt {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
}

.post-tag-wrap {
  text-align: right;
}

/* ==========================================================================
   Enhanced Blog Grid & Featured Story Presentation
   ========================================================================== */

.featured-story-section {
  margin-bottom: 3rem;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.09);
  border-color: var(--blue);
}

.featured-post-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.featured-post-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-post-title a {
  color: var(--ink);
  text-decoration: none;
}

.featured-post-title a:hover {
  color: var(--blue);
}

.featured-post-excerpt {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.featured-post-img-wrap {
  position: relative;
  min-height: 280px;
  background: var(--sky);
  overflow: hidden;
}

.featured-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-post-img-wrap img {
  transform: scale(1.03);
}

.reading-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}

/* Blog Grid View */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.08);
  border-color: var(--blue);
}

.blog-card-img-wrap {
  height: 190px;
  background: var(--sky);
  overflow: hidden;
  position: relative;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.04);
}

.blog-card-placeholder-pattern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sky) 0%, rgba(200, 218, 238, 0.6) 100%);
  color: var(--blue);
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--blue);
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-link {
  gap: 0.6rem;
}

/* Category Tag Enhancements */
.tag-alert {
  background-color: #FDEDED;
  color: #B71C1C;
  border: 1px solid #FFCDD2;
}

.tag-field {
  background-color: var(--sky);
  color: var(--blue-deep);
  border: 1px solid rgba(11, 37, 69, 0.15);
}

.tag-social {
  background-color: #FFF8E1;
  color: #8D6E00;
  border: 1px solid #FFE082;
}

/* Results & View Controls */
.blog-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.results-count-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--slate);
}

.view-mode-toggle {
  display: flex;
  gap: 0.35rem;
  background: var(--sky);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.view-mode-btn {
  border: none;
  background: none;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.view-mode-btn.active {
  background: #FFFFFF;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 860px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-img-wrap {
    min-height: 220px;
    order: -1;
  }
  .featured-post-content {
    padding: 1.75rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Callout (.callout)
   ========================================================================== */

.callout {
  background-color: var(--sky);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.callout-icon {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.callout-content {
  font-size: 1rem;
  color: var(--ink);
}

.callout-content p:last-child {
  margin-bottom: 0;
}

.callout-gold {
  background-color: var(--gold-tint);
  border-left-color: var(--gold);
}
.callout-gold .callout-icon {
  color: var(--gold);
}

/* ==========================================================================
   CTA Band (.cta-band)
   ========================================================================== */

.cta-band {
  background-color: var(--ink);
  color: var(--paper);
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--paper);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: #B4C4D9;
  font-size: 1.125rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.cta-text {
  max-width: 640px;
}

/* ==========================================================================
   Partner Strip (.partner-strip)
   ========================================================================== */

.partner-strip {
  padding: 2.5rem 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.partner-logo-box {
  background-color: var(--sky);
  border: 1px dashed var(--line-deep);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  transition: var(--transition);
}

.partner-logo-box:hover {
  border-color: var(--blue);
  color: var(--ink);
  background-color: #E2ECF9;
}

/* ==========================================================================
   Form Grid & Fields (.form-grid, .field)
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group, .field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group:last-child, .field:last-child {
  margin-bottom: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.form-group label, .field label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.form-input, .form-select, .form-textarea,
.input, .select, .textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-deep);
  border-radius: var(--radius-sm);
  background-color: var(--paper);
  color: var(--ink);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder, .form-textarea::placeholder,
.input::placeholder, .textarea::placeholder {
  color: #94A3B8;
  font-size: 0.875rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus,
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue);
  background-color: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 4px rgba(11, 37, 69, 0.08);
}

.form-select, .select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea, .textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.form-note {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-note.is-visible {
  display: block;
}

.form-note.form-note-success {
  background-color: var(--success-bg);
  border: 1px solid #A5D6A7;
  color: var(--success);
}

/* ==========================================================================
   Contact Page Grid (.contact-grid)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.contact-grid > * {
  min-width: 0;
}

/* ==========================================================================
   Program Detail Sections
   ========================================================================== */

.program-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.program-block:last-child {
  border-bottom: none;
}

.program-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.program-grid > * {
  min-width: 0;
}

.program-meta {
  background-color: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #07192F;
  color: #B4C4D9;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.90625rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4,
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-bottom: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-title .signal {
  color: var(--gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #B4C4D9;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--paper);
  padding-left: 3px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #B4C4D9;
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #7D8E9F;
}

.footer-bottom a {
  color: #9DB0C6;
}
.footer-bottom a:hover {
  color: var(--paper);
}

/* ==========================================================================
   Citizen Voices & Testimonials (.quote-card)
   ========================================================================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quote-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote-icon {
  font-size: 2.25rem;
  line-height: 1;
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.quote-text {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--sky);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.quote-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.quote-role {
  font-size: 0.78125rem;
  color: var(--slate);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Filter Strip & Search Bar (Blog & Events)
   ========================================================================== */

.filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background-color: var(--paper);
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background-color: var(--sky);
}

.filter-btn.active, .filter-btn.is-active {
  background-color: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(27, 79, 156, 0.2);
}

.tag-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.85;
}

.search-wrap {
  flex: 1;
  min-width: min(100%, 280px);
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background-color: var(--paper);
  color: var(--ink);
  outline: none;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(11, 37, 69, 0.04);
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 156, 0.12);
  background-color: #FFFFFF;
}

/* ==========================================================================
   Event Cards (.event-card-grid)
   ========================================================================== */

.event-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.event-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-card-img {
  width: 100%;
  height: 180px;
  background-color: var(--sky);
  position: relative;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.03);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.25);
  z-index: 2;
}

.event-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.event-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.event-card-title a:hover {
  color: var(--blue);
}

.event-card-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: auto;
}

/* ==========================================================================
   Events Page: Quick Navigation, Status Badges & Past Events
   ========================================================================== */

.events-quick-nav {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.04);
}

.events-nav-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.events-nav-pills::-webkit-scrollbar {
  display: none;
}

.event-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  background: #F1F5F9;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.event-nav-pill:hover {
  background: #E2E8F0;
  color: var(--ink);
}

.event-nav-pill.active {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.18);
}

.event-nav-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.events-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  .events-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.events-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.events-badge-pill.badge-upcoming {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.events-badge-pill.badge-concluded {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.events-section-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.events-section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.events-section-divider .divider-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Event status tag on card image */
.event-status-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-status-tag.tag-upcoming {
  background: #10B981;
  color: #FFFFFF;
}

.event-status-tag.tag-concluded {
  background: rgba(15, 23, 42, 0.85);
  color: #E2E8F0;
  backdrop-filter: blur(4px);
}

/* Past event card appearance */
.event-card.is-past {
  border-color: #E2E8F0;
  background: #FFFFFF;
}

.event-card.is-past:hover {
  border-color: #94A3B8;
  transform: translateY(-2px);
}

.event-card.is-past .event-card-img {
  background-color: #EDF2F7;
}

.event-card.is-past .event-card-img img {
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.event-card.is-past:hover .event-card-img img {
  filter: grayscale(0%);
}

.event-date-badge.is-concluded {
  background-color: #334155;
}

.event-concluded-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 600;
}

.event-free-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 700;
}

.btn-sm {
  font-size: 0.8125rem !important;
  padding: 0.4rem 0.85rem !important;
}

/* Empty State Card */
.events-empty-card {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 620px;
  margin: 1.5rem auto;
}

.events-empty-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.events-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.events-empty-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Registration Modal Popup Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.registration-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(580px, calc(100vw - 1.5rem));
  background: #FFFFFF;
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 25px 65px -10px rgba(11, 37, 69, 0.35), 0 0 0 1px rgba(11, 37, 69, 0.06);
  z-index: 1001;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.registration-modal.is-active,
.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.registration-modal.is-active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
  gap: 1rem;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.modal-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D97706;
  display: inline-block;
}

.modal-title {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 0.35rem 0;
}

.modal-subtitle {
  font-size: 0.8125rem;
  color: var(--slate);
  font-family: var(--font-mono);
  line-height: 1.5;
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--sky);
  border: 1px solid var(--line-deep);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FCA5A5;
  transform: rotate(90deg);
}

.modal-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--slate);
  font-family: var(--font-mono);
  text-align: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Navigation
   ========================================================================== */

/* Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .stat-grid {
    gap: 1.25rem;
  }
}

/* Tablets & Mobile Navigation Trigger (<= 860px) */
@media (max-width: 860px) {
  body.nav-locked {
    overflow: hidden;
    touch-action: none;
  }

  .site-header {
    height: 68px;
    background-color: #FFFFFF;
    background: #FFFFFF;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  .site-header.nav-open,
  body.nav-locked .site-header,
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1005;
  }

  .header-inner {
    height: 68px;
    background-color: #FFFFFF;
    background: #FFFFFF;
  }

  .nav-toggle {
    display: flex;
    z-index: 1006;
  }

  /* Backdrop Overlay */
  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    top: 68px;
    background: rgba(7, 25, 47, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 998;
  }

  .site-header.nav-open ~ .mobile-nav-backdrop,
  body.nav-locked .mobile-nav-backdrop,
  body.nav-open .mobile-nav-backdrop,
  .nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-Down Modern Sheet */
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #07192F 0%, #0B2545 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0.35rem;
    display: flex;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    transform: translateY(-120%);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-open .nav-menu,
  .site-header.nav-open .nav-menu,
  body.nav-locked .nav-menu,
  body.nav-open .nav-menu {
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.0625rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: #EAF1FB;
    border-radius: 8px;
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link::after {
    content: "→";
    font-family: var(--font-sans);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s ease;
    color: var(--gold);
  }

  .nav-link:hover, .nav-link:focus, .nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link.active {
    color: var(--gold);
    background: rgba(179, 134, 11, 0.15);
    font-weight: 600;
  }

  .nav-link:hover::after, .nav-link.active::after {
    opacity: 1;
    transform: translateX(0);
  }

  /* Drawer Footer Card */
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-helpline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(217, 83, 79, 0.15);
    border: 1px solid rgba(217, 83, 79, 0.35);
    color: #FFC0BD;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-drawer-helpline:hover {
    background: rgba(217, 83, 79, 0.25);
    color: #FFFFFF;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .header-cta .btn {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #B3860B 0%, #D4AF37 100%);
    color: #07192F;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(179, 134, 11, 0.3);
    text-align: center;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .cta-actions {
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .program-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .program-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid > * {
    min-width: 0;
    max-width: 100%;
  }
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-img-wrap {
    min-height: 220px;
    order: -1;
  }
  .featured-post-content {
    padding: 1.75rem;
  }
  .filter-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .filter-tags {
    width: 100%;
  }
  .search-wrap {
    width: 100%;
  }
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .post-tag-wrap {
    text-align: left;
  }

  /* Touch Target Accessibility Compliance (>= 44x44px) */
  .social-btn,
  .social-links .social-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .gov-notice-close {
    min-width: 44px;
    min-height: 44px;
    margin: -10px -8px -10px auto;
    padding: 12px;
  }
  .hero-helpline-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.15rem;
  }
  .filter-btn {
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    display: inline-flex;
    align-items: center;
  }
  .search-input {
    min-height: 44px;
  }
  .view-mode-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .brand-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile Devices & Small Tablets (<= 640px) */
@media (max-width: 640px) {
  .btn {
    white-space: normal;
    text-wrap: balance;
    max-width: 100%;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .btn-group .btn,
  .callout .btn,
  .cta-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
  .form-grid, .form-row, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-box {
    padding: 1.25rem 0.75rem;
    text-align: center;
  }
  .stat-num {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-card {
    padding: 1.25rem;
  }
  .callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem;
  }
  .card, .person, .pillar {
    padding: 1.25rem;
  }
  .contact-form-card {
    padding: 1.25rem !important;
  }
  .section-pad {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }
  .section-pad-sm {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .page-header {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .display-title {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }
  .section-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
  .filter-tags {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .filter-tags::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
  }
  /* Prevent iOS Safari auto-zoom on input focus */
  .form-input, .form-select, .form-textarea,
  .input, .select, .textarea,
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    font-size: 16px !important;
  }
}

/* Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-logo-img {
    height: 36px;
    max-width: 160px;
  }
  .brand-link .brand-title {
    font-size: 1rem;
  }
  .brand-link .brand-sub {
    font-size: 0.625rem;
  }
  .hero-badge-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .hero-helpline-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.85rem;
  }
  .hero-helpline-info h4 {
    font-size: 1rem;
  }
  .hero-helpline-info p {
    font-size: 0.8125rem;
  }
  .hero-helpline-btn {
    width: 100%;
  }
  .modal-header {
    flex-direction: row;
  }
  .registration-modal {
    width: calc(100vw - 1rem);
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }
  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    min-height: 44px;
  }
}

/* Extra Small Phones (<= 360px) */
@media (max-width: 360px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .brand-logo-img {
    max-width: 130px;
    height: 32px;
  }
  .brand-link .brand-title {
    font-size: 0.9375rem;
  }
  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Reading Progress Bar (Blog & Articles)
   ========================================================================== */

.reading-progress-track {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(27, 79, 156, 0.08);
  z-index: 1001;
  pointer-events: none;
}

@media (max-width: 840px) {
  .reading-progress-track {
    top: 68px;
    height: 3.5px;
  }
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1B4F9C 0%, #2563EB 50%, #00C6FF 100%);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.9), 0 0 4px rgba(27, 79, 156, 0.7);
  transition: width 0.08s ease-out;
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   Cumulative Layout Shift (CLS) Stabilization Min-Heights
   ========================================================================== */

#homepage-stats-grid {
  min-height: 90px;
}

#homepage-posts-list {
  min-height: 200px;
}

#homepage-events-grid {
  min-height: 260px;
}

#homepage-programs-grid {
  min-height: 200px;
}

#posts-container {
  min-height: 300px;
}

#events-grid {
  min-height: 300px;
}

#team-grid-container {
  min-height: 300px;
}

#dynamic-programs-grid {
  min-height: 220px;
}

/* ==========================================================================
   Public Article Body Formatting (Rich Blocks, Tables, Embeds, Code)
   ========================================================================== */

.post-article-body {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--ink);
}

.post-article-body h1 {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 2.15rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  line-height: 1.25;
}

.post-article-body h2 {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.65rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-weight: 700;
}

.post-article-body h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-weight: 700;
}

.post-article-body h4 {
  font-size: 1.1875rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.post-article-body p {
  margin-bottom: 1.5rem;
}

.post-article-body u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-article-body s {
  text-decoration: line-through;
  opacity: 0.8;
}

.post-article-body ol, .post-article-body ul {
  padding-left: 1.75rem;
  margin-bottom: 1.75rem;
}

.post-article-body li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.post-article-body blockquote {
  border-left: 4px solid var(--blue);
  background-color: var(--sky);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
}

.post-article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.post-article-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(11, 37, 69, 0.08);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: var(--blue-deep);
}

.post-article-body pre {
  background: #0B1F3A;
  color: #EAF1FB;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.6;
}

.post-article-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.post-article-body mark {
  background-color: #FEF3C7;
  padding: 0.15em 0.3em;
  border-radius: 3px;
  color: inherit;
}

.post-article-body hr {
  border: none;
  border-top: 2px solid var(--line);
  margin: 2.5rem 0;
}

.post-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.post-article-body th, .post-article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  text-align: left;
}

.post-article-body th {
  background-color: var(--sky);
  color: var(--ink);
  font-weight: 700;
}

.post-article-body .article-image-figure,
.post-article-body .article-image-wrap {
  margin: 2rem auto;
  display: block;
}

.post-article-body .article-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.08);
  display: block;
  margin: 0 auto;
}

.post-article-body .article-image-caption {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--slate);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.post-article-body .video-embed-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 2rem 0;
  display: block;
}

.post-article-body .twitter-embed-wrap {
  margin: 2rem auto;
  max-width: 550px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 14px rgba(11, 37, 69, 0.05);
}

.post-article-body .align-center, .post-article-body [style*="text-align: center"] { text-align: center; }
.post-article-body .align-right, .post-article-body [style*="text-align: right"] { text-align: right; }
.post-article-body .align-justify, .post-article-body [style*="text-align: justify"] { text-align: justify; }
.post-article-body .align-left, .post-article-body [style*="text-align: left"] { text-align: left; }
.post-article-body .width-50pct { max-width: 50% !important; }
.post-article-body .width-75pct { max-width: 75% !important; }
.post-article-body .width-100pct { max-width: 100% !important; }

/* Syntax highlighting */
.post-article-body .hljs-keyword, .post-article-body .hljs-selector-tag { color: #F472B6; font-weight: 600; }
.post-article-body .hljs-string, .post-article-body .hljs-title { color: #34D399; }
.post-article-body .hljs-comment { color: #64748B; font-style: italic; }
.post-article-body .hljs-number, .post-article-body .hljs-literal { color: #FBBF24; }
.post-article-body .hljs-attr, .post-article-body .hljs-variable { color: #60A5FA; }

/* ==========================================================================
   Public Popup Banner System (Announcements, Events & Campaigns)
   ========================================================================== */

body.lif-popup-open {
  overflow: hidden !important;
}

.lif-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(11, 31, 58, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lifPopupOverlayFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lif-popup-overlay.is-closing {
  animation: lifPopupOverlayFadeOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lif-popup-card {
  position: relative;
  width: 100%;
  max-width: min(540px, calc(100vw - 2rem));
  min-width: 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: lifPopupCardScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lif-popup-overlay.is-closing .lif-popup-card {
  animation: lifPopupCardScaleOut 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lif-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 25;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.lif-popup-close:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

.lif-popup-close:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.lif-popup-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(160px, 26vw, 220px);
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  box-sizing: border-box;
}

.lif-popup-media img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lif-popup-content {
  padding: 1.65rem 1.85rem 1.85rem 1.85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lif-popup-meta {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lif-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.lif-popup-headline {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.lif-popup-body {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.lif-popup-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
}

.lif-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.lif-popup-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lif-popup-cta:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

@keyframes lifPopupOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lifPopupOverlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes lifPopupCardScaleIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes lifPopupCardScaleOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
}

/* Mobile Responsiveness for Popup */
@media (max-width: 640px) {
  .lif-popup-overlay {
    padding: 1rem;
    align-items: flex-end;
  }

  .lif-popup-card {
    max-width: 100%;
    max-height: 86vh;
    border-radius: 16px 16px 14px 14px;
  }

  .lif-popup-media {
    height: 160px;
  }

  .lif-popup-content {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  }

  .lif-popup-headline {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .lif-popup-body {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.15rem;
  }

  .lif-popup-actions {
    flex-direction: column;
  }

  .lif-popup-cta {
    width: 100%;
    text-align: center;
  }
}





/* ==========================================================================
   Literating India Foundation — Cookie Consent Banner & Preferences Modal
   WCAG 2.1 AA Compliant: High Contrast, Focus Trap, Accessible ARIA
   ========================================================================== */

/* Banner Container */
.lif-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 99998;
  background: rgba(11, 37, 69, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border-top: 2px solid #1B4F9C;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.lif-cookie-banner.is-visible {
  display: block !important;
  transform: translateY(0);
  opacity: 1;
}

.lif-cookie-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 860px) {
  .lif-cookie-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.lif-cookie-text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #D9E3F2;
}

.lif-cookie-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.lif-cookie-text a {
  color: #FFD54F;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.lif-cookie-text a:hover,
.lif-cookie-text a:focus-visible {
  color: #FFFFFF;
  outline: 2px solid #FFD54F;
  outline-offset: 2px;
}

.lif-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.lif-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 4px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lif-btn:focus-visible {
  outline: 3px solid #FFD54F;
  outline-offset: 2px;
}

.lif-btn-primary {
  background-color: #1B4F9C;
  color: #FFFFFF;
  border-color: #2D68C4;
}

.lif-btn-primary:hover {
  background-color: #123A73;
}

.lif-btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #BFD0E8;
}

.lif-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.lif-btn-link {
  background: none;
  border: none;
  color: #D9E3F2;
  text-decoration: underline;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.lif-btn-link:hover,
.lif-btn-link:focus-visible {
  color: #FFD54F;
}

/* Modal Overlay */
.lif-cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 23, 46, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lif-cookie-modal-backdrop.is-open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lif-cookie-modal {
  background: #FFFFFF;
  color: #0B2545;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #D9E3F2;
}

.lif-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #D9E3F2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
}

.lif-modal-header h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: #0B2545;
}

.lif-modal-close-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #5B6B7C;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lif-modal-close-btn:hover {
  background: #EAF1FB;
  color: #0B2545;
}

.lif-modal-close-btn:focus-visible {
  outline: 2px solid #1B4F9C;
  outline-offset: 2px;
}

.lif-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lif-modal-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5B6B7C;
  margin: 0;
}

.lif-consent-group {
  border: 1px solid #D9E3F2;
  border-radius: 6px;
  padding: 1rem 1.15rem;
  background: #FFFFFF;
  transition: border-color 0.15s ease;
}

.lif-consent-group:focus-within {
  border-color: #1B4F9C;
}

.lif-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.lif-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0B2545;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lif-badge-always-active {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #E8F5E9;
  color: #1E7E34;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lif-group-desc {
  font-size: 0.84375rem;
  color: #5B6B7C;
  line-height: 1.5;
  margin: 0;
}

/* Switch UI */
.lif-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.lif-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lif-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #BFD0E8;
  transition: 0.2s;
  border-radius: 24px;
}

.lif-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lif-switch input:checked + .lif-slider {
  background-color: #1B4F9C;
}

.lif-switch input:focus-visible + .lif-slider {
  outline: 3px solid #1B4F9C;
  outline-offset: 2px;
}

.lif-switch input:checked + .lif-slider:before {
  transform: translateX(20px);
}

.lif-switch input:disabled + .lif-slider {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #1E7E34;
}

.lif-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #D9E3F2;
  background: #F8FAFC;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

/* Form Consent Checkbox UI */
.form-consent-box {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: #F8FAFC;
  border: 1px solid #D9E3F2;
}

.form-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}

.form-consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #1B4F9C;
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid #1B4F9C;
  outline-offset: 2px;
}

.form-consent-row label {
  cursor: pointer;
  margin-bottom: 0;
}

.form-consent-row a {
  color: #1B4F9C;
  text-decoration: underline;
  font-weight: 600;
}

.form-consent-minor {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #D9E3F2;
}

/* Footer Legal Block */
.footer-legal-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(217, 227, 242, 0.15);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #9DB0C6;
}

.footer-legal-block strong {
  color: #FFFFFF;
  font-weight: 600;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.75rem;
}

.footer-legal-links a,
.footer-legal-links button {
  color: #D9E3F2;
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: color 0.15s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover,
.footer-legal-links a:focus-visible,
.footer-legal-links button:focus-visible {
  color: #FFD54F;
  text-decoration: underline;
  outline: 2px solid #FFD54F;
  outline-offset: 2px;
}

/* Legal Pages Typography & Layout */
.legal-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1A2B42;
}

.legal-content h2 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue-deep, #0B2545);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line, #E2E8F0);
}

.legal-content h3 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep, #0B2545);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1.15rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.legal-content strong {
  color: var(--blue-deep, #0B2545);
}

.legal-content a {
  color: var(--blue, #1B4F9C);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--blue-deep, #0B2545);
  text-decoration: underline;
}

/* In-Page Cookie Preferences Dashboard */
.cookie-pref-panel {
  background: #FFFFFF;
  border: 1px solid #D9E3F2;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.cookie-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #EAF1FB;
}

.cookie-pref-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.25rem !important;
  color: #0B2545 !important;
}

.cookie-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: #E8F5E9;
  color: #1B5E20;
}

.cookie-status-badge.is-default {
  background: #EFF6FF;
  color: #1E40AF;
}

.cookie-pref-desc {
  font-size: 0.9375rem;
  color: #4A5D73;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-pref-item {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  transition: border-color 0.15s ease;
}

.cookie-pref-item:focus-within,
.cookie-pref-item:hover {
  border-color: #B4C4D9;
}

.cookie-pref-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-pref-item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0B2545;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-pref-item-desc {
  font-size: 0.875rem;
  color: #5B6B7C;
  line-height: 1.5;
  margin: 0.45rem 0 0 0;
}

.cookie-pref-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #EAF1FB;
}

.cookie-status-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #E8F5E9;
  color: #1B5E20;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #C8E6C9;
}

/* ==========================================================================
   Homepage refinement — editorial clarity & field-first warmth
   ========================================================================== */

body { letter-spacing: -0.006em; }
.display-title, .section-title, .page-header h1 { text-wrap: balance; }
.section-title { line-height: 1.16; letter-spacing: -0.028em; }
.section-sub { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.7; text-wrap: pretty; }
.lead-text { max-width: 39rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.72; text-wrap: pretty; }

/* A quiet, editorial opening keeps the message—not decoration—at the center. */
.section-hero {
  isolation: isolate;
  padding-top: clamp(4rem, 8vw, 7.25rem);
  padding-bottom: clamp(4.25rem, 8vw, 7rem);
  background: radial-gradient(circle at 88% 18%, rgba(27, 79, 156, 0.15) 0%, rgba(27, 79, 156, 0.035) 27%, transparent 52%), radial-gradient(circle at 14% 94%, rgba(179, 134, 11, 0.13) 0%, transparent 35%), linear-gradient(135deg, #fffdf8 0%, #f5f8fd 52%, #e9f1fb 100%);
}
.section-hero::before {
  content: ''; position: absolute; width: 34rem; height: 34rem; right: -17rem; bottom: -22rem;
  border: 1px solid rgba(27, 79, 156, 0.12); border-radius: 50%;
  box-shadow: 0 0 0 2.75rem rgba(27, 79, 156, 0.035), 0 0 0 5.5rem rgba(27, 79, 156, 0.025); z-index: -1;
}
.hero-split { grid-template-columns: minmax(0, 1.16fr) minmax(21rem, 0.84fr); gap: clamp(2.5rem, 6vw, 5.75rem); }
.hero-badge-pill { color: var(--blue-deep); padding: 0.43rem 0.9rem; border-color: rgba(27, 79, 156, 0.22); box-shadow: 0 5px 16px rgba(11, 37, 69, 0.06); }
.display-title { max-width: 14ch; font-size: clamp(2.75rem, 5.4vw, 4.65rem); line-height: 1.04; letter-spacing: -0.045em; }
.btn { min-height: 47px; border-radius: 7px; font-weight: 600; }
.btn-primary { box-shadow: 0 8px 18px rgba(27, 79, 156, 0.2); }
.btn-primary:hover { box-shadow: 0 12px 24px rgba(27, 79, 156, 0.28); }
.btn-secondary, .btn-outline { border-color: rgba(11, 37, 69, 0.22); }
.hero-trust-bar { gap: 0.75rem 1.25rem; margin-top: 2.3rem; padding-top: 1.35rem; }
.hero-trust-item { color: #516277; }
.hero-trust-item svg { color: var(--blue); }
.hero-visual-card {
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 18px;
  background: linear-gradient(150deg, rgba(19, 58, 115, 0.99), rgba(7, 29, 59, 0.99));
  box-shadow: 0 28px 55px rgba(11, 37, 69, 0.24), 0 4px 13px rgba(11, 37, 69, 0.12); transform: rotate(1.2deg);
}
.hero-visual-card > * { position: relative; }
.hero-visual-card::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: inherit; pointer-events: none; }
.hero-card-header { padding-bottom: 1.1rem; margin-bottom: 1.4rem; }
.hero-helpline-box { padding: 1.15rem; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.hero-helpline-btn { border-radius: 6px; padding: 0.6rem 0.9rem; }
.hero-feature-tag { line-height: 1.45; }

/* Impact figures form a confident pause between the opening and the work. */
.stat-strip { position: relative; background: var(--ink); overflow: hidden; }
.stat-strip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 79, 156, 0.4), transparent 50%, rgba(179, 134, 11, 0.14)); pointer-events: none; }
.stat-strip .container, .stat-grid { position: relative; }
.stat-grid { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.stat-item { padding: 0.25rem clamp(0.8rem, 2vw, 1.5rem); }
.stat-item + .stat-item { border-left-color: rgba(255, 255, 255, 0.15); }
.stat-num { font-size: clamp(2.2rem, 3.7vw, 3.45rem); letter-spacing: -0.055em; }
.stat-label { max-width: 16rem; line-height: 1.45; }

/* Cards now share a subtle elevation and a consistent, tactile rhythm. */
.pillar-grid, .card-grid, .quote-grid { gap: 1.25rem; }
.pillar, .card, .quote-card { border-radius: 12px; }
.pillar { border-top: 3px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.pillar:hover { border-top-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pillar-num, .card-header .tag, .post-date { letter-spacing: 0.045em; }
.pillar-title, .card-title { letter-spacing: -0.022em; line-height: 1.22; }
.card { border-color: rgba(11, 37, 69, 0.1); box-shadow: 0 4px 12px rgba(11, 37, 69, 0.035); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(27, 79, 156, 0.28); box-shadow: 0 16px 28px rgba(11, 37, 69, 0.1); }
.card-body, .pillar-desc, .post-excerpt { line-height: 1.65; }
.callout { border-radius: 14px; border-left: 4px solid var(--gold); box-shadow: 0 9px 20px rgba(11, 37, 69, 0.055); }
.quote-card { box-shadow: 0 5px 14px rgba(11, 37, 69, 0.045); border: 1px solid rgba(11, 37, 69, 0.08); }
.quote-text { font-size: 1.02rem; line-height: 1.72; }
.partner-logo-box { border-radius: 8px; font-weight: 600; }
.cta-band { background: linear-gradient(115deg, var(--ink) 0%, #123a73 58%, #1b4f9c 100%); }

@media (max-width: 900px) {
  .hero-visual-card { transform: none; }
  .display-title { max-width: 16ch; }
}
@media (max-width: 640px) {
  .section-hero { padding-top: 3.5rem; padding-bottom: 3.75rem; }
  .display-title { font-size: clamp(2.45rem, 11vw, 3.25rem); line-height: 1.07; }
  .lead-text { font-size: 1.0625rem; }
  .stat-grid { padding-top: 1.65rem; padding-bottom: 1.65rem; }
  .stat-item { padding: 0.4rem 0.65rem; }
  .stat-item + .stat-item { border-left-color: rgba(255, 255, 255, 0.12); }
  .pillar:hover, .card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-card, .pillar, .card, .btn { transition: none; }
  .hero-pulse-dot::after { animation: none; }
}

/* ==========================================================================
   Shared motion & small-screen resilience
   ========================================================================== */

/* Motion is intentionally short and structural: it gives orientation on page
   arrival without turning the site into a moving target. */
@keyframes lif-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lif-soft-in {
  from { opacity: 0; filter: blur(3px); }
  to { opacity: 1; filter: blur(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .page-header > .container,
  .section-hero .hero-content {
    animation: lif-rise-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .section-hero .hero-visual-card {
    animation: lif-rise-in 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .stat-item {
    animation: lif-soft-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .stat-item:nth-child(2) { animation-delay: 0.06s; }
  .stat-item:nth-child(3) { animation-delay: 0.12s; }
  .stat-item:nth-child(4) { animation-delay: 0.18s; }

  .btn-primary:hover,
  .btn-gold:hover,
  .btn-outline:hover {
    transform: translateY(-2px);
  }

  .partner-logo-box:hover {
    transform: translateY(-2px);
  }

  .post-title a,
  .card-footer a,
  .footer-links a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
  }
}

/* These shared guardrails apply to articles, forms, cards and third-party
   embeds across every static page. */
main :where(input, select, textarea, button) {
  max-width: 100%;
}

main :where(p, li, a, h1, h2, h3, h4, h5, h6, span) {
  overflow-wrap: anywhere;
}

.card-footer,
.event-card-footer,
.person-footer,
.lif-popup-actions,
.footer-bottom {
  gap: 0.75rem;
}

.event-card-grid,
.partner-grid,
.quote-grid,
.team-grid,
.card-grid,
.pillar-grid {
  min-width: 0;
}

.post-article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .page-header h1 {
    font-size: clamp(2rem, 9vw, 2.85rem);
    line-height: 1.1;
  }

  .page-header p,
  .section-sub {
    max-width: 100%;
  }

  .event-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .partner-logo-box {
    min-height: 4.5rem;
    display: grid;
    place-items: center;
    padding: 0.8rem 0.65rem;
    font-size: 0.72rem;
  }

  .card-footer,
  .event-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-article-body {
    font-size: 1.03rem;
    line-height: 1.76;
  }

  .post-article-body h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .post-article-body h2 { font-size: clamp(1.45rem, 6.5vw, 1.75rem); margin-top: 2rem; }
  .post-article-body h3 { font-size: 1.25rem; }
  .post-article-body pre { margin: 1.5rem 0; padding: 1rem; font-size: 0.78rem; }
  .post-article-body blockquote { margin: 1.5rem 0; padding: 1rem 1.15rem; }
  .post-article-body .width-50pct,
  .post-article-body .width-75pct { max-width: 100% !important; }

  .lif-cookie-banner { padding: 1rem; }
  .lif-cookie-actions { width: 100%; }
  .lif-cookie-actions .btn { flex: 1 1 10rem; }
}

@media (max-width: 400px) {
  .partner-grid { grid-template-columns: 1fr; }
  .gov-notice-tag { display: none; }
  .gov-notice-inner { gap: 0.3rem; }
  .stat-label { font-size: 0.72rem; }
}

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

/* Phone-first finishing pass ------------------------------------------------
   These rules favour the narrowest layouts first: clear hierarchy, comfortable
   touch targets, and no horizontal traps on 320–480px devices. */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 5.25rem;
  }

  body {
    line-height: 1.6;
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .site-header,
  .header-inner {
    height: 64px;
  }

  .nav-menu,
  .mobile-nav-backdrop {
    top: 64px;
  }

  .nav-menu {
    max-height: calc(100dvh - 64px);
    padding: 1rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  }

  .nav-link {
    min-height: 48px;
    padding: 0.7rem 0.85rem;
  }

  .header-cta .btn,
  .mobile-drawer-helpline {
    min-height: 48px;
  }

  .section-pad {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-pad-sm {
    padding-top: 2.15rem;
    padding-bottom: 2.15rem;
  }

  .page-header {
    padding-top: 2.35rem;
    padding-bottom: 2.1rem;
  }

  .page-header h1,
  .display-title {
    max-width: 100%;
    text-wrap: balance;
  }

  .section-sub {
    margin-bottom: 1.5rem;
  }

  .hero-trust-bar {
    width: 100%;
    padding-top: 1.15rem;
  }

  .hero-trust-item {
    width: 100%;
  }

  .hero-visual-card {
    width: 100%;
  }

  .stat-grid {
    gap: 0;
  }

  .stat-item {
    min-height: 7.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .stat-item:nth-child(odd) {
    border-left: 0;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .card-grid,
  .pillar-grid,
  .person-grid,
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card,
  .pillar,
  .person,
  .quote-card {
    padding: 1.2rem;
  }

  .card-header {
    gap: 0.75rem;
  }

  .card-footer {
    gap: 0.6rem;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
  }

  .card-footer a,
  .post-title a,
  .event-card-title a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .post-row {
    padding: 1.15rem 0;
  }

  .post-row:hover {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .post-title {
    font-size: 1.12rem;
  }

  .event-card-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .event-card-body {
    padding: 1.2rem;
  }

  .event-meta-line {
    align-items: flex-start;
    flex-wrap: wrap;
    line-height: 1.5;
  }

  .program-block {
    padding: 2.25rem 0;
  }

  .program-meta,
  .contact-form-card {
    padding: 1.15rem !important;
  }

  .form-actions,
  .lif-popup-actions {
    width: 100%;
  }

  .form-actions .btn,
  .lif-popup-actions .btn,
  .lif-popup-actions .lif-popup-cta {
    width: 100%;
  }

  .site-footer {
    padding-top: 3rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .footer-col h4,
  .footer-col h3 {
    margin-bottom: 0.65rem;
  }

  .footer-links {
    gap: 0.15rem;
  }

  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .brand-logo-img {
    max-width: 138px;
    height: 32px;
  }

  .hero-badge-pill {
    max-width: 100%;
    align-items: flex-start;
    line-height: 1.4;
  }

  .hero-helpline-box {
    padding: 1rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-item + .stat-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }
}

/* ==========================================================================
   Public-site visual system — shared polish for every page
   ========================================================================== */

:root {
  --surface-soft: #F7FAFE;
  --surface-warm: #FFFCF5;
  --shadow-lift: 0 18px 38px rgba(11, 37, 69, 0.09), 0 3px 8px rgba(11, 37, 69, 0.04);
}

::selection {
  color: #FFFFFF;
  background: var(--blue);
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 14px rgba(11, 37, 69, 0.045);
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.005em;
}

.nav-link:not(.active)::after {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-header {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.25rem, 6vw, 5rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.25rem);
  background: linear-gradient(120deg, var(--surface-warm) 0%, #F5F9FF 55%, var(--sky) 100%);
}

.page-header::after {
  content: '';
  position: absolute;
  width: 28rem;
  height: 28rem;
  top: -20rem;
  right: -9rem;
  border: 1px solid rgba(27, 79, 156, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgba(27, 79, 156, 0.035);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  max-width: 18ch;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-header p {
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  color: #52657B;
}

.section-tint {
  background: linear-gradient(180deg, #F7FAFE 0%, #EEF4FC 100%);
}

.btn {
  letter-spacing: 0.005em;
  box-shadow: 0 1px 1px rgba(11, 37, 69, 0.04);
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, 0.72);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--sky);
}

.tag {
  font-weight: 600;
  border-radius: 999px;
}

.card,
.person,
.event-card,
.quote-card,
.program-meta,
.contact-form-card {
  border-color: rgba(11, 37, 69, 0.11);
}

.card,
.person,
.event-card,
.quote-card {
  box-shadow: 0 3px 10px rgba(11, 37, 69, 0.035);
}

.card-title a,
.event-card-title a,
.post-title a {
  text-decoration: none;
}

.card-title a:hover,
.event-card-title a:hover,
.post-title a:hover {
  color: var(--blue);
}

.person-avatar {
  box-shadow: 0 6px 14px rgba(11, 37, 69, 0.1);
}

.person-name,
.event-card-title,
.post-title {
  letter-spacing: -0.018em;
}

.filter-strip {
  padding: 0.85rem;
  background: rgba(247, 250, 254, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-btn {
  min-height: 38px;
}

.search-input {
  min-height: 40px;
  border-radius: 9px;
}

.post-row {
  transition: background-color 0.2s ease, padding 0.2s ease, margin 0.2s ease;
}

.post-date {
  color: var(--blue-deep);
  font-weight: 600;
}

.event-card-img {
  background: linear-gradient(135deg, var(--sky), #D9E7F9);
}

.event-date-badge {
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.events-quick-nav {
  border-top: 1px solid rgba(11, 37, 69, 0.05);
}

.form-group label,
.field label {
  color: var(--blue-deep);
}

.form-input,
.form-select,
.form-textarea,
.input,
.select,
.textarea {
  border-radius: 8px;
  background: #FCFDFF;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover,
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #9FB7D8;
}

.post-article-body {
  color: #243B55;
}

.post-article-body h1,
.post-article-body h2,
.post-article-body h3 {
  letter-spacing: -0.026em;
}

.post-article-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(27, 79, 156, 0.4);
  text-underline-offset: 0.15em;
}

.post-article-body a:hover {
  text-decoration-color: currentColor;
}

.site-footer {
  background: linear-gradient(145deg, #06172C 0%, #0B2545 62%, #123A73 130%);
}

.footer-col h4,
.footer-col h3 {
  color: #FFFFFF;
}

.footer-links a,
.footer-bottom a {
  text-underline-offset: 0.18em;
}

@media (max-width: 640px) {
  .page-header::after {
    width: 19rem;
    height: 19rem;
    top: -14rem;
    right: -8rem;
  }

  .filter-strip {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .events-quick-nav {
    top: 64px;
  }

  .event-nav-pill {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
  }

  .quote-author {
    align-items: flex-start;
  }
}

/* Mobile-first public-site polish ----------------------------------------- */
@media (max-width: 860px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section-pad { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .section-pad-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .page-header { padding-top: 3rem; padding-bottom: 2.5rem; }
  .page-header h1 {
    font-size: clamp(2.15rem, 9vw, 3.25rem);
    line-height: 1.06;
    text-wrap: balance;
  }
  .page-header .section-sub { font-size: 1.05rem; line-height: 1.65; }
  .contact-grid, .program-grid, .event-detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .program-meta { position: static !important; padding: 1.25rem; }
  .cta-inner { align-items: stretch; gap: 1.25rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .featured-post-content, .blog-card-body, .event-card-body { padding: 1.25rem; }
  .featured-post-title { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .featured-post-excerpt { font-size: 1rem; margin-bottom: 1.25rem; }
  .featured-post-img-wrap { min-height: 200px; }
  .blog-grid, .event-card-grid, .card-grid, .quote-grid, .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .card, .pillar, .quote-card { padding: 1.25rem; }
  .card-title, .pillar-title, .event-card-title, .blog-card-title {
    font-size: 1.18rem;
    line-height: 1.28;
  }
  .card-footer, .event-card-footer, .blog-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .post-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding: 1.25rem 0;
  }
  .post-tag-wrap { text-align: left; }
  .post-title { font-size: 1.15rem; }
  .filter-strip, .blog-controls-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
  }
  .filter-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .filter-tags::-webkit-scrollbar { display: none; }
  .filter-btn { min-height: 44px; flex: 0 0 auto; }
  .search-wrap { min-width: 0; width: 100%; }
  .search-input { min-height: 46px; font-size: 16px; }
  .events-section-header { margin-bottom: 1.5rem; }
  .events-nav-pills { padding: 0 1.25rem; margin: 0 -1.25rem; }
  .event-card-img { height: 200px; }
  .form-grid, .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .contact-form-card { padding: 1.25rem !important; }
  .form-input, .form-select, .form-textarea, .input, .select, .textarea {
    min-height: 48px;
    font-size: 16px;
  }
  .form-textarea, .textarea { min-height: 135px; }
  .site-footer { padding-top: 3.25rem; padding-bottom: 1.75rem; }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-col h4, .footer-col h3 { margin-bottom: 0.85rem; }
  .footer-links { gap: 0.25rem; }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .social-btn { width: 44px; height: 44px; }
  .footer-legal-links { flex-wrap: wrap; gap: 0.65rem 1rem; }
  .registration-modal {
    width: calc(100vw - 1.25rem);
    max-height: calc(100dvh - 1.25rem);
    padding: 1.25rem;
    border-radius: 1rem;
  }
  .modal-header { margin-bottom: 1.1rem; padding-bottom: 1rem; }
  .modal-close-btn { min-width: 44px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section-pad { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .section-pad-sm { padding-top: 2.15rem; padding-bottom: 2.15rem; }
  .page-header { padding-top: 2.5rem; padding-bottom: 2.15rem; }
  .hero-badge-pill { width: 100%; }
  .btn-group .btn, .homepage-section-heading > .btn { width: 100%; }
  .callout { margin: 1.5rem 0; padding: 1.15rem; }
  .quote-text { font-size: 0.98rem; }
  .events-nav-pills { padding: 0 1rem; margin: 0 -1rem; }
}

@media (max-width: 860px) {
  .section-hero .hero-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content,
  .hero-visual-card,
  .hero-card-header,
  .hero-helpline-info,
  .hero-feature-tag {
    min-width: 0;
  }

  .hero-card-header {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-signal-meter {
    margin-left: auto;
  }
}
