/* ═══════════════════════════════════════════════════════════════════════════
   Bet Ha-Tefilla  —  Design System v4
   Direction: Refined / Editorial — clean white canvas, navy + gold accents
   Fonts: Playfair Display (headings) + Inter (body)
   Inspired by: exactly.ai, kriss.ai — generous space, crisp type, intentional colour
══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --primary:        #1A3A5C;
  --primary-dark:   #0F2540;
  --primary-light:  #2A5480;
  --primary-tint:   #EEF3F8;
  --accent:         #C9943B;
  --accent-light:   #E0B060;
  --accent-dark:    #A87830;
  --accent-tint:    #FDF6EC;

  /* Surface */
  --bg:             #FFFFFF;
  --bg-alt:         #F9FAFB;
  --bg-dark:        #0E1E2E;
  --bg-white:       #FFFFFF;

  /* Text */
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --text-white:     #FFFFFF;

  /* Status colors */
  --success:        #16a34a;
  --success-tint:   #ECFDF5;
  --danger:         #dc2626;
  --danger-tint:    #fef2f2;
  --warning:        #d97706;
  --warning-tint:   #fffbeb;

  /* Border */
  --border:         #E5E7EB;
  --border-strong:  #D1D5DB;

  /* Radius */
  --r-xs:    4px;
  --r-sm:    6px;
  --r:       10px;
  --r-lg:    16px;
  --r-xl:    24px;
  --r-2xl:   32px;
  --r-full:  9999px;

  /* Aliases for legacy classes */
  --radius-sm:   var(--r-xs);
  --radius:      var(--r);
  --radius-lg:   var(--r-lg);
  --radius-xl:   var(--r-xl);
  --radius-full: var(--r-full);

  /* Shadows — very clean, subtle */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 36px rgba(0,0,0,.11);
  --shadow-xl:  0 24px 60px rgba(0,0,0,.15);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:          0.25s var(--ease);
  --t-slow:     0.5s  var(--ease);

  /* Typography */
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:        1200px;
  --max-w-wide:   1400px;
  --max-w-narrow: 740px;
  --header-h:     72px;
}

/* ── 2. Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
/* Thin font on paragraphs/body copy, slightly heavier on interactive labels */
p, li, span, td, th { font-weight: 300; }
strong, b { font-weight: 600; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; line-height: inherit; }

/* ── 3. Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
  color: var(--primary);   /* Brand navy on all titles */
  font-weight: 700;
  letter-spacing: -.01em;
}
/* Keep hero/dark-section titles white */
.hero h1, .hero h2,
.page-hero h1,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4,
.bg-accent  h1, .bg-accent  h2, .bg-accent  h3 { color: #fff; }
[style*="background:#1A3A5C"] h1,
[style*="background:#1A3A5C"] h2,
[style*="background:#1A3A5C"] h3,
[style*="background:linear-gradient"] h1,
[style*="background:linear-gradient"] h2 { color: #fff; }
/* Fluid type scale */
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .9rem; }

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

/* Display overrides */
.display-xl { font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.05; letter-spacing: -.02em; }
.display-lg { font-size: clamp(2.2rem, 5vw, 4rem);   line-height: 1.08; letter-spacing: -.02em; }

/* Utility text classes */
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.text-lg      { font-size: 1.125rem; }

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.75rem;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--primary);
  background: var(--accent-tint);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 2rem 0;
}

/* ── 4. Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.container--wide   { max-width: var(--max-w-wide); }
.container--narrow { max-width: var(--max-w-narrow); }

/* Sections — 100px max vertical rhythm */
.section    { padding-block: clamp(3rem, 5vw, 6.25rem); }
.section--sm { padding-block: clamp(2rem, 3.5vw, 3.5rem); }
.section--lg { padding-block: clamp(4rem, 7vw, 8rem); }
.section--flush { padding-block: 0; }

/* Section header */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-header--center { text-align: center; }
.section-header--center .accent-line { margin-inline: auto; }

/* Grids */
.grid   { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

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

/* ── 5. Accent line ───────────────────────────────────────────────────────── */
.accent-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
  margin-bottom: 1.5rem;
  display: block;
}
.accent-line--wide  { width: 72px; }
.accent-line--center { margin-inline: auto; }

/* ── 6. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .01em;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,58,92,.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,58,92,.3);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(201,148,59,.25);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,148,59,.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
  padding-inline: .5rem;
}
.btn-ghost:hover { background: var(--primary-tint); }

.btn-sm  { padding: .45rem 1.1rem; font-size: .8rem; }
.btn-xs  { padding: .25rem .65rem; font-size: .75rem; border-radius: var(--r-sm); }
.btn-danger {
  background: var(--danger); color: #fff; border-color: var(--danger);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-lg  { padding: .9rem 2.25rem; font-size: .95rem; }
.btn-xl  { padding: 1rem 2.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-group  { display: flex; flex-wrap: wrap; gap: .875rem; }
.btn-group--center { justify-content: center; }

/* ── 7. Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: transparent;
  transform: translateY(-3px);
}
/* Works for both <img> and <div> image containers */
.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
/* When card__image is a <div> (gradient/icon placeholder) */
div.card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}
.card__image--square { aspect-ratio: 1; }
/* card__body fills remaining card height and stacks its children */
.card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__eyebrow { margin-bottom: .5rem; }
.card__title  { margin-bottom: .6rem; font-size: 1.1rem; }
.card__meta {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: .7rem;
}
.card__meta-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.card__text  { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.25rem; line-height: 1.6; }
.card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card--featured { border-color: var(--accent); }
.card--plain { border: none; box-shadow: none; border-radius: var(--r-lg); }
.card--plain:hover { box-shadow: var(--shadow); }

/* ── 8. Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t);
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header.scrolled .nav-link   { color: var(--text); }
.site-header.scrolled .logo-text  { color: var(--primary); }
.site-header.scrolled .logo-sub   { color: var(--text-muted); }
.site-header.scrolled .nav-toggle { color: var(--primary); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; }
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  transition: color var(--t);
}
.logo-sub {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .07em;
  opacity: .75;
  display: block;
  font-family: var(--ff-body);
  text-transform: uppercase;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: .1rem; }
.nav-link {
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  transition: all var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-light);
  background: rgba(255,255,255,.09);
}
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--accent-dark);
  background: var(--accent-tint);
}

.header-actions { display: flex; align-items: center; gap: .6rem; }

/* Sign In button in the desktop header gets a white background */
.header-actions .btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.header-actions .btn-outline:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: #fff;
  transition: all var(--t);
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 999;
  flex-direction: column;
  padding: calc(var(--header-h) + 1.5rem) 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .38s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link {
  font-size: 1.25rem;
  font-weight: 500;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-radius: 0;
  display: block;
  color: rgba(255,255,255,.85);
}
.mobile-nav .nav-link:hover, .mobile-nav .nav-link.active {
  color: var(--accent-light);
  background: none;
}
.mobile-nav .nav-link--give { color: var(--accent-light) !important; font-weight: 700; }

/* Mobile close button */
.mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  transition: all var(--t);
}
.mobile-nav__close:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── 9. Hero ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--primary-dark);
}
.hero__bg img, .hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(10,26,46,.88) 0%,
    rgba(26,58,92,.6)  55%,
    rgba(15,37,64,.4)  100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-block: 4rem;
}
.hero__eyebrow { color: var(--accent-light); margin-bottom: 1.25rem; }
.hero__title {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.07;
  margin-bottom: 1.5rem;
  letter-spacing: -.025em;
}
.hero__title em { font-style: italic; color: var(--accent-light); }
.hero__text {
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.75;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(7px); }
}

/* ── 10. Page Hero (inner pages) ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: calc(var(--header-h) + 4.5rem) 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* decorative ring */
.page-hero::before {
  content: '';
  position: absolute;
  inset: -60% -20%;
  background: radial-gradient(ellipse at 70% 40%, rgba(201,148,59,.12) 0%, transparent 65%);
  pointer-events: none;
}
/* bottom wave */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 56px;
  background: var(--bg);
  clip-path: ellipse(58% 100% at 50% 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 580px; margin-inline: auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--accent-light); }

/* ── 11. Section backgrounds ─────────────────────────────────────────────── */
.bg-white   { background: #fff; }
.bg-alt     { background: var(--bg-alt); }
.bg-light   { background: var(--bg-alt); }
.bg-primary { background: var(--primary); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3 { color: #fff; }
.bg-dark    { background: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-accent  { background: var(--accent); color: #fff; }
.bg-tint    { background: var(--primary-tint); }

/* ── 12. Pillar / Feature tiles ──────────────────────────────────────────── */
.pillar {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t);
  transform-origin: left;
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.pillar:hover::after { transform: scaleX(1); }

.pillar__icon {
  width: 60px;
  height: 60px;
  background: var(--primary-tint);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  transition: background var(--t), color var(--t);
}
.pillar:hover .pillar__icon {
  background: var(--primary);
  color: #fff;
}
.pillar__icon .material-icons,
.pillar__icon .material-icons-outlined,
.pillar__icon .material-icons-round,
.pillar__icon i,
.pillar__icon .fa-solid,
.pillar__icon .fa-regular,
.pillar__icon .fa-brands { font-size: 1.6rem !important; }
.pillar__title  { margin-bottom: .6rem; font-size: 1.05rem; }
.pillar__text   { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }

/* ── 13. Stats ───────────────────────────────────────────────────────────── */
.stat-item { text-align: center; padding: 1.5rem 1rem; }
.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--accent-light);
  display: block;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); }

/* ── 14. Forms ───────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .45rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  font-size: .9rem;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }
.form-error { font-size: .78rem; color: #DC2626; margin-top: .35rem; }

/* ── 15. Alerts ──────────────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .875rem;
  border: 1px solid transparent;
  line-height: 1.5;
}
.alert-success { background: #ECFDF5; border-color: #6EE7B7; color: #065F46; }
.alert-error   { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.alert-info    { background: #EFF6FF; border-color: #93C5FD; color: #1E40AF; }
.alert-warning { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }

/* ── 16. Tags / Badges ───────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .7rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  background: var(--primary-tint);
  color: var(--primary);
}
.tag--accent  { background: var(--accent-tint); color: var(--accent-dark); }
.tag--success { background: #ECFDF5; color: #065F46; }
.tag--muted   { background: var(--bg-alt); color: var(--text-muted); }

/* ── 17. Give / Donation cards ───────────────────────────────────────────── */
.give-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1.5px solid var(--border);
  transition: all var(--t);
}
.give-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.give-card__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .9rem;
}
.give-card__amount {
  font-family: var(--ff-display);
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: .4rem;
  line-height: 1.1;
}
.give-card__detail       { font-size: .85rem; color: var(--text-muted); margin-bottom: .2rem; }
.give-card__detail strong { color: var(--text); font-weight: 600; }

/* ── 18. Pagination ──────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.page-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--border);
  transition: all var(--t);
}
.page-link:hover, .page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── 19. Sermon cards (grid layout) ─────────────────────────────────────── */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .sermon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .sermon-grid { grid-template-columns: 1fr; }
}

.sermon-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.sermon-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Thumbnail */
.sermon-item__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-dark);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sermon-item__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sermon-item__thumb-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.18);
}
.sermon-item__badge {
  position: absolute;
  bottom: .65rem;
  right: .65rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #fff;
}
.sermon-item__badge--watch  { background: var(--accent); }
.sermon-item__badge--listen { background: var(--primary); }

/* Content */
.sermon-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.35rem 1.35rem;
  min-width: 0;
}
.sermon-item__series {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: .35rem;
}
.sermon-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: .55rem;
}
.sermon-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .65rem;
}
.sermon-item__meta-item {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}
.sermon-item__meta-item i { color: var(--accent); font-size: .7rem; }
.sermon-item__excerpt {
  font-size: .855rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.sermon-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .75rem;
}
.sermon-item__cta {
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sermon-item__cta-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--primary);
}
.sermon-item__cta-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), transform var(--t);
}
.sermon-item:hover .sermon-item__cta-arrow {
  background: var(--accent);
  transform: translateX(3px);
}
.sermon-item__cta-arrow i {
  font-size: .72rem;
  color: var(--primary);
  transition: color var(--t);
}
.sermon-item:hover .sermon-item__cta-arrow i { color: #fff; }

/* ── 20. Event items ─────────────────────────────────────────────────────── */
.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.event-item:hover { box-shadow: var(--shadow); border-color: transparent; }
.event-date-box  { text-align: center; width: 52px; flex-shrink: 0; }
.event-date-box__day {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.event-date-box__month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── 21. Course cards ────────────────────────────────────────────────────── */
.course-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.course-card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.course-card__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
}
.course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card__body      { padding: 1.5rem; flex: 1; }
.course-card__footer    {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── 22. Search & filter ─────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  align-items: center;
}
.search-bar .form-control { max-width: 320px; }
.filter-chips   { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-chip {
  padding: .35rem .9rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  transition: all var(--t);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

/* ── 23. Video embed ─────────────────────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.video-wrap iframe, .video-wrap video, .video-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  object-fit: cover;
}

/* ── 24. Map ─────────────────────────────────────────────────────────────── */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── 25. Leader cards ────────────────────────────────────────────────────── */
.leader-card { text-align: center; }
.leader-card__img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--bg-alt);
  box-shadow: var(--shadow-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
}
.leader-card__name { font-size: 1.05rem; margin-bottom: .2rem; }
.leader-card__role { font-size: .75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.leader-card__bio  { font-size: .875rem; color: var(--text-muted); margin-top: .75rem; }

/* ── 26. Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding-top: clamp(4rem, 7vw, 7rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; }
.footer-tagline { font-size: .85rem; opacity: .65; margin-top: .75rem; line-height: 1.65; max-width: 280px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: all var(--t);
}
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-heading {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .85rem; opacity: .6; transition: opacity var(--t), color var(--t); }
.footer-links a:hover { opacity: 1; color: var(--accent-light); }
.footer-contact-item {
  display: flex;
  gap: .7rem;
  font-size: .85rem;
  margin-bottom: .7rem;
  opacity: .75;
  line-height: 1.5;
}
.footer-contact-icon {
  font-size: .95rem !important;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
  opacity: .5;
}
.footer-bottom a:hover { opacity: 1; color: var(--accent-light); }

/* ── 27. Page progress bar ───────────────────────────────────────────────── */
#page-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
}
#page-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 0 2px 2px 0;
  transition: width .22s ease, opacity .4s ease;
  box-shadow: 0 0 10px rgba(201,148,59,.55);
}

/* ── 28. Skeleton loading ────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton * { visibility: hidden; }
.skeleton-text   { height: 1em;    border-radius: 4px; margin-bottom: .5em; }
.skeleton-title  { height: 1.6em;  border-radius: 4px; margin-bottom: .75em; width: 65%; }
.skeleton-img    { border-radius: var(--r-lg); }
.skeleton-circle { border-radius: 50%; }

/* ── 29. Preview banner ──────────────────────────────────────────────────── */
.preview-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: .5rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  position: relative;
  z-index: 998;
}
.preview-banner a { color: #fff; text-decoration: underline; }

/* ── 30. Icon sizing (Font Awesome + legacy Material) ────────────────────── */
.material-icons,
.material-icons-outlined,
.material-icons-round,
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-size: 1.2rem;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
}
.icon-sm  { font-size: .95rem !important; }
.icon-md  { font-size: 1.4rem !important; }
.icon-lg  { font-size: 1.8rem !important; }
.icon-xl  { font-size: 2.25rem !important; }
.icon-xxl { font-size: 3rem   !important; }

/* ── Icon colour context rules ───────────────────────────────────────────── */
/* Icons on dark/coloured backgrounds → always white */
.bg-primary i, .bg-primary .fa-solid, .bg-primary .fa-regular, .bg-primary .fa-brands,
.bg-dark    i, .bg-dark    .fa-solid, .bg-dark    .fa-regular, .bg-dark    .fa-brands,
.bg-accent  i, .bg-accent  .fa-solid, .bg-accent  .fa-regular, .bg-accent  .fa-brands,
.btn-primary i, .btn-primary .fa-solid, .btn-primary .fa-regular,
.btn-accent  i, .btn-accent  .fa-solid, .btn-accent  .fa-regular,
.hero        i, .page-hero  i,
.pillar:hover .pillar__icon i,
[style*="background:#1A3A5C"] i,
[style*="background:var(--primary)"] i,
[style*="background:var(--accent)"] i,
[style*="background:linear-gradient"] i { color: #fff !important; }

/* Social links always white */
.social-link i { color: #fff !important; }

/* Icons on white / light backgrounds → brand colour */
.bg-white   i, .bg-white   .fa-solid, .bg-white   .fa-regular,
.bg-alt     i, .bg-alt     .fa-solid, .bg-alt     .fa-regular,
.card       i, .card       .fa-solid, .card       .fa-regular,
.pillar__icon i { color: var(--primary); }

/* Explicit override classes */
.icon-accent  { color: var(--accent)  !important; }
.icon-primary { color: var(--primary) !important; }
.icon-white   { color: #fff           !important; }

/* ── 31. Reveal classes — no animation, just visible ─────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }

/* ── 32. Utility ─────────────────────────────────────────────────────────── */
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mt-auto    { margin-top: auto; }
.mt-1       { margin-top: .5rem; }
.mt-2       { margin-top: 1rem; }
.mt-3       { margin-top: 1.5rem; }
.mt-4       { margin-top: 2rem; }
.mt-5       { margin-top: 3rem; }
.mb-2       { margin-bottom: 1rem; }
.mb-3       { margin-bottom: 1.5rem; }
.gap-1      { gap: .5rem; }
.gap-2      { gap: 1rem; }
.divider    { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── 33. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  /* Hide desktop nav, Give button, and user-menu — move to collapsing mobile nav */
  .nav, .header-actions .btn, .header-actions .user-menu { display: none; }
  .nav-toggle  { display: flex; }
  .mobile-nav  { display: flex; }
}
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .event-item   { grid-template-columns: 1fr; }
  .event-item .btn { width: 100%; }
  /* sermon-grid breakpoints handled in section 19 */
  .btn-group > .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .grid--4  { grid-template-columns: repeat(2, 1fr); }
  .search-bar { flex-direction: column; }
  .search-bar .form-control { max-width: 100%; }
  .btn-group { flex-direction: column; }
  .btn-group > .btn { width: 100%; }
}

/* ── 34. Print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .mobile-nav, #page-progress { display: none; }
  body { background: #fff; color: #000; }
}

/* ── 35. Font weight overrides for form labels / buttons / nav ────────────── */
.form-label, .btn, .nav-link, .eyebrow, .footer-heading,
.filter-chip, .tag, .breadcrumb, .card__eyebrow { font-weight: 500; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
.logo-text { font-weight: 700; }

/* ── 36. Section spacing — max 100px between divs ────────────────────────── */
.section      { padding-block: clamp(3rem, 5vw, 6.25rem); }   /* ≈ 100px max */
.section--sm  { padding-block: clamp(2rem, 3.5vw, 3.5rem); }  /* ≈ 56px max */
.section--lg  { padding-block: clamp(4rem, 7vw, 8rem); }

/* Inter thin weight for muted / secondary text */
.text-muted, .card__text, .hero__text,
.footer-tagline, .footer-links a,
.footer-contact-item { font-weight: 300; }

/* ── 37. Media picker modal (GrapeJS inline asset manager) ───────────────── */
#media-picker-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
#media-picker-overlay.hidden { display: none; }
#media-picker-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 860px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  overflow: hidden;
}
#media-picker-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb;
  font-weight: 600; font-size: .95rem; color: #1A3A5C;
}
#media-picker-header button {
  background: none; border: none; cursor: pointer; font-size: 1.3rem;
  color: #6b7280; line-height: 1; padding: 4px;
}
#media-picker-header button:hover { color: #111; }
#media-picker-toolbar {
  display: flex; gap: .75rem; padding: .875rem 1.25rem;
  border-bottom: 1px solid #f3f4f6; flex-wrap: wrap;
  align-items: center;
}
#media-picker-toolbar label.upload-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; background: #1A3A5C; color: #fff;
  border-radius: 8px; font-size: .82rem; font-weight: 500;
  cursor: pointer; transition: background .2s;
}
#media-picker-toolbar label.upload-btn:hover { background: #0F2540; }
#media-picker-toolbar #mp-upload-input { display: none; }
#media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem; padding: 1rem 1.25rem; overflow-y: auto; flex: 1;
}
.mp-asset {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color .18s, transform .18s;
  background: #f3f4f6;
  position: relative;
}
.mp-asset img { width: 100%; height: 100%; object-fit: cover; }
.mp-asset:hover { border-color: #C9943B; transform: scale(1.03); }
.mp-asset.selected { border-color: #1A3A5C; }
.mp-asset__name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .35rem .4rem; background: rgba(0,0,0,.55);
  color: #fff; font-size: .6rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#media-picker-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; border-top: 1px solid #e5e7eb; gap: 1rem;
}
#mp-select-btn {
  padding: .5rem 1.4rem; background: #C9943B; color: #fff;
  border: none; border-radius: 8px; font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
#mp-select-btn:hover { background: #A87830; }
#mp-select-btn:disabled { opacity: .45; cursor: default; }
#mp-cancel-btn {
  padding: .5rem 1.1rem; background: #f3f4f6; color: #374151;
  border: none; border-radius: 8px; font-size: .875rem; font-weight: 500;
  cursor: pointer;
}
#mp-cancel-btn:hover { background: #e5e7eb; }
#mp-status { font-size: .78rem; color: #6b7280; }

/* ══════════════════════════════════════════════════════════════════════════
   20. User Auth Pages  (login.php / register.php)
══════════════════════════════════════════════════════════════════════════ */
.auth-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg-alt);
}

.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.auth-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 auto 1.25rem;
}

.auth-card__title {
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 .35rem;
  color: var(--text);
}

.auth-card__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 1.75rem;
}

.auth-pw-wrap {
  position: relative;
}
.auth-pw-wrap .form-control {
  padding-right: 2.5rem;
}
.auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: .7rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: .25rem;
  line-height: 1;
  font-size: .9rem;
}
.auth-pw-toggle:hover { color: var(--primary); }

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: .5rem;
}

.auth-card__footer {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: .875rem;
  color: var(--text-muted);
}
.auth-card__footer a {
  color: var(--primary);
  font-weight: 500;
}
.auth-card__footer a:hover { color: var(--accent); }

/* ── User menu (header dropdown) ─────────────────────────────────────────── */
.user-menu {
  position: relative;
}

.user-menu__toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid #fff;
  border-radius: var(--radius);
  padding: .35rem .75rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  transition: all .15s;
  white-space: nowrap;
  max-width: 180px;
}
.user-menu__toggle:hover {
  background: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.88);
  color: var(--primary);
}
.user-menu__name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  display: inline-block;
  vertical-align: middle;
}
.user-menu__caret {
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform .2s;
}
.user-menu__toggle[aria-expanded="true"] .user-menu__caret {
  transform: rotate(180deg);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  min-width: 180px;
  z-index: 500;
  overflow: hidden;
}

.user-menu__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  text-decoration: none;
  font-size: .875rem;
  color: var(--text);
  transition: background .15s;
}
.user-menu__item:hover { background: var(--bg-alt); color: var(--primary); }
.user-menu__item--danger { color: var(--danger); }
.user-menu__item--danger:hover { background: #fef2f2; color: var(--danger); }
.user-menu__divider {
  border-top: 1px solid var(--border);
  margin: .2rem 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   21. Lesson Questions  (course.php)
══════════════════════════════════════════════════════════════════════════ */
.lesson-questions {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 2rem;
}

.lesson-questions__heading {
  background: var(--primary-tint);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.lq-item {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.lq-item:last-of-type {
  border-bottom: none;
}

.lq-item__text {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 .85rem;
  line-height: 1.5;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
}

.lq-item__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.lq-item__textarea {
  resize: vertical;
  min-height: 90px;
}

.lq-item__options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.lq-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .875rem;
  transition: all .15s;
  user-select: none;
}
.lq-option:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.lq-option--selected {
  border-color: var(--primary);
  background: var(--primary-tint);
}

.lq-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lq-option__dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  transition: all .15s;
  position: relative;
}
.lq-option--selected .lq-option__dot,
.lq-option:has(input:checked) .lq-option__dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px white;
}

.lq-option__text {
  flex: 1;
  color: var(--text);
}

.lq-item__saved {
  margin: .65rem 0 0;
  font-size: .78rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Save-answers button area */
.lesson-questions > form > div:last-child {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

@media (max-width: 600px) {
  .auth-card { padding: 2rem 1.25rem; }
  .user-menu__name { display: none; }
}
