/* ==========================================================================
   CEMCA ONLINE CHURCH - GLOBAL TYPOGRAPHY & DESIGN SYSTEM
   Headings: Poppins (SemiBold 600, Bold 700, ExtraBold 800)
   Body Text & UI: Inter (Regular 400, Medium 500, SemiBold 600, Bold 700)
   ========================================================================== */

:root {
  /* Font Families */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Standardised Line Heights (Comfortable reading: 1.5 - 1.7) */
  --lh-h1: 1.18;
  --lh-h2: 1.24;
  --lh-h3: 1.28;
  --lh-card-title: 1.32;
  --lh-body: 1.65;
  --lh-article: 1.72;
  --lh-button: 1.3;
  --lh-nav: 1.4;

  /* Standardised Responsive Font Sizes (One step down for refined elegance) */
  /* Main Hero Heading (H1): Desktop 32-40px, Mobile 24-28px */
  --fs-h1: clamp(1.55rem, 2.1vw + 0.82rem, 2.625rem);

  /* Page / Section Heading (H2): Desktop 22-28px, Mobile 18-22px */
  --fs-h2: clamp(1.225rem, 1.35vw + 0.72rem, 1.775rem);

  /* Subsection Heading (H3): Desktop 18-22px, Mobile 16-18px */
  --fs-h3: clamp(1.025rem, 0.75vw + 0.7rem, 1.275rem);

  /* Card Titles (H4): Desktop 16-18.5px, Mobile 15-16.5px */
  --fs-card-title: clamp(0.925rem, 0.28vw + 0.75rem, 1.125rem);

  /* Normal Paragraphs / Body Text: Desktop 14-15px, Mobile 13.5-14.5px */
  --fs-body: clamp(0.85rem, 0.18vw + 0.75rem, 0.95rem);

  /* Articles and Teaching Content: Desktop 15-16.5px, Mobile 14-15px */
  --fs-article: clamp(0.885rem, 0.2vw + 0.76rem, 1.025rem);

  /* Navigation Menu: Desktop 13.5-14.5px */
  --fs-nav: clamp(0.8rem, 0.15vw + 0.72rem, 0.9rem);

  /* Buttons & Action Links: Desktop 13.5-14.5px */
  --fs-button: clamp(0.8rem, 0.15vw + 0.72rem, 0.9rem);

  /* Form Labels: Desktop 13.5-14.5px */
  --fs-label: clamp(0.8rem, 0.12vw + 0.72rem, 0.885rem);

  /* Captions & Meta: Desktop 12-13px */
  --fs-caption: clamp(0.7rem, 0.1vw + 0.65rem, 0.785rem);

  /* Optimal reading measure for long articles (65-75 characters) */
  --article-max-width: 68ch;

  /* Theme Tokens - Default Pure White Mode */
  --bg-page: #ffffff;
  --bg-section: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --text-heading: #0f172a;
  --text-body: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --topbar-bg: #1e1b4b;
  --mainnav-bg: #ffffff;
  --mainnav-text: #0f172a;
  --card-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Dark / Black Mode Theme Tokens */
html.dark-mode, body.dark-mode {
  --bg-page: #090d16;
  --bg-section: #0f172a;
  --bg-card: #131b2e;
  --bg-card-subtle: #1e293b;
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --topbar-bg: #060911;
  --mainnav-bg: #0f172a;
  --mainnav-text: #f8fafc;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Base Document Setup */
html {
  font-size: 14.5px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Headings Hierarchy */
h1, .h1 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-h1);
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

h2, .h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: #0f172a;
}

h3, .h3 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  margin-top: 0;
  margin-bottom: 0.95rem;
  color: #1e1b4b;
}

h4, .h4 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-card-title);
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #1e1b4b;
}

h5, .h5 {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.05rem, 0.3vw + 0.98rem, 1.2rem);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #1e1b4b;
}

h6, .h6 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #1e1b4b;
}

/* Paragraphs & Text Elements */
p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  margin-top: 0;
  margin-bottom: 1.35rem;
  color: #1e293b; /* High-contrast text against white */
}

p.lead, .lead {
  font-size: clamp(1.15rem, 0.4vw + 1.05rem, 1.325rem);
  line-height: 1.65;
  font-weight: var(--fw-medium);
  color: #334155;
}

strong, b {
  font-weight: var(--fw-bold);
  color: #0f172a;
}

/* Captions and Small Text */
small, .small, .caption, .meta-text {
  font-size: var(--fs-caption);
  line-height: 1.55;
  font-weight: var(--fw-medium);
  color: #64748b;
}

/* Backward compatibility classes mapping to new typography tokens */
.montserrat, .poppins { font-family: var(--font-heading) !important; }
.serif, .inter { font-family: var(--font-body) !important; }

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 3px !important;
}

.theme-layout { overflow-x: hidden; }

/* ---------- topbar ---------- */
.topbar {
  background: #1a1a1a;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 10px 0;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #fbbf24; text-decoration: underline; }
.topbar p { margin: 2px 12px 2px 0; font-size: 0.875rem; color: #e2e8f0; }
.topbar .fa { margin-right: 6px; }

/* ---------- navigation ---------- */
.mainnav {
  background-color: #270a70;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mainnav .logo img { max-height: 64px; padding: 6px 0; }
.navlinks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.navlinks > li { position: relative; }
.navlinks > li > a,
.navlinks > li > span.dead {
  display: block;
  color: #fff;
  font-family: var(--font-body) !important;
  font-size: var(--fs-nav);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-nav);
  letter-spacing: 0;
  text-transform: none;
  padding: 22px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.navlinks > li.current > a { color: #fdaa49; font-weight: var(--fw-bold); }
.navlinks > li > a:hover { color: #fdaa49; }
.navlinks span.dead { opacity: .7; cursor: default; }
.navlinks .sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: #1d0754;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.navlinks .has-sub:hover .sub { display: block; }
.navlinks .sub a,
.navlinks .sub span.dead {
  display: block;
  color: #fff;
  font-family: var(--font-body) !important;
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  padding: 11px 20px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.navlinks .sub a:hover { background: #9329c7; color: #fff; text-decoration: none; }
.nav-toggle {
  background: #9329c7;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero { background-color: #9329c7; }
.hero video { width: 100%; display: block; max-height: 70vh; object-fit: cover; }

/* ---------- live banner (accessible high-contrast) ---------- */
.live-banner {
  background-color: #fdaa49;
  color: #111827;
  border-bottom: 2px solid #d97706;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.live-banner h3 {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-h3);
  text-align: center;
  margin: 0;
  color: #111827 !important;
}
.live-banner h5 {
  font-family: var(--font-body) !important;
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.3rem);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  text-align: center;
  margin: 0;
  color: #1e1b4b !important;
}
.live-banner .pad { padding: 22px 0; }
.btn-watch {
  display: inline-block;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-button);
  border: 2px solid #270a70;
  background-color: #270a70;
  padding: 12px 28px;
  border-radius: 8px;
  text-transform: none;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(39, 10, 112, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-watch:hover {
  background: #192744;
  border-color: #192744;
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 39, 68, 0.4);
}

/* ---------- cards band ---------- */
.cardband {
  background-color: #e7e5ef;
  padding-top: 50px;
  padding-bottom: 70px;
}
.post {
  margin: 0 0 30px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
}
.post:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.post-preview img { width: 100%; height: 210px; object-fit: cover; display: block; }
.post-preview .ph {
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 46px;
}
.ph-1 { background: #270a70; }
.ph-2 { background: #9329c7; }
.ph-3 { background: #192744; }
.post-content {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-title {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-card-title);
  margin-bottom: 12px;
}
.post-title a {
  color: #270a70;
  text-decoration: none;
  transition: color 0.15s ease;
}
.post-title a:hover {
  color: #9329c7;
}
.post-content p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #334155;
  margin-bottom: 18px;
  flex: 1;
}
.btn-link-base {
  color: #9329c7;
  font-family: var(--font-body) !important;
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-button);
  padding-left: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-link-base:hover {
  color: #270a70;
  text-decoration: underline;
}

/* ---------- vision / mission ---------- */
.title2 { text-align: center; margin-bottom: 22px; }
.title2 h2 span {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  color: #270a70;
}
.narrow {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #1e293b;
}
.narrow p {
  font-size: var(--fs-body);
  line-height: 1.68;
  margin-bottom: 1.4rem;
  color: #1e293b;
}

/* ---------- parallax strip ---------- */
.parallax-strip {
  min-height: 200px;
  background: #270a70 url('https://e4r8y4v6.stackpathcdn.com/images/parallax1.jpg') center/cover;
}

/* ---------- service trio & announcements ---------- */
.title h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
  color: #270a70;
  margin: 32px 0 16px;
  text-align: center;
}
.service-block { text-align: center; margin-bottom: 35px; }
.service-block img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.service-block p {
  font-size: var(--fs-body);
  line-height: 1.62;
  color: #334155;
  margin-top: 14px;
}

/* ---------- get involved section ---------- */
.getinvolved {
  padding-top: 75px;
  padding-bottom: 60px;
}
.module-header h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  letter-spacing: -0.015em;
  text-transform: none;
  color: #1e1b4b;
  margin-bottom: 0.8rem;
}
.module-header .lead {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem);
  line-height: var(--lh-body);
  color: #475569;
}
.box-icon-left, .box-icon-right {
  padding: 10px 0 10px 24px;
  margin-bottom: 24px;
}
.box-icon-right { text-align: right; padding: 10px 24px 10px 0; }
.icon-box-icon .fa {
  font-size: 28px;
  color: #9329c7;
  width: 58px;
  height: 58px;
  line-height: 56px;
  text-align: center;
  border: 2px solid #9329c7;
  border-radius: 50%;
  margin-bottom: 14px;
}
.box-icon-left h4, .box-icon-right h4 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold);
  line-height: var(--lh-card-title);
  margin-bottom: 0.5rem;
}
.box-icon-left h4 span, .box-icon-right h4 span { color: #270a70; }
.box-icon-left p, .box-icon-right p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #334155;
  margin-bottom: 0.6rem;
}

/* ---------- salvation banner ---------- */
.salvation {
  background: #192744;
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.salvation h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-h2);
  margin-bottom: 30px;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.btn-white-big {
  display: inline-block;
  background: #fff;
  color: #270a70;
  font-family: var(--font-body) !important;
  font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-button);
  padding: 16px 40px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-white-big:hover {
  text-decoration: none;
  background: #fdaa49;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ---------- inner page header (page-top) ---------- */
.page-top {
  background: #270a70 url('https://e4r8y4v6.stackpathcdn.com/images/parallax1.jpg') center/cover;
  padding: 75px 0;
  text-align: center;
}
.page-top h1 {
  color: #fff;
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.page-top h1 span { color: #fdaa49; }
.page-top p {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.25rem);
  line-height: 1.65;
  margin: 14px auto 0;
  max-width: 760px;
}

/* ---------- forms & controls ---------- */
label,
.form-group label,
.theme-form label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  color: #0f172a;
  margin-top: 10px;
  margin-bottom: 6px;
  display: inline-block;
}

.form-control,
.theme-form .form-control {
  font-family: var(--font-body);
  font-size: 16px; /* Prevents auto-zoom on mobile iOS safari */
  font-weight: var(--fw-regular);
  line-height: 1.5;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 48px;
  border: 1.5px solid #cbd5e1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.theme-form .form-control:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  outline: none;
}

/* Global button styling enhancements */
.btn {
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-button);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #270a70;
  border-color: #270a70;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(39, 10, 112, 0.3);
}

.btn-primary:hover {
  background: #1e1b4b;
  border-color: #1e1b4b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39, 10, 112, 0.4);
}

.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a !important;
  font-weight: var(--fw-extrabold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.theme-form .submit {
  background: #9329c7;
  color: #fff;
  border: none;
  font-family: var(--font-body) !important;
  font-size: var(--fs-button);
  font-weight: var(--fw-bold);
  line-height: var(--lh-button);
  padding: 14px 40px;
  margin-top: 22px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(147, 41, 199, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.theme-form .submit:hover {
  background: #270a70;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 10, 112, 0.4);
}
.form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 38px 34px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* ---------- live stream & widgets ---------- */
.player-wrap { background: #000; border-radius: 12px; overflow: hidden; }
.meta {
  margin: 16px 0 28px;
  color: #475569;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.5;
}
.widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.widget-title h4 {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.1rem, 0.35vw + 1rem, 1.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: #270a70;
  border-bottom: 2px solid #fdaa49;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
#commentsHolder { list-style: none; padding: 0; margin: 0; }
#commentsHolder li { border-bottom: 1px solid #f1f5f9; padding: 14px 0; }
#commentsHolder h5 {
  font-family: var(--font-heading) !important;
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: #270a70;
  margin-bottom: 5px;
}
#commentsHolder h5 span {
  font-family: var(--font-body);
  color: #64748b;
  font-weight: var(--fw-regular);
  font-size: 0.85rem;
  margin-left: 6px;
}
#commentsHolder p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #1e293b;
  margin: 0;
}
.comments-scroll { max-height: 420px; overflow-y: auto; }
.leave-comment h4 {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: #270a70;
  margin-bottom: 14px;
}
.bank-box {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 500;
}

/* ==========================================================================
   LIVESTREAM RESPONSE ACTIONS BAR (Shared Site-Wide Standards)
   Primary CTA: "I Gave My Life to Christ"
   Secondary CTA: "I'm New Here"
   ========================================================================== */
.response-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.resp-btn {
  flex: 1 1 calc(20% - 12px);
  min-width: 140px;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #172033;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.resp-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* PRIMARY CTA: "I Gave My Life to Christ" */
.resp-btn.resp-salvation {
  flex: 1 1 100%;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 2px solid #ef4444;
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 800;
  padding: 16px 26px;
  box-shadow: 0 8px 24px -2px rgba(220, 38, 38, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.01em;
}
.resp-btn.resp-salvation:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 12px 28px -2px rgba(220, 38, 38, 0.65);
  transform: translateY(-2px);
}

/* SECONDARY CTA: "I'm New Here" */
.resp-btn.resp-new {
  flex: 1 1 calc(50% - 12px);
  min-width: 170px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  border: 2px solid #60a5fa;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 700;
  padding: 15px 22px;
  box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.45), 0 4px 8px -2px rgba(0, 0, 0, 0.3);
}
.resp-btn.resp-new:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 10px 24px -2px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.resp-btn.resp-prayer {
  flex: 1 1 calc(50% - 12px);
  min-width: 170px;
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  border: 1.5px solid #10b981;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}
.resp-btn.resp-prayer:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.5);
}

.resp-btn.resp-pastoral {
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
  border: 1.5px solid #8b5cf6;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
}
.resp-btn.resp-pastoral:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.resp-btn.resp-cell {
  background: linear-gradient(135deg, #d97706 0%, #78350f 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.resp-btn.resp-cell:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.resp-btn.resp-fs {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  border: 1.5px solid #6366f1;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
}
.resp-btn.resp-fs:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}

/* ---------- long-form articles & teaching content ---------- */
.article-content,
.article-body,
.teaching-content,
.rich-text-content {
  max-width: var(--article-max-width);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
  font-size: var(--fs-article);
  line-height: var(--lh-article);
  color: #1e293b;
}

.article-content p,
.article-body p,
.teaching-content p {
  font-size: var(--fs-article);
  line-height: var(--lh-article);
  margin-bottom: 1.6rem;
  color: #1e293b;
}

.article-content h2,
.article-body h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h2);
  margin-top: 2.2rem;
  margin-bottom: 1.1rem;
}

.article-content h3,
.article-body h3 {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
  margin-top: 2rem;
  margin-bottom: 0.95rem;
}

.article-content blockquote,
.article-body blockquote {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  border-left: 5px solid #f59e0b;
  padding: 16px 24px;
  background: #fffbeb;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  color: #92400e;
  font-style: italic;
}

/* ---------- footer ---------- */
.footer {
  background-color: #192744;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 50px;
  font-family: var(--font-body);
}
.footer .widget { background: transparent; border: none; padding: 0; margin-bottom: 24px; box-shadow: none; }
.footer h6 {
  font-family: var(--font-heading) !important;
  color: #fdaa49;
  font-size: 1.05rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer p, .footer address {
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
}
.footer a {
  color: #fdaa49;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .dead-inline { color: #fdaa49; opacity: .7; }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 35px;
  padding-top: 22px;
}
.footer .copyright p {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* ---------- responsive navigation & layout ---------- */
@media (max-width: 767px) {
  .navlinks { display: none; width: 100%; flex-direction: column; }
  .navlinks.open { display: flex; }
  .navlinks > li > a, .navlinks > li > span.dead { padding: 14px 12px; font-size: 16px; }
  .navlinks .sub { position: static; box-shadow: none; border-radius: 0; }
  .navlinks .has-sub:hover .sub { display: block; }
  .live-banner .pad { padding: 16px 0; }
  .narrow { padding: 0 14px; }
  .response-actions-bar .resp-btn { flex: 1 1 100%; min-width: 100%; font-size: 16px; padding: 15px 18px; }
}

/* ==========================================================================
   GIVE TITHES & OFFERINGS POP-UP - HIGH VISIBILITY & CLEAN WHITE DESIGN
   ========================================================================== */

.modal-backdrop-custom {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.giving-modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 620px !important;
  padding: 38px 34px 34px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative !important;
  box-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  text-align: left;
  box-sizing: border-box;
}

.giving-modal-card::-webkit-scrollbar {
  width: 8px;
}
.giving-modal-card::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.giving-modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.giving-modal-card::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.giving-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.giving-close-btn:hover {
  background: #e2e8f0;
  color: #000000;
  transform: scale(1.08);
}
.giving-close-btn:focus {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.giving-header {
  text-align: center;
  margin-bottom: 22px;
}

.giving-icon-emblem {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.38);
  margin-bottom: 14px;
}

.giving-badge {
  display: inline-block;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.giving-modal-title {
  font-family: var(--font-heading), 'Poppins', sans-serif !important;
  font-size: clamp(24px, 4vw, 32px) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.22 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  margin: 0 0 10px 0 !important;
}

.giving-modal-subtitle {
  font-size: 15.5px !important;
  line-height: 1.6 !important;
  color: #334155 !important;
  font-weight: 500 !important;
  max-width: 520px;
  margin: 0 auto;
}

.giving-bank-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #090d16 100%);
  border-radius: 16px;
  padding: 20px 22px;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.giving-bank-info {
  flex: 1;
  min-width: 220px;
}
.giving-bank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f59e0b;
  color: #090d16;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.giving-bank-org {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}
.giving-bank-suborg {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-top: 3px;
  font-weight: 500;
}

.giving-accounts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.giving-account-row {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}
.giving-account-row:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.giving-account-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.giving-purpose-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: #1e1b4b;
  background: #e0e7ff;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.giving-number-val {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.8px;
  font-family: var(--font-body), 'Inter', monospace;
}

.btn-copy-acc {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 16px;
  min-height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.btn-copy-acc:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #000;
  transform: translateY(-1px);
}
.btn-copy-acc:active {
  transform: translateY(0);
}
.btn-copy-acc.copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.giving-instructions-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.giving-instructions-icon {
  font-size: 20px;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}
.giving-instructions-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #78350f;
}
.giving-instructions-text strong {
  color: #92400e;
}

.giving-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-giving-primary {
  flex: 1 1 240px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  min-height: 50px !important;
  padding: 13px 24px !important;
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.35) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-giving-primary:hover {
  background: linear-gradient(135deg, #2e2878 0%, #3730a3 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.45) !important;
  color: #ffffff !important;
}

.btn-giving-secondary {
  flex: 0 1 auto;
  min-width: 130px;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  min-height: 50px !important;
  padding: 13px 20px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-giving-secondary:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #000 !important;
}

@media (max-width: 576px) {
  .giving-modal-card {
    padding: 26px 18px 22px !important;
    border-radius: 18px !important;
  }
  .giving-account-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-copy-acc {
    width: 100%;
    justify-content: center;
  }
  .btn-giving-primary, .btn-giving-secondary {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON & UNIVERSAL DARK / LIGHT MODE ENGINE
   Default: Pure Radiant White Experience
   Toggle: Sleek Obsidian Dark Mode ("Black Mode")
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-1px);
}
.dark-mode .theme-toggle-btn {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* --------------------------------------------------------------------------
   1. DEFAULT PURE WHITE THEME (APPLIED TO ALL PAGES)
   -------------------------------------------------------------------------- */
body,
.theme-layout,
main,
section,
.section,
.cardband,
.content-section,
.about-section,
.post,
.card,
.service-block,
.form-card,
.panel-card,
.widget,
.watch-wrapper {
  background-color: var(--bg-page);
  color: var(--text-body);
}

/* Main Navigation in White Mode */
.mainnav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
.mainnav ul li a {
  color: #0f172a !important;
  font-weight: 600 !important;
}
.mainnav ul li.current > a,
.mainnav ul li a:hover {
  color: #d97706 !important;
}
.mainnav .sub {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}
.mainnav .sub li a {
  color: #1e293b !important;
}
.mainnav .sub li a:hover {
  background: #f8fafc !important;
  color: #d97706 !important;
}

/* Page Headers & Hero Banners: Pure White by Default */
.page-top,
.events-hero,
.blog-hero,
.article-header,
.messages-hero,
.search-hero,
.serve-hero,
.fs-hero,
.testimonies-hero,
.series-hero,
.event-detail-hero,
.cells-hero,
.member-hero {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  position: relative;
}

.page-top::after,
.events-hero::after,
.blog-hero::after,
.article-header::after,
.messages-hero::after,
.search-hero::after,
.serve-hero::after,
.fs-hero::after,
.testimonies-hero::after,
.series-hero::after,
.event-detail-hero::after,
.cells-hero::after {
  display: none !important;
}

.page-top h1, .page-top h2, .page-top h3,
.events-hero h1, .events-hero h2, .events-hero h3,
.blog-hero h1, .blog-hero h2, .blog-hero h3,
.article-header h1, .article-header h2, .article-header h3,
.messages-hero h1, .messages-hero h2, .messages-hero h3,
.search-hero h1, .search-hero h2, .search-hero h3,
.serve-hero h1, .serve-hero h2, .serve-hero h3,
.fs-hero h1, .fs-hero h2, .fs-hero h3,
.testimonies-hero h1, .testimonies-hero h2, .testimonies-hero h3,
.series-hero h1, .series-hero h2, .series-hero h3,
.event-detail-hero h1, .event-detail-hero h2, .event-detail-hero h3,
.cells-hero h1, .cells-hero h2, .cells-hero h3,
.member-hero h1, .member-hero h2, .member-hero h3 {
  color: #0f172a !important;
  text-shadow: none !important;
}

.page-top p,
.events-hero p,
.blog-hero p,
.article-header p,
.messages-hero p,
.search-hero p,
.serve-hero p,
.fs-hero p,
.testimonies-hero p,
.series-hero p,
.event-detail-hero p,
.cells-hero p,
.member-hero p {
  color: #334155 !important;
}

/* Fallback visibility guarantee: light text classes inside white heroes */
body:not(.dark-mode) .events-hero .text-white,
body:not(.dark-mode) .events-hero .text-light,
body:not(.dark-mode) .blog-hero .text-white,
body:not(.dark-mode) .blog-hero .text-light,
body:not(.dark-mode) .article-header .text-white,
body:not(.dark-mode) .article-header .text-light,
body:not(.dark-mode) .messages-hero .text-white,
body:not(.dark-mode) .messages-hero .text-light,
body:not(.dark-mode) .search-hero .text-white,
body:not(.dark-mode) .search-hero .text-light,
body:not(.dark-mode) .serve-hero .text-white,
body:not(.dark-mode) .serve-hero .text-light,
body:not(.dark-mode) .fs-hero .text-white,
body:not(.dark-mode) .fs-hero .text-light,
body:not(.dark-mode) .testimonies-hero .text-white,
body:not(.dark-mode) .testimonies-hero .text-light,
body:not(.dark-mode) .series-hero .text-white,
body:not(.dark-mode) .series-hero .text-light,
body:not(.dark-mode) .event-detail-hero .text-white,
body:not(.dark-mode) .event-detail-hero .text-light,
body:not(.dark-mode) .cells-hero .text-white,
body:not(.dark-mode) .cells-hero .text-light {
  color: #334155 !important;
}

/* Live Chat High-Contrast Rules */
.chat-text {
  color: #0f172a !important;
}
.chat-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.chat-author {
  color: #1d4ed8;
}
.chat-header h4 {
  color: #0f172a !important;
}
.pinned-message {
  color: #92400e !important;
}

/* Cards & Surfaces in White Mode */
.post,
.service-block,
.form-card,
.panel-card,
.card,
.event-card,
.filter-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.badge-gold {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

/* Forms & Inputs in White Mode */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: #f59e0b !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
}

/* Modals in White Mode */
.modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}
.modal-header {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.modal-header .close {
  color: #0f172a !important;
  opacity: 0.75;
}
.modal-body {
  background: #ffffff !important;
  color: #1e293b !important;
}
.modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* Watch Live Broadcast Page in White Mode */
.watch-wrapper {
  background: var(--bg-page) !important;
  color: var(--text-body) !important;
  transition: background 0.25s ease, color 0.25s ease;
}
.service-banner-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
.chat-box,
.chat-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   2. DARK / BLACK MODE OVERRIDES (ACTIVATED VIA THEME TOGGLE)
   -------------------------------------------------------------------------- */
html.dark-mode body,
body.dark-mode,
.dark-mode .theme-layout,
.dark-mode main,
.dark-mode section,
.dark-mode .section,
.dark-mode .cardband,
.dark-mode .content-section,
.dark-mode .about-section,
.dark-mode .watch-wrapper {
  background: #090d16 !important;
  color: #cbd5e1 !important;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6,
.dark-mode .h1, .dark-mode .h2, .dark-mode .h3, .dark-mode .h4 {
  color: #f8fafc !important;
  text-shadow: none !important;
}

.dark-mode p,
.dark-mode span:not(.badge):not(.tag-live):not(.giving-purpose-tag),
.dark-mode label {
  color: #cbd5e1 !important;
}

.dark-mode .mainnav {
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
.dark-mode .mainnav ul li a {
  color: #f8fafc !important;
}
.dark-mode .mainnav ul li.current > a,
.dark-mode .mainnav ul li a:hover {
  color: #fbbf24 !important;
}
.dark-mode .mainnav .sub {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}
.dark-mode .mainnav .sub li a {
  color: #cbd5e1 !important;
}
.dark-mode .mainnav .sub li a:hover {
  background: #1e293b !important;
  color: #fbbf24 !important;
}

/* Hero Banners in Dark Mode */
.dark-mode .page-top,
.dark-mode .events-hero,
.dark-mode .blog-hero,
.dark-mode .article-header,
.dark-mode .messages-hero,
.dark-mode .search-hero,
.dark-mode .serve-hero,
.dark-mode .fs-hero,
.dark-mode .testimonies-hero,
.dark-mode .series-hero,
.dark-mode .event-detail-hero,
.dark-mode .cells-hero,
.dark-mode .member-hero {
  background: linear-gradient(135deg, #090d16 0%, #1e1b4b 60%, #172554 100%) !important;
  color: #f8fafc !important;
  border-bottom: 2px solid #f59e0b !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode .page-top::after,
.dark-mode .events-hero::after,
.dark-mode .blog-hero::after,
.dark-mode .article-header::after,
.dark-mode .messages-hero::after,
.dark-mode .search-hero::after,
.dark-mode .serve-hero::after,
.dark-mode .fs-hero::after,
.dark-mode .testimonies-hero::after,
.dark-mode .series-hero::after,
.dark-mode .event-detail-hero::after,
.dark-mode .cells-hero::after {
  display: block !important;
}

.dark-mode .page-top h1, .dark-mode .page-top h2, .dark-mode .page-top h3,
.dark-mode .events-hero h1, .dark-mode .events-hero h2, .dark-mode .events-hero h3,
.dark-mode .blog-hero h1, .dark-mode .blog-hero h2, .dark-mode .blog-hero h3,
.dark-mode .article-header h1, .dark-mode .article-header h2, .dark-mode .article-header h3,
.dark-mode .messages-hero h1, .dark-mode .messages-hero h2, .dark-mode .messages-hero h3,
.dark-mode .search-hero h1, .dark-mode .search-hero h2, .dark-mode .search-hero h3,
.dark-mode .serve-hero h1, .dark-mode .serve-hero h2, .dark-mode .serve-hero h3,
.dark-mode .fs-hero h1, .dark-mode .fs-hero h2, .dark-mode .fs-hero h3,
.dark-mode .testimonies-hero h1, .dark-mode .testimonies-hero h2, .dark-mode .testimonies-hero h3,
.dark-mode .series-hero h1, .dark-mode .series-hero h2, .dark-mode .series-hero h3,
.dark-mode .event-detail-hero h1, .dark-mode .event-detail-hero h2, .dark-mode .event-detail-hero h3,
.dark-mode .cells-hero h1, .dark-mode .cells-hero h2, .dark-mode .cells-hero h3,
.dark-mode .member-hero h1, .dark-mode .member-hero h2, .dark-mode .member-hero h3 {
  color: #f8fafc !important;
}

.dark-mode .page-top p,
.dark-mode .events-hero p,
.dark-mode .blog-hero p,
.dark-mode .article-header p,
.dark-mode .messages-hero p,
.dark-mode .search-hero p,
.dark-mode .serve-hero p,
.dark-mode .fs-hero p,
.dark-mode .testimonies-hero p,
.dark-mode .series-hero p,
.dark-mode .event-detail-hero p,
.dark-mode .cells-hero p,
.dark-mode .member-hero p {
  color: #cbd5e1 !important;
}

.dark-mode .chat-text {
  color: #f8fafc !important;
}
.dark-mode .chat-bubble {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.dark-mode .chat-author {
  color: #818cf8 !important;
}
.dark-mode .chat-header h4 {
  color: #f8fafc !important;
}
.dark-mode .pinned-message {
  color: #fef3c7 !important;
}

/* Cards & Surfaces in Dark Mode */
.dark-mode .post,
.dark-mode .service-block,
.dark-mode .form-card,
.dark-mode .panel-card,
.dark-mode .card,
.dark-mode .event-card,
.dark-mode .filter-bar {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode .badge-gold {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

.dark-mode .event-date-badge {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

/* Forms & Inputs in Dark Mode */
.dark-mode input:not([type="checkbox"]):not([type="radio"]),
.dark-mode select,
.dark-mode textarea,
.dark-mode .form-control {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.dark-mode input:not([type="checkbox"]):not([type="radio"]):focus,
.dark-mode select:focus,
.dark-mode textarea:focus,
.dark-mode .form-control:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25) !important;
}
.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #64748b !important;
}

/* Modals in Dark Mode */
.dark-mode .modal-content {
  background: #111827 !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
}
.dark-mode .modal-header {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.dark-mode .modal-header .close {
  color: #ffffff !important;
}
.dark-mode .modal-body {
  background: #111827 !important;
  color: #cbd5e1 !important;
}
.dark-mode .modal-footer {
  background: #0f172a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Watch Live Broadcast Page in Dark Mode */
.dark-mode .watch-wrapper {
  background: #090d16 !important;
  color: #f8fafc !important;
}
.dark-mode .service-banner-bar {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}
.dark-mode .chat-box,
.dark-mode .chat-container {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}
.dark-mode .topbar {
  background: #060911 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.dark-mode .footer {
  background: #060911 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Salvation Page & In-depth Component Overrides */
#salvationFormSection,
#freeGiftSection,
#spiritualGrowthSection {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}
#salvationFormSection h2, #salvationFormSection h3,
#freeGiftSection h2, #freeGiftSection h3,
#spiritualGrowthSection h2, #spiritualGrowthSection h3 {
  color: #0f172a !important;
}
#salvationFormSection p,
#freeGiftSection p,
#spiritualGrowthSection p {
  color: #475569 !important;
}
.dark-mode #salvationFormSection,
.dark-mode #freeGiftSection,
.dark-mode #spiritualGrowthSection {
  background: #111827 !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.dark-mode #salvationFormSection h2, .dark-mode #salvationFormSection h3,
.dark-mode #freeGiftSection h2, .dark-mode #freeGiftSection h3,
.dark-mode #spiritualGrowthSection h2, .dark-mode #spiritualGrowthSection h3 {
  color: #f8fafc !important;
}
.dark-mode #salvationFormSection p,
.dark-mode #freeGiftSection p,
.dark-mode #spiritualGrowthSection p {
  color: #cbd5e1 !important;
}



