/* ============================================================
   SOAF — main.css
   Design System: Navy / Cyan / Emerald Glassmorphic
   Fonts: Nunito (headings) + Nunito Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Nunito+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:           #0d1f3c;
  --navy-2:         #162847;
  --navy-3:         #1e3560;
  --navy-4:         #243f72;
  --cyan:           #17b8d4;
  --cyan-2:         #0fa3bc;
  --cyan-3:         #0d8fa5;
  --cyan-light:     #e8f8fb;
  --cyan-glow:      rgba(23,184,212,0.22);
  --emerald:        #10b981;
  --emerald-2:      #059669;
  --emerald-3:      #047857;
  --emerald-light:  #e6f7f2;
  --emerald-glow:   rgba(16,185,129,0.22);
  --white:          #ffffff;
  --off-white:      #f7faff;
  --grey-50:        #f8fafc;
  --grey-100:       #f1f5f9;
  --grey-200:       #e2e8f0;
  --grey-400:       #94a3b8;
  --grey-600:       #475569;
  --grey-500:       #64748b;
  --grey-800:       #1e293b;
  --text-muted:     #94a3b8;

  --glass-bg:       rgba(255,255,255,0.55);
  --glass-bg-dark:  rgba(13,31,60,0.45);
  --glass-border:   rgba(23,184,212,0.18);
  --glass-border-e: rgba(16,185,129,0.18);

  --font-heading:   'Nunito', sans-serif;
  --font-body:      'Nunito Sans', sans-serif;

  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-full: 9999px;

  --shadow-glass:   0 4px 24px rgba(13,31,60,0.08), 0 1px 4px rgba(23,184,212,0.10);
  --shadow-card:    0 2px 16px rgba(13,31,60,0.07);
  --shadow-cyan:    0 6px 24px rgba(23,184,212,0.22);
  --shadow-emerald: 0 6px 24px rgba(16,185,129,0.22);
  --shadow-navy:    0 8px 32px rgba(13,31,60,0.18);

  --transition:     all 0.22s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--grey-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select { font-family: var(--font-body); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
p  { font-size: 1rem; color: var(--grey-600); }

/* ── Glass Cards ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.glass-card:hover {
  box-shadow: var(--shadow-cyan);
  border-color: rgba(23,184,212,0.32);
  transform: translateY(-2px);
}
.glass-card-cyan {
  border-color: rgba(23,184,212,0.25);
}
.glass-card-emerald {
  border-color: rgba(16,185,129,0.25);
}
.glass-card-navy {
  background: rgba(13,31,60,0.04);
  border-color: rgba(13,31,60,0.10);
}
.glass-card-dark {
  background: var(--glass-bg-dark);
  border-color: rgba(23,184,212,0.20);
  color: var(--white);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 100%);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan-2) 0%, var(--cyan-3) 100%);
  box-shadow: 0 8px 28px rgba(23,184,212,0.35);
  transform: translateY(-1px);
}
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-2) 100%);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, var(--emerald-2) 0%, var(--emerald-3) 100%);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-light);
  border-color: var(--cyan-2);
}
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--grey-600);
}
.btn-ghost:hover {
  background: var(--grey-100);
  color: var(--navy);
}
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}
.form-label span { color: var(--cyan-2); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(23,184,212,0.12);
}
.form-input::placeholder { color: var(--grey-400); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.8rem; color: var(--grey-400); }
.form-error { font-size: 0.8rem; color: #ef4444; }

/* ── Status Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}
.badge-draft        { background: var(--grey-100); color: var(--grey-600); }
.badge-submitted    { background: var(--cyan-light); color: var(--cyan-3); }
.badge-pending      { background: #fef3c7; color: #b45309; }
.badge-review       { background: #fef3c7; color: #b45309; }
.badge-approved     { background: var(--emerald-light); color: var(--emerald-2); }
.badge-published    { background: var(--emerald-light); color: var(--emerald-3); }
.badge-testing      { background: #ede9fe; color: #7c3aed; }
.badge-completed    { background: var(--cyan-light); color: var(--cyan-2); }
.badge-rejected     { background: #fee2e2; color: #dc2626; }
.badge-suspended    { background: #fee2e2; color: #991b1b; }
.badge-cancelled    { background: var(--grey-100); color: var(--grey-600); }
.badge-onhold       { background: #fef3c7; color: #b45309; }
.badge-active       { background: var(--emerald-light); color: var(--emerald-2); }
.badge-inactive     { background: var(--grey-100); color: var(--grey-600); }

/* ── Layout Utilities ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 800px; }

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-sm { gap: 8px; }
.flex-gap-md { gap: 16px; }
.flex-gap-lg { gap: 24px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-cyan   { color: var(--cyan); }
.text-emerald{ color: var(--emerald); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--grey-400); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 40px; }

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

/* ── Animated CSS Dot Grid Background ── */
.dot-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(23,184,212,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

/* ── Diagonal Section Divider ── */
.divider-diagonal {
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}
.divider-diagonal svg { display: block; width: 100%; height: 100%; }

/* ── Cyan Accent Line ── */
.accent-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  border-radius: var(--r-full);
  margin: 12px 0 20px;
}
.accent-line-center { margin: 12px auto 20px; }

/* ── Section Title ── */
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 560px;
}

/* ── Loader ── */
#soaf-loader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#soaf-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(23,184,212,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-navy);
  border-left: 4px solid var(--cyan);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  min-width: 280px;
  max-width: 380px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast.hide {
  opacity: 0;
  transform: translateX(100%);
}
.toast-success { border-left-color: var(--emerald); }
.toast-error   { border-left-color: #ef4444; }
.toast-warning { border-left-color: #f59e0b; }
.toast-info    { border-left-color: var(--cyan); }

/* ── Input shake animation ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.shake { animation: shake 0.45s ease; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: rgba(23,184,212,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Table ── */
.soaf-table { width: 100%; border-collapse: collapse; }
.soaf-table th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
.soaf-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.soaf-table th:last-child  { border-radius: 0 var(--r-sm) 0 0; }
.soaf-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.9rem;
  color: var(--grey-800);
}
.soaf-table tr:hover td { background: var(--cyan-light); }
.soaf-table tr:last-child td { border-bottom: none; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--grey-600);
  background: var(--white);
  border: 1px solid var(--grey-200);
  transition: var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.55);
  backdrop-filter: blur(4px);
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-navy);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--grey-600);
  font-size: 1.1rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--grey-200); color: var(--navy); }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--grey-400);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--grey-400);
}
.empty-state h4 { color: var(--grey-600); margin-bottom: 8px; }
.empty-state p  { font-size: 0.9rem; }

/* ============================================================
   SINGLE PAGE BACKGROUND SYSTEM
   One fixed gradient behind everything — no section backgrounds
   ============================================================ */

body.home-page {
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Fixed full-page background ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg,
    #0d1f3c 0%,
    #162847 30%,
    #1a3058 55%,
    #0f2a4a 75%,
    #0d1f3c 100%);
  overflow: hidden;
}

/* Ambient glow orbs */
.page-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbDrift 18s ease-in-out infinite;
}
.page-bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(23,184,212,0.5), transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}
.page-bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.4), transparent 70%);
  bottom: 10%; right: -80px;
  animation-delay: -6s;
}
.page-bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -12s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Home page content wrapper ── */
.home-content {
  padding-top: 88px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* ── Hero layout ── */
.home-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 460px;
  align-items: center;
  gap: 0;
  padding: 48px 0 56px;
  min-height: 80vh;
}
.home-hero-text { position: relative; z-index: 2; }

/* Contain orb rings so they never cause horizontal scroll */
.hero-orb-wrap {
  overflow: visible;
  position: relative;
}

/* ── Stats row ── */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 32px;
}
.home-stat-card {
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: var(--transition);
  text-align: center;
}
.home-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

.home-stat-cyan    { background: rgba(23,184,212,0.12);  border-color: rgba(23,184,212,0.25); }
.home-stat-emerald { background: rgba(16,185,129,0.12);  border-color: rgba(16,185,129,0.25); }
.home-stat-violet  { background: rgba(139,92,246,0.12);  border-color: rgba(139,92,246,0.25); }
.home-stat-amber   { background: rgba(245,158,11,0.12);  border-color: rgba(245,158,11,0.25); }

.home-stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.home-stat-cyan    .home-stat-icon { background: rgba(23,184,212,0.2);  color: #5ee8f8; }
.home-stat-emerald .home-stat-icon { background: rgba(16,185,129,0.2);  color: #6ee7b7; }
.home-stat-violet  .home-stat-icon { background: rgba(139,92,246,0.2);  color: #c4b5fd; }
.home-stat-amber   .home-stat-icon { background: rgba(245,158,11,0.2);  color: #fcd34d; }

.home-stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}
.home-stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Section glass cards ── */
.home-section-card {
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin-bottom: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  position: relative;
  overflow: hidden;
}
.home-section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* Tinted variants */
.home-card-cyan-tint {
  background: rgba(23,184,212,0.07);
  border-color: rgba(23,184,212,0.18);
}
.home-card-cyan-tint::before {
  background: linear-gradient(90deg, rgba(23,184,212,0.8), rgba(16,185,129,0.4));
}
.home-card-emerald-tint {
  background: rgba(16,185,129,0.07);
  border-color: rgba(16,185,129,0.18);
}
.home-card-emerald-tint::before {
  background: linear-gradient(90deg, rgba(16,185,129,0.8), rgba(139,92,246,0.4));
}
.home-card-violet-tint {
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.18);
}
.home-card-violet-tint::before {
  background: linear-gradient(90deg, rgba(139,92,246,0.8), rgba(23,184,212,0.4));
}

/* Section headings inside cards */
.home-section-head { margin-bottom: 28px; }
.home-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--white);
  margin-bottom: 8px;
}
.home-section-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ── Inside home section cards: reset sub-component margins ── */
.home-section-card .categories-grid { margin-top: 0; }
.home-section-card .how-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Featured section header: align title block and button to top */
.home-section-card .home-section-head.flex-between {
  align-items: flex-start;
  gap: 16px;
}
.home-section-card .home-section-head.flex-between > div {
  flex: 1;
  min-width: 0;
}
.home-section-card .home-section-head.flex-between > a {
  flex-shrink: 0;
  margin-top: 4px;
}

/* Featured grid inside section card */
.home-section-card .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── How cards — navy-glass, matches page background ── */
.how-card-cyan,
.how-card-emerald,
.how-card-violet {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}
.how-card-cyan::before    { background: linear-gradient(90deg, rgba(23,184,212,0.7), rgba(23,184,212,0.2)); }
.how-card-emerald::before { background: linear-gradient(90deg, rgba(16,185,129,0.7), rgba(16,185,129,0.2)); }
.how-card-violet::before  { background: linear-gradient(90deg, rgba(139,92,246,0.7), rgba(139,92,246,0.2)); }
.how-card-cyan:hover,
.how-card-emerald:hover,
.how-card-violet:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.how-card h4 { color: var(--white); }
.how-card p  { color: rgba(255,255,255,0.65); }

/* ── Facility cards on dark bg ── */
.home-page .facility-card {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.home-page .facility-card-name     { color: var(--white); }
.home-page .facility-card-inst     { color: rgba(255,255,255,0.5); }
.home-page .facility-card-type     { color: var(--cyan); }
.home-page .facility-card-location { color: rgba(255,255,255,0.4); }
.home-page .facility-card-footer   { border-top-color: rgba(255,255,255,0.08); }
.home-page .facility-tag {
  background: rgba(23,184,212,0.18);
  color: var(--cyan);
}
.home-page .facility-card .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.75);
}
.home-page .facility-card .btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--white);
  color: var(--white);
}

/* ── Category pills on dark bg ── */
.home-page .category-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
}
.home-page .category-pill:hover {
  background: rgba(23,184,212,0.18);
  border-color: rgba(23,184,212,0.45);
  color: var(--white);
}

/* ── Navbar always transparent on home ── */
body.home-page .soaf-nav.scrolled {
  background: rgba(13,31,60,0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(23,184,212,0.15);
}
body.home-page .soaf-nav.scrolled .nav-brand-name { color: var(--white); }
body.home-page .soaf-nav.scrolled .nav-link { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.15); }
body.home-page .soaf-nav.scrolled .nav-link:hover { color: var(--white); background: rgba(23,184,212,0.18); border-color: rgba(23,184,212,0.5); }
body.home-page .soaf-nav.scrolled .nav-link.active { color: var(--cyan); background: rgba(23,184,212,0.15); border-color: rgba(23,184,212,0.5); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .home-hero-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0 48px;
  }
  .hero-orb-wrap   { display: none; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-section-card { padding: 24px 20px; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .how-grid,
  .home-section-card .how-grid  { grid-template-columns: 1fr; }
  .home-section-card .grid-3    { grid-template-columns: 1fr; }
}
