/* IBCP Portal — Ministry design system
   Deep teal/navy + warm gold | Mobile-first */

:root {
  --navy: #0b2c3d;
  --navy-mid: #123d52;
  --teal: #1a6b6a;
  --teal-light: #2a8f8d;
  --gold: #c9a227;
  --gold-soft: #e8c547;
  --gold-muted: #a8841f;
  --cream: #f7f3ea;
  --cream-dark: #efe8d8;
  --ink: #1a2430;
  --muted: #5a6a78;
  --white: #ffffff;
  --border: #d9e0e6;
  --shadow: 0 8px 28px rgba(11, 44, 61, 0.12);
  --shadow-sm: 0 2px 10px rgba(11, 44, 61, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(201, 162, 39, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, .chip:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header / Nav —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand:hover { color: var(--gold-soft); }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-muted));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255,255,255,0.1);
  color: var(--gold-soft);
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.35rem; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--navy-mid);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: none;
    padding: 0.75rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 0.75rem 1rem; }
}

/* —— Hero —— */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(201,162,39,0.18), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--teal) 120%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(to top, var(--cream), transparent);
  pointer-events: none;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-light); color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; }

/* —— Sections —— */
.section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.page-banner {
  background: var(--navy);
  color: var(--white);
  padding: 2.25rem 0;
  border-bottom: 4px solid var(--gold);
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.page-banner p {
  margin: 0;
  opacity: 0.85;
  max-width: 55ch;
}

/* —— Portal hub cards —— */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(11, 44, 61, 0.16);
}

.portal-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--cream-dark);
}

.portal-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--navy);
  font-family: var(--font-display);
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

/* —— Feature strip —— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.feature strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.feature span { color: var(--muted); font-size: 0.92rem; }

/* —— Filters / search —— */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-soft);
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* —— Cards grid —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.3;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}
.card h3 a:hover { color: var(--teal); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--navy);
}

.badge-gold { background: rgba(201,162,39,0.22); color: var(--gold-muted); }
.badge-teal { background: rgba(26,107,106,0.15); color: var(--teal); }
.badge-navy { background: rgba(11,44,61,0.1); color: var(--navy); }

.card .scripture {
  font-style: italic;
  color: var(--teal);
  font-size: 0.92rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* —— Progress —— */
.progress {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: inherit;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* —— Detail layouts —— */
.detail-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .detail-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.panel h2, .panel h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-top: 0;
}

.outline-list {
  margin: 0;
  padding-left: 1.2rem;
}

.outline-list li { margin-bottom: 0.5rem; }

.transcript {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.02rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.side-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.85rem;
}
.side-meta dt:first-child { margin-top: 0; }
.side-meta dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--navy); }

/* —— Course / lesson —— */
.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-list li {
  border-bottom: 1px solid var(--border);
}

.module-list a, .module-list .mod-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.25rem;
  text-decoration: none;
  color: inherit;
}

.module-list a:hover { color: var(--teal); }

.mod-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mod-num.done {
  background: var(--teal);
  color: var(--white);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 40%, rgba(201,162,39,0.25), transparent 50%),
    linear-gradient(135deg, var(--navy), var(--teal));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.video-placeholder .play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}

.video-placeholder .label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.lesson-body h2 {
  font-family: var(--font-display);
  color: var(--navy);
}

.quiz {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-top: 2rem;
}

.quiz h3 { margin-top: 0; color: var(--navy); }

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.quiz-option:hover { border-color: var(--teal); }
.quiz-option input { margin-top: 0.25rem; accent-color: var(--teal); }

.quiz-option.is-correct {
  border-color: #2d7a4f;
  background: #eef8f1;
}
.quiz-option.is-wrong {
  border-color: #c45c5c;
  background: #fdf0f0;
}

.quiz-feedback {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback.ok { background: #eef8f1; color: #1e5c38; }
.quiz-feedback.bad { background: #fdf0f0; color: #8b2e2e; }

/* —— About —— */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-family: var(--font-display);
  color: var(--navy);
}
.prose p { color: var(--ink); }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.4rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.hidden { display: none !important; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }


.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.filter-label {
  margin: 0;
  min-width: 4.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.source-legend {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 78ch;
}
.partner-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge-source[data-source="GCF"] { background: rgba(201, 162, 39, 0.22); color: var(--gold-muted); }
.badge-source[data-source="CCF"] { background: rgba(11, 44, 61, 0.12); color: var(--navy); }
.badge-source[data-source="VCF"] { background: var(--white); color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.badge-source[data-source="IBCP"] { background: var(--navy); color: var(--gold-soft); }
.lang-hint { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--gold-muted); }
.lang-switch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin: 0.35rem 0 0.75rem; padding: 0.75rem 0.85rem;
  background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.lang-switch-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-right: 0.15rem;
}
.active-lang { margin: 0 0 1rem; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.source-line { margin: 0.55rem 0 0.2rem; color: var(--navy); font-size: 0.95rem; }
#detail-title {
  font-family: var(--font-display); color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0.35rem 0 0.45rem;
}

/* —— Design polish additions (videos + richer hero/cards) —— */
.hero {
  padding: 4rem 0 4.75rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
}
.hero-copy h1 { max-width: 18ch; }
.hero-copy .lead { max-width: 46ch; }
.hero-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.hero-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-soft);
  font-weight: 600;
}
.hero-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.hero-panel li { margin-bottom: 0.45rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.hero-stat {
  background: rgba(11,44,61,0.35);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.55rem;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-soft);
  line-height: 1.2;
}
.hero-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section { padding: 3.5rem 0; }
.section-tight { padding: 2.35rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 { letter-spacing: -0.01em; }

.card:has(.card-thumb) {
  padding: 0;
  overflow: hidden;
  gap: 0;
  box-shadow: 0 4px 18px rgba(11, 44, 61, 0.08);
}
.card:has(.card-thumb):hover {
  box-shadow: 0 14px 36px rgba(11, 44, 61, 0.16);
  transform: translateY(-3px);
}

/* Learning / course catalog cards — even alignment */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.course-card {
  height: 100%;
  min-height: 100%;
}
.course-card .course-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.course-card .course-progress {
  margin-top: 0.25rem;
}
.course-card .card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}
.course-card .badge {
  align-self: flex-start;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.2rem 1.25rem 1.3rem;
}
.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  overflow: hidden;
  text-decoration: none;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.card-thumb:hover img { transform: scale(1.04); }
.card-thumb-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.card-thumb-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
}
.card-thumb-empty {
  display: grid;
  place-items: center;
  cursor: default;
}
.card-thumb-mark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}

.badge-video {
  background: rgba(201, 162, 39, 0.95);
  color: var(--navy);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.panel-video { padding: 1rem; }
.video-caption {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.sermon-video-placeholder { margin-bottom: 0; }
.demo-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.featured-video {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(201,162,39,0.12), transparent),
    var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.featured-video-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 880px) {
  .featured-video-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.25rem;
  }
}
.featured-video-copy h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35rem 0 0.85rem;
  line-height: 1.2;
}
.featured-video-copy > p { color: var(--muted); margin: 0 0 0.85rem; }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem !important;
}
.featured-speaker {
  font-size: 0.92rem;
  color: var(--navy) !important;
  font-weight: 600;
}

.page-banner {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201,162,39,0.16), transparent),
    linear-gradient(145deg, var(--navy), var(--navy-mid));
}

.footer-bottom {
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.footer-bottom span:last-child {
  font-weight: 600;
  color: var(--gold-soft);
}


/* —— Church locations map —— */
.locations-disclaimer {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
}

.locations-toolbar { margin-bottom: 1.25rem; }

.concentration-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
}

.concentration-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.concentration-sub {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 110px;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(26,107,106,0.1), rgba(11,44,61,0.06));
  border: 1px solid rgba(26,107,106,0.22);
  color: var(--navy);
}

.stat-chip strong {
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--teal);
}

.stat-chip span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.stat-chip.is-thin {
  background: rgba(201,162,39,0.12);
  border-color: rgba(201,162,39,0.45);
}

.stat-chip.is-thin strong { color: var(--gold-muted); }

.province-title {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.province-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.province-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--cream);
  font-size: 0.92rem;
}

.province-list strong { color: var(--teal); }

.locations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 1.1rem;
  align-items: stretch;
}

.map-panel,
.list-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.church-map {
  width: 100%;
  min-height: 420px;
  height: 100%;
  z-index: 0;
}

.list-panel {
  display: flex;
  flex-direction: column;
  max-height: 560px;
}

.list-panel-title {
  margin: 0;
  padding: 0.9rem 1rem 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.church-list {
  list-style: none;
  margin: 0;
  padding: 0 0.65rem 0.85rem;
  overflow: auto;
  flex: 1;
}

.church-list-item {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.church-list-item:hover,
.church-list-item:focus-visible {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.church-list-item.is-active {
  border-color: var(--gold);
  background: #fffdf5;
  box-shadow: var(--focus);
}

.church-list-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.church-list-top strong { color: var(--navy); }

.church-list-meta {
  font-size: 0.88rem;
  color: var(--teal);
  font-weight: 600;
}

.church-list-address {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.church-list-empty {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.loc-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
}

.loc-badge-verified {
  background: rgba(26,107,106,0.15);
  color: var(--teal);
}

.loc-badge-approx {
  background: rgba(201,162,39,0.2);
  color: var(--gold-muted);
}

.loc-popup { font-family: var(--font); min-width: 180px; }
.loc-popup strong { color: var(--navy); font-size: 1rem; }
.loc-popup-place { margin: 0.25rem 0; color: var(--teal); font-weight: 600; font-size: 0.88rem; }
.loc-popup-address,
.loc-popup-notes,
.loc-popup-meta { margin: 0.3rem 0; font-size: 0.88rem; color: var(--ink); }
.loc-popup-notes { color: var(--muted); }

.leaflet-container { font: inherit; }

@media (max-width: 900px) {
  .locations-layout {
    grid-template-columns: 1fr;
  }
  .list-panel { max-height: 420px; }
  .church-map { min-height: 420px; height: 420px; }
}

/* ——— Facebook / Messenger in-app browser tip ——— */
.share-fix-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-fix-banner.is-hiding {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.share-fix-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.share-fix-msg {
  margin: 0;
  flex: 1 1 220px;
}

.share-fix-msg strong {
  color: var(--gold-soft);
  font-weight: 700;
}

.share-fix-tip {
  display: inline;
  opacity: 0.92;
  font-size: 0.85rem;
}

.share-fix-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.share-fix-copy {
  appearance: none;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.share-fix-copy:hover,
.share-fix-copy:focus-visible {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  outline: none;
  box-shadow: var(--focus);
}

.share-fix-copy:disabled {
  opacity: 0.85;
  cursor: default;
}

.share-fix-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.85;
}

.share-fix-dismiss:hover,
.share-fix-dismiss:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: var(--focus);
}

@media (max-width: 560px) {
  .share-fix-tip {
    display: block;
    margin-top: 0.2rem;
  }
}
