/* ============================================================
   GA Responsible Gambling Platform — Design System
   Gambling Authority of Botswana
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — GA Official Palette (blue + red only) */
  --ga-primary:       #001A57;
  --ga-primary-light: #0d2d6b;
  --ga-secondary:     #d91f26;
  --ga-secondary-light:#e8464c;
  --ga-accent:        #313D85;
  --ga-accent-light:  #4a549e;
  --ga-warm:          #313D85;
  --ga-warm-light:    #4a549e;
  --ga-red:           #d91f26;
  --ga-red-light:     #e8464c;

  /* Surfaces */
  --surface-bg:       #f5f7fb;
  --surface-card:     #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted:    #f0f3f7;
  --surface-dark:     #001A57;
  --surface-hero:     linear-gradient(135deg, #001A57 0%, #0d2d6b 60%, #313D85 100%);

  /* Text */
  --text-primary:     #1a2332;
  --text-secondary:   #475569;
  --text-muted:       #94a3b8;
  --text-inverse:     #ffffff;
  --text-link:        #313D85;
  --text-link-hover:  #001A57;

  /* Status */
  --status-active:    #16a34a;
  --status-active-bg: #dcfce7;
  --status-warning:   #d97706;
  --status-warning-bg:#fef3c7;
  --status-danger:    #dc2626;
  --status-danger-bg: #fee2e2;
  --status-info:      #0ea5e9;
  --status-info-bg:   #e0f2fe;

  /* Borders */
  --border-light:     #e2e8f0;
  --border-medium:    #cbd5e1;
  --border-focus:     #001A57;

  /* Radius */
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;
  --radius-full:      9999px;

  /* Shadows */
  --shadow-sm:        0 1px 2px rgba(0,0,0,.05);
  --shadow-md:        0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:        0 10px 30px rgba(0,0,0,.1);
  --shadow-xl:        0 20px 50px rgba(0,0,0,.12);
  --shadow-glow:      0 0 0 3px rgba(0,26,87,.2);

  /* Typography */
  --font-sans:        'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:     'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max:    1180px;
  --container-narrow: 800px;
  --container-wide:   1400px;

  /* Transitions */
  --ease-out:         cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:    150ms;
  --duration-normal:  250ms;
  --duration-slow:    400ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--surface-bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-link); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--text-link-hover); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.display-xl { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h1, .h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2, .h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4, .h4 { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-center { text-align: center; }
.text-accent { color: var(--ga-accent); }
.text-warm { color: var(--ga-warm); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.8; }

/* ---------- Layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-6); }


.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-10) 0; }
.section-lg { padding: var(--space-24) 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .md-hidden { display: none !important; }
  .section { padding: var(--space-10) 0; }
}

@media (min-width: 769px) {
  .sm-only { display: none !important; }
}

/* ---------- Crisis Banner ---------- */
.crisis-banner {
  background: var(--ga-warm);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-6);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.crisis-banner a {
  color: var(--text-inverse);
  text-decoration: underline;
  font-weight: 700;
}

/* ---------- Top Navigation ---------- */
.topnav {
  background: var(--surface-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.topnav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  min-height: 72px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.topnav-brand img {
  height: 36px;
  width: auto;
}
.topnav-brand-text {
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}
.topnav-brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.7;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.topnav-links a {
  color: rgba(255,255,255,.85);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}
.topnav-links a:hover,
.topnav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.topnav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile menu toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 960px) {
  .mobile-menu-btn { display: block; }
  .topnav-links { display: none; }
  .topnav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .topnav-cta .md-hidden { display: none; }
}

/* ---------- Hero Section ---------- */
.hero {
  background: var(--surface-hero);
  color: var(--text-inverse);
  padding: var(--space-14) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(49,61,133,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49,61,133,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-split {
  position: relative;
  z-index: 1;
}
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero-image {
  position: absolute;
  right: -5%;
  top: -40%;
  bottom: -40%;
  width: 55%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.3) 25%, rgba(0,0,0,.7) 60%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.3) 25%, rgba(0,0,0,.7) 60%, black 100%);
  opacity: 0.6;
}
@media (max-width: 900px) {
  .hero-split { text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-text { max-width: 100%; }
  .hero-image { display: none; }
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  color: #C8D6E8;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ga-accent);
  color: var(--text-inverse);
  border-color: var(--ga-accent);
}
.btn-primary:hover {
  background: #242d6a;
  border-color: #242d6a;
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--ga-accent);
  color: var(--text-inverse);
  border-color: var(--ga-accent);
}
.btn-accent:hover {
  background: #242d6a;
  border-color: #242d6a;
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-warm {
  background: var(--ga-warm);
  color: var(--text-inverse);
  border-color: var(--ga-warm);
}
.btn-warm:hover {
  background: #242d6a;
  border-color: #242d6a;
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
  color: var(--text-inverse);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-outline-dark:hover {
  background: var(--surface-muted);
  border-color: var(--ga-accent);
  color: var(--ga-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ga-accent);
  border-color: transparent;
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover {
  background: rgba(49,61,133,.08);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-body { padding: var(--space-6); }
.card-body-lg { padding: var(--space-8); }

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  background: var(--surface-muted);
}

/* Feature cards (like GambleAware tools section) */
.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ga-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-medium);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
}
.feature-card-icon.teal { background: rgba(49,61,133,.1); color: var(--ga-accent); }
.feature-card-icon.blue { background: rgba(49,61,133,.08); color: var(--ga-primary); }
.feature-card-icon.warm { background: rgba(49,61,133,.1); color: var(--ga-accent); }
.feature-card-icon.red { background: rgba(214,40,40,.1); color: var(--ga-red); }
.feature-card-icon.green { background: rgba(22,163,74,.1); color: var(--status-active); }

.feature-card h3 {
  margin-bottom: var(--space-3);
  font-size: 1.2rem;
}
.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* Stat cards */
.stat-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  text-align: center;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ga-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Quick-access cards (like GamCare contact options) */
.quick-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}
.quick-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--ga-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.quick-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(49,61,133,.1);
  color: var(--ga-accent);
}
.quick-card-content h4 { font-size: 1rem; margin-bottom: 2px; }
.quick-card-content p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

/* ---------- Step Cards ---------- */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  counter-reset: steps;
}
.step-item {
  display: flex;
  gap: var(--space-5);
  counter-increment: steps;
  align-items: flex-start;
}
.step-item::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--ga-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-content h4 { margin-bottom: var(--space-2); }
.step-content p { color: var(--text-secondary); }

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: #8b95a5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-6) 0;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #bfc5ce;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #9ca3af;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ga-accent);
  box-shadow: 0 0 0 3px rgba(49,61,133,.1);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--status-danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

.form-textarea { min-height: 100px; resize: vertical; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ga-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.9rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.form-radio:hover { border-color: var(--ga-accent); }
.form-radio.selected {
  border-color: var(--ga-accent);
  background: rgba(49,61,133,.04);
}
.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ga-accent);
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-error {
  color: var(--status-danger);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

.form-success {
  color: var(--status-active);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

.episode-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.episode-radio-card:hover {
  border-color: var(--ga-accent);
  background: rgba(49,61,133,.02);
}
.episode-radio-card input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ga-accent);
  flex-shrink: 0;
}
.episode-radio-body {
  flex: 1;
  min-width: 0;
}

/* ---------- Alerts / Banners ---------- */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.alert-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert-info { background: var(--status-info-bg); color: #0369a1; border: 1px solid #bae6fd; }
.alert-success { background: var(--status-active-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: var(--status-warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: var(--status-danger-bg); color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-active { background: var(--status-active-bg); color: #166534; }
.badge-cancelled { background: var(--status-danger-bg); color: #991b1b; }
.badge-pending { background: var(--status-warning-bg); color: #92400e; }
.badge-warning { background: var(--status-warning-bg); color: #92400e; }
.badge-info { background: var(--status-info-bg); color: #0369a1; }
.badge-accent { background: rgba(49,61,133,.1); color: #313D85; }
.badge-muted { background: var(--surface-muted); color: var(--text-secondary); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 10px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--ga-accent);
  border: 2px solid var(--surface-bg);
}
.timeline-item.active::before { background: var(--status-active); }
.timeline-item.cancelled::before { background: var(--status-danger); }
.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.timeline-content {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--border-light);
}

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.table-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.data-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.data-table tbody tr:hover { background: rgba(49,61,133,.03); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Testimonial / Quote cards ---------- */
.quote-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-light);
  position: relative;
}
.quote-card::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--ga-accent);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-5);
  font-family: Georgia, serif;
}
.quote-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  font-style: italic;
}
.quote-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--border-light);
  margin-bottom: var(--space-6);
}
.tab-btn {
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  color: var(--ga-accent);
  border-bottom-color: var(--ga-accent);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--duration-normal) var(--ease-out);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ---------- Sidebar Layout (Portals) ---------- */
.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.portal-sidebar {
  background: var(--surface-dark);
  color: var(--text-inverse);
  padding: var(--space-6) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--space-4);
  text-decoration: none;
}
.sidebar-brand img { height: 32px; }
.sidebar-brand span {
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.sidebar-section {
  padding: var(--space-4) var(--space-5);
}
.sidebar-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
}
.sidebar-link.active {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-left-color: var(--ga-accent);
  font-weight: 600;
}
.sidebar-link-icon {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.8;
}

.portal-main {
  background: var(--surface-bg);
  min-height: 100vh;
}
.portal-topbar {
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.portal-topbar-title { font-weight: 700; font-size: 1.1rem; }
.portal-topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.portal-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--ga-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.portal-content {
  padding: var(--space-8);
  max-width: 1200px;
}

@media (max-width: 960px) {
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar {
    position: fixed;
    left: -280px;
    width: 260px;
    transition: left var(--duration-normal) var(--ease-out);
    z-index: 200;
  }
  .portal-sidebar.open { left: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,.8);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}
.footer-brand-text {
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-4);
}
.footer-heading {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  transition: color var(--duration-fast);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

/* ---------- Support Banner ---------- */
.support-banner {
  background: linear-gradient(135deg, var(--ga-accent), #242d6a);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
}
.support-banner h2 {
  color: var(--text-inverse);
  margin-bottom: var(--space-3);
}
.support-banner p {
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-6) 0;
  border: none;
}

/* ---------- Tag / Chip ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface-muted);
  color: var(--text-secondary);
}

/* ---------- Loading / Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-muted) 25%, #e8ecf1 50%, var(--surface-muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Utility classes ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-md); }
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Animation ---------- */
.fade-in {
  animation: fadeIn var(--duration-slow) var(--ease-out) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-delay-1 { animation-delay: 100ms; }
.fade-in-delay-2 { animation-delay: 200ms; }
.fade-in-delay-3 { animation-delay: 300ms; }
.fade-in-delay-4 { animation-delay: 400ms; }

/* ---------- Section backgrounds ---------- */
.bg-white { background: var(--surface-card); }
.bg-muted { background: var(--surface-muted); }
.bg-dark { background: var(--surface-dark); color: var(--text-inverse); }
.bg-accent-soft { background: rgba(49,61,133,.04); }

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ga-accent);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--ga-accent);
}

/* Section heading */
.section-heading {
  margin-bottom: var(--space-12);
}
.section-heading h2 {
  margin-bottom: var(--space-3);
}
.section-heading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}
.section-heading.centered {
  text-align: center;
}
.section-heading.centered p {
  margin: 0 auto;
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lang-switch a {
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}
.lang-switch a.active {
  background: rgba(255,255,255,.15);
  color: white;
}

/* ═══════════════════════════════════════════════════════
   WAGTAIL CMS PUBLIC BLOCK STYLES
   These styles drive the StreamField blocks on the
   Wagtail-powered public website.
═══════════════════════════════════════════════════════ */

/* ── Shared helpers ────────────────────────────────── */
.section-pad { padding: 4rem 0; }
.wt-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ga-navy, #0a2240);
  margin-bottom: 1.5rem;
}

/* ── Hero ──────────────────────────────────────────── */
.wt-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--ga-navy, #0a2240);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.wt-hero--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 64, 0.65);
}
.wt-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 3rem 2rem;
  margin: 0 auto;
  text-align: center;
}
.wt-hero__heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.wt-hero__sub {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}
.wt-hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Stats strip ──────────────────────────────────── */
.wt-stats { background: var(--ga-teal, #007b8a); }
.wt-stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.wt-stat { text-align: center; color: #fff; }
.wt-stat__number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
}
.wt-stat__label { font-size: 0.9rem; opacity: 0.85; }

/* ── Card grid ────────────────────────────────────── */
.wt-cards { background: #f8f9fa; }
.wt-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.wt-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.wt-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.wt-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.wt-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ga-navy, #0a2240);
  margin-bottom: .5rem;
}
.wt-card__body { font-size: .9rem; color: #555; }
.wt-card__link { font-size: .85rem; font-weight: 600; color: var(--ga-teal, #007b8a); text-decoration: none; }
.wt-card__link:hover { text-decoration: underline; }

/* ── Image + Text ─────────────────────────────────── */
.wt-image-text__inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.wt-image-text--right .wt-image-text__inner { flex-direction: row-reverse; }
.wt-image-text__img { flex: 0 0 45%; }
.wt-image-text__img img { width: 100%; border-radius: 12px; object-fit: cover; }
.wt-image-text__content { flex: 1; }
@media (max-width: 767px) {
  .wt-image-text__inner { flex-direction: column !important; }
}

/* ── CTA Banner ───────────────────────────────────── */
.wt-cta { text-align: center; }
.wt-cta__inner { max-width: 700px; margin: 0 auto; padding: 0 1rem; }
.wt-cta__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.wt-cta__sub { font-size: 1.05rem; opacity: .85; }
.wt-cta--navy  { background: var(--ga-navy, #0a2240);   color: #fff; }
.wt-cta--teal  { background: var(--ga-teal, #007b8a);   color: #fff; }
.wt-cta--orange{ background: var(--ga-orange, #e87722); color: #fff; }
.wt-cta--light { background: #f0f4f8;                   color: var(--ga-navy, #0a2240); }

/* ── Announcement ─────────────────────────────────── */
.wt-announcement { max-width: 1100px; margin: 1rem auto; border-radius: 8px; }
.wt-announcement__body { display: inline; }

/* ── Rich text prose ──────────────────────────────── */
.wt-rich-text.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.8;
  color: #333;
}
.wt-rich-text.prose h2 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ga-navy, #0a2240); }
.wt-rich-text.prose a { color: var(--ga-teal, #007b8a); }

/* ── Page header (standard / resources / support) ─── */
.wt-page-header { background: linear-gradient(135deg, var(--ga-navy, #0a2240) 0%, var(--ga-teal, #007b8a) 100%); color: #fff; }
.wt-page-header h1 { font-family: 'Poppins', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.wt-page-header .lead { opacity: .88; font-size: 1.05rem; }
.wt-page-header .container { padding-top: 3rem; padding-bottom: 3rem; }

/* ── Resources grid ───────────────────────────────── */
.wt-resources-grid .card { border-radius: 10px; border: none; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
