:root {
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,0.18);
  --black: #0e0e0e;
  --bg: #ffffff;
  --off-black: #f4f4f5;
  --dark: #fafafa;
  --mid: #e5e5e5;
  --border: rgba(0,0,0,0.08);
  --text: #141414;
  --text-dim: rgba(20,20,20,0.65);
  --text-dimmer: rgba(20,20,20,0.42);
}
* { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  /* Keep horizontal clipping on html only. overflow-x on body breaks
     position:fixed bottom bars on iOS/Safari (they track the layout box). */
  overflow-x: hidden;
}
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: visible;
}

/* ─── NAV ──────────────────────────────────────── */
/* Scoped to #navbar so the <nav class="mobile-tab-bar"> at page bottom
   does not inherit position:fixed + top:0 and stretch to full viewport. */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: stretch;
  padding: 28px 56px 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, transparent 100%);
  backdrop-filter: blur(0px);
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
/* Homepage at top of viewport: original dark hero nav (light links on dark bar) */
body.home #navbar:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(14,14,14,0.92) 0%, transparent 100%);
}
body.home #navbar:not(.scrolled) .nav-links a {
  color: rgba(240,236,228,0.85);
}
body.home #navbar:not(.scrolled) .nav-burger {
  background: rgba(26,26,26,0.75);
  border-color: rgba(255,255,255,0.08);
}
.nav-side {
  display: flex;
  align-items: center;
  min-width: 0;
}
.nav-side--left {
  flex: 1 1 0%;
  justify-content: flex-end;
  padding-right: clamp(18px, 3vw, 36px);
}
.nav-side--right {
  flex: 1 1 0%;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding-left: clamp(18px, 3vw, 36px);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 22px);
  list-style: none;
}
.nav-logo {
  position: relative;
  line-height: 0;
  z-index: 2;
  pointer-events: auto;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: auto;
  display: block;
  object-fit: contain;
}
/* Centred mark, scaled down — previously 190px which crowded the hero */
.nav-logo-mark--rest {
  height: 84px;
  max-width: min(200px, 42vw);
}
#navbar.scrolled .nav-logo-mark--rest {
  height: 56px;
  transition: height 0.3s;
}
/* Compact raster mark reserved for future use */
.nav-logo-mark--compact {
  display: none;
  height: 48px;
  max-width: min(220px, 42vw);
}
/* On subpages (white background) the default cream-text logo is invisible.
   `content:` swaps the image source to the dark-text variant. Homepage keeps
   the light logo because it sits against the dark hero photo. */
body.is-subpage .nav-logo-mark--rest {
  content: url('../OneHopeBaptist-V4-transparent-dark.svg');
}
body.home #navbar.scrolled .nav-logo-mark--rest {
  content: url('../OneHopeBaptist-V4-transparent-dark.svg');
}
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--black);
  background: var(--gold); border: none; border-radius: 100px;
  padding: 10px 22px; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
  line-height: 1.2;
  box-sizing: border-box;
}
.nav-cta:hover { opacity: 0.85; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  cursor: pointer;
  z-index: 101;
  padding: 10px 11px;
}
.nav-burger-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open { overflow: hidden; }
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  padding: 96px 28px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-drawer-inner { max-width: 420px; margin: 0 auto; }
.nav-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-drawer-close:hover { border-color: var(--gold); color: var(--gold); }
.nav-drawer-nav { list-style: none; }
.nav-drawer-nav li { border-bottom: 1px solid var(--border); }
.nav-drawer-nav a {
  display: block;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer-nav a:hover { color: var(--gold); }
.nav-drawer-label {
  padding: 20px 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: none;
}

/* ─── INNER PAGES (shared prose) ───────────────── */
.page-main {
  padding: 180px 56px 100px;
  max-width: 760px;
  margin: 0 auto;
}
.page-main--wide { max-width: 880px; }
.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 28ch;
}
.prose {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  color: var(--text-dim);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2.75em;
  margin-bottom: 0.65em;
  line-height: 1.35;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.35em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--gold); }
.prose a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(201,168,76,0.35);
}
.prose a:hover { border-bottom-color: var(--gold); }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
  font-style: italic;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  text-decoration: none;
  transition: color 0.2s;
}
.page-back:hover { color: var(--gold); }
body.is-subpage #contact:first-of-type {
  padding-top: clamp(200px, 26vh, 300px);
}
@media (max-width: 1023px) {
  body.is-subpage #contact:first-of-type { padding-top: 120px; }
}
.subnav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}
.subnav-card {
  display: block;
  padding: 20px 22px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.subnav-card:hover { border-color: rgba(201,168,76,0.35); }
.subnav-card span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.subnav-card small {
  font-size: 12px;
  color: var(--text-dimmer);
  line-height: 1.45;
}
.fellowship-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.fellowship-item {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px;
  transition: border-color 0.2s;
}
.fellowship-item:hover { border-color: rgba(201,168,76,0.22); }
.fellowship-item h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  text-transform: none;
}
.fellowship-item .meta {
  font-size: 12px;
  color: var(--text-dimmer);
  margin-bottom: 12px;
}
.fellowship-item .excerpt {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

/* ─── HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 48px;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../uploads/482030380_1033185515512328_3826291016874390524_n.jpg');
  background-size: cover; background-position: center 30%;
  filter: grayscale(100%) brightness(0.28);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(14,14,14,0.3) 0%,
    rgba(14,14,14,0.1) 40%,
    rgba(14,14,14,0.6) 80%,
    rgba(14,14,14,1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.2vh, 34px);
  padding: 0 24px;
}
.hero-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vh, 18px);
  max-width: min(100%, 520px);
}
.hero-tagline {
  font-size: 13px; font-weight: 600; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
}
.hero-tagline--welcome {
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 600;
  max-width: none;
  line-height: 1.35;
}
.hero-service-ribbon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 24px;
  max-width: min(100%, 400px);
  background: var(--gold);
  border-radius: 14px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (min-width: 1024px) {
  .hero-service-ribbon {
    padding: 13px 28px;
    border-radius: 16px;
  }
}
.hero-service-ribbon:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.hero-service-ribbon:focus-visible {
  outline: 2px solid #f0ece4;
  outline-offset: 3px;
}
.hero-service-ribbon__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.5);
}
.hero-service-ribbon__time {
  font-size: clamp(17px, 4vw, 23px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--black);
}
.hero-headline {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; color: #f0ece4;
  max-width: 720px;
  text-wrap: pretty;
}
@media (min-width: 1024px) {
  .hero-headline {
    margin-top: clamp(6px, 1.2vh, 14px);
  }
}
.hero-sub {
  font-size: 17px; font-weight: 400; color: rgba(240,236,228,0.5);
  max-width: 520px; line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  justify-content: center;
  margin-top: 4px;
}
.btn-primary {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black);
  background: var(--gold); border: none; border-radius: 100px;
  padding: 14px 32px; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text);
  background: transparent;
  border: 1px solid rgba(20,20,20,0.12);
  border-radius: 100px;
  padding: 14px 32px; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
#hero .btn-ghost {
  color: #f0ece4;
  border-color: rgba(240,236,228,0.25);
}
#hero .btn-ghost:hover { color: var(--gold); }
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: clamp(36px, 6vh, 56px);
  padding-bottom: 8px;
}
.hero-scroll span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240,236,228,0.3);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity:0.4; } 50% { opacity:1; } }

/* ─── SECTION BASE ─────────────────────────────── */
section { padding: 100px 56px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--text);
  max-width: 640px;
}
.section-divider {
  width: 40px; height: 2px;
  background: var(--gold); margin: 24px 0;
}
.section-body {
  font-size: 17px; font-weight: 400;
  line-height: 1.75; color: var(--text-dim);
  max-width: 640px;
}

/* ─── ABOUT ────────────────────────────────────── */
#about { background: var(--off-black); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.about-image-wrap {
  position: relative; border-radius: 4px; overflow: hidden;
}
.about-image-wrap img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.4s;
}
.about-image-wrap:hover img { filter: grayscale(80%) brightness(0.9); }
.about-image-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.25; z-index: 1;
  border-radius: 4px;
}
.belief-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; min-width: 0; }
.belief-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.belief-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.belief-icon svg { width: 14px; height: 14px; fill: var(--gold); }
.belief-text h4 {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; letter-spacing: -0.01em;
}
.belief-text p {
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
}

/* ─── SERVICE TIMES ────────────────────────────── */
#services {
  background: var(--bg);
  text-align: center;
}
.services-inner { max-width: 900px; margin: 0 auto; }
.service-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 56px;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.service-card {
  background: var(--off-black);
  padding: 44px 32px; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--dark); }
.service-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.service-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 18px; font-weight: 800;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 8px;
}
.service-card .time {
  font-size: 26px; font-weight: 900;
  color: var(--gold); letter-spacing: -0.02em; margin-bottom: 6px;
}
.service-card .time--range {
  font-size: clamp(17px, 3.8vw, 22px);
  line-height: 1.25;
}
.service-card p {
  font-size: 13px; color: var(--text-dimmer);
  letter-spacing: 0.05em;
}

/* ─── MINISTRIES ───────────────────────────────── */
#ministries { background: var(--off-black); }
.ministries-inner { max-width: 1200px; margin: 0 auto; }
.ministry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
a.ministry-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.ministry-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.ministry-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}
.ministry-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ministry-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  display: block;
  transition: filter 0.3s;
}
.ministry-card:hover .ministry-img { filter: grayscale(60%) brightness(0.8); }
.ministry-body { padding: 28px; }
.ministry-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.ministry-body h3 {
  font-size: 20px; font-weight: 800;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 10px;
}
.ministry-body p {
  font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

/* ─── BELIEFS STRIP ────────────────────────────── */
#beliefs { background: var(--bg); }
.beliefs-inner { max-width: 1200px; margin: 0 auto; }
.beliefs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin-top: 56px;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.belief-block {
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.belief-block:nth-child(even) { border-right: none; }
.belief-block:nth-last-child(-n+2) { border-bottom: none; }
.belief-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.belief-block h3 {
  font-size: 17px; font-weight: 800;
  color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em;
}
.belief-block p {
  font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

/* ─── GALLERY ──────────────────────────────────── */
#gallery { background: var(--off-black); padding-bottom: 0; }
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 4px;
  margin-top: 48px;
}
.photo-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.3s, transform 0.3s;
}
.photo-grid img:hover { filter: grayscale(30%) brightness(0.9); transform: scale(1.02); }
.photo-grid .wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}
.photo-grid .tall {
  grid-row: span 2;
  aspect-ratio: 1/2;
}

/* ─── VERSE BANNER ─────────────────────────────── */
#verse {
  background: var(--gold);
  padding: 80px 56px;
  text-align: center;
}
.verse-text {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800; color: var(--black);
  line-height: 1.3; letter-spacing: -0.02em;
  max-width: 800px; margin: 0 auto 16px;
}
.verse-ref {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(14,14,14,0.55);
}

/* ─── SERMONS ──────────────────────────────────── */
#sermons {
  background: var(--bg);
  scroll-margin-top: 120px;
}
.sermons-inner { max-width: 1200px; margin: 0 auto; }
.sermons-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  margin-top: 56px;
}
.sermon-cta {
  background: var(--dark); border: 1px solid var(--border);
  border-radius: 4px; padding: 44px;
  display: flex; flex-direction: column; gap: 20px;
}
.sermon-cta h3 {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em;
}
.sermon-cta p { font-size: 15px; color: var(--text-dim); line-height: 1.65; }
.pastor-card {
  display: flex; gap: 20px; align-items: flex-start;
}
.pastor-img {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; object-position: top center;
  filter: grayscale(100%);
  flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.3);
}
.pastor-info { padding-top: 4px; }
.pastor-info .role {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.pastor-info h4 {
  font-size: 18px; font-weight: 800; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.pastor-info p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ─── CONTACT ──────────────────────────────────── */
#contact {
  background: var(--off-black);
  scroll-margin-top: 100px;
}
.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-intro { margin-bottom: clamp(40px, 6vw, 56px); }
.contact-intro .section-body {
  margin-top: 0;
  max-width: 560px;
}
.contact-main {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: clamp(28px, 4vw, 44px);
  align-items: stretch;
}
.contact-map-wrap {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 28px 56px rgba(0,0,0,0.08);
}
.contact-map-frame {
  width: 100%;
  height: clamp(300px, 42vw, 440px);
  min-height: 300px;
  border: 0;
  display: block;
}
.contact-map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  border-top: 1px solid var(--border);
  background: var(--dark);
}
.contact-map-caption span { max-width: 420px; }
.contact-map-caption a {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-map-caption a:hover { opacity: 0.85; }
.contact-map-coords {
  flex: 1 0 100%;
  margin: 0;
  padding-top: 4px;
  font-size: 12px;
  color: var(--text-dimmer);
  line-height: 1.4;
}
.contact-form-panel {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(26px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.contact-form-heading {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-form-lead {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 22px;
}
.contact-form-lead a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}
.contact-form-lead a:hover {
  border-bottom-color: var(--gold);
}
.contact-form {
  position: relative;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.contact-form-hp input {
  pointer-events: none;
  opacity: 0;
}
.contact-form-status {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 4px 0;
}
.contact-form-status--success {
  color: var(--gold);
  font-weight: 700;
}
.contact-form-status--error {
  color: #b42318;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--off-black);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(201,168,76,0.45);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form ::placeholder { color: var(--text-dimmer); }
.contact-form button { align-self: flex-start; margin-top: 4px; }
.contact-form-note {
  font-size: 12px;
  color: var(--text-dimmer);
  line-height: 1.5;
  margin-top: 4px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 5vw, 56px);
}
.info-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover {
  border-color: rgba(201,168,76,0.22);
}
.info-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.info-card-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}
.info-card-body p { margin: 0 0 10px 0; }
.info-card-body p:last-child { margin-bottom: 0; }
.info-card-body a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.info-card-body a:hover { color: var(--gold); }
.info-card-body .accent {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.info-card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.bank-list { margin: 0; }
.bank-list dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-top: 14px;
}
.bank-list dt:first-child { margin-top: 0; }
.bank-list dd {
  margin: 6px 0 0 0;
  font-size: 14px;
  color: var(--text-dim);
}
.bank-list dd.account-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--text);
  font-size: 15px;
}

/* ─── FOOTER ───────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { line-height: 0; }
.footer-logo a { display: inline-block; line-height: 0; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dimmer);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-size: 12px; color: var(--text-dimmer); letter-spacing: 0.05em;
}

.mobile-tab-bar {
  display: none;
}

@media (max-width: 1050px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: keep nav on one row + looser spacing so the bar and hero don’t feel cramped */
@media (min-width: 1024px) {
  .nav-side .nav-links {
    flex-wrap: nowrap;
  }
  #navbar {
    padding: 36px 64px 30px;
  }
  .nav-side--left {
    padding-right: clamp(28px, 4vw, 56px);
  }
  .nav-side--right {
    padding-left: clamp(28px, 4vw, 56px);
    gap: clamp(20px, 2.5vw, 36px);
  }
  .nav-links {
    gap: clamp(18px, 2vw, 34px);
  }
  .nav-links a {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .nav-logo-mark--rest {
    height: 150px;
    max-width: min(230px, 34vw);
  }
  #navbar.scrolled .nav-logo-mark--rest {
    height: 60px;
  }
  .nav-cta {
    padding: 12px 26px;
    font-size: 12px;
  }
  #hero {
    padding-top: 276px;
    padding-bottom: 56px;
    min-height: 880px;
  }
  .hero-content {
    gap: clamp(28px, 4vh, 48px);
  }
  .hero-lead {
    gap: clamp(16px, 2.5vh, 26px);
  }
  section {
    padding: 120px 64px;
  }
}
@media (min-width: 1280px) {
  .nav-links a {
    font-size: 13px;
    letter-spacing: 0.12em;
  }
}

/* ─── MOBILE ────────────────────────────────────── */
@media (max-width: 1023px) {
  html {
    scroll-padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 130;
    align-items: stretch;
    justify-content: space-evenly;
    gap: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* Solid surface — no backdrop-filter (avoids iOS blur/compositing glitches). */
    background: #ffffff;
    color-scheme: light;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  }
  .mobile-tab-bar__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #3d3d3d;
    -webkit-text-fill-color: #3d3d3d;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s, background 0.2s;
  }
  .mobile-tab-bar__link:first-child {
    border-left: none;
  }
  .mobile-tab-bar__link:hover {
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
    background: rgba(0, 0, 0, 0.04);
  }
  .mobile-tab-bar__link:active {
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
  }
  .mobile-tab-bar__link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    z-index: 1;
  }
  /* 3-column grid: equal side tracks so the logo is truly centred (flex + space-between skewed it). */
  #navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 10px;
    padding: 20px 16px 18px;
  }
  .nav-burger {
    display: flex;
    grid-column: 1;
    justify-self: start;
    flex-shrink: 0;
  }
  .nav-side--left { display: none !important; }
  .nav-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    min-width: 0;
  }
  .nav-side--right {
    display: flex !important;
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
    padding-left: 0;
    gap: 0;
    flex-shrink: 0;
  }
  .nav-side--right .nav-links { display: none; }
  .nav-logo-mark--rest {
    height: 100px;
    max-width: min(220px, 58vw);
  }
  #navbar.scrolled .nav-logo-mark--rest {
    height: 52px;
  }
  .nav-cta {
    font-size: 11px;
    padding: 9px 16px;
    letter-spacing: 0.1em;
  }
  .page-main { padding: 140px 22px 72px; }
  /* Extra top padding clears the taller centred mobile logo */
  #hero { padding-top: 148px; padding-bottom: 40px; min-height: 800px; }
  section { padding: 64px 22px; }
  .about-grid, .ministry-grid, .contact-main,
  .sermons-layout, .service-cards, .beliefs-grid { grid-template-columns: 1fr; }
  /* Prevent any grid/flex child from blowing out its cell width.
     Without this, horizontally-scrolling .ohb-scroll-row elements expand
     the grid cell they live in, which overflows the page and forces the
     browser to zoom out (appears as "tiny content with huge whitespace"). */
  .about-grid > *,
  .sermons-layout > *,
  .contact-main > * { min-width: 0; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-map-frame { height: 280px; min-height: 260px; }
  .photo-grid { grid-template-columns: repeat(2,1fr); gap: 3px; }
  .photo-grid .wide { grid-column: span 1; aspect-ratio: 1; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .featured-carousel-wrap {
    grid-template-columns: minmax(0, 1fr);
    /* One row: only the scroll viewport; arrows stay display:none so they don't need named areas. */
    grid-template-areas: 'viewport';
    gap: 14px;
  }
  .featured-carousel-btn {
    display: none;
  }
  .featured-carousel-viewport {
    padding: 0;
  }

  /* Horizontal swipe rows (card sections that stack on narrow viewports) */
  .ohb-scroll-row {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    margin-top: 36px;
    margin-left: -22px;
    margin-right: -22px;
    padding: 4px 22px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 22px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border: none !important;
    border-radius: 0 !important;
    scrollbar-width: thin;
  }
  .ohb-scroll-row::-webkit-scrollbar {
    height: 4px;
  }
  .ohb-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
  }
  .ohb-scroll-row::after {
    content: '';
    flex: 0 0 8px;
    scroll-snap-align: end;
  }

  .ohb-scroll-row.service-cards .service-card {
    flex: 0 0 min(86vw, 300px);
    scroll-snap-align: center;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    border-right: 1px solid var(--border) !important;
  }

  .ohb-scroll-row.ministry-grid {
    margin-top: 40px;
  }
  .ohb-scroll-row.ministry-grid .ministry-card {
    flex: 0 0 min(88vw, 340px);
    scroll-snap-align: center;
  }

  .ohb-scroll-row.beliefs-grid .belief-block {
    flex: 0 0 min(90vw, 380px);
    scroll-snap-align: center;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .ohb-scroll-row.beliefs-grid .belief-block:nth-child(even) {
    border-right: 1px solid var(--border) !important;
  }
  .ohb-scroll-row.beliefs-grid .belief-block:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border) !important;
  }

  .ohb-scroll-row.contact-cards .info-card {
    flex: 0 0 min(88vw, 320px);
    scroll-snap-align: center;
  }

  .ohb-scroll-row.belief-list {
    margin-top: 28px;
    gap: 16px;
  }
  .ohb-scroll-row.belief-list .belief-item {
    flex: 0 0 min(88vw, 340px);
    scroll-snap-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
    box-sizing: border-box;
  }
}

/* ─── SERMON MANAGER (archive + home feed) ─────── */

.home-featured-feed {
  margin-top: 52px;
  min-width: 0;
}
.home-featured-feed-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.home-featured-feed-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
  align-items: center;
}

/* Homepage: latest sermons carousel */
.featured-carousel-wrap {
  display: grid;
  /* minmax(0,1fr): lets the track shrink so container inline-size (cqi) is non-zero on mobile */
  grid-template-columns: auto minmax(0, 1fr) auto;
  /* Named areas keep prev | viewport | next even if `order` is set on a child (order breaks auto grid placement). */
  grid-template-areas: 'prev viewport next';
  gap: clamp(10px, 2vw, 18px);
  align-items: center;
  margin-top: 4px;
  min-width: 0;
}
.featured-carousel-btn--prev {
  grid-area: prev;
}
.featured-carousel-btn--next {
  grid-area: next;
}
.featured-carousel-btn {
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.featured-carousel-btn svg {
  display: block;
  flex-shrink: 0;
}
.featured-carousel-btn:hover:not(:disabled) {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(201, 168, 76, 0.12);
  transform: translateY(-1px);
}
.featured-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}
.featured-carousel-viewport {
  grid-area: viewport;
  container-name: home-sermon-carousel;
  container-type: inline-size;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 0;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.featured-carousel-viewport:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.featured-sermons-track {
  display: flex;
  gap: clamp(18px, 2.5vw, 26px);
  width: max-content;
  min-height: 100%;
  padding: 4px 2px 8px;
}
.featured-sermons-track .featured-sermon-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  flex-basis: calc(100cqi - 8px);
  max-width: 420px;
}
@container home-sermon-carousel (min-width: 520px) {
  .featured-sermons-track .featured-sermon-card {
    flex-basis: calc((100cqi - 28px) / 2);
    max-width: none;
  }
}
@container home-sermon-carousel (min-width: 960px) {
  .featured-sermons-track .featured-sermon-card {
    flex-basis: calc((100cqi - 56px) / 3);
    max-width: none;
  }
}

/*
 * Mobile + tablet (≤1023px): don't rely on 100cqi for slide width — in WebKit it can be 0 in
 * overflow scrollports, so slides disappear. Landscape phones are often >520px wide; they need
 * this too. Desktop keeps @container rules above for 2–3 columns.
 */
@media (max-width: 1023px) {
  .featured-sermons-track .featured-sermon-card {
    flex-basis: min(calc(100vw - 48px), 420px);
    max-width: 420px;
  }
}

.featured-sermon-card {
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.featured-sermon-card:hover {
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.featured-sermon-card-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 9.5rem;
}
.featured-sermon-extra {
  margin-top: 2px;
}
.featured-sermon-card-content h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.featured-sermon-card-content h3 a {
  color: inherit;
  text-decoration: none;
}
.featured-sermon-card-content h3 a:hover {
  color: var(--gold);
}
.featured-sermon-meta {
  font-size: 12px;
  color: var(--text-dimmer);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  row-gap: 4px;
}
.featured-sermon-meta span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--border);
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.featured-sermon-description {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
}
.featured-sermon-series {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  padding-top: 10px;
}
.featured-sermon-card .sermon-default-cover--thumb {
  border-radius: 0;
}
.featured-sermon-card .sermon-cover-play svg {
  width: 48px;
  height: 48px;
}
.featured-sermon-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 0;
}
.featured-sermon-video iframe,
.featured-sermon-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.featured-sermon-audio {
  width: 100%;
  margin-top: 8px;
}
.sermon-default-cover {
  background: linear-gradient(145deg, var(--off-black) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sermon-default-cover--thumb {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--off-black);
}
.sermon-default-cover--thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 52%);
  pointer-events: none;
}
.sermon-cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.sermon-cover-play svg {
  width: 52px;
  height: 52px;
  fill: var(--gold);
  opacity: 0.95;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.65));
  transition: transform 0.2s, opacity 0.2s;
}
.sermon-cover-link:hover .sermon-cover-play svg {
  transform: scale(1.06);
  opacity: 1;
}
.sermon-cover-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.sermon-cover-content {
  text-align: center;
  max-width: 100%;
}
.sermon-cover-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--gold);
  opacity: 0.85;
  margin-bottom: 12px;
}
.sermon-cover-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.sermon-cover-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dimmer);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-main--sermons {
  max-width: 1200px;
  padding-bottom: 120px;
}
.sermons-archive-hero {
  text-align: center;
  margin-bottom: 48px;
}
.sermons-archive-hero h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.sermons-archive-hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.search-section-sermons {
  background: var(--off-black);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  margin-bottom: 48px;
}
.search-section-sermons h2 {
  text-align: center;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.search-box-sermons {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.search-box-sermons input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box-sermons input:focus {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.search-box-sermons input::placeholder {
  color: var(--text-dimmer);
}
.filter-section-sermons {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
}
.filter-group-sermons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group-sermons label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.filter-group-sermons select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-width: 180px;
  transition: border-color 0.2s;
}
.filter-group-sermons select:focus {
  border-color: rgba(201, 168, 76, 0.45);
}

.sermon-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.sermon-archive-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sermon-archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.sermon-archive-series {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 4px;
}
.sermon-archive-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.sermon-archive-title a {
  color: var(--text);
  text-decoration: none;
}
.sermon-archive-title a:hover {
  color: var(--gold);
}
.sermon-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.sermon-archive-passage {
  background: var(--off-black);
  padding: 12px 16px;
  margin: 14px 0;
  font-style: italic;
  border-left: 3px solid var(--gold);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.sermon-media-audio {
  background: linear-gradient(135deg, var(--off-black) 0%, var(--dark) 100%);
  border-radius: 10px;
  padding: 22px;
  margin-top: 18px;
  border: 1px solid var(--border);
}
.sermon-media-audio-secondary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.sermon-media-audio-secondary .sermon-audio-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 10px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.play-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--gold);
  border: none;
  border-radius: 50%;
  color: var(--black);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}
.play-btn:hover {
  transform: scale(1.06);
  opacity: 0.92;
}
.progress-container {
  flex: 1;
  background-color: var(--mid);
  height: 6px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #e4c56f 100%);
  width: 0%;
  border-radius: 10px;
  transition: width 0.1s linear;
}
.time-display {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 88px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sermon-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: opacity 0.2s;
}
.sermon-download-link:hover {
  opacity: 0.85;
}

.sermon-video-wrap {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--border);
}
.sermon-video-wrap iframe,
.sermon-video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  height: auto;
  min-height: 200px;
}

.sermon-accent-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
}
.sermon-accent-link:hover {
  opacity: 0.9;
}

.no-results-sermons {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-dim);
}
.no-results-sermons h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.pagination-container-sermons {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pagination-info-sermons {
  color: var(--text-dim);
  font-size: 14px;
}
.pagination-sermons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.pagination-btn-sermons {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination-btn-sermons:hover:not(:disabled) {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}
.pagination-btn-sermons.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.pagination-btn-sermons:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pagination-ellipsis-sermons {
  padding: 8px 4px;
  color: var(--text-dimmer);
}

/* Sermon detail */
.sermon-detail-hero {
  text-align: center;
  margin-bottom: 40px;
}
.sermon-detail-hero .sermon-detail-series {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
  border-radius: 100px;
}
.sermon-detail-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.sermon-detail-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  color: var(--text-dim);
}
.sermon-detail-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sermon-detail-meta .meta-icon {
  color: var(--gold);
}
.sermon-detail-scripture {
  margin-top: 24px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  font-size: 16px;
}
.sermon-detail-media {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
}
.sermon-detail-media h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}
.sermon-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.sermon-detail-video iframe,
.sermon-detail-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.sermon-detail-audio audio {
  width: 100%;
  margin-top: 8px;
}
.sermon-detail-description {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}
.sermon-detail-description h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.sermon-detail-description p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
}
.sermon-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: opacity 0.2s;
}
.sermon-back-link:hover {
  opacity: 0.85;
}
.sermon-loading-state,
.sermon-error-state {
  text-align: center;
  padding: 100px 24px;
  color: var(--text-dim);
}
.sermon-error-state h2 {
  color: var(--text);
  margin-bottom: 12px;
}

@media (max-width: 1023px) {
  .filter-section-sermons {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group-sermons select {
    width: 100%;
  }
  .sermon-archive-grid {
    grid-template-columns: 1fr;
  }
  .player-controls {
    flex-wrap: wrap;
  }
  .time-display {
    flex: 1 0 100%;
    text-align: center;
  }
}
