/*
Theme Name: NGVishoek Modern
Description: A modern, warm theme for NG Kerk Vishoek
Version: 1.0.0
Text Domain: ngvishoek-modern
*/

/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --white:          #F3F0EA;
  --primary:        #6B3410;
  --primary-light:  #8F5426;
  --primary-dark:   #3F1F0C;
  --accent:         #C47D1A;
  --accent-light:   #D4931F;
  --accent-pale:    #F5EDD0;
  --bg:             #F7F1EA;
  --bg-light:       #FBF6F0;
  --bg-warm:        #FCF6ED;
  --text:           #2C241E;
  --text-muted:     #6F6258;
  --border:         #E4D7C7;
  --shadow-sm:      0 2px 8px rgba(107,52,16,.08);
  --shadow-md:      0 14px 32px rgba(107,52,16,.14);
  --shadow-lg:      0 22px 52px rgba(107,52,16,.18);
  --font-head:      'Playfair Display', serif;
  --font-body:      'Inter', sans-serif;
  --radius:         0;
  --radius-lg:      0;
  --transition:     .28s ease;
  --max-width:      1280px;
}

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

html {
  font-size: clamp(17px, 0.35vw + 15.5px, 18.5px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(63,31,12,.18) 0%, rgba(63,31,12,.72) 38%, rgba(24,12,6,.94) 100%);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.page-loader-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}
.page-loader-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(212,147,31,.18);
  border-top-color: var(--accent-light);
  border-right-color: rgba(212,147,31,.68);
  box-shadow: 0 0 24px rgba(212,147,31,.16);
  animation: page-loader-spin 1s linear infinite;
}
.page-loader-cross,
.page-loader-cross::before {
  position: absolute;
  content: '';
  background: linear-gradient(180deg, #FFE2A2 0%, var(--accent-light) 100%);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(212,147,31,.35);
}
.page-loader-cross {
  width: 8px;
  height: 42px;
}
.page-loader-cross::before {
  width: 24px;
  height: 8px;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
}
.js body.page-transitioning .page-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes page-loader-spin {
  to { transform: rotate(360deg); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover,
a:focus,
a:active,
a:visited,
a:hover *,
a:focus * {
  text-decoration: none !important;
}
a:hover { color: var(--accent); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-warm { background: var(--bg-warm); }
.section-light { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.section-dark .section-header .subtitle { color: rgba(255,255,255,0.65); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 2rem; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,146,42,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}
.hero-question-btn {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.75);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-question-btn:visited,
.hero-question-btn:focus,
.hero-question-btn:active,
.hero-question-btn:hover {
  background: rgba(255,255,255,.30);
  border-color: var(--white);
  color: var(--white);
}
.hero-music-btn {
  background: rgba(var(--accent-light), 0) !important;
  background: rgba(212,147,31,.28) !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  color: var(--white) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-music-btn:hover {
  background: rgba(212,147,31,.48) !important;
  border-color: rgba(255,255,255,.8) !important;
  color: var(--white) !important;
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-sm { padding: .5rem 1.25rem; font-size: .82rem; }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.view-all::after { content: '→'; }
.view-all:hover { gap: .7rem; color: var(--accent); }

/* =============================================
   HEADER & NAVIGATION
============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.5rem 0;
}
.site-header.transparent {
  background: transparent;
}
.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: .75rem 0;
}
.site-header.scrolled .nav-link { color: var(--text); }
.site-header.scrolled .nav-link:hover { color: var(--accent); }
.site-header.scrolled .site-logo-text { color: var(--primary); }
.site-header.scrolled .site-logo-text span { color: var(--accent); }
.site-header.scrolled .nav-toggle span { background: var(--text); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo { display: flex; align-items: center; gap: .45rem; text-decoration: none; }
.site-logo img { height: 48px; width: auto; }
.site-logo-img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212,147,31,.5); }
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo,
.site-logo-img,
.custom-logo-link img {
  width: 52px;
  height: 52px;
  min-width: 52px;
  object-fit: cover;
  object-position: center;
  border-radius: 50% !important;
  border: 3px solid var(--accent-light);
  overflow: hidden;
}
.site-logo-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .34rem;
}
.site-logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #D8D2C7;
  line-height: 1.2;
  transition: color var(--transition);
}
.site-logo-text span { color: var(--accent-light); }
.site-logo-tagline {
  font-size: .62rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  color: #AF842F;
  white-space: nowrap;
  margin-top: .08rem;
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  padding: .5rem .85rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.current-menu-item {
  color: var(--accent-light);
  background: rgba(255,255,255,.08);
}
.scrolled .nav-link.current-menu-item { background: var(--accent-pale); color: var(--accent); }

/* ── Dropdowns ───────────────────────────────────────── */
.nav-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
}
/* ── Special nav link variants ── */
.nav-link-ai {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    opacity: .85;
}
.nav-link-ai:hover { opacity: 1; }

.nav-link-cta {
    margin-left: .4rem;
    padding: .45rem 1.1rem !important;
    background: var(--accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    letter-spacing: .02em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
    box-shadow: 0 2px 12px rgba(196,125,26,.4);
}
.nav-link-cta:hover {
    background: var(--accent-light) !important;
    color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(196,125,26,.55) !important;
}
.scrolled .nav-link-cta { box-shadow: 0 2px 10px rgba(196,125,26,.3); }

/* ── Rich dropdown item layout ── */
.nav-dropdown-link {
    gap: .75rem;
}
.nav-dd-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}
.nav-dropdown-link strong {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
    font-weight: 600;
    line-height: 1.2;
}
.nav-dropdown-link small {
    display: block;
    font-size: .75rem;
    color: rgba(255,255,255,.42);
    margin-top: 1px;
    font-weight: 400;
}
.nav-dropdown-link:hover strong { color: var(--accent-light); }

.nav-arrow { margin-left: .3rem; font-size: .7rem; opacity: .7; }
.nav-arrow-right { margin-left: auto; padding-left: 1rem; font-size: 1rem; line-height: 1; opacity: .6; }

/* Level 1 dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  padding: .5rem;
  min-width: 210px;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
/* Arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(0,0,0,.82);
}
/* Invisible bridge fills the gap so mouse doesn't lose hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: .75rem;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items wrapper */
.nav-dropdown-item {
  position: relative;
}

/* Level 1 links */
.nav-dropdown-link {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-dropdown-link:hover,
.has-subdropdown:hover > .nav-dropdown-link {
  background: rgba(255,255,255,.08);
  color: var(--accent-light);
}

/* Level 2 fly-out */
.nav-subdropdown {
  position: absolute;
  top: 0;
  left: calc(100% + .4rem);
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  padding: .5rem;
  min-width: 200px;
  z-index: 1001;
  border: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateX(-6px);
}
/* Bridge gap between level-1 item and fly-out */
.nav-subdropdown::after {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: .4rem;
  height: 100%;
}
.has-subdropdown:hover > .nav-subdropdown,
.has-subdropdown:focus-within > .nav-subdropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Level 2 links */
.nav-subdropdown-link {
  display: block;
  padding: .6rem 1rem;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.nav-subdropdown-link:hover {
  background: rgba(255,255,255,.08);
  color: var(--accent-light);
}
/* Divider between dropdown groups */
.nav-dropdown-item + .nav-dropdown-item {
  border-top: 1px solid rgba(255,255,255,.05);
}

.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.25rem;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 50px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-light) !important; color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-admin-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  color: rgba(255,255,255,.45);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  margin-left: .25rem;
  cursor: pointer;
}
.site-admin-login-btn:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
}
.site-header.scrolled .site-admin-login-btn {
  color: rgba(107,52,16,.4);
}
.site-header.scrolled .site-admin-login-btn:hover {
  color: var(--primary-dark);
  background: rgba(107,52,16,.07);
}

/* ── User menu dropdown ──────────────────────────────── */
.ngv-user-menu-wrap {
  position: relative;
  display: inline-flex;
}
.ngv-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(30,14,4,.18);
  border: 1px solid rgba(107,52,16,.1);
  min-width: 160px;
  overflow: hidden;
  z-index: 9999;
}
.ngv-user-menu[hidden] { display: none; }
.ngv-user-menu-name {
  display: block;
  padding: .6rem 1rem .45rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(107,52,16,.08);
}
.ngv-user-menu-item {
  display: block;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  transition: background .12s;
}
.ngv-user-menu-item:hover { background: rgba(107,52,16,.05); }
.ngv-user-menu-logout {
  color: #b33;
  border-top: 1px solid rgba(107,52,16,.08);
}
.ngv-user-menu-logout:hover { background: rgba(180,40,40,.06); }

/* ── Login modal ─────────────────────────────────────── */
.ngv-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ngv-login-modal[hidden] { display: none; }
.ngv-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,14,4,.55);
  backdrop-filter: blur(3px);
}
.ngv-login-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2rem 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 60px rgba(30,14,4,.22);
}
.ngv-login-close {
  position: absolute;
  top: .9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: .2rem .4rem;
}
.ngv-login-close:hover { color: var(--text); }
.ngv-login-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}
.ngv-login-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.ngv-login-box .login-username,
.ngv-login-box .login-password,
.ngv-login-box .login-remember {
  margin-bottom: 1rem;
}
.ngv-login-box label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
}
.ngv-login-box input[type="text"],
.ngv-login-box input[type="password"] {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid rgba(107,52,16,.2);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.ngv-login-box input[type="text"]:focus,
.ngv-login-box input[type="password"]:focus {
  border-color: var(--accent);
}
.ngv-login-box .login-remember label {
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: none;
  font-weight: 400;
  font-size: .85rem;
  color: var(--text-muted);
}
.ngv-login-box input[type="submit"] {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: .5rem;
  transition: background var(--transition);
}
.ngv-login-box input[type="submit"]:hover {
  background: var(--accent);
}

/* =============================================
   HERO
============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background: var(--primary-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,8,0,.80) 0%,
    rgba(20,8,0,.50) 50%,
    rgba(20,8,0,.20) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  max-width: 700px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: #AF842F;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-title-line {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: inherit;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.25rem;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
  margin-top: .25rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   INFO BAR (Service Times)
============================================= */
.info-bar {
  background: #3F1F0C;
  padding: 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, #c9973a 20%, #f0c96a 50%, #c9973a 80%, transparent 100%) 1;
}
.info-bar .container {
  width: 100vw;
  max-width: none;
  padding: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
}
.info-item {
  background: #5A2A0E;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 100%;
  transition: background var(--transition);
}
.info-item:hover { background: #6B3410; }
.info-item > div:last-child {
  flex: 1;
  min-width: 0;
}
.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--accent-light);
}
.info-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: .25rem;
}
.info-value {
  font-size: .95rem;
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  margin: 0;
  overflow-wrap: anywhere;
}

/* =============================================
   CARDS
============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-light);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-light), var(--border));
  font-size: 3rem;
  color: var(--border);
}
.card-body { padding: 1.5rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.card-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  padding: .2rem .65rem;
  border-radius: 50px;
}
.card-date {
  font-size: .78rem;
  color: var(--text-muted);
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: .6rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.35;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.read-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
.read-more::after { content: '→'; }
.read-more:hover { gap: .6rem; color: var(--accent); }

/* =============================================
   SERMON CARDS (special style)
============================================= */
.sermon-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.sermon-number {
  width: 56px;
  height: 56px;
  background: var(--accent-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.sermon-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.sermon-item:last-child { border-bottom: none; }
.sermon-item:hover { background: var(--bg-warm); }
.sermon-info { flex: 1; min-width: 0; }
.sermon-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-head);
  margin-bottom: .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sermon-title a { color: inherit; }
.sermon-title a:hover { color: var(--accent); }
.sermon-meta { font-size: .78rem; color: var(--text-muted); }
.sermon-speaker { font-weight: 500; color: var(--primary); }

/* =============================================
   MINISTRY CARDS (legacy — kept for individual pages)
============================================= */
.ministry-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.ministry-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--primary);
}
.ministry-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: .85;
}
.ministry-card:hover .ministry-card-image img { transform: scale(1.06); }
.ministry-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  font-size: 3.5rem;
}
.ministry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,47,69,.85) 0%, rgba(17,47,69,.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.ministry-card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.ministry-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.ministry-card-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   MINISTRY BOOK CAROUSEL
============================================= */
.ministry-book-section {
  overflow: hidden;
  position: relative;
}

.ministry-book-section .section-header {
  margin-bottom: 2.25rem;
}

.ministry-book-section .section-header h2 a {
  color: var(--text);
}

.ministry-book-section .section-header h2 a:hover {
  color: var(--primary);
}

.ministry-book-section::before,
.ministry-book-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

.ministry-book-section::before {
  width: 320px;
  height: 320px;
  right: -90px;
  top: 20px;
  background: radial-gradient(circle, rgba(212,131,10,.18) 0%, rgba(212,131,10,0) 70%);
}

.ministry-book-section::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: 10px;
  background: radial-gradient(circle, rgba(107,52,16,.12) 0%, rgba(107,52,16,0) 72%);
}

.book-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.82) 100%),
    linear-gradient(135deg, #FCF6ED 0%, #F3E5D2 100%);
  border-radius: 28px;
  box-shadow:
    0 10px 30px rgba(107,52,16,.10),
    inset 0 1px 0 rgba(255,255,255,.78);
  padding: 1.35rem;
  min-height: 430px;
  border: 1px solid rgba(107,52,16,.08);
}

/* Spine effect in the middle */
.book-spine {
  display: none;
}

/* Nav buttons */
.book-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(107,52,16,.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 10px 22px rgba(107,52,16,.12);
  z-index: 3;
}
.book-prev { left: .55rem; }
.book-next { right: .55rem; }
.book-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-md);
}

/* Viewport clips the spreads */
.book-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 360px;
  padding: 0 3.5rem;
  isolation: isolate;
}

/* Each spread = one "page turn" */
.book-spread {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  position: relative;
}
.book-spread.active {
  display: grid;
}

/* Individual ministry card */
.book-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(107,52,16,.08);
}
.book-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.book-card-img {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tile-start, #6B3410), var(--tile-end, #D4830A));
}
.book-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.book-card-img.is-art {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.book-card-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  width: 100%;
  padding: 1.25rem;
  color: var(--white);
}
.book-card-art::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
}
.book-card-art-label,
.book-card-art-mono,
.book-card-art-symbol {
  position: relative;
  z-index: 1;
}
.book-card-art-label {
  align-self: start;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.book-card-art-mono {
  grid-column: 1 / span 2;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: .9;
  margin-top: auto;
}
.book-card-art-symbol {
  justify-self: end;
  align-self: start;
  min-width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  color: var(--tile-accent, #F7D8A2);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.book-card-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--primary-dark);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(62,28,6,.12);
}
.book-card-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,26,14,.46), rgba(42,26,14,0) 55%);
  opacity: .7;
}
.book-card:hover .book-card-img img { transform: scale(1.07); }
.book-card-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 40%,
    rgba(255,255,255,.12) 50%,
    transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.book-card:hover .book-card-shimmer { transform: translateX(100%); }

.book-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.book-card-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.book-card-title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.book-card-desc {
  font-size: .86rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .3rem;
}
.book-card-arrow {
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform var(--transition);
  display: inline-block;
}
.book-card:hover .book-card-arrow { transform: translateX(4px); }

/* Dots + page label */
.book-indicator {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.book-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.book-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.book-page-label {
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .6rem;
  letter-spacing: .05em;
}

@media (max-width: 768px) {
  .book-spread { grid-template-columns: 1fr 1fr; }
  .book-wrap { padding: 1rem; }
  .book-spine { display: none; }
  .book-viewport { padding: 0 2.8rem; }
  .book-card-title { font-size: 1rem; }
  .book-card-desc { font-size: .82rem; }
}
@media (max-width: 480px) {
  .book-spread { grid-template-columns: 1fr; }
  .book-viewport { padding: 0 2.5rem; }
  .book-btn {
    width: 40px;
    height: 40px;
  }
  .book-prev { left: .4rem; }
  .book-next { right: .4rem; }
}

/* =============================================
   MINISTRY SECTION (old — kept for subpages)
============================================= */

/* 3-column featured grid */
.ministry-grid-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ministry-feat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ministry-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ministry-feat-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--primary);
}
.ministry-feat-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ministry-feat-card:hover .ministry-feat-image img { transform: scale(1.05); }
.ministry-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(62,28,6,.5) 0%, transparent 60%);
}
.ministry-feat-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  font-size: 2.5rem; color: rgba(255,255,255,.3);
}
.ministry-feat-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; flex: 1;
}
.ministry-feat-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.ministry-feat-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ministry-feat-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

/* Compact pill strip */
.ministry-strip {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: .5rem;
}
.ministry-strip-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.ministry-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.ministry-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem .4rem .4rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
}
.ministry-pill:hover {
  background: var(--accent-pale);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.ministry-pill-img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ministry-grid-featured { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ministry-grid-featured { grid-template-columns: 1fr; }
}

/* =============================================
   FEATURED SECTION (About / Welcome)
============================================= */
.featured-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured-split-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, #f5efe4 0%, #e8d9c0 100%);
}
.welcome-portrait-frame {
  position: relative;
  background: linear-gradient(180deg, #fbf7ef 0%, #efe3cd 100%);
  padding: 10px 10px 28px;
  border: 1px solid rgba(131, 103, 68, .28);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(47, 34, 20, .22), 0 7px 18px rgba(47, 34, 20, .12);
  max-width: 340px;
  width: 100%;
}
.welcome-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 8px 8px 20px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  pointer-events: none;
}
.welcome-portrait-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(70, 50, 32, .12);
}
.featured-split-content {
  background: var(--primary-dark);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-split-content h2 { color: var(--white); margin-bottom: 1.25rem; }
.featured-split-content p { color: rgba(255,255,255,.75); margin-bottom: 1.25rem; }
.featured-split-content .label { color: var(--accent-light); }

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: var(--accent);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

/* =============================================
   FOOTER
============================================= */
.footer-wave-top {
  display: block;
  background: var(--bg);
  line-height: 0;
  margin-bottom: -2px;
}
.footer-wave-top svg {
  display: block;
  width: 100%;
  height: 72px;
  overflow: visible;
}

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #3F1F0C;
  color: var(--white);
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(232,184,75,.2) 0, rgba(232,184,75,0) 24%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.1) 0, rgba(255,255,255,0) 22%);
  background-size: 36px 36px, 36px 36px, auto, auto;
  background-position: center;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.72));
}
/* ── Footer verse strip ── */
.footer-verse {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-verse-icon {
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: .7;
  margin-top: .15rem;
}
.footer-verse-text {
  margin: 0;
  font-style: normal;
}
.footer-verse-text span {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  font-style: italic;
  line-height: 1.6;
}
.footer-verse-text cite {
  display: block;
  margin-top: .3rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-style: normal;
  opacity: .8;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand column */
.footer-brand-col { padding-right: .5rem; }
.footer-brand-mark { margin-bottom: 1rem; }
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  display: block;
}
.footer-brand-tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.52);
  margin: 0 0 1.25rem;
  line-height: 1.7;
  max-width: 240px;
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.55);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(232,184,75,.1);
}

.footer-col h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 1.2rem;
}

/* Nav list with descriptions */
.footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-nav-list li + li { margin-top: .5rem; }
.footer-nav-list a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.footer-nav-list a:hover {
  border-left-color: var(--accent);
  background: rgba(255,255,255,.04);
}
.footer-nav-label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  transition: color var(--transition);
  line-height: 1.3;
}
.footer-nav-list a:hover .footer-nav-label { color: var(--white); }
.footer-nav-desc {
  font-size: .75rem;
  color: rgba(255,255,255,.38);
  line-height: 1.3;
}

/* Service time card */
.footer-service-card {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: 10px 14px;
  background: rgba(196,125,26,.14);
  border: 1px solid rgba(196,125,26,.28);
  color: rgba(255,255,255,.8);
}
.footer-service-card svg { flex-shrink: 0; color: var(--accent-light); margin-top: .25rem; }
.footer-service-card strong { display: block; font-size: .88rem; color: var(--white); }
.footer-service-card span { display: block; font-size: .75rem; color: rgba(255,255,255,.48); margin-top: 1px; }

/* Contact items */
.footer-contact-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-bottom: .9rem;
}
.footer-contact-icon {
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--accent-light);
  display: flex;
}
.footer-contact-item span {
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}
.footer-contact-item a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--accent-light); }
.footer-contact-item small { font-size: .75rem; color: rgba(255,255,255,.38); }
.footer-contact-btn {
  display: inline-block;
  margin-top: .5rem;
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-light);
  border: 1px solid rgba(196,125,26,.4);
  background: rgba(196,125,26,.1);
  text-decoration: none;
  letter-spacing: .04em;
  transition: background var(--transition), border-color var(--transition);
}
.footer-contact-btn:hover {
  background: rgba(196,125,26,.2);
  border-color: var(--accent-light);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* =============================================
   SECTION SEPARATOR
============================================= */
.section-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: #000000;
}
.section-separator-line {
  width: min(18vw, 160px);
  height: 1px;
  background: linear-gradient(90deg, rgba(196,146,42,0) 0%, rgba(196,146,42,.62) 50%, rgba(196,146,42,0) 100%);
  isolation: isolate;
}
.section-separator-mark {
  position: relative;
  width: 18px;
  height: 18px;
  z-index: 0;
  border: 1px solid rgba(196,146,42,.75);
  background: linear-gradient(135deg, rgba(196,146,42,.24) 0%, rgba(255,255,255,.04) 100%);
  box-shadow: 0 0 0 4px rgba(196,146,42,.08);
}
.section-separator-mark::before,
.section-separator-mark::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  background: rgba(196,146,42,.7);
  opacity: .52;
}
.section-separator-mark::before {
  z-index: 1;
  width: 1px;
  height: 10px;
}
.section-separator-mark::after {
  z-index: 1;
  width: 10px;
  height: 1px;
}

/* =============================================
   SIDEBAR
============================================= */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 4rem 0;
}
.page-layout.full-width { grid-template-columns: 1fr; }
.sidebar { display: flex; flex-direction: column; gap: 2rem; }
.widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent-pale);
}
.widget ul li + li { margin-top: .6rem; }
.widget ul li a {
  font-size: .875rem;
  color: var(--text-muted);
}
.widget ul li a:hover { color: var(--accent); }

/* =============================================
   PAGE HERO — INNER PAGES & ARTICLES
============================================= */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  height: 400px;
  min-height: 400px;
  border-bottom-left-radius: 38px 22px;
  border-bottom-right-radius: 38px 22px;
}

.page-hero::before,
.page-hero::after,
.archive-header::before,
.archive-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}

.page-hero::before,
.archive-header::before {
  bottom: 7px;
  height: 42px;
  z-index: 4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 28 C360 56 1080 0 1440 28' fill='none' stroke='%230f0f10' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 7px 14px rgba(0,0,0,.16));
}

.page-hero::after,
.archive-header::after {
  bottom: 2px;
  height: 42px;
  z-index: 4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 33 C360 61 1080 5 1440 33' fill='none' stroke='%233d4144' stroke-opacity='.88' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Background layer — black by default, image when .has-image */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  background-size: cover;
  background-position: 65% center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 10s ease;
}
.page-hero:hover .page-hero-bg { transform: scale(1.03); }

/* Overlay — darker when there is a photo */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(24,12,6,.4) 0%,
    rgba(30,15,7,.52) 34%,
    rgba(18,10,6,.84) 100%
  ),
  radial-gradient(circle at center, rgba(212,131,10,.08) 0%, rgba(212,131,10,0) 46%),
  radial-gradient(circle at center, rgba(8,4,2,0) 42%, rgba(8,4,2,.22) 78%, rgba(8,4,2,.42) 100%);
}
.page-hero.has-image .page-hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(28,14,7,.3) 0%,
    rgba(34,17,8,.44) 36%,
    rgba(18,10,6,.88) 100%
  ),
  radial-gradient(circle at center, rgba(212,147,31,.1) 0%, rgba(212,147,31,0) 44%),
  radial-gradient(circle at center, rgba(8,4,2,0) 40%, rgba(8,4,2,.26) 76%, rgba(8,4,2,.48) 100%);
}

/* Content */
.page-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-top: 6.6rem;
  padding-bottom: 3.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Breadcrumb */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
  margin-bottom: .9rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(17,10,7,.44);
  backdrop-filter: blur(6px);
}
.page-breadcrumb a {
  color: rgba(255,255,255,.88);
  transition: color var(--transition);
}
.page-breadcrumb a:hover { color: var(--accent-light); }
.page-breadcrumb .current { color: var(--accent-light); }

/* Title */
.page-hero-title {
  color: var(--white);
  max-width: 760px;
  margin: 0 0 .35rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-shadow: 0 6px 24px rgba(0,0,0,.34);
  line-height: 1.08;
}

/* Article date/author meta */
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: .75rem;
}
.page-hero-meta a { color: rgba(255,255,255,.7); }
.page-hero-meta a:hover { color: var(--accent-light); }
.page-hero-meta-dot { color: rgba(255,255,255,.3); }

/* Gold cross ornament */
.page-hero-ornament {
  align-self: center;
  color: var(--accent);
  opacity: .8;
  margin-top: 1rem;
  filter: drop-shadow(0 0 8px rgba(196,146,42,.4));
}

/* Bottom wave bleeding into page bg */
.page-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
  margin-top: 0;
}
.page-hero-wave svg {
  display: block;
  width: 100%;
  height: 62px;
  overflow: visible;
}
.page-hero-wave-shadow {
  stroke: rgba(20, 13, 8, .55);
  stroke-width: 11px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .2));
}
.page-hero-wave-ring {
  stroke: rgba(120, 75, 20, .24);
  stroke-width: 8px;
}
.page-hero-wave-goldline {
  stroke: rgba(212, 147, 31, .82);
  stroke-width: 5px;
  filter: drop-shadow(0 0 8px rgba(212, 147, 31,.34));
}
.page-hero-wave-highlight {
  stroke: rgba(255, 224, 157, .48);
  stroke-width: 1.6px;
}

/* ── Content wrapper ────────────────────────── */
.page-content-wrap {
  background: var(--bg);
  padding: 3.5rem 0 5rem;
}
.page .page-content-wrap > .container {
  max-width: 1480px;
}
.page-main { min-width: 0; }

/* ── Child pages grid ───────────────────────── */
.child-pages-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.child-pages-heading {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  position: relative;
  color: var(--text);
}
.child-pages-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.child-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.child-page-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}
.child-page-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.child-page-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.child-page-card:hover .child-page-card-img { transform: scale(1.04); }
.child-page-card-img.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.child-page-card-img.is-placeholder span {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.child-page-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.child-page-card-body h4 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
  transition: color var(--transition);
}
.child-page-card:hover .child-page-card-body h4 { color: var(--accent); }
.child-page-card-body p {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.child-page-card-cta {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  margin-top: .25rem;
}

/* ── Article post navigation ────────────────── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  max-width: 48%;
  color: var(--text);
  transition: color var(--transition);
}
.post-nav-link:hover { color: var(--accent); }
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-dir {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-nav-title {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.entry-content {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}
.page .entry-content {
  max-width: 1160px;
  font-size: clamp(1.05rem, .18vw + 1rem, 1.16rem);
}
.page .entry-featured-image,
.page .child-pages-section,
.page .post-navigation {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}
.page .entry-content > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, table) {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.page .entry-content h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}
.page .entry-content h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  line-height: 1.2;
}
.page .entry-content h3 {
  font-size: clamp(1.35rem, 1.6vw, 1.75rem);
  line-height: 1.25;
}
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content p { color: var(--text-muted); margin-bottom: 1.35rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; color: var(--text-muted); }
.entry-content li { margin-bottom: .5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.75rem;
  background: var(--accent-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content .wp-caption { max-width: 100%; margin: 1.5rem 0; }
.entry-content .wp-caption-text { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }
.entry-content a { color: var(--accent); text-decoration: none; }
.entry-content a:hover { color: var(--primary); }
.page .entry-content img,
.page .entry-content .wp-caption,
.page .entry-content .wp-block-image,
.page .entry-content figure {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.page .entry-content img {
  height: auto;
}

.page .entry-content .wpcf7,
.wpcf7,
.wpcf7-form,
.wpcf7 form,
div.wpcf7,
div.wpcf7 > form {
  width: 100%;
  max-width: none;
  margin: 2rem 0 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Also strip any shortcode plugin wrappers around CF7 */
.magee-shortcode .wpcf7,
.sc-form .wpcf7,
[class*="shortcode"] .wpcf7,
.wpcf7-container,
.cf7-wrapper,
.contact-form-wrapper {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.page .entry-content .wpcf7 .container {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page .entry-content .wpcf7 .row {
  margin-left: 0;
  margin-right: 0;
}

.page .entry-content .wpcf7 [class*="col-md-"] {
  padding-left: .65rem;
  padding-right: .65rem;
}

.page .entry-content .wpcf7 .wpcf7-form-control-wrap,
.page .entry-content .wpcf7 .wpcf7-form-control {
  display: block;
  max-width: 100%;
}

.page .entry-content .wpcf7 input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.page .entry-content .wpcf7 input[type="email"],
.page .entry-content .wpcf7 input[type="tel"],
.page .entry-content .wpcf7 input[type="text"],
.page .entry-content .wpcf7 input[type="url"],
.page .entry-content .wpcf7 input[type="number"],
.page .entry-content .wpcf7 input[type="date"],
.page .entry-content .wpcf7 select,
.page .entry-content .wpcf7 textarea {
  width: 100%;
  min-height: 52px;
  padding: .9rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.page .entry-content .wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.page .entry-content .wpcf7 input:focus,
.page .entry-content .wpcf7 select:focus,
.page .entry-content .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,146,42,.14);
}

.page .entry-content .wpcf7 .wpcf7-list-item {
  margin: 0 .9rem .5rem 0;
}

.page .entry-content .wpcf7 input[type="submit"] {
  display: inline-block;
  min-width: 220px;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.page .entry-content .wpcf7 input[type="submit"]:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.page .entry-content .wpcf7 form .wpcf7-response-output {
  margin: .5rem 0 0;
  padding: .9rem 1rem;
}

.entry-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/7;
}
.entry-featured-image img { width: 100%; height: 100%; object-fit: cover; }

body:not(.home) {
  --photo-paper-bg: linear-gradient(180deg, #fbf7ef 0%, #efe3cd 100%);
  --photo-paper-edge: rgba(131, 103, 68, .24);
  --photo-paper-shadow: 0 18px 36px rgba(47, 34, 20, .18), 0 7px 18px rgba(47, 34, 20, .1);
  --photo-print-filter: none;
}

body:not(.home) .entry-featured-image,
body:not(.home) .entry-content .wp-block-image,
body:not(.home) .entry-content figure:not(.wp-block-embed),
body:not(.home) .entry-content p > img,
body:not(.home) .entry-content a > img,
body:not(.home) .card-image,
body:not(.home) .article-feature-media:not(.is-art),
body:not(.home) .article-featured-hero-media:not(.is-art),
body:not(.home) .article-preview-media {
  position: relative;
  background: var(--photo-paper-bg);
  padding: 10px 10px 20px;
  border: 1px solid var(--photo-paper-edge);
  border-radius: 8px;
  box-shadow: var(--photo-paper-shadow);
  box-sizing: border-box;
}

body:not(.home) .entry-featured-image::after,
body:not(.home) .entry-content .wp-block-image::after,
body:not(.home) .entry-content figure:not(.wp-block-embed)::after,
body:not(.home) .card-image::after,
body:not(.home) .article-feature-media:not(.is-art)::after,
body:not(.home) .article-featured-hero-media:not(.is-art)::after,
body:not(.home) .article-preview-media::after {
  content: '';
  position: absolute;
  inset: 8px 8px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  pointer-events: none;
}

body:not(.home) .entry-featured-image img,
body:not(.home) .card-image img,
body:not(.home) .article-feature-media img,
body:not(.home) .article-featured-hero-media img,
body:not(.home) .article-preview-media img {
  display: block;
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(70, 50, 32, .1);
  filter: var(--photo-print-filter);
}

body:not(.home) .entry-content img {
  display: block;
  max-width: 100%;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(70, 50, 32, .1);
  filter: var(--photo-print-filter);
}

body:not(.home) .entry-content .wp-block-image,
body:not(.home) .entry-content figure:not(.wp-block-embed),
body:not(.home) .entry-content p > img,
body:not(.home) .entry-content a > img {
  width: fit-content;
  max-width: 100%;
}

body:not(.home) .entry-content p > img,
body:not(.home) .entry-content a > img {
  padding: 10px 10px 20px;
  background: var(--photo-paper-bg);
  border: 1px solid var(--photo-paper-edge);
  border-radius: 8px;
  box-shadow: var(--photo-paper-shadow);
  box-sizing: border-box;
}


body:not(.home) .entry-content .wp-block-image:nth-of-type(odd),
body:not(.home) .entry-content figure:not(.wp-block-embed):nth-of-type(odd),
body:not(.home) .posts-grid article:nth-child(odd) .card-image,

body:not(.home) .entry-content .wp-block-image:nth-of-type(even),
body:not(.home) .entry-content figure:not(.wp-block-embed):nth-of-type(even),
body:not(.home) .posts-grid article:nth-child(even) .card-image,

body:not(.home) .entry-featured-image:hover,
body:not(.home) .entry-content .wp-block-image:hover,
body:not(.home) .entry-content figure:not(.wp-block-embed):hover,
body:not(.home) .entry-content p > img:hover,
body:not(.home) .entry-content a > img:hover,
body:not(.home) .card-image:hover,
body:not(.home) .article-feature-media:not(.is-art):hover,
body:not(.home) .article-featured-hero-media:not(.is-art):hover,
body:not(.home) .article-preview-media:hover {
  box-shadow: 0 24px 42px rgba(47, 34, 20, .22), 0 10px 20px rgba(47, 34, 20, .12);
}

body:not(.home) .entry-content .wp-caption-text,
body:not(.home) .entry-content figcaption {
  margin-top: .8rem;
  padding: 0 .35rem;
  color: rgba(74, 56, 34, .78);
}

.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .8rem;
  background: var(--bg-light);
  color: var(--text-muted);
  border-radius: 50px;
  transition: all var(--transition);
}
.tag:hover { background: var(--accent-pale); color: var(--accent); }

/* =============================================
   ARCHIVE / BLOG LISTING
============================================= */
.archive-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 7rem 0 3.5rem;
  text-align: center;
  border-bottom-left-radius: 38px 22px;
  border-bottom-right-radius: 38px 22px;
  margin-bottom: 1.2rem;
}
.archive-header h1 { color: var(--white); }
.archive-header p { color: rgba(255,255,255,.65); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0 .75rem;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* =============================================
   SEARCH
============================================= */
.search-bar-wrap {
  padding: 2rem 0 3rem;
}
.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.search-form:focus-within { border-color: var(--accent); }
.search-form input {
  flex: 1;
  padding: .85rem 1.5rem;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
.search-form button {
  padding: .85rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--accent-light); }

/* =============================================
   404
============================================= */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}
.error-number {
  font-family: var(--font-head);
  font-size: 8rem;
  font-weight: 700;
  color: var(--accent-pale);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h1 { margin-bottom: 1rem; }
.error-page p { max-width: 400px; margin: 0 auto 2rem; }

/* =============================================
   SERMON GALLERY (YouTube embed — hide featured player)
============================================= */

.sermon-panel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(107,52,16,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.84) 100%),
    linear-gradient(135deg, #FCF6ED 0%, #F3E5D2 100%);
  box-shadow:
    0 10px 30px rgba(107,52,16,.10),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.sermon-panel::before,
.sermon-panel::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sermon-panel::before {
  width: 220px;
  height: 220px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle, rgba(212,131,10,.14) 0%, rgba(212,131,10,0) 72%);
}

.sermon-panel::after {
  width: 180px;
  height: 180px;
  bottom: -35px;
  left: -45px;
  background: radial-gradient(circle, rgba(107,52,16,.10) 0%, rgba(107,52,16,0) 72%);
}

.sermon-panel-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem .4rem 1rem;
}

.sermon-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.sermon-panel-kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.sermon-panel-intro p {
  max-width: 540px;
  margin: 0;
  font-size: .95rem;
  color: var(--text-muted);
  text-align: right;
}

.sermon-gallery-wrap {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(107,52,16,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.sermon-gallery-wrap iframe,
.sermon-gallery-wrap .epyt-gallery,
.sermon-gallery-wrap .epyt-pagination,
.sermon-gallery-wrap .epyt-video-wrapper {
  max-width: 100%;
}
.sermon-gallery-wrap .epyt-gallery-allthumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 0;
}
.sermon-gallery-wrap .epyt-gallery-allthumbs .epyt-gallery-thumb {
  width: auto !important;
  float: none !important;
}
.sermon-gallery-wrap .epyt-gallery-rowbreak,
.sermon-gallery-wrap .epyt-gallery-clear {
  display: none !important;
}

@media (max-width: 900px) {
  .sermon-gallery-wrap .epyt-gallery-allthumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer::before {
    opacity: .28;
    background-size: 28px 28px, 28px 28px, auto, auto;
  }

  .page-hero-title {
    max-width: 100%;
  }

  .page .entry-content > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, table) {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .sermon-gallery-wrap .epyt-gallery-allthumbs {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   ARTICLE BROWSER
============================================= */
.article-browser-panel {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(107,52,16,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 100%),
    linear-gradient(135deg, #F8F0E6 0%, #F4E7D8 100%);
  box-shadow:
    0 10px 30px rgba(107,52,16,.08),
    inset 0 1px 0 rgba(255,255,255,.82);
}

.article-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-search-shell {
  position: relative;
  flex: 1;
}

.article-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1rem;
}

.article-topic-chip,
.article-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(107,52,16,.1);
  background: rgba(255,255,255,.72);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all var(--transition);
}

.article-topic-chip:hover,
.article-chip:hover {
  border-color: rgba(212,131,10,.35);
  background: rgba(254,243,226,.96);
  color: var(--accent);
}

.article-search {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(107,52,16,.1);
  background: rgba(255,255,255,.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.article-search:focus-within {
  border-color: rgba(212,131,10,.45);
  box-shadow: 0 0 0 4px rgba(212,131,10,.12);
}

.article-search-icon {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.article-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: .98rem;
  outline: none;
}

.article-search-input::placeholder {
  color: var(--text-muted);
}

.article-search-suggestions {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: .35rem;
  padding: .55rem;
  border-radius: 18px;
  border: 1px solid rgba(107,52,16,.1);
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 40px rgba(62,28,6,.14);
}

.article-search-suggestions[hidden] {
  display: none !important;
}

.article-search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: .75rem .8rem;
  border-radius: 14px;
  color: var(--text);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.article-search-suggestion:hover,
.article-search-suggestion:focus-visible {
  background: var(--accent-pale);
  color: var(--primary);
}

.article-search-suggestion-copy {
  min-width: 0;
}

.article-search-suggestion-title {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-search-suggestion-date {
  display: block;
  margin-top: .2rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-search-suggestion-arrow {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
}

.article-random-btn {
  flex-shrink: 0;
}

.article-browser-status {
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--text-muted);
  font-size: .92rem;
  border: 1px solid rgba(107,52,16,.07);
}

.article-browser-status.is-loading::after {
  content: ' ...';
}

.article-browser-results {
  min-height: 320px;
  isolation: isolate;
}

.article-browser-results.is-loading {
  opacity: .72;
  transition: opacity var(--transition);
}

.article-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(107,52,16,.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-feature-card--faith {
  --article-start: #533B7B;
  --article-end: #9478C9;
  --article-accent: #ECE2FF;
}

.article-feature-card--community {
  --article-start: #6B3410;
  --article-end: #C67B35;
  --article-accent: #F9E0BE;
}

.article-feature-card--service {
  --article-start: #214F69;
  --article-end: #65A6C8;
  --article-accent: #DDF2FB;
}

.article-feature-card--grace {
  --article-start: #7D355B;
  --article-end: #D280A7;
  --article-accent: #F9DBE9;
}

.article-feature-card--current {
  --article-start: #2F5D47;
  --article-end: #7DB88D;
  --article-accent: #DCEEDB;
}

.article-feature-card--home {
  --article-start: #704829;
  --article-end: #C49A62;
  --article-accent: #F6E4C9;
}

.article-feature-media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, var(--article-start), var(--article-end));
}

.article-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-feature-media.is-art {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.article-feature-art {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .7rem;
  padding: 1.2rem 1.15rem 1.05rem;
}

.article-feature-art::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
}
.article-feature-art-kicker,
.article-feature-art-title {
  position: relative;
  z-index: 1;
}

.article-feature-art-kicker {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-feature-art-title {
  max-width: 14ch;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.08;
  color: rgba(255,255,255,.96);
  text-wrap: balance;
}

.article-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,8,0,.58), rgba(20,8,0,0) 58%);
}

.article-feature-chips {
  position: absolute;
  left: .9rem;
  right: .9rem;
  top: .85rem;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.article-feature-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
  padding: 1.05rem 1.15rem 1.2rem;
}

.article-feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.article-feature-date {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-feature-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
  margin: 0;
}

.article-feature-title a {
  color: var(--text);
}

.article-feature-title a:hover {
  color: var(--primary);
}

.article-feature-excerpt {
  flex: 1;
  color: var(--text-muted);
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-feature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  margin-top: .2rem;
}

.article-preview-btn {
  padding: 0;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
}

.article-preview-btn:hover {
  color: var(--accent);
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--accent);
  font-size: .88rem;
  font-weight: 700;
}

.article-read-link::after {
  content: '→';
}

.article-preview-shell {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.article-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,8,0,.5);
  backdrop-filter: blur(4px);
}

.article-preview-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #FBF6F0 100%);
  box-shadow: -24px 0 60px rgba(20,8,0,.22);
  overflow-y: auto;
}

.article-preview-close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 3.2rem);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  margin: 1rem 1rem -3.5rem auto;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  font-size: 1.3rem;
  color: var(--primary);
}

.article-preview-media {
  min-height: 260px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.article-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-preview-body {
  padding: 2rem;
}

.article-preview-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .9rem;
}

.article-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
}

.article-preview-date {
  margin-bottom: .55rem;
  color: var(--text-muted);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-preview-title {
  margin-bottom: 1rem;
}

.article-preview-copy {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.8;
}

.article-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(107,52,16,.08);
}

.article-empty h3 {
  margin-bottom: .6rem;
}

.article-empty p {
  margin: 0;
}

.article-hub-wrap {
  padding-top: 2.75rem;
  background:
    radial-gradient(circle at top, rgba(107,52,16,.08) 0%, rgba(107,52,16,0) 30%),
    linear-gradient(180deg, #F3E8DB 0%, #F7F1EA 16%, #FBF6F0 100%);
}

.article-hub-main {
  max-width: 1240px;
  margin: 0 auto;
}

.article-featured-hero-section {
  margin-bottom: 2rem;
}

.article-featured-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  background: #22140d;
  box-shadow: 0 24px 54px rgba(39,19,9,.18);
}

.article-featured-hero-media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, var(--article-start), var(--article-end));
}

.article-featured-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-featured-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,8,0,.12) 0%, rgba(20,8,0,.18) 40%, rgba(20,8,0,.52) 100%),
    linear-gradient(180deg, rgba(20,8,0,.05) 0%, rgba(20,8,0,.36) 100%);
}

.article-featured-hero-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  padding: 2.6rem 2.5rem;
  background:
    linear-gradient(180deg, rgba(38,21,12,.97) 0%, rgba(28,16,10,.98) 100%),
    linear-gradient(135deg, rgba(212,147,31,.08) 0%, rgba(212,147,31,0) 58%);
}

.article-featured-hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(212,147,31,.12);
  color: #F4C976;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.article-featured-hero-date {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-featured-hero-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}

.article-featured-hero-title a {
  color: var(--white);
}

.article-featured-hero-title a:hover {
  color: #FFD88A;
}

/* =============================================
   BEDIENINGE LANDING PAGE
============================================= */
.page-template-page-bedieninge .page-content-wrap {
  overflow: hidden;
}

.bedieninge-hero {
  min-height: 640px;
  height: auto;
}

.bedieninge-hero .page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(23, 12, 7, .26) 0%, rgba(27, 14, 8, .48) 38%, rgba(17, 10, 6, .9) 100%),
    radial-gradient(circle at 18% 22%, rgba(244, 195, 112, .2) 0%, rgba(244, 195, 112, 0) 34%),
    radial-gradient(circle at 82% 24%, rgba(105, 145, 214, .16) 0%, rgba(105, 145, 214, 0) 30%),
    radial-gradient(circle at 50% 70%, rgba(154, 84, 135, .14) 0%, rgba(154, 84, 135, 0) 32%);
}

.bedieninge-hero-inner {
  max-width: 1080px;
  padding-top: 8rem;
  padding-bottom: 4.75rem;
}

.bedieninge-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,245,228,.92);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bedieninge-hero-title {
  max-width: 920px;
  margin-top: 1rem;
}

.bedieninge-hero-text {
  max-width: 760px;
  margin: 1rem auto 0;
  color: rgba(255,244,232,.84);
  font-size: clamp(1rem, .4vw + .95rem, 1.2rem);
  line-height: 1.75;
}

.bedieninge-hero-actions {
  display: flex;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.bedieninge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: .95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.bedieninge-button:hover {
  transform: translateY(-2px);
}

.bedieninge-button-primary {
  background: linear-gradient(135deg, #D28A17, #E4B151);
  color: #24150A;
  box-shadow: 0 16px 32px rgba(212, 147, 31, .26);
}

.bedieninge-button-primary:hover {
  color: #24150A;
  box-shadow: 0 18px 34px rgba(212, 147, 31, .34);
}

.bedieninge-button-secondary {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}

.bedieninge-button-secondary:hover {
  color: var(--white);
  background: rgba(255,255,255,.16);
}

.bedieninge-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 920px;
  margin-top: 2rem;
}

.bedieninge-stat-card {
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: rgba(18, 10, 6, .42);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.bedieninge-stat-card strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1;
}

.bedieninge-stat-card span {
  display: block;
  margin-top: .45rem;
  color: rgba(255,243,232,.76);
  font-size: .9rem;
}

.bedieninge-hero-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  max-width: 900px;
  margin-top: 1.5rem;
}

.bedieninge-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: .65rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pill-start, #6B3410), var(--pill-end, #D4830A));
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 0 12px 24px rgba(22, 10, 4, .18);
}

.bedieninge-content-wrap {
  position: relative;
  padding-top: 4.25rem;
}

.bedieninge-content-wrap::before,
.bedieninge-content-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: .8;
}

.bedieninge-content-wrap::before {
  width: 360px;
  height: 360px;
  top: 180px;
  left: -140px;
  background: radial-gradient(circle, rgba(212,147,31,.18) 0%, rgba(212,147,31,0) 70%);
}

.bedieninge-content-wrap::after {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: 140px;
  background: radial-gradient(circle, rgba(92, 126, 194, .14) 0%, rgba(92, 126, 194, 0) 70%);
}

.bedieninge-join-strip,
.bedieninge-spotlight,
.bedieninge-atlas,
.bedieninge-final-cta {
  position: relative;
  z-index: 1;
}

.bedieninge-section-heading {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.bedieninge-section-heading h2 {
  margin: .45rem 0 .8rem;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.14;
}

.bedieninge-section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.bedieninge-section-heading-inline {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bedieninge-reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bedieninge-reason-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,245,.9));
  border: 1px solid rgba(107,52,16,.08);
  box-shadow: 0 16px 32px rgba(75, 36, 10, .08);
}

.bedieninge-reason-number {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.bedieninge-reason-card h3 {
  margin: 0 0 .65rem;
  font-size: 1.2rem;
}

.bedieninge-reason-card p {
  margin: 0;
  color: var(--text-muted);
}

.bedieninge-spotlight {
  margin-top: 4rem;
}

.bedieninge-spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  gap: 1.25rem;
}

.bedieninge-spotlight-lead,
.bedieninge-spotlight-mini {
  color: inherit;
}

.bedieninge-spotlight-lead {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
  min-height: 420px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--spotlight-start, #6B3410), var(--spotlight-end, #D4830A));
  box-shadow: 0 28px 54px rgba(56, 25, 7, .15);
}

.bedieninge-spotlight-media {
  position: relative;
  min-height: 100%;
}

.bedieninge-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bedieninge-spotlight-media.is-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 36%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}

.bedieninge-spotlight-monogram {
  font-family: var(--font-head);
  font-size: clamp(4rem, 8vw, 6rem);
  color: rgba(255,255,255,.78);
  letter-spacing: .04em;
}

.bedieninge-spotlight-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(16, 8, 5, .06) 0%, rgba(16, 8, 5, .18) 100%),
    radial-gradient(circle at top right, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 34%);
}

.bedieninge-spotlight-tag,
.bedieninge-spotlight-mini-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,245,233,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bedieninge-spotlight-copy h3 {
  margin: .9rem 0 .7rem;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
}

.bedieninge-spotlight-copy p {
  margin: 0;
  color: rgba(255,245,235,.82);
}

.bedieninge-spotlight-cta {
  margin-top: 1.3rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bedieninge-spotlight-side {
  display: grid;
  gap: 1rem;
}

.bedieninge-spotlight-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.3rem 1.35rem;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--mini-start, #6B3410), var(--mini-end, #D4830A));
  color: var(--white);
  box-shadow: 0 18px 34px rgba(62, 28, 6, .12);
}

.bedieninge-spotlight-mini-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  color: var(--mini-accent, #F7D8A2);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.bedieninge-spotlight-mini h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.2rem;
  color: var(--white);
}

.bedieninge-spotlight-mini p {
  margin: 0;
  color: rgba(255,245,235,.8);
  font-size: .92rem;
}

.bedieninge-atlas {
  margin-top: 4rem;
}

.bedieninge-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
}

.bedieninge-filter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(107,52,16,.1);
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transition);
}

.bedieninge-filter span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: rgba(107,52,16,.08);
  font-size: .72rem;
}

.bedieninge-filter:hover,
.bedieninge-filter.is-active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.bedieninge-filter:hover span,
.bedieninge-filter.is-active span {
  background: rgba(255,255,255,.14);
}

.bedieninge-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.bedieninge-atlas-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(107,52,16,.08);
  box-shadow: 0 16px 34px rgba(60, 28, 7, .08);
  transition: transform var(--transition), box-shadow var(--transition);
  color: inherit;
}

.bedieninge-atlas-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(60, 28, 7, .14);
}

.bedieninge-atlas-card[hidden] {
  display: none;
}

.bedieninge-atlas-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, var(--atlas-start, #6B3410), var(--atlas-end, #D4830A));
}

.bedieninge-atlas-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.bedieninge-atlas-card:hover .bedieninge-atlas-card-media img {
  transform: scale(1.06);
}

.bedieninge-atlas-card-media.is-art {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.bedieninge-atlas-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 1.3rem;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 24%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 28%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

.bedieninge-atlas-art strong {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1;
}

.bedieninge-atlas-art span {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: var(--atlas-accent, #F7D8A2);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.bedieninge-atlas-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  padding: .4rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bedieninge-atlas-card-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.2rem 1.25rem 1.35rem;
  flex: 1;
}

.bedieninge-atlas-card-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
}

.bedieninge-atlas-card-body p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
}

.bedieninge-atlas-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .3rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bedieninge-atlas-cta::after {
  content: '->';
}

.bedieninge-final-cta {
  margin-top: 4rem;
}

.bedieninge-final-cta-inner {
  padding: 2.2rem clamp(1.5rem, 4vw, 3rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(35, 18, 10, .96), rgba(76, 39, 14, .94)),
    radial-gradient(circle at top right, rgba(240, 192, 103, .18) 0%, rgba(240, 192, 103, 0) 30%);
  color: var(--white);
  box-shadow: 0 30px 54px rgba(48, 22, 6, .18);
}

.bedieninge-final-cta-inner h2 {
  margin: .45rem 0 .8rem;
  color: var(--white);
}

.bedieninge-final-cta-inner p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,244,233,.78);
}

.bedieninge-final-actions {
  justify-content: flex-start;
}

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

  .bedieninge-spotlight-layout,
  .bedieninge-spotlight-lead {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .bedieninge-hero-inner {
    padding-top: 7rem;
  }

  .bedieninge-hero-stats,
  .bedieninge-reasons-grid,
  .bedieninge-atlas-grid {
    grid-template-columns: 1fr;
  }

  .bedieninge-stat-card {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .bedieninge-hero {
    min-height: 580px;
  }

  .bedieninge-button {
    width: 100%;
    min-width: 0;
  }

  .bedieninge-spotlight-copy,
  .bedieninge-final-cta-inner {
    padding: 1.5rem;
  }

  .bedieninge-spotlight-mini {
    grid-template-columns: 1fr;
  }

  .bedieninge-spotlight-mini-symbol {
    width: 2.8rem;
    height: 2.8rem;
  }
}

.article-featured-hero-excerpt {
  max-width: 34ch;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.8;
}

.article-featured-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}

.article-hub-intro {
  margin-bottom: 2rem;
}

.article-hub-intro-card {
  position: relative;
  overflow: hidden;
  padding: 2.1rem 2.25rem;
  border-radius: 28px;
  border: 1px solid rgba(107,52,16,.08);
  background:
    linear-gradient(180deg, rgba(49,29,18,.96) 0%, rgba(36,21,14,.96) 100%),
    linear-gradient(135deg, rgba(212,147,31,.08) 0%, rgba(212,147,31,0) 100%);
  box-shadow:
    0 12px 34px rgba(39,19,9,.12),
    inset 0 1px 0 rgba(255,255,255,.04);
  text-align: center;
}

.article-hub-intro-card::before {
  content: '';
  position: absolute;
  inset: auto -8% -55% 56%;
  height: 220px;
  background: radial-gradient(circle, rgba(212,147,31,.16) 0%, rgba(212,147,31,0) 68%);
  pointer-events: none;
}

.article-hub-intro-card h2 {
  margin-bottom: .75rem;
  color: var(--white);
}

.article-hub-intro-card p {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255,255,255,.72);
}

.article-browser-section--page {
  padding-top: 0;
  padding-bottom: 0;
}

.article-browser-section--page .article-browser-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 100%),
    linear-gradient(135deg, #F8F0E6 0%, #F4E7D8 100%);
  box-shadow:
    0 16px 34px rgba(39,19,9,.08),
    inset 0 1px 0 rgba(255,255,255,.84);
}

.article-hub-latest {
  margin-top: 3.25rem;
}

.article-hub-posts-grid {
  padding-top: .5rem;
}

.article-hub-pagination {
  margin-top: 2.5rem;
}

/* =============================================
   DIGITALE METGESEL — COMPANION PAGE
============================================= */
.page-hero-subtitle {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin: .5rem 0 0;
  max-width: 500px;
  text-align: center;
}

.dm-wrap {
  background: var(--bg);
  padding: 2.5rem 0 5rem;
}

/* Feature pills */
.dm-features {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.dm-feature {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.dm-feature svg { color: var(--accent); flex-shrink: 0; }

/* Chat container */
.dm-chat-container {
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid #C47D1A;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(196,125,26,.2);
  overflow: hidden;
  background: var(--white);
}

/* Warm header bar */
.dm-chat-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #3F1F0C;
  padding: .8rem 1.4rem;
  border-bottom: 1px solid #C47D1A;
  box-shadow: inset 0 0 0 1px rgba(196,125,26,.35);
  outline: 1px solid #C47D1A;
  outline-offset: -1px;
}
.dm-chat-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.dm-chat-header-dot:nth-child(1) { background: rgba(255,255,255,.35); }
.dm-chat-header-dot:nth-child(2) { background: var(--accent); }
.dm-chat-header-dot:nth-child(3) { background: var(--accent-light); }
.dm-chat-header-label {
  margin-left: .75rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F5EDD0;
}
.dm-chat-body {
  background: var(--bg-warm) !important;
  color: var(--text) !important;
  display: block !important;
}

/* ── AI Engine chatbot overrides — warm light theme ── */
.dm-chat-body .mwai-foundation-theme {
  --mwai-width:                        100%               !important;
  --mwai-maxHeight:                    60vh               !important;
  --mwai-borderRadius:                 0                  !important;
  --mwai-fontSize:                     15px               !important;
  --mwai-fontFamily:                   'Inter', sans-serif !important;
  --mwai-fontColor:                    #2C241E            !important;
  --mwai-backgroundPrimaryColor:       #FBF6F0            !important;
  --mwai-backgroundSecondaryColor:     #FCF6ED            !important;
  --mwai-backgroundHeaderColor:        #F3EDE3            !important;
  --mwai-borderColor:                  #E4D7C7            !important;
  --mwai-accentColor:                  #D4931F            !important;
  --mwai-bubbleColor:                  #F3EDE3            !important;
  --mwai-iconTextBackgroundColor:      #6B3410            !important;
  --mwai-conversationsBackgroundColor: #FCF6ED            !important;
  --mwai-conversationsTextColor:       #2C241E            !important;
  width: 100% !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-body {
  width: 100%              !important;
  max-width: 100%          !important;
  border: none             !important;
  box-shadow: none         !important;
  background: var(--bg-warm) !important;
  color: var(--text)       !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-conversation {
  background: var(--bg-warm) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-header {
  background: var(--bg-light) !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-header * {
  color: var(--text) !important;
}
.dm-chat-body,
.dm-chat-body * {
  color-scheme: light !important;
}
/* Conversation messages */
.dm-chat-body .mwai-foundation-theme .mwai-reply .mwai-text {
  color: #2C241E !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-reply.mwai-user {
  background: var(--accent-pale) !important;
  border-left: 3px solid var(--accent) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-reply.mwai-ai,
.dm-chat-body .mwai-foundation-theme .mwai-reply.mwai-system {
  background: #fff !important;
  border-left: 3px solid var(--border) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-reply .mwai-text a {
  color: var(--accent) !important;
}
/* Input area */
.dm-chat-body .mwai-foundation-theme .mwai-input {
  background: var(--white) !important;
  border-top: 1px solid var(--border) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-input .mwai-input-text {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-input .mwai-input-text textarea {
  color: var(--text) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  background: transparent !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-input .mwai-input-text textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: .7 !important;
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit {
  background: #3F1F0C !important;
  color: transparent !important;
  border-radius: 4px !important;
  border: 1px solid #C47D1A !important;
  padding: .28rem .75rem !important;
  font-size: 0 !important;
  width: auto !important;
  min-width: 60px !important;
  height: auto !important;
  cursor: pointer !important;
  transition: background .18s, border-color .18s !important;
  position: relative !important;
  opacity: 1 !important;
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit::after {
  content: attr(data-ngv-submit-label);
  font-size: .65rem !important;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #F5EDD0;
  pointer-events: none;
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit.mwai-busy::after {
  content: "";
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit svg {
  display: none !important;
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit:hover,
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit.mwai-has-content:hover {
  background: #6B3410 !important;
  border-color: #D4931F !important;
  filter: none !important;
}
.dm-chat-body .mwai-chatgpt-theme .mwai-input button.mwai-input-submit.mwai-has-content {
  background: #3F1F0C !important;
}
/* Hide any mwai widget that is NOT inside .dm-chat-body */
.dm-wrap .mwai-chatbot-container,
.dm-wrap .mwai-foundation-theme {
  display: none !important;
}
.dm-chat-body .mwai-chatbot-container,
.dm-chat-body .mwai-foundation-theme {
  display: block !important;
  width: 100% !important;
}

/* Terminal text */
.dm-chat-body .mwai-foundation-theme .mwai-terminal-text,
.dm-chat-body .mwai-foundation-theme .mwai-terminal-text * {
  color: #000 !important;
  font-weight: 700 !important;
}

/* User question lines — black, fully opaque */
.mwai-chat.mwai-chatgpt-theme .mwai-terminal-line.mwai-terminal-user,
.mwai-chat.mwai-chatgpt-theme .mwai-terminal-line.mwai-terminal-user .mwai-terminal-text,
.mwai-chat.mwai-chatgpt-theme .mwai-terminal-line.mwai-terminal-user .mwai-terminal-text *,
.mwai-chatgpt-theme .mwai-conversation.mwai-terminal .mwai-terminal-line.mwai-terminal-user .mwai-terminal-text,
.dm-chat-body .mwai-foundation-theme .mwai-conversation.mwai-terminal .mwai-terminal-line.mwai-terminal-user .mwai-terminal-text,
.mwai-terminal-line.mwai-terminal-user .mwai-terminal-text,
.mwai-terminal-line.mwai-terminal-user .mwai-terminal-text * {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #000 !important;
  background-color: transparent !important;
}
/* Remove any overlay/fade the plugin puts on user lines */
.mwai-chat.mwai-chatgpt-theme .mwai-terminal-line.mwai-terminal-user,
.mwai-terminal-line.mwai-terminal-user {
  opacity: 1 !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-conversation.mwai-terminal .mwai-terminal-line.mwai-terminal-user {
  opacity: 1 !important;
}
/* Override the semi-transparent secondary background variable for user lines */
.mwai-chat.mwai-chatgpt-theme .mwai-terminal-line.mwai-terminal-user {
  --mwai-backgroundSecondaryColor: transparent !important;
}

/* Scrollbar warm tint */
.dm-chat-body .mwai-foundation-theme .mwai-conversation::-webkit-scrollbar-thumb {
  background: var(--border) !important;
}
.dm-chat-body .mwai-foundation-theme .mwai-conversation::-webkit-scrollbar-track {
  background: var(--bg-light) !important;
}

/* Disclaimer */
.dm-disclaimer {
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 1.5rem auto 0;
  opacity: .7;
}

/* =============================================
   SECTION DIVIDERS
============================================= */

/* ── Cross ornament divider ────────────────── */
.ngv-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .2rem 1.5rem;
  color: var(--accent);
  background: var(--bg);
}
.ngv-divider::before,
.ngv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}
.ngv-divider::before {
  background: linear-gradient(to right, transparent, var(--border) 60%);
  margin-right: 1.25rem;
}
.ngv-divider::after {
  background: linear-gradient(to left, transparent, var(--border) 60%);
  margin-left: 1.25rem;
}
.ngv-divider-glyph {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(196,146,42,.25));
}

/* ── Wave transition into dark CTA ─────────── */
.ngv-after-wave { padding-top: 3rem; }

.live-stream-page-main {
  width: 100%;
}

.live-stream-panel {
  margin: 0 auto 2.5rem;
}

.live-stream-stage {
  position: relative;
  overflow: hidden;
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(20,20,20,.92) 0%, rgba(32,32,32,.96) 100%),
    linear-gradient(135deg, rgba(212,147,31,.08) 0%, rgba(212,147,31,0) 55%);
  box-shadow: 0 24px 54px rgba(24,15,9,.18), 0 0 0 2px rgba(214, 165, 67, .24);
  border: 2px solid rgba(214, 165, 67, .52);
}

.live-stream-stage.is-offline {
  min-height: 455px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-stream-placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: inherit;
  display: block;
}

.live-stream-embed-shell {
  position: relative;
  aspect-ratio: 16 / 9;
}
.live-stream-embed-shell:fullscreen,
.live-stream-embed-shell:-webkit-full-screen {
  aspect-ratio: unset;
  width: 100vw;
  height: 100vh;
  background: #000;
}
.live-stream-embed-shell:fullscreen .live-stream-embed,
.live-stream-embed-shell:-webkit-full-screen .live-stream-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Maximize button */
.live-stream-maximize-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
  backdrop-filter: blur(4px);
}
.live-stream-embed-shell:hover .live-stream-maximize-btn,
.live-stream-embed-shell:fullscreen .live-stream-maximize-btn,
.live-stream-embed-shell:-webkit-full-screen .live-stream-maximize-btn {
  opacity: 1;
}
.live-stream-maximize-btn:hover {
  background: rgba(0,0,0,0.8);
}
.live-stream-maximize-icon {
  width: 18px;
  height: 18px;
}
.live-stream-embed-shell.is-fullscreen .icon-expand   { display: none; }
.live-stream-embed-shell.is-fullscreen .icon-compress { display: block !important; }

.live-stream-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-stream-fallback {
  position: relative;
  isolation: isolate;
  width: min(1060px, 100%);
  padding: 2.3rem 1.75rem 5.1rem;
  text-align: center;
  color: #f3d4a2;
  border-radius: 42px;
  border: 3px solid rgba(212, 147, 31, .78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 176, .18),
    0 0 0 8px rgba(120, 75, 20, .12),
    0 22px 48px rgba(0, 0, 0, .26),
    0 0 30px rgba(212, 147, 31,.16);
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 173, 66, 0.18), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(255, 132, 0, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 150, 50, 0.2), transparent 30%),
    linear-gradient(180deg, #111214 0%, #1b1715 40%, #20120b 100%);
}

.live-stream-fallback::before,
.live-stream-fallback::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(26px);
}

.live-stream-fallback::before {
  width: 280px;
  height: 280px;
  top: 2%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 154, 43, .18) 0%, rgba(255, 154, 43, 0) 72%);
  border-radius: 50%;
  animation: live-stream-float-amber 15s ease-in-out infinite;
}

.live-stream-fallback::after {
  width: 340px;
  height: 340px;
  left: 6%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(255, 192, 110, .14) 0%, rgba(255, 192, 110, 0) 74%);
  border-radius: 50%;
  animation: live-stream-float-amber 18s ease-in-out infinite reverse;
}

.live-stream-fallback-glow::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 218, 139, .22);
  box-shadow: inset 0 0 24px rgba(255, 181, 61, .05);
}

.live-stream-fallback-copy {
  margin: 0 auto 1rem;
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.live-stream-fallback-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background:
    radial-gradient(circle, rgba(255, 190, 90, 0.6) 0 1px, transparent 2px) 0 0 / 120px 120px,
    radial-gradient(circle, rgba(255, 150, 50, 0.35) 0 1px, transparent 2px) 40px 60px / 180px 180px,
    radial-gradient(circle, rgba(255, 210, 120, 0.18) 0 2px, transparent 3px) 10px 10px / 260px 260px;
  animation: live-stream-particles-drift 28s linear infinite;
}

.live-stream-fallback-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  margin-bottom: 30px;
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #f1d09a;
  background: linear-gradient(180deg, rgba(109, 78, 39, 0.9), rgba(75, 49, 20, 0.95));
  border: 1px solid rgba(255, 193, 94, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.08) inset, 0 10px 30px rgba(0,0,0,0.35), 0 0 18px rgba(255, 153, 51, 0.15);
}

.live-stream-fallback h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.7vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  color: #efc37d;
  text-shadow: 0 2px 0 rgba(82, 35, 5, 0.35), 0 8px 28px rgba(255, 128, 0, 0.18);
}

.live-stream-fallback p {
  margin: 0 auto 38px;
  max-width: 820px;
  font-size: clamp(.98rem, 1.55vw, 1.18rem);
  line-height: 1.58;
  color: rgba(255, 236, 215, 0.82);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.live-stream-fallback-actions {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.live-stream-fallback-actions .btn {
  min-width: 286px;
  padding: 20px 24px;
  font-size: clamp(1.08rem, 1.65vw, 1.42rem);
  font-weight: 700;
  border-radius: 0;
}

.live-stream-fallback-actions .btn:hover {
  transform: translateY(-2px);
}

.live-stream-fallback-actions .btn-primary {
  color: #fff2d7;
  background: linear-gradient(180deg, #e59a19 0%, #cb7810 100%);
  border: 2px solid rgba(255, 214, 137, 0.45);
  box-shadow: 0 14px 35px rgba(165, 85, 7, 0.35), 0 0 22px rgba(255, 166, 0, 0.18), inset 0 1px 0 rgba(255, 235, 194, 0.25);
}

.live-stream-fallback-actions .btn-primary:hover {
  background: linear-gradient(180deg, #efaa2f 0%, #d47f12 100%);
}

.live-stream-btn-secondary {
  min-width: 286px;
  padding: 20px 24px;
  font-size: clamp(1.08rem, 1.65vw, 1.42rem);
  font-weight: 700;
  text-decoration: none;
  color: #e0a35a;
  background: rgba(25, 17, 12, 0.38);
  border: 2px solid rgba(244, 203, 151, 0.75);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 180, 92, 0.08);
  backdrop-filter: blur(4px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.live-stream-btn-secondary:hover {
  transform: translateY(-2px);
  color: #f0bf82;
  background: rgba(40, 25, 16, 0.55);
}

.live-stream-fallback-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 92px;
  pointer-events: none;
  z-index: 0;
}

@keyframes live-stream-particles-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0 0, 40px 60px, 10px 10px;
  }
  50% {
    transform: translate3d(0, -6px, 0) scale(1.015);
    background-position: 12px -10px, 28px 76px, -6px 20px;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0 0, 40px 60px, 10px 10px;
  }
}

@keyframes live-stream-float-amber {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 768px) {
  .live-stream-fallback {
    padding: 30px 20px 72px;
  }

  .live-stream-fallback-kicker {
    margin-bottom: 22px;
  }

  .live-stream-fallback p {
    margin-bottom: 30px;
  }

  .live-stream-fallback-actions {
    gap: 14px;
  }

  .live-stream-fallback-actions .btn,
  .live-stream-btn-secondary {
    min-width: min(100%, 340px);
  }

  .live-stream-fallback-wave {
    height: 78px;
  }
}

.live-stream-page-copy {
  margin-top: 2.75rem;
}

/* ── Homepage Live Stream Section ──────────────────────── */
.live-stream-section .section-header .label    { color: #c9973a; }
.live-stream-section .section-header h2        { color: var(--white); }
.live-stream-section .section-header .subtitle { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.live-stream-section .live-stream-stage        { max-width: 900px; margin: 0 auto; }

/* ── Admin Live Subtitle Editor ────────────────────────── */
.live-stream-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ngv-subtitle-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(201,151,58,0.45);
  border-radius: 6px;
  background: rgba(201,151,58,0.12);
  color: rgba(240,201,106,0.7);
  font-size: 14px;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.ngv-subtitle-edit-btn:hover {
  background: rgba(201,151,58,0.28);
  color: #f0c96a;
  border-color: #c9973a;
}
.ngv-subtitle-editor {
  margin-top: .5rem;
}
.ngv-subtitle-textarea {
  width: 100%;
  max-width: 560px;
  padding: 8px 12px;
  border: 1px solid rgba(201,151,58,0.5);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
  font: inherit;
  font-size: .95rem;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
}
.ngv-subtitle-textarea:focus {
  border-color: #c9973a;
}
.ngv-subtitle-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ngv-subtitle-save,
.ngv-subtitle-cancel {
  padding: 5px 14px;
  border-radius: 6px;
  font: 600 11px/1 sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s;
}
.ngv-subtitle-save {
  background: #c9973a;
  color: #1a0800;
  border-color: #c9973a;
}
.ngv-subtitle-save:hover { background: #e0aa44; }
.ngv-subtitle-save:disabled { opacity: .6; cursor: default; }
.ngv-subtitle-cancel {
  background: transparent;
  color: rgba(240,201,106,0.7);
  border-color: rgba(201,151,58,0.4);
}
.ngv-subtitle-cancel:hover { background: rgba(201,151,58,0.12); color: #f0c96a; }

/* ── Subtitle mode switcher ────────────────────────────── */
.ngv-subtitle-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.ngv-subtitle-mode-label {
  font-size: .8rem;
  color: rgba(240,201,106,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ngv-mode-btn {
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(201,151,58,0.45);
  background: transparent;
  color: rgba(240,201,106,0.6);
  font: 600 11px/1 sans-serif;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ngv-mode-btn:hover {
  background: rgba(201,151,58,0.18);
  color: #f0c96a;
  border-color: #c9973a;
}
.ngv-mode-btn.is-active {
  background: #c9973a;
  color: #1a0800;
  border-color: #c9973a;
}
.ngv-mode-btn:disabled { opacity: .5; cursor: default; }

/* ── Subtitle panels (side-by-side on wide screens) ─────── */
.ngv-subtitle-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .ngv-subtitle-panels { grid-template-columns: 1fr; }
}
.ngv-subtitle-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ngv-subtitle-panel-label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(240,201,106,0.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ngv-subtitle-panel .ngv-subtitle-textarea { max-width: 100%; }

/* ── Live stream image upload UI ───────────────────── */
.ngv-img-upload-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(201,151,58,0.2);
}
.ngv-img-upload-label {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(240,201,106,0.7);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ngv-img-preview {
  min-height: 40px;
  display: flex;
  align-items: center;
}
.ngv-img-preview img {
  max-width: 100%;
  max-height: 90px;
  border-radius: 6px;
  border: 1px solid rgba(201,151,58,0.35);
  object-fit: cover;
}
.ngv-img-preview-empty {
  font-size: .8rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}
.ngv-img-upload-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(201,151,58,0.45);
  background: rgba(201,151,58,0.12);
  color: rgba(240,201,106,0.8);
  font: 600 11px/1 sans-serif;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ngv-img-upload-btn:hover { background: rgba(201,151,58,0.28); color: #f0c96a; }
.ngv-img-remove-btn {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,80,80,0.3);
  background: transparent;
  color: rgba(255,130,130,0.7);
  font: 600 11px/1 sans-serif;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ngv-img-remove-btn:hover { background: rgba(255,80,80,0.12); color: #ff9090; }

/* ── Admin Live Stream Toggle ──────────────────────────── */
.ngv-live-admin-toggle {
  position: fixed;
  bottom: 48px;
  left: 16px;
  z-index: 99999;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font: 600 11px/1 sans-serif;
  letter-spacing: .04em;
}
.ngv-live-admin-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 8px;
  border: 1px solid rgba(201,151,58,0.55);
  border-radius: 999px;
  background: rgba(35,10,2,0.92);
  color: rgba(240,201,106,0.85);
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.ngv-live-admin-toggle-btn:hover {
  border-color: #c9973a;
  color: #f0c96a;
  background: rgba(50,15,3,0.97);
}
.ngv-live-admin-toggle-arrow {
  font-size: 9px;
  opacity: .7;
}
.ngv-live-admin-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(240,201,106,0.3);
  border-top-color: #f0c96a;
  border-radius: 50%;
  animation: ngv-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes ngv-spin {
  to { transform: rotate(360deg); }
}
.ngv-live-admin-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,151,58,0.35);
  transition: background .2s;
  flex-shrink: 0;
}
.ngv-live-admin-toggle.is-local .ngv-live-admin-toggle-dot {
  background: #c9973a;
  box-shadow: 0 0 0 3px rgba(201,151,58,0.2);
  animation: ngv-live-dot-pulse 1.8s ease-in-out infinite;
}
.ngv-live-admin-toggle.is-all .ngv-live-admin-toggle-dot {
  background: #e53;
  box-shadow: 0 0 0 3px rgba(238,85,51,0.25);
  animation: ngv-live-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes ngv-live-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px currentColor; opacity: .8; }
  50%       { box-shadow: 0 0 0 6px currentColor; opacity: .2; }
}
/* Dropdown */
.ngv-live-admin-dropdown {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  background: rgba(25,8,2,0.97);
  border: 1px solid rgba(201,151,58,0.45);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.ngv-live-admin-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  background: none;
  border: 0;
  color: rgba(240,201,106,0.85);
  font: 600 11px/1.3 sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ngv-live-admin-dropdown button:hover {
  background: rgba(201,151,58,0.15);
  color: #f0c96a;
}
.ngv-live-admin-dropdown button + button {
  border-top: 1px solid rgba(201,151,58,0.15);
}

/* =============================================
   WEEK EVENTS — WAT GEBEUR DIE WEEK
============================================= */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  overflow: hidden;
}

.week-day {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg-light);
  min-height: 200px;
  transition: background var(--transition);
}
.week-day:last-child { border-right: none; }

/* Today highlight */
.week-day.is-today {
  background: var(--white);
  position: relative;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.week-day.is-today::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

/* Days with no events */
.week-day.is-quiet { background: var(--bg); }
.week-day.is-quiet .week-day-num { color: var(--text-muted); }

/* Day header */
.week-day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .85rem .5rem .7rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.week-day-name {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.week-day-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.week-day.is-today .week-day-num { color: var(--accent); }

.week-day-month {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.week-today-badge {
  margin-top: .3rem;
  padding: .15rem .55rem;
  background: var(--accent);
  color: var(--white);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Day body — event list */
.week-day-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .6rem .45rem;
}

.week-event {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .4rem .5rem;
  background: var(--accent-pale);
  border-left: 2px solid var(--accent);
  transition: background var(--transition), border-color var(--transition);
  line-height: 1.35;
}
.week-event:hover {
  background: var(--accent);
  border-left-color: var(--primary);
  color: var(--white);
}

.week-event-time {
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  transition: color var(--transition);
}
.week-event:hover .week-event-time { color: rgba(255,255,255,.8); }

.week-event-name {
  font-size: .73rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.week-event:hover .week-event-name { color: var(--white); }

.week-no-events {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 1.1rem;
  padding: 1rem 0;
}

/* =============================================
   FADE-IN ANIMATIONS
============================================= */
.fade-up {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.fade-up.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: .05s; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .15s; }
.fade-up:nth-child(4) { transition-delay: .2s; }
.fade-up:nth-child(5) { transition-delay: .25s; }
.fade-up:nth-child(6) { transition-delay: .3s; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; padding-right: 0; }
  .footer-brand-tagline { max-width: none; }
  .featured-split { grid-template-columns: 1fr; }
  .featured-split-image { padding: 2rem 1.5rem; }
  .welcome-portrait-frame { max-width: 260px; }
  .featured-split-content { padding: 3rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .site-nav { display: none; position: fixed; inset: 0; background: var(--primary-dark); flex-direction: column; align-items: flex-start; justify-content: center; padding: 6rem 2rem 3rem; gap: 0; }
  .site-nav.open { display: flex; }
  .nav-link { font-size: 1.4rem; padding: .75rem 0; color: rgba(255,255,255,.85); width: 100%; border-radius: 0; }
  .nav-link:hover { background: transparent; color: var(--accent-light); }
  .nav-cta { margin: 1rem 0 0; border-radius: 50px; padding: .75rem 1.75rem; display: inline-flex; width: auto; }
  .nav-link-cta { margin: 1.5rem 0 0; border-radius: 999px !important; padding: .75rem 1.75rem !important; display: inline-flex !important; width: auto !important; font-size: 1.1rem !important; }
  .nav-link-ai { font-size: 1.4rem; gap: .5rem; }
  .nav-dd-icon { display: none; }
  .nav-dropdown-link strong { font-size: .95rem; }
  .nav-dropdown-link small { display: none; }
  .nav-item { display: flex; flex-direction: column; width: 100%; }
  .nav-dropdown, .nav-subdropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    background: rgba(255,255,255,.05);
    border: none;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    margin: .25rem 0 .25rem 1rem;
    padding: .15rem .25rem;
    box-shadow: none;
    min-width: 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-item + .nav-dropdown-item { border-top: none; }
  .nav-dropdown-link, .nav-subdropdown-link { font-size: 1rem; color: rgba(255,255,255,.7); padding: .45rem .75rem; border-radius: 6px; }
  .nav-dropdown-link:hover, .nav-subdropdown-link:hover { background: transparent; color: var(--accent-light); }
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .page-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand-col { grid-column: auto; }
  .hero-content { max-width: 100%; }
  .info-bar-grid { grid-template-columns: 1fr 1fr; }
  .featured-split-content { padding: 2.5rem 1.75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sermon-panel-intro { flex-direction: column; align-items: flex-start; }
  .sermon-panel-intro p { text-align: left; }
  .week-strip { grid-template-columns: repeat(7, minmax(110px, 1fr)); overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .week-day { scroll-snap-align: start; }
  .article-browser-toolbar { flex-direction: column; align-items: stretch; }
  .article-feature-actions { flex-direction: column; align-items: flex-start; }
  .article-search-suggestions {
    position: static;
    margin-top: .55rem;
  }
}

@media (max-width: 480px) {
  .info-bar-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sermon-panel { padding: 1rem; }
  .sermon-gallery-wrap { padding: .75rem; }
  .article-browser-panel { padding: 1rem; }
  .article-preview-body { padding: 1.35rem; }
}

body *,
body *::before,
body *::after {
  border-radius: 0 !important;
}

.custom-logo,
.site-logo-img,
.custom-logo-link img {
  border-radius: 50% !important;
}

/* ── Image CAPTCHA Pro — constrain icon size ────────────── */
.kc_captcha { max-width: 100%; }
.kc_captcha i,
.kc_captcha .ai1ic-icon,
.kc_captcha svg,
.kc_captcha img.captcha-icon,
.ai1ic_icon_wrapper i,
.ai1ic_icon_wrapper svg {
  font-size: 48px !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}
/* Hide honeypot fields — visually exposed by theme form styles */
.ai1ic-fields,
.ai1ic-fields input,
input[name="name-kc"],
input[name="email-kc"],
input[name="phone-kc"],
input[name="kc_honeypot"] {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Modal — calendar event popup (theme override) */
dialog.my-calendar-modal .mc-modal-title-container {
  background: #3F1F0C !important;
  border: none !important;
  color: #F3F0EA !important;
}

/* ═══════════════════════════════════════════════════════════
   NUUSBRIEWE ARCHIVE
═══════════════════════════════════════════════════════════ */

.nb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.nb-meta-count { font-weight: 600; color: var(--text); }

/* ── Grid ── */
.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ── Card ── */
.nb-card {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: fadeUp .45s ease both;
  animation-delay: var(--nb-delay, 0s);
}

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

/* Date block — left accent column */
.nb-card-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 1.25rem .75rem;
  text-align: center;
  flex-shrink: 0;
}

.nb-card-day {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-light);
}

.nb-card-month {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: .2rem;
}

.nb-card-year {
  font-size: .65rem;
  color: rgba(255,255,255,.5);
  margin-top: .15rem;
}

/* Card body */
.nb-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem;
  flex: 1;
  min-width: 0;
}

.nb-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .5rem;
  line-height: 1.35;
}

.nb-card-preview {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  gap: .5rem;
  flex-wrap: wrap;
}

.nb-card-dateline {
  font-size: .76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nb-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, gap .15s;
}

.nb-card-link:hover {
  color: var(--primary);
  gap: .55rem;
}

/* ── Pagination ── */
.nb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.nb-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.nb-page-btn:hover {
  background: var(--accent-pale);
  border-color: var(--accent);
  color: var(--accent);
}

.nb-page-btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

/* ── Empty state ── */
.nb-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.nb-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: .35;
}

.nb-empty h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: .5rem;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .nb-grid { grid-template-columns: 1fr; }
  .nb-card-date-block { min-width: 56px; }
  .nb-card-day { font-size: 1.6rem; }
}

/* ── Single newsletter view ─────────────────────────────── */
.nb-single-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.nb-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .15s, gap .15s;
}

.nb-back-link:hover { color: var(--primary); gap: .6rem; }

.nb-single-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.nb-single-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nb-single-meta-pill svg { flex-shrink: 0; opacity: .7; }

.nb-single-meta-preview {
  font-style: italic;
  color: var(--text-muted);
  background: var(--accent-pale);
  border-color: var(--accent-light);
}

.nb-single-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.75;
  color: var(--text);
  overflow-x: auto;
}

/* Newsletter HTML content resets */
.nb-single-body table { max-width: 100% !important; width: 100% !important; height: auto !important; }
.nb-single-body img   { max-width: 100% !important; width: 100% !important; height: auto !important; display: block; }
.nb-single-body a     { color: var(--accent); }

.nb-single-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Card title as link */
.nb-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}

.nb-card-title a:hover { color: var(--accent); }
