/* Premium warm ministry refresh loaded after the compiled theme styles. */

:root,
[data-theme="light"],
[data-theme="dark"] {
  --pam-teal: #173f3a;
  --pam-teal-deep: #0f2f2b;
  --pam-teal-soft: #dcebe5;
  --pam-cream: #f7efe2;
  --pam-cream-light: #fffaf1;
  --pam-gold: #c79b3b;
  --pam-gold-soft: #efdcb1;
  --pam-charcoal: #1f2826;
  --pam-ink: #14211f;
  --pam-muted: #68736f;
  --pam-line: rgba(23, 63, 58, 0.14);
  --pam-shadow: 0 24px 70px rgba(19, 45, 40, 0.14);
  --pam-shadow-strong: 0 36px 90px rgba(10, 26, 24, 0.26);
  --pam-radius: 8px;
  --color-dark-charcoal: var(--pam-teal-deep);
  --color-near-black: #0b211f;
  --color-white: #fffaf1;
  --color-gold: var(--pam-gold);
  --color-tan: #d7b778;
  --color-surface: rgba(255, 250, 241, 0.86);
  --color-surface-strong: #fffaf1;
  --color-cream: var(--pam-cream);
  --color-text-light: #f7efe2;
  --color-text-muted: rgba(255, 250, 241, 0.68);
  --color-border: rgba(199, 155, 59, 0.2);
}

html {
  background: var(--pam-cream);
}

body {
  color: var(--pam-charcoal);
  background:
    radial-gradient(circle at 12% 4%, rgba(239, 220, 177, 0.42), transparent 26rem),
    linear-gradient(180deg, #fff8ed 0%, var(--pam-cream) 34%, #f2eadc 100%);
}

body,
button,
input,
textarea,
select {
  letter-spacing: 0;
}

a {
  color: var(--pam-teal);
}

a:hover {
  color: var(--pam-gold);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: -999px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--pam-teal-deep);
  color: #fffaf1;
  box-shadow: 0 12px 30px rgba(20, 33, 31, 0.18);
}

.skip-link:focus {
  left: 12px;
}

.site-main {
  overflow: hidden;
  background: transparent;
}

.site-header {
  top: 0;
  padding: 12px 0;
  background: rgba(255, 250, 241, 0.9);
  border-bottom: 1px solid rgba(23, 63, 58, 0.12);
  box-shadow: 0 16px 40px rgba(20, 33, 31, 0.08);
}

.site-logo {
  min-width: 0;
  flex: 1 1 auto;
}

.site-logo a {
  max-width: 100%;
}

.site-logo-link--image::before {
  display: none;
}

.site-logo-image--mobile {
  display: none;
}

.header-container {
  width: min(100% - 40px, 1240px);
  max-width: 1240px;
  padding-left: 0;
  padding-right: 0;
}

.logo-text,
.nav-menu a,
.search-toggle,
.menu-toggle {
  color: var(--pam-ink);
}

.logo-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(18px, 2vw, 24px);
}

.nav-menu {
  gap: clamp(16px, 2.2vw, 34px);
}

.nav-menu,
.nav-menu ul {
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a,
.mobile-nav-menu a {
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.header-actions .btn-primary {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
}

.search-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(23, 63, 58, 0.07);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-donation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #d8ad4d, var(--pam-gold));
  color: #13201e;
  box-shadow: 0 16px 36px rgba(199, 155, 59, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5bd60, #c8942e);
  color: #101a18;
  box-shadow: 0 20px 42px rgba(199, 155, 59, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(23, 63, 58, 0.22);
  background: rgba(255, 250, 241, 0.82);
  color: var(--pam-teal);
}

.btn-secondary:hover {
  border-color: rgba(199, 155, 59, 0.52);
  background: #fffdf7;
  color: var(--pam-teal-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 250, 241, 0.28);
  background: rgba(255, 250, 241, 0.08);
  color: #fffaf1;
}

.btn-ghost:hover {
  background: rgba(255, 250, 241, 0.18);
  color: #fffaf1;
}

.btn-lg {
  min-height: 54px;
  padding: 16px 24px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.section-container,
.archive-container,
.page-container,
.single-container,
.footer-container {
  width: min(100% - 40px, 1240px);
  max-width: 1240px;
  padding-left: 0;
  padding-right: 0;
}

.section-spaced {
  position: relative;
  padding: clamp(68px, 8vw, 118px) 0;
}

.section-header {
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-header > div {
  max-width: 760px;
}

.section-eyebrow {
  margin: 0 0 10px;
  color: var(--pam-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  color: var(--pam-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--pam-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(23, 63, 58, 0.16);
  border-radius: 999px;
  color: var(--pam-teal);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(255, 250, 241, 0.64);
}

.section-link:hover {
  border-color: rgba(199, 155, 59, 0.52);
  background: #fffaf1;
}

.hero-section {
  min-height: min(820px, calc(100svh - 70px));
  margin-top: 0;
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(224, 179, 93, 0.26), transparent 23rem),
    linear-gradient(135deg, #10332f 0%, #143d38 44%, #2e332b 100%);
  isolation: isolate;
}

.hero-background {
  background-position: center right;
  opacity: 0.36;
  filter: saturate(0.86) contrast(1.04);
  transform: scale(1.02);
}

.hero-video,
.hero-background video,
.hero-background picture,
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background picture,
.hero-background img {
  display: block;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 42, 38, 0.96) 0%, rgba(13, 42, 38, 0.82) 42%, rgba(13, 42, 38, 0.44) 100%),
    linear-gradient(180deg, rgba(10, 31, 28, 0.5), rgba(10, 31, 28, 0.88));
}

.hero-light {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.7;
  animation: pamLightDrift 10s ease-in-out infinite;
}

.hero-light-one {
  top: 16%;
  right: 18%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(237, 205, 135, 0.42), transparent 70%);
}

.hero-light-two {
  left: 4%;
  bottom: 10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(220, 235, 229, 0.18), transparent 70%);
  animation-delay: -4s;
}

.hero-container {
  max-width: 1240px;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.72fr);
  gap: clamp(32px, 6vw, 92px);
  padding: 0 20px;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-label {
  margin-bottom: 18px;
  color: #efdcb1;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.hero-heading {
  max-width: 760px;
  margin-bottom: 24px;
  color: #fffaf1;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
}

.hero-heading .highlight {
  display: block;
  color: #efd08a;
}

.hero-subheading {
  max-width: 640px;
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-ctas {
  margin-bottom: 28px;
}

.hero-social {
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 250, 241, 0.66);
  font-size: 13px;
}

.hero-social a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.86);
  background: rgba(255, 250, 241, 0.08);
}

.hero-social a:hover {
  color: #fffaf1;
  transform: translateY(-2px);
}

.hero-media-stack {
  position: relative;
  min-height: 590px;
}

.hero-portrait-card {
  position: absolute;
  inset: 0 0 34px 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.08);
  box-shadow: var(--pam-shadow-strong);
}

.hero-portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 40%, rgba(12, 33, 30, 0.78)),
    radial-gradient(circle at 72% 18%, rgba(239, 220, 177, 0.28), transparent 16rem);
}

.hero-portrait-media,
.hero-portrait-media img,
.hero-portrait-media video {
  width: 100%;
  height: 100%;
}

.hero-portrait-media img,
.hero-portrait-media video {
  display: block;
  object-fit: cover;
}

.hero-scripture-card,
.hero-floating-card {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.16);
  box-shadow: 0 22px 54px rgba(8, 24, 22, 0.28);
  backdrop-filter: blur(18px);
}

.hero-scripture-card {
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px;
}

.hero-scripture-card span,
.hero-floating-card span {
  display: block;
  color: #efdcb1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scripture-card strong,
.hero-floating-card strong {
  display: block;
  margin-top: 6px;
  color: #fffaf1;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.12;
}

.hero-scripture-card small,
.hero-floating-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 241, 0.7);
  line-height: 1.45;
}

.hero-floating-card {
  width: min(295px, 72%);
  padding: 18px;
  color: #fffaf1;
}

.hero-sermon-card {
  left: 0;
  top: 12%;
  animation: pamFloatCard 6s ease-in-out infinite;
}

.hero-event-card {
  right: 0;
  bottom: 0;
  animation: pamFloatCard 6.8s ease-in-out infinite;
  animation-delay: -2s;
}

.featured-sermons-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(220, 235, 229, 0.7), transparent 24rem),
    linear-gradient(180deg, var(--pam-cream-light), #f3ebde);
}

.shorts-section {
  color: #fffaf1;
  background:
    radial-gradient(circle at 80% 10%, rgba(199, 155, 59, 0.22), transparent 24rem),
    linear-gradient(135deg, #0f302c 0%, #173f3a 58%, #223c37 100%);
}

.shorts-section .section-title,
.shorts-section .section-intro,
.shorts-section .section-link,
.shorts-section .card-title a {
  color: #fffaf1;
}

.shorts-section .section-intro,
.short-card-content p {
  color: rgba(255, 250, 241, 0.72);
}

.shorts-section .section-link {
  border-color: rgba(255, 250, 241, 0.2);
  background: rgba(255, 250, 241, 0.08);
}

.about-section {
  background:
    linear-gradient(90deg, rgba(239, 220, 177, 0.28), transparent 38%),
    #fffaf1;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}

.about-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--pam-radius);
  box-shadow: var(--pam-shadow);
}

.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 47, 43, 0.04), rgba(15, 47, 43, 0.64));
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.about-media-note {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.22);
  border-radius: var(--pam-radius);
  background: rgba(16, 47, 43, 0.72);
  color: #fffaf1;
  backdrop-filter: blur(18px);
}

.about-media-note span {
  color: #efdcb1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-media-note strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 24px;
}

.about-copy p:not(.section-eyebrow) {
  color: var(--pam-muted);
  font-size: 17px;
  line-height: 1.85;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.about-pillars div {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--pam-line);
  border-radius: var(--pam-radius);
  background: rgba(247, 239, 226, 0.76);
}

.about-pillars span {
  color: var(--pam-gold);
  font-size: 12px;
  font-weight: 800;
}

.about-pillars strong {
  display: block;
  margin-top: 18px;
  color: var(--pam-ink);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
}

.events-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(199, 155, 59, 0.18), transparent 22rem),
    linear-gradient(180deg, #f8f1e5 0%, #efe5d5 100%);
}

.books-section {
  background:
    linear-gradient(180deg, #fffaf1 0%, #f5ecde 100%);
}

.testimonials-section {
  background:
    radial-gradient(circle at 16% 20%, rgba(220, 235, 229, 0.62), transparent 24rem),
    #fffaf1;
}

/* ═══════════════════════════════════════════════════════════════
   MINISTRIES — ARCHIVE & SINGLE
═══════════════════════════════════════════════════════════════ */

/* ── Archive background ────────────────────────────────────── */
.archive-ministry {
  background:
    radial-gradient(circle at 88% 6%, rgba(199, 155, 59, 0.1), transparent 22rem),
    radial-gradient(circle at 4% 70%, rgba(220, 235, 229, 0.55), transparent 28rem),
    #fffaf1;
}

/* ── Archive hero ──────────────────────────────────────────── */
.ministry-archive-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--pam-line);
  margin-bottom: 48px;
}

.ministry-archive-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(32px, 5vw, 54px);
  color: var(--pam-ink);
  margin: 8px 0 16px;
}

.ministry-archive-description {
  max-width: 680px;
  color: var(--pam-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ministry-archive-scripture {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--pam-gold);
  background: rgba(199, 155, 59, 0.06);
  border-radius: 0 var(--pam-radius) var(--pam-radius) 0;
  max-width: 640px;
}

.ministry-archive-scripture p {
  margin: 0 0 6px;
  font-style: italic;
  font-size: 15px;
  color: var(--pam-charcoal);
  line-height: 1.65;
}

.ministry-archive-scripture cite {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pam-gold);
  font-style: normal;
}

/* ── Section titles ────────────────────────────────────────── */
.ministry-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--pam-ink);
  margin: 0 0 28px;
}

/* ── Featured ministry grid ────────────────────────────────── */
.ministry-featured-section {
  margin-bottom: 56px;
}

.ministry-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── All ministries grid ───────────────────────────────────── */
.ministry-all-section {
  margin-bottom: 56px;
}

.ministry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── Ministry card ─────────────────────────────────────────── */
.ministry-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--pam-radius);
  overflow: hidden;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--pam-line);
  box-shadow: 0 6px 28px rgba(19, 45, 40, 0.08);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.ministry-card:hover {
  box-shadow: var(--pam-shadow-strong);
  transform: translateY(-5px);
}

.ministry-card--featured {
  border-color: rgba(199, 155, 59, 0.35);
  box-shadow: 0 6px 28px rgba(199, 155, 59, 0.14);
}

.ministry-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ministry-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.ministry-card:hover .ministry-card-image {
  transform: scale(1.06);
}

.ministry-card-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--pam-gold);
  color: var(--pam-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ministry-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  flex: 1;
}

.ministry-card-title {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--pam-ink);
}

.ministry-card-title a {
  color: inherit;
  text-decoration: none;
}

.ministry-card-title a:hover {
  color: var(--pam-teal);
}

.ministry-card-tagline {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pam-gold);
}

.ministry-card-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--pam-muted);
  flex: 1;
}

.ministry-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pam-teal);
  text-decoration: none;
  margin-top: 4px;
  transition: color 220ms ease, gap 220ms ease;
}

.ministry-card-cta:hover {
  color: var(--pam-gold);
  gap: 8px;
}

/* ── Join CTA ──────────────────────────────────────────────── */
.ministry-join-cta {
  margin-top: 64px;
  padding: 56px 48px;
  border-radius: var(--pam-radius);
  background:
    radial-gradient(circle at 80% 20%, rgba(199, 155, 59, 0.18), transparent 18rem),
    var(--pam-teal-deep);
  text-align: center;
}

.ministry-join-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ministry-join-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(22px, 3vw, 32px);
  color: #fffaf1;
  margin: 0 0 16px;
}

.ministry-join-description {
  color: rgba(255, 250, 241, 0.75);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 32px;
}

.ministry-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Single ministry ───────────────────────────────────────── */
.ministry-hero .ministry-tagline-hero {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pam-gold);
  margin: 4px 0 8px;
}

.ministry-hero-scripture {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--pam-gold);
  background: rgba(199, 155, 59, 0.07);
  border-radius: 0 6px 6px 0;
}

.ministry-hero-scripture p {
  margin: 0 0 4px;
  font-style: italic;
  color: rgba(255, 250, 241, 0.9);
  font-size: 14px;
}

.ministry-hero-scripture cite {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pam-gold);
  font-style: normal;
}

/* ── Activities ────────────────────────────────────────────── */
.ministry-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.ministry-activity-card {
  padding: 20px;
  border-radius: var(--pam-radius);
  background: rgba(23, 63, 58, 0.05);
  border: 1px solid var(--pam-line);
}

.ministry-activity-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--pam-ink);
}

.ministry-activity-card p {
  margin: 0;
  font-size: 13px;
  color: var(--pam-muted);
  line-height: 1.6;
}

/* ── Gallery ───────────────────────────────────────────────── */
.ministry-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.ministry-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--pam-radius) - 2px);
  overflow: hidden;
}

.ministry-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.ministry-gallery-item:hover img {
  transform: scale(1.06);
}

/* ── Testimonials ──────────────────────────────────────────── */
.ministry-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ministry-testimonial-item {
  padding: 24px;
  border-radius: var(--pam-radius);
  background: rgba(23, 63, 58, 0.04);
  border: 1px solid var(--pam-line);
  margin: 0;
}

.ministry-testimonial-item p {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--pam-charcoal);
  line-height: 1.7;
}

.ministry-testimonial-item footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ministry-testimonial-item cite {
  font-size: 13px;
  font-weight: 700;
  color: var(--pam-ink);
  font-style: normal;
}

.testimonial-role {
  font-size: 12px;
  color: var(--pam-muted);
}

/* ── Resources ─────────────────────────────────────────────── */
.ministry-resources-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ministry-resource-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--pam-radius);
  background: rgba(23, 63, 58, 0.05);
  border: 1px solid var(--pam-line);
  text-decoration: none;
  color: var(--pam-teal);
  font-size: 14px;
  font-weight: 600;
  transition: background 220ms ease;
}

.ministry-resource-item a:hover {
  background: rgba(23, 63, 58, 0.1);
}

.resource-type-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--pam-gold);
  color: var(--pam-ink);
  flex-shrink: 0;
}

/* ── Sidebar cards ─────────────────────────────────────────── */
.ministry-meeting-list,
.ministry-contact-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--pam-text-reading);
  line-height: 1.5;
}

.ministry-meeting-list strong,
.ministry-contact-list strong {
  color: var(--pam-ink);
}

.ministry-contact-list a {
  color: var(--pam-teal);
  text-decoration: none;
}

.ministry-contact-list a:hover {
  color: var(--pam-gold);
  text-decoration: underline;
}

.ministry-leader-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
  border: 2px solid var(--pam-line);
}

.ministry-leader-name {
  margin: 0 0 2px;
  font-size: 16px;
  color: var(--pam-ink);
}

.ministry-leader-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pam-gold);
  margin: 0 0 10px;
}

.ministry-leader-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--pam-muted);
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ministry-join-cta {
    padding: 40px 24px;
  }

  .ministry-featured-grid,
  .ministry-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .ministry-activities-grid {
    grid-template-columns: 1fr;
  }

  .ministry-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ministry-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ministry-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ministry-join-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Blog archive ──────────────────────────────────────────── */
.blog-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 36px;
}

.category-filter-pill {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--pam-line);
  background: rgba(23, 63, 58, 0.05);
  color: var(--pam-teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.category-filter-pill:hover,
.category-filter-pill.is-active {
  background: var(--pam-teal);
  border-color: var(--pam-teal);
  color: #fffaf1;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT DISCOVERY SECTION
═══════════════════════════════════════════════════════════════ */

.content-discovery-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(199, 155, 59, 0.12), transparent 24rem),
    radial-gradient(circle at 4% 80%, rgba(220, 235, 229, 0.5), transparent 28rem),
    #fffaf1;
}

/* ── Two-column discovery grid ─────────────────────────────── */
.content-discovery-grid {
  display: grid;
  grid-template-columns: 1fr 0.56fr;
  gap: 28px;
  align-items: start;
  margin-top: 40px;
}

/* ── Featured article ──────────────────────────────────────── */
.discovery-featured {
  display: flex;
  flex-direction: column;
  border-radius: var(--pam-radius);
  overflow: hidden;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--pam-line);
  box-shadow: var(--pam-shadow);
  transition: box-shadow 320ms ease, transform 320ms ease;
}

.discovery-featured:hover {
  box-shadow: var(--pam-shadow-strong);
  transform: translateY(-4px);
}

.discovery-featured-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.discovery-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 480ms ease;
}

.discovery-featured:hover .discovery-featured-image {
  transform: scale(1.04);
}

.discovery-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--pam-gold);
  color: var(--pam-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-featured-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  flex: 1;
}

.discovery-category-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pam-gold);
  text-decoration: none;
}

.discovery-category-label:hover {
  color: var(--pam-teal);
}

.discovery-featured-title {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.22;
  color: var(--pam-ink);
}

.discovery-featured-title a {
  color: inherit;
  text-decoration: none;
}

.discovery-featured-title a:hover {
  color: var(--pam-teal);
}

.discovery-featured-excerpt {
  margin: 0;
  color: var(--pam-muted);
  font-size: 15px;
  line-height: 1.7;
}

.discovery-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--pam-line);
}

.discovery-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pam-muted);
  font-size: 13px;
}

.discovery-meta-sep {
  opacity: 0.5;
}

/* ── Recent article cards ──────────────────────────────────── */
.discovery-recents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discovery-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--pam-line);
  box-shadow: 0 4px 20px rgba(19, 45, 40, 0.07);
  text-decoration: none;
  transition: box-shadow 280ms ease, transform 280ms ease, background 280ms ease;
}

.discovery-card:hover {
  box-shadow: 0 12px 36px rgba(19, 45, 40, 0.14);
  transform: translateY(-3px);
  background: #fffaf1;
}

.discovery-card-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--pam-radius) - 2px);
  overflow: hidden;
  flex-shrink: 0;
}

.discovery-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.discovery-card:hover .discovery-card-image {
  transform: scale(1.06);
}

.discovery-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.discovery-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pam-ink);
}

.discovery-card-title a {
  color: inherit;
  text-decoration: none;
}

.discovery-card-title a:hover {
  color: var(--pam-teal);
}

.discovery-card-date {
  font-size: 12px;
  color: var(--pam-muted);
}

/* ── Category browse ───────────────────────────────────────── */
.discovery-topics {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--pam-line);
}

.discovery-topics-title {
  margin: 0 0 20px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--pam-ink);
}

.discovery-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discovery-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  background: rgba(23, 63, 58, 0.06);
  border: 1px solid rgba(23, 63, 58, 0.14);
  text-decoration: none;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.discovery-topic-pill:hover {
  background: var(--pam-teal);
  border-color: var(--pam-teal);
  transform: translateY(-2px);
}

.discovery-topic-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pam-teal);
  transition: color 240ms ease;
}

.discovery-topic-pill:hover .discovery-topic-name {
  color: #fffaf1;
}

.discovery-topic-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--pam-muted);
  background: rgba(23, 63, 58, 0.1);
  padding: 2px 7px;
  border-radius: 100px;
  transition: background 240ms ease, color 240ms ease;
}

.discovery-topic-pill:hover .discovery-topic-count {
  background: rgba(255, 250, 241, 0.22);
  color: rgba(255, 250, 241, 0.85);
}

/* ── View all CTA ──────────────────────────────────────────── */
.discovery-footer-cta {
  margin-top: 44px;
  text-align: center;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .content-discovery-grid {
    grid-template-columns: 1fr;
  }

  .discovery-recents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .discovery-card {
    grid-template-columns: 80px 1fr;
  }
}

@media (max-width: 600px) {
  .discovery-recents {
    grid-template-columns: 1fr;
  }

  .discovery-featured-body {
    padding: 20px;
  }

  .discovery-featured-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .discovery-topics-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .discovery-topic-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* ═══════════════════════════════════════════════════════════════
   END CONTENT DISCOVERY SECTION
═══════════════════════════════════════════════════════════════ */

.newsletter-section {
  color: #fffaf1;
  background:
    radial-gradient(circle at 82% 14%, rgba(239, 220, 177, 0.24), transparent 22rem),
    linear-gradient(135deg, #102f2b, #173f3a);
}

.newsletter-heading,
.newsletter-subheading,
.newsletter-notice {
  color: #fffaf1;
}

.newsletter-subheading,
.newsletter-notice {
  color: rgba(255, 250, 241, 0.72);
}

.card,
.testimonial-card,
.teaching-player-main,
.teaching-next-sidebar,
.teaching-player-meta {
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.9);
  box-shadow: 0 18px 48px rgba(20, 33, 31, 0.1);
}

.card:hover,
.testimonial-card:hover {
  box-shadow: 0 28px 68px rgba(20, 33, 31, 0.16);
}

.card-image-wrapper {
  background:
    radial-gradient(circle at 70% 20%, rgba(199, 155, 59, 0.22), transparent 16rem),
    var(--pam-teal-deep);
}

.card-overlay {
  background: linear-gradient(180deg, rgba(15, 47, 43, 0.04), rgba(15, 47, 43, 0.68));
}

.card-body {
  padding: 20px;
}

.card-category,
.difficulty-pill,
.short-category {
  border-radius: 999px;
  background: rgba(199, 155, 59, 0.14);
  color: #8a671c;
}

.card-title {
  font-size: 21px;
}

.card-title a,
.author-name,
.series-card strong,
.next-teaching-item strong,
.recent-watch-item span {
  color: var(--pam-ink);
}

.card-title a:hover {
  color: var(--pam-teal);
}

.card-excerpt,
.card-date,
.event-meta,
.author-title {
  color: var(--pam-muted);
}

.card-footer {
  border-top-color: rgba(23, 63, 58, 0.1);
}

.duration-badge,
.recent-badge,
.short-badge {
  border-radius: 999px;
  background: rgba(20, 33, 31, 0.82);
  color: #fffaf1;
}

.play-icon {
  width: 54px;
  height: 54px;
  background: var(--pam-gold);
  color: #14211f;
}

.sermons-grid,
.sermons-archive-grid {
  gap: 22px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.event-card .card-image-wrapper {
  padding-top: 72%;
}

.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  min-width: 70px;
  place-items: center;
  padding: 10px 12px;
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.92);
  color: var(--pam-teal-deep);
  box-shadow: 0 12px 32px rgba(20, 33, 31, 0.18);
}

.event-date-badge span {
  color: var(--pam-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-date-badge strong {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 0.95;
}

.event-icon {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--pam-gold);
  color: #14211f;
  font-size: 13px;
  font-weight: 800;
}

.event-countdown {
  left: auto;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--pam-radius);
  background: rgba(15, 47, 43, 0.88);
  color: #efdcb1;
}

.countdown-value {
  font-family: var(--font-sans);
  font-size: 16px;
}

.event-meta {
  gap: 10px;
  font-size: 14px;
}

.event-date-meta,
.event-location-meta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.meta-label {
  color: var(--pam-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(23, 63, 58, 0.14);
  border-radius: var(--pam-radius);
  background:
    radial-gradient(circle at 82% 12%, rgba(239, 220, 177, 0.36), transparent 18rem),
    rgba(255, 250, 241, 0.78);
  box-shadow: 0 22px 54px rgba(20, 33, 31, 0.1);
}

.empty-state-panel h3 {
  max-width: 720px;
  margin: 0;
  color: var(--pam-ink);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.empty-state-panel p:not(.section-eyebrow) {
  max-width: 640px;
  color: var(--pam-muted);
}

.dark-empty-state {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.08);
}

.dark-empty-state h3,
.dark-empty-state p:not(.section-eyebrow) {
  color: #fffaf1;
}

.sermon-placeholder-grid {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(220px, 0.5fr));
}

.placeholder-sermon-card {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--pam-radius);
  background:
    linear-gradient(180deg, rgba(15, 47, 43, 0.06), rgba(15, 47, 43, 0.86)),
    radial-gradient(circle at 80% 16%, rgba(199, 155, 59, 0.42), transparent 14rem),
    var(--pam-teal);
  color: #fffaf1;
}

.placeholder-sermon-card span {
  color: #efdcb1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-sermon-card strong {
  display: block;
  margin-top: 52px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
}

.placeholder-sermon-card small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 250, 241, 0.7);
}

.short-card {
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.08);
  box-shadow: 0 18px 46px rgba(7, 24, 22, 0.2);
}

.short-card-media {
  border-radius: var(--pam-radius) var(--pam-radius) 0 0;
}

.short-play {
  background: var(--pam-gold);
  color: #14211f;
}

.featured-book-showcase {
  border: 1px solid rgba(23, 63, 58, 0.14);
  border-radius: var(--pam-radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(220, 235, 229, 0.76), transparent 20rem),
    rgba(255, 250, 241, 0.82);
  box-shadow: var(--pam-shadow);
}

.book-title,
.newsletter-heading {
  color: var(--pam-ink);
}

.newsletter-heading {
  color: #fffaf1;
}

.bible-app-promo {
  margin: 0;
  padding: clamp(68px, 8vw, 118px) 0;
  background:
    linear-gradient(180deg, #f5ecde 0%, #fffaf1 100%);
}

.bible-app-promo-inner {
  width: min(100% - 40px, 1180px);
  border-color: rgba(23, 63, 58, 0.14);
  border-radius: var(--pam-radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(199, 155, 59, 0.25), transparent 22rem),
    linear-gradient(135deg, #123631, #173f3a 58%, #223c37);
  box-shadow: var(--pam-shadow-strong);
}

.bible-app-copy h2 {
  color: #fffaf1;
}

.bible-app-copy p {
  color: rgba(255, 250, 241, 0.76);
}

.bible-app-highlights li {
  border-color: rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.08);
}

.bible-app-phone-frame {
  border-radius: 30px;
  background: linear-gradient(145deg, #071715, #203f39);
}

.bible-app-floating-card {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.12);
}

.testimonial-quote {
  color: var(--pam-charcoal);
  border-left-color: var(--pam-gold);
}

.community-cta {
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(23, 63, 58, 0.14);
  border-radius: var(--pam-radius);
  background: rgba(247, 239, 226, 0.76);
}

.community-cta h3 {
  color: var(--pam-ink);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
}

.social-btn {
  border-color: rgba(23, 63, 58, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.76);
  color: var(--pam-teal);
}

.newsletter-container {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 82px);
}

.newsletter-form input,
.footer-newsletter input,
.search-modal input[type="search"] {
  min-height: 54px;
  border-color: rgba(23, 63, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.9);
  color: var(--pam-ink);
}

.newsletter-notice {
  grid-column: 2;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(199, 155, 59, 0.16), transparent 18rem),
    linear-gradient(180deg, #102f2b, var(--pam-footer-bg, #0b211f));
}

.footer-title,
.footer-brand,
.footer-description,
.footer-menu a,
.daily-scripture p,
.daily-scripture cite {
  color: #fffaf1;
}

.footer-description,
.footer-menu a,
.creator-credit,
.copyright {
  color: rgba(255, 250, 241, 0.66);
}

.archive-wrapper,
.page-wrapper,
.single-wrapper,
.single-content-wrapper {
  background:
    radial-gradient(circle at 12% 0%, rgba(220, 235, 229, 0.7), transparent 24rem),
    linear-gradient(180deg, #fff8ed, #f3eadc);
}

.archive-title,
.single-title,
.page-title,
.archive-description {
  color: var(--pam-ink);
}

.archive-sidebar,
.content-panel,
.single-hero {
  border-color: rgba(23, 63, 58, 0.12);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.86);
  box-shadow: var(--pam-shadow);
}

/* Restore legible text colours inside the cream hero — style.css sets these
   to white for the original dark-background hero design. */
.single-hero h1,
.single-hero h2,
.single-hero h3 {
  color: var(--pam-ink);
}

.single-hero .single-lede,
.single-hero .single-lede p {
  color: var(--pam-text-reading);
}

/* Breadcrumb — legible on the cream single/archive backgrounds. */
.breadcrumb {
  color: var(--pam-muted);
}

.breadcrumb a {
  color: var(--pam-teal);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--pam-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.latest-teachings-section {
  background:
    radial-gradient(circle at 84% 10%, rgba(199, 155, 59, 0.16), transparent 20rem),
    linear-gradient(180deg, #f4ebdd, #fffaf1);
}

.sermons-carousel,
.latest-teachings-carousel {
  padding: 2px 2px 54px;
}

.sermons-carousel .swiper-slide,
.latest-teachings-carousel .swiper-slide {
  height: auto;
}

.teaching-streaming-theater {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: 18px;
  margin-bottom: clamp(36px, 6vw, 76px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: var(--pam-radius);
  background:
    radial-gradient(circle at 16% 8%, rgba(239, 220, 177, 0.22), transparent 22rem),
    radial-gradient(circle at 82% 20%, rgba(220, 235, 229, 0.12), transparent 18rem),
    linear-gradient(135deg, #0c2925, #153c36 58%, #202c2a);
  box-shadow: var(--pam-shadow-strong);
}

.theater-player-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.08);
  box-shadow: 0 26px 70px rgba(7, 24, 22, 0.32);
}

.theater-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(13, 42, 38, 0.18), rgba(13, 42, 38, 0.6)),
    var(--player-thumb) center / cover,
    #081a18;
}

.theater-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.theater-copy {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
}

.theater-copy h1,
.theater-playlist h2 {
  margin: 0;
  color: #fffaf1;
  font-family: var(--font-serif);
  line-height: 1.04;
}

.theater-copy h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 60px);
}

.theater-copy p:not(.section-eyebrow) {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.theater-meta,
.theater-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.theater-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.theater-actions {
  margin-top: 8px;
}

.theater-playlist {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.1);
  backdrop-filter: blur(18px);
}

.theater-playlist-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
}

.theater-playlist-header .section-eyebrow {
  margin-bottom: 5px;
}

.theater-playlist-header .section-link {
  border-color: rgba(255, 250, 241, 0.18);
  background: rgba(255, 250, 241, 0.08);
  color: #fffaf1;
}

.theater-playlist-list {
  display: grid;
  max-height: 650px;
  overflow: auto;
  padding: 10px;
  scrollbar-color: rgba(239, 220, 177, 0.5) rgba(255, 250, 241, 0.08);
}

.theater-playlist-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--pam-radius);
  background: transparent;
  color: #fffaf1;
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.theater-playlist-item:hover,
.theater-playlist-item.is-active {
  border-color: rgba(239, 220, 177, 0.32);
  background: rgba(255, 250, 241, 0.12);
  transform: translateY(-1px);
}

.playlist-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #081a18;
}

.playlist-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.playlist-thumb small {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(8, 24, 22, 0.84);
  color: #fffaf1;
  font-size: 10px;
  font-weight: 800;
}

.playlist-copy {
  display: grid;
  gap: 7px;
  align-content: center;
  min-width: 0;
}

.playlist-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fffaf1;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.playlist-copy small {
  color: rgba(255, 250, 241, 0.62);
}

.teaching-continue-strip {
  margin-bottom: clamp(36px, 6vw, 72px);
}

.continue-watching-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.continue-watching-list:empty {
  display: none;
}

.teaching-library-controls {
  border-color: rgba(23, 63, 58, 0.12);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 16px 40px rgba(20, 33, 31, 0.08);
}

.teaching-search-form input {
  background: #fffaf1;
  color: var(--pam-ink);
}

.teaching-topic-strip a {
  border-color: rgba(23, 63, 58, 0.14);
  background: rgba(255, 250, 241, 0.66);
  color: var(--pam-teal);
}

.teaching-topic-strip a.active,
.teaching-topic-strip a:hover {
  background: var(--pam-teal);
  color: #fffaf1;
}

.teaching-library-section,
.teaching-series-section,
.teaching-reels-section {
  margin-bottom: clamp(48px, 7vw, 90px);
}

.teaching-library-grid {
  align-items: stretch;
}

.teaching-reel-card {
  border-color: rgba(23, 63, 58, 0.14);
  box-shadow: 0 18px 52px rgba(20, 33, 31, 0.16);
}

.single-teaching-wrapper {
  background:
    radial-gradient(circle at 20% 0%, rgba(239, 220, 177, 0.22), transparent 24rem),
    linear-gradient(180deg, #102f2b 0, #102f2b 620px, #f5ecde 620px, #fffaf1 100%);
}

/* Breadcrumb sits on the dark green top band — override to cream/light tones. */
.single-teaching-wrapper .breadcrumb {
  color: rgba(255, 250, 241, 0.6);
}

.single-teaching-wrapper .breadcrumb a {
  color: rgba(255, 250, 241, 0.85);
}

.single-teaching-wrapper .breadcrumb a:hover {
  color: var(--pam-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.teaching-watch-shell {
  margin-top: 22px;
}

.teaching-player-main,
.teaching-next-sidebar {
  border-color: rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.1);
  box-shadow: var(--pam-shadow-strong);
}

.teaching-player-meta {
  background: linear-gradient(180deg, rgba(15, 47, 43, 0.96), rgba(12, 38, 35, 0.98));
}

.teaching-player-meta h1,
.teaching-next-sidebar h2 {
  color: #fffaf1;
}

.teaching-player-meta .btn-ghost,
.teaching-player-actions .btn-ghost {
  border-color: rgba(255, 250, 241, 0.22);
}

.teaching-next-sidebar {
  color: #fffaf1;
}

.next-teaching-item,
.recent-watch-item {
  border-color: rgba(23, 63, 58, 0.12);
  background: rgba(255, 250, 241, 0.72);
}

@keyframes pamFloatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pamLightDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(12px, -16px, 0) scale(1.05);
  }
}

/* =============================================
   EDITORIAL CONTENT TYPOGRAPHY SYSTEM
   Fixes text rendered invisible by --color-text-light/#f7efe2
   and --color-text-muted/rgba(255,250,241,0.68) on the
   warm cream page backgrounds introduced by this file.
   The streaming.scss uses the same variables on dark
   backgrounds, so we override by selector here rather
   than changing the variables globally.
   ============================================= */

/* Content-specific color tokens */
:root {
  --pam-text-body:    #1e1e1e;   /* rich charcoal — primary body text          */
  --pam-text-reading: #4b4b4b;  /* warm charcoal — comfortable reading text    */
  --pam-text-meta:    #6e6e6e;  /* soft gray     — metadata / captions         */
}

/* ---- Page-wrapper defaults ---- */
.archive-wrapper,
.page-wrapper,
.single-wrapper,
.single-content-wrapper {
  color: var(--pam-text-body);
}

/* ---- Core content containers ---- */
.content-panel,
.page-body,
.single-lede,
.archive-description,
.single-content-wrapper,
.devotional-content,
.book-description {
  color: var(--pam-text-reading);
}

/* ---- Paragraphs & list items inside content ---- */
.content-panel p,
.content-panel li,
.page-body p,
.page-body li,
.single-lede p,
.archive-description p,
.entry-content p,
.entry-content li {
  color: var(--pam-text-reading);
}

/* ---- Headings inside content panels ---- */
.content-panel h1,
.content-panel h2,
.content-panel h3,
.content-panel h4,
.content-panel h5,
.content-panel h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--pam-ink);
}

/* ---- Blockquotes & pull-quotes ---- */
.content-panel blockquote,
.entry-content blockquote,
.wp-block-quote,
.single-quote {
  border-left: 3px solid var(--pam-gold);
  padding-left: 1.25em;
  font-style: italic;
  color: var(--pam-charcoal);
}

.content-panel blockquote p,
.entry-content blockquote p,
.wp-block-quote p {
  color: var(--pam-charcoal);
}

.single-quote {
  color: var(--pam-ink);
}

/* ---- Metadata badges (single pages) ---- */
.single-meta-list span,
.sermon-meta span {
  color: var(--pam-text-meta);
}

/* ---- Sermon page heading & related links ---- */
.sermon-title {
  color: var(--pam-ink);
}

.related-sermon-link {
  color: var(--pam-ink);
}

.related-date {
  color: var(--pam-text-meta);
}

/* ---- Category filter sidebar ---- */
.category-filter a {
  color: var(--pam-teal);
}

/* ---- Difficulty pills / episode numbers on cards ---- */
.difficulty-pill,
.episode-number {
  color: var(--pam-teal);
  border-color: rgba(23, 63, 58, 0.18);
  background: rgba(23, 63, 58, 0.07);
}

/* ---- Mobile nav (cream dropdown background) ---- */
.mobile-nav-menu a {
  color: var(--pam-ink);
}

/* ---- Gutenberg blocks ---- */
.wp-block-paragraph {
  color: var(--pam-text-reading);
}

.wp-block-list,
.wp-block-list li {
  color: var(--pam-text-reading);
}

.wp-block-heading {
  color: var(--pam-ink);
}

.wp-block-verse,
.wp-block-preformatted {
  color: var(--pam-text-reading);
}

/* ---- Content links (non-button) ---- */
.content-panel a:not([class*="btn"]),
.entry-content a:not([class*="btn"]),
.page-body a:not([class*="btn"]) {
  color: var(--pam-teal);
  text-decoration-color: rgba(23, 63, 58, 0.28);
  text-underline-offset: 3px;
}

.content-panel a:not([class*="btn"]):hover,
.entry-content a:not([class*="btn"]):hover,
.page-body a:not([class*="btn"]):hover {
  color: var(--pam-gold);
  text-decoration-color: rgba(199, 155, 59, 0.45);
}

/* ---- Series cards (teaching library — sits on cream) ---- */
.series-card {
  border-color: rgba(23, 63, 58, 0.12);
  background:
    radial-gradient(circle at 82% 12%, rgba(199, 155, 59, 0.12), transparent 8rem),
    rgba(255, 250, 241, 0.88);
}

.series-card strong {
  color: var(--pam-ink);
}

.series-card small {
  color: var(--pam-muted);
}

/* ---- Sidebar cards & filter groups ---- */
.sidebar-card h2,
.sidebar-card h3,
.filters-group h2,
.filters-group h3 {
  color: var(--pam-ink);
}

.sidebar-card p,
.filters-group p {
  color: var(--pam-text-reading);
}

.sidebar-card .btn + .btn {
  margin-top: 10px;
}

/* ---- Mobile reading comfort ---- */
@media (max-width: 768px) {
  .content-panel p,
  .entry-content p,
  .page-body p {
    font-size: 16px;
    line-height: 1.82;
  }
}

@media (max-width: 1100px) {
  .hero-container,
  .about-layout,
  .newsletter-container {
    grid-template-columns: 1fr;
  }

  .hero-media-stack {
    min-height: 560px;
    max-width: 680px;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teaching-streaming-theater {
    grid-template-columns: 1fr;
  }

  .theater-playlist-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 36vw);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .theater-playlist-item {
    scroll-snap-align: start;
  }

  .latest-teachings-carousel,
  .continue-watching-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-notice {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 10px 0;
  }

  .mobile-menu.active {
    top: 67px;
    background: rgba(255, 250, 241, 0.96);
    box-shadow: 0 24px 60px rgba(20, 33, 31, 0.16);
  }

  .header-inner {
    gap: 10px;
  }

  .site-logo-link--has-mobile .site-logo-image--desktop {
    display: none;
  }

  .site-logo-link--has-mobile .site-logo-image--mobile {
    display: block;
  }

  .header-actions {
    gap: 8px;
  }

  .hero-section {
    min-height: auto;
    padding: 54px 0 72px;
  }

  .hero-container {
    padding: 0 16px;
  }

  .hero-heading {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-ctas {
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-media-stack {
    min-height: 490px;
  }

  .hero-portrait-card {
    inset: 0 0 52px 0;
  }

  .hero-floating-card {
    width: min(310px, 86%);
  }

  .hero-sermon-card {
    left: 14px;
    top: 18px;
  }

  .hero-event-card {
    right: 14px;
  }

  .section-header {
    align-items: flex-start;
  }

  .about-pillars,
  .events-grid,
  .sermon-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .latest-teachings-carousel,
  .continue-watching-list {
    grid-template-columns: 1fr;
  }

  .empty-state-panel {
    grid-template-columns: 1fr;
  }

  .about-media,
  .about-media img {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .section-container,
  .archive-container,
  .page-container,
  .single-container,
  .footer-container,
  .bible-app-promo-inner {
    width: min(100% - 28px, 1240px);
  }

  .section-spaced,
  .bible-app-promo {
    padding: 58px 0;
  }

  .section-title {
    font-size: clamp(31px, 11vw, 42px);
  }

  .hero-social {
    display: none;
  }

  .hero-media-stack {
    min-height: 430px;
  }

  .teaching-streaming-theater {
    width: calc(100% + 4px);
    margin-left: -2px;
    padding: 10px;
  }

  .theater-copy {
    padding: 20px 16px;
  }

  .theater-copy h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .theater-actions,
  .theater-actions .btn {
    width: 100%;
  }

  .theater-playlist-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .theater-playlist-list {
    grid-auto-columns: minmax(82vw, 1fr);
  }

  .theater-playlist-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .hero-scripture-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 16px;
  }

  .hero-scripture-card strong,
  .hero-floating-card strong {
    font-size: 21px;
  }

  .hero-floating-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
    animation: none;
  }

  .hero-portrait-card {
    position: relative;
    inset: auto;
    height: 360px;
  }

  .event-date-meta,
  .event-location-meta {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .newsletter-form,
  .bible-app-actions,
  .bible-app-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-light,
  .hero-floating-card,
  .bible-app-phone-frame {
    animation: none;
  }
}

/* =============================================
   PREMIUM LUXURY POLISH PASS
   ============================================= */

:root {
  --pam-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --pam-surface-glass: rgba(255, 250, 241, 0.72);
  --pam-dark-glass: rgba(12, 35, 32, 0.62);
  --pam-glow-gold: 0 0 52px rgba(239, 220, 177, 0.22);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    repeating-radial-gradient(circle at 15% 25%, rgba(20, 33, 31, 0.18) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 82% 62%, rgba(255, 250, 241, 0.12) 0 1px, transparent 1px 5px);
  background-size: 118px 118px, 142px 142px;
  mix-blend-mode: multiply;
}

.site-header {
  transition:
    padding 320ms var(--pam-ease-premium),
    background 320ms var(--pam-ease-premium),
    border-color 320ms var(--pam-ease-premium),
    box-shadow 320ms var(--pam-ease-premium),
    transform 320ms var(--pam-ease-premium);
}

.site-header.scrolled {
  padding: 8px 0;
  border-bottom-color: rgba(23, 63, 58, 0.16);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 18px 52px rgba(20, 33, 31, 0.12);
  backdrop-filter: blur(22px) saturate(1.15);
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
}

.nav-menu > .menu-item-has-children > a {
  padding-right: 14px;
}

.nav-menu > .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transform-origin: center;
  transition: transform 220ms var(--pam-ease-premium);
}

.nav-menu > .menu-item-has-children.submenu-open > a::before {
  transform: translateY(-35%) rotate(225deg);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, var(--pam-gold), rgba(199, 155, 59, 0.24));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--pam-ease-premium);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.is-active::after,
.current-menu-item > a::after,
.current-menu-ancestor > a::after,
.nav-menu > .menu-item-has-children.submenu-open > a::after {
  transform: scaleX(1);
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 420;
  display: grid;
  gap: 2px;
  min-width: 230px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 22px 58px rgba(20, 33, 31, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition:
    opacity 180ms ease,
    transform 220ms var(--pam-ease-premium),
    visibility 180ms ease;
}

.nav-menu .sub-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-menu .menu-item-has-children.submenu-open > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-menu .sub-menu li {
  margin: 0;
}

.nav-menu .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--pam-ink);
  line-height: 1.35;
  white-space: normal;
}

.nav-menu .sub-menu a::after {
  display: none;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus-visible {
  background: rgba(199, 155, 59, 0.13);
  color: var(--pam-teal);
}

.search-toggle,
.menu-toggle,
.social-icon,
.social-btn {
  transition:
    transform 300ms var(--pam-ease-premium),
    color 300ms var(--pam-ease-premium),
    background 300ms var(--pam-ease-premium),
    border-color 300ms var(--pam-ease-premium),
    box-shadow 300ms var(--pam-ease-premium);
}

.search-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  background: rgba(199, 155, 59, 0.14);
  box-shadow: 0 14px 34px rgba(20, 33, 31, 0.12);
}

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.lang-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: rgba(23, 63, 58, 0.38);
  transition: color 200ms ease;
  border-radius: 4px;
}

.lang-option--active,
.lang-option.active,
.lang-option[aria-current] {
  color: var(--pam-teal);
}

/* Gold underline on the active option */
.lang-option--active::after,
.lang-option.active::after,
.lang-option[aria-current]::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--pam-gold);
  border-radius: 1px;
}

.lang-option:hover {
  color: var(--pam-teal);
}

/* Vertical rule between options */
.lang-divider {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: rgba(23, 63, 58, 0.18);
  flex-shrink: 0;
  border-radius: 1px;
}

/* ── On dark header surfaces (teaching page, etc.) ─────────── */
.single-teaching-wrapper ~ * .lang-option,
.site-header .lang-option {
  color: rgba(23, 63, 58, 0.38);
}

/* ── Mobile switcher ────────────────────────────────────────── */
.lang-switcher--mobile {
  display: flex;
  align-items: center;
  padding: 14px 20px 12px;
  border-top: 1px solid var(--pam-line);
  margin-top: 8px;
}

.lang-switcher--mobile .lang-option {
  font-size: 13px;
  padding: 8px 14px;
  color: var(--pam-muted);
}

.lang-switcher--mobile .lang-option--active,
.lang-switcher--mobile .lang-option.active,
.lang-switcher--mobile .lang-option[aria-current] {
  color: var(--pam-teal);
}

.lang-switcher--mobile .lang-divider {
  background: var(--pam-line);
}

@media (max-width: 1024px) {
  .mobile-nav-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(23, 63, 58, 0.14);
  }

  .mobile-nav-menu .menu-item-has-children.submenu-open > .sub-menu {
    display: block;
  }

  .mobile-nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-nav-menu .menu-item-has-children > a::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(23, 63, 58, 0.16);
    border-radius: 999px;
    color: var(--pam-teal);
    font-size: 14px;
    line-height: 1;
  }

  .mobile-nav-menu .menu-item-has-children.submenu-open > a::after {
    content: "-";
  }
}

.btn,
.section-link,
.card-link {
  transition:
    transform 320ms var(--pam-ease-premium),
    background 320ms var(--pam-ease-premium),
    color 320ms var(--pam-ease-premium),
    border-color 320ms var(--pam-ease-premium),
    box-shadow 320ms var(--pam-ease-premium);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(199, 155, 59, 0.26),
    inset 0 1px 0 rgba(255, 250, 241, 0.36);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 250, 241, 0.36) 42%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 680ms var(--pam-ease-premium);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  transform: translateX(120%);
}

.btn:hover,
.section-link:hover {
  transform: translateY(-3px);
}

.btn:focus-visible,
.section-link:focus-visible,
.card-link:focus-visible,
.social-icon:focus-visible,
.social-btn:focus-visible {
  outline: 2px solid rgba(199, 155, 59, 0.7);
  outline-offset: 4px;
}

.section-spaced {
  padding: clamp(84px, 9.5vw, 148px) 0;
}

.section-title {
  max-width: 880px;
  text-wrap: balance;
}

.section-intro,
.card-excerpt,
.footer-description,
.newsletter-subheading,
.bible-app-copy p {
  text-wrap: pretty;
}

.hero-section {
  min-height: min(920px, calc(100svh - 68px));
  padding: clamp(74px, 9vw, 132px) 0 clamp(88px, 10vw, 146px);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.04), transparent 34%),
    radial-gradient(ellipse at 52% 104%, rgba(239, 220, 177, 0.18), transparent 42rem);
}

.hero-ambient-field {
  position: absolute;
  inset: -20% -12%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.36;
  background:
    conic-gradient(from 130deg at 74% 30%, transparent 0deg, rgba(239, 220, 177, 0.18) 62deg, transparent 120deg),
    linear-gradient(115deg, transparent 30%, rgba(220, 235, 229, 0.1), transparent 70%);
  filter: blur(24px);
  animation: pamAmbientSweep 18s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-heading {
  max-width: 820px;
  font-size: clamp(54px, 8.2vw, 98px);
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: 0 28px 72px rgba(0, 0, 0, 0.3);
}

.hero-subheading {
  margin-bottom: 34px;
}

.hero-ctas {
  gap: 12px;
}

.hero-ctas .btn-primary {
  min-width: 178px;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.08);
  box-shadow: 0 24px 60px rgba(7, 24, 22, 0.22);
  backdrop-filter: blur(18px);
}

.hero-trust-strip div {
  padding: 16px;
  background: rgba(255, 250, 241, 0.055);
}

.hero-trust-strip strong,
.impact-metric strong {
  display: block;
  color: #fffaf1;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.hero-trust-strip span,
.impact-metric span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 250, 241, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.hero-portrait-card {
  box-shadow:
    0 46px 100px rgba(7, 24, 22, 0.42),
    0 0 0 1px rgba(255, 250, 241, 0.1),
    var(--pam-glow-gold);
}

.hero-layout-centered .hero-container {
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
}

.hero-layout-centered .hero-content {
  margin-inline: auto;
}

.hero-layout-centered .hero-ctas,
.hero-layout-centered .hero-social {
  justify-content: center;
}

.hero-layout-centered .hero-media-stack {
  width: min(720px, 100%);
}

.hero-layout-media-left .hero-content {
  order: 2;
}

.hero-layout-media-left .hero-media-stack {
  order: 1;
}

.hero-align-center .hero-content {
  text-align: center;
}

.hero-align-center .hero-ctas,
.hero-align-center .hero-social {
  justify-content: center;
}

.hero-align-right .hero-content {
  margin-left: auto;
  text-align: right;
}

.hero-align-right .hero-ctas,
.hero-align-right .hero-social {
  justify-content: flex-end;
}

.hero-height-compact {
  min-height: min(700px, calc(100svh - 68px));
}

.hero-height-full {
  min-height: calc(100svh - 68px);
}

.hero-portrait-media img,
.hero-portrait-media video {
  transform: scale(1.035);
  transition: transform 900ms var(--pam-ease-premium), filter 900ms var(--pam-ease-premium);
}

.hero-media-stack:hover .hero-portrait-media img,
.hero-media-stack:hover .hero-portrait-media video {
  transform: scale(1.065);
  filter: saturate(0.98) contrast(1.08);
}

.hero-scripture-card,
.hero-floating-card,
.about-media-note,
.bible-app-floating-card {
  box-shadow:
    0 26px 70px rgba(7, 24, 22, 0.3),
    inset 0 1px 0 rgba(255, 250, 241, 0.12);
}

.hero-floating-card {
  transition:
    transform 360ms var(--pam-ease-premium),
    border-color 360ms var(--pam-ease-premium),
    background 360ms var(--pam-ease-premium),
    box-shadow 360ms var(--pam-ease-premium);
}

.hero-floating-card:hover {
  border-color: rgba(239, 220, 177, 0.42);
  background: rgba(255, 250, 241, 0.2);
  box-shadow:
    0 34px 84px rgba(7, 24, 22, 0.36),
    0 0 46px rgba(239, 220, 177, 0.14);
}

.card,
.testimonial-card,
.featured-book-showcase,
.empty-state-panel,
.community-cta {
  transition:
    transform 360ms var(--pam-ease-premium),
    box-shadow 360ms var(--pam-ease-premium),
    border-color 360ms var(--pam-ease-premium),
    background 360ms var(--pam-ease-premium);
  will-change: transform;
}

.card {
  overflow: hidden;
  box-shadow:
    0 18px 46px rgba(20, 33, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pam-card-style-minimal .card {
  border-color: rgba(23, 63, 58, 0.1);
  background: var(--pam-surface-custom, #fffaf1);
  box-shadow: none;
}

.pam-card-style-cinematic .card {
  border-color: rgba(199, 155, 59, 0.18);
  background:
    radial-gradient(circle at 78% 12%, rgba(199, 155, 59, 0.14), transparent 13rem),
    rgba(255, 250, 241, 0.9);
  box-shadow: 0 28px 76px rgba(20, 33, 31, 0.16);
}

.pam-card-style-glass .card {
  border-color: rgba(255, 250, 241, 0.28);
  background: rgba(255, 250, 241, 0.62);
  box-shadow: 0 22px 64px rgba(20, 33, 31, 0.12);
  backdrop-filter: blur(18px);
}

.pam-card-style-dark-premium .card {
  border-color: rgba(239, 220, 177, 0.2);
  background:
    radial-gradient(circle at 82% 10%, rgba(199, 155, 59, 0.16), transparent 13rem),
    #102f2b;
}

.pam-card-style-dark-premium .card-title a,
.pam-card-style-dark-premium .card-excerpt,
.pam-card-style-dark-premium .card-date,
.pam-card-style-dark-premium .article-meta,
.pam-card-style-dark-premium .event-meta {
  color: #fffaf1;
}

.card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 155, 59, 0.28);
  box-shadow:
    0 34px 84px rgba(20, 33, 31, 0.18),
    0 0 42px rgba(199, 155, 59, 0.08);
}

.card-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.18), transparent 42%);
  transition: opacity 360ms var(--pam-ease-premium);
}

.card:hover .card-image-link::after {
  opacity: 1;
}

.card-image {
  transition:
    transform 620ms var(--pam-ease-premium),
    filter 620ms var(--pam-ease-premium);
}

.card-image-link {
  position: absolute;
  inset: 0;
  display: block;
}

.card:hover .card-image {
  transform: scale(1.045);
  filter: saturate(0.95) contrast(1.06);
}

.card-overlay {
  background:
    linear-gradient(180deg, rgba(15, 47, 43, 0.02), rgba(15, 47, 43, 0.72)),
    radial-gradient(circle at 50% 44%, rgba(239, 220, 177, 0.2), transparent 14rem);
}

.play-icon,
.event-icon {
  transform: translateY(4px) scale(0.96);
  transition:
    transform 360ms var(--pam-ease-premium),
    box-shadow 360ms var(--pam-ease-premium);
}

.card:hover .play-icon,
.card:hover .event-icon {
  transform: translateY(0) scale(1);
  box-shadow: 0 18px 36px rgba(7, 24, 22, 0.24);
}

.card-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.card-link:hover {
  transform: translateX(6px);
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(30px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: var(--pam-radius);
  background: rgba(23, 63, 58, 0.12);
  box-shadow: 0 24px 62px rgba(20, 33, 31, 0.1);
}

.impact-metric {
  min-height: 128px;
  padding: clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at 82% 10%, rgba(239, 220, 177, 0.24), transparent 11rem),
    rgba(255, 250, 241, 0.78);
}

.impact-metric strong {
  color: var(--pam-teal-deep);
}

.impact-metric span {
  color: var(--pam-muted);
}

.bible-app-promo {
  position: relative;
}

.bible-app-promo-inner {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.78fr);
  padding: clamp(34px, 6vw, 76px);
  overflow: hidden;
}

.bible-app-promo-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.04), transparent 34%),
    linear-gradient(180deg, transparent, rgba(7, 24, 22, 0.24));
}

.bible-app-copy {
  z-index: 2;
}

.bible-app-copy h2 {
  font-size: clamp(38px, 5.6vw, 70px);
  text-wrap: balance;
}

.bible-app-highlights li {
  display: flex;
  align-items: flex-end;
  min-height: 86px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.08);
  transition:
    transform 320ms var(--pam-ease-premium),
    border-color 320ms var(--pam-ease-premium),
    background 320ms var(--pam-ease-premium);
}

.bible-app-highlights li:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 220, 177, 0.34);
  background: rgba(255, 250, 241, 0.13);
}

.bible-app-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 26px;
}

.bible-app-proof span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.74);
  background: rgba(255, 250, 241, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.bible-app-visual {
  z-index: 2;
  min-height: 520px;
  perspective: 1200px;
}

.bible-app-orbit {
  position: absolute;
  width: min(440px, 84%);
  aspect-ratio: 1;
  border: 1px solid rgba(239, 220, 177, 0.13);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(239, 220, 177, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(220, 235, 229, 0.08), transparent);
  transform: rotateX(62deg) rotateZ(-18deg);
  animation: pamOrbitGlow 12s ease-in-out infinite;
}

.bible-app-phone-frame {
  width: min(330px, 100%);
  transform: rotateY(-8deg) rotateX(3deg);
  box-shadow:
    0 42px 110px rgba(4, 16, 15, 0.58),
    0 0 58px rgba(239, 220, 177, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.bible-app-floating-card {
  z-index: 3;
  min-width: 190px;
  background: rgba(255, 250, 241, 0.13);
}

.bible-app-floating-card--rating {
  right: 6%;
  bottom: 4%;
}

.site-footer {
  position: relative;
  margin-top: 0;
  padding-top: clamp(72px, 9vw, 132px);
  overflow: hidden;
  border-top: 1px solid rgba(239, 220, 177, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.04), transparent 22%),
    radial-gradient(ellipse at 78% 12%, rgba(239, 220, 177, 0.2), transparent 34rem),
    radial-gradient(ellipse at 6% 76%, rgba(220, 235, 229, 0.12), transparent 30rem);
}

.footer-container {
  position: relative;
  z-index: 1;
}

.footer-watermark {
  position: absolute;
  top: -34px;
  right: 0;
  max-width: min(820px, 92vw);
  overflow: hidden;
  color: rgba(255, 250, 241, 0.045);
  font-family: var(--font-serif);
  font-size: clamp(70px, 11vw, 152px);
  line-height: 0.92;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.footer-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(32px, 5vw, 54px);
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
}

.footer-mission h2 {
  max-width: 820px;
  margin: 0;
  color: #fffaf1;
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
}

.footer-mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.55fr) minmax(160px, 0.86fr) minmax(220px, 1fr) minmax(260px, 1.18fr);
  gap: clamp(26px, 5vw, 72px);
}

.footer-top {
  padding-bottom: clamp(34px, 5vw, 62px);
  border-bottom-color: rgba(255, 250, 241, 0.12);
}

.footer-logo {
  max-width: 230px;
}

.footer-description {
  max-width: 420px;
  font-size: 15px;
}

.footer-presence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-presence span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 250, 241, 0.13);
  border-radius: 999px;
  color: rgba(255, 250, 241, 0.72);
  background: rgba(255, 250, 241, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.footer-social {
  gap: 10px;
}

.social-icon {
  border: 1px solid rgba(255, 250, 241, 0.13);
  background: rgba(255, 250, 241, 0.07);
}

.social-icon:hover {
  transform: translateY(-4px);
  background: var(--pam-gold);
  box-shadow: 0 18px 42px rgba(199, 155, 59, 0.24);
}

.footer-title {
  font-size: 18px;
}

.footer-menu {
  gap: 10px;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.footer-menu a:hover {
  transform: translateX(4px);
}

.footer-latest {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.footer-latest h4 {
  margin: 0 0 4px;
  color: #efdcb1;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-latest a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.055);
  transition:
    transform 320ms var(--pam-ease-premium),
    border-color 320ms var(--pam-ease-premium),
    background 320ms var(--pam-ease-premium);
}

.footer-latest a:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 220, 177, 0.34);
  background: rgba(255, 250, 241, 0.1);
}

.footer-latest span {
  color: rgba(239, 220, 177, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-latest strong {
  color: #fffaf1;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.2;
}

.footer-newsletter-intro {
  margin-top: 0;
  color: rgba(255, 250, 241, 0.64);
  font-size: 14px;
  line-height: 1.7;
}

.footer-newsletter {
  padding: 12px;
  border: 1px solid rgba(255, 250, 241, 0.13);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.055);
}

.footer-newsletter input {
  background: rgba(255, 250, 241, 0.95);
}

.footer-support {
  margin-bottom: 0;
}

.btn-donation {
  border: 1px solid rgba(239, 220, 177, 0.28);
  background: rgba(239, 220, 177, 0.12);
  color: #fffaf1;
}

.btn-donation:hover {
  border-color: rgba(239, 220, 177, 0.52);
  background: rgba(239, 220, 177, 0.18);
  color: #fffaf1;
}

.footer-scripture {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.12);
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 220, 177, 0.16), transparent 18rem),
    rgba(255, 250, 241, 0.055);
  box-shadow: 0 24px 70px rgba(7, 24, 22, 0.24);
}

.daily-scripture p {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.25;
}

.footer-bottom {
  border-top-color: rgba(255, 250, 241, 0.12);
}

.is-style-pam-premium-section {
  padding: clamp(48px, 7vw, 112px);
  background:
    radial-gradient(circle at 82% 12%, rgba(199, 155, 59, 0.14), transparent 18rem),
    rgba(255, 250, 241, 0.72);
}

.is-style-pam-glass-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(23, 63, 58, 0.12);
  border-radius: var(--pam-radius);
  background: rgba(255, 250, 241, 0.66);
  box-shadow: 0 22px 64px rgba(20, 33, 31, 0.12);
  backdrop-filter: blur(18px);
}

.wp-block-button.is-style-pam-primary .wp-block-button__link {
  border-radius: var(--pam-button-radius);
  background: linear-gradient(135deg, #d8ad4d, var(--pam-gold));
  color: #13201e;
  box-shadow: 0 16px 36px rgba(199, 155, 59, 0.24);
}

@keyframes pamAmbientSweep {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(2%, -2%, 0) rotate(3deg) scale(1.04);
  }
}

@keyframes pamOrbitGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: rotateX(62deg) rotateZ(-18deg) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: rotateX(62deg) rotateZ(-10deg) scale(1.04);
  }
}

@media (max-width: 1100px) {
  .impact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bible-app-promo-inner {
    grid-template-columns: 1fr;
  }

  .footer-mission,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-mission {
    align-items: start;
  }

  .footer-mission h2 {
    grid-column: 1 / -1;
  }

  .footer-mission-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .section-spaced {
    padding: clamp(66px, 12vw, 96px) 0;
  }

  .hero-section {
    padding: 62px 0 78px;
  }

  .hero-heading {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-trust-strip div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .hero-trust-strip span {
    margin-top: 0;
  }

  .bible-app-visual {
    min-height: 390px;
  }

  .footer-mission,
  .footer-grid,
  .footer-bottom-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    display: grid;
  }

  .footer-mission-actions,
  .footer-mission-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body::before {
    opacity: 0.035;
  }

  .impact-metrics {
    grid-template-columns: 1fr;
  }

  .impact-metric {
    min-height: auto;
  }

  .bible-app-copy h2 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .bible-app-proof {
    margin-bottom: 20px;
  }

  .bible-app-proof span {
    width: 100%;
  }

  .bible-app-phone-frame {
    width: min(250px, 82vw);
    transform: none;
  }

  .bible-app-orbit {
    width: min(320px, 86vw);
  }

  .footer-mission h2 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .footer-watermark {
    top: -12px;
  }

  .footer-newsletter {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-ambient-field,
  .bible-app-orbit {
    animation: none;
  }
}
