/* ==========================================================================
   ST. THOMAS MAR THOMA CHURCH - PREMIUM EDITORIAL WELLNESS DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ── Palette: #22223B | #4A4E69 | #9A8C98 | #C9ADA7 | #F2E9E4 ── */
  --color-deep-navy:     #22223B;
  --color-slate-navy:    #4A4E69;
  --color-lavender-grey: #9A8C98;
  --color-dusty-rose:    #C9ADA7;
  --color-alabaster:     #F2E9E4;

  /* ── Semantic mappings ── */
  --color-bg-primary:    #FAF8F5;       /* Warm off-white — main page background */
  --color-bg-secondary:  #EDE8EC;       /* Soft lavender-grey — alternating mid sections */
  --color-section-dark:  #22223B;       /* Deep navy — dark contrasting sections */
  --color-card-bg:       #FFFFFF;
  --color-text-primary:  #22223B;
  --color-text-secondary:#4A4E69;
  --color-text-muted:    #9A8C98;
  --color-border:        rgba(74, 78, 105, 0.13);
  --color-accent:        #C9ADA7;
  --color-accent-hover:  #9A8C98;

  /* ── Legacy compat aliases ── */
  --color-wheat:          #FAF8F5;
  --color-wheat-bg:       var(--color-bg-primary);
  --color-sage:           var(--color-lavender-grey);
  --color-mint:           var(--color-dusty-rose);
  --color-mint-bg:        var(--color-bg-primary);
  --color-sandy-brown:    var(--color-dusty-rose);
  --color-sandy-gold:     var(--color-dusty-rose);
  --color-saddle-brown:   var(--color-deep-navy);
  --color-body-text:      var(--color-slate-navy);
  --color-dark-surface:   var(--color-deep-navy);
  --color-accent-highlight: var(--color-dusty-rose);

  /* ── Button tokens ── */
  --color-btn-primary-bg:   var(--color-deep-navy);
  --color-btn-primary-text: #FFFFFF;
  --color-btn-primary-hover:#4A4E69;
  --color-chip-bg:          var(--color-bg-secondary);
  --color-chip-text:        var(--color-deep-navy);
  --color-chip-border:      var(--color-border);
  --color-chip-active-bg:   var(--color-deep-navy);
  --color-chip-active-text: #FFFFFF;

  /* ── Typography ── */
  --font-display: 'Lora', Georgia, serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: var(--font-display);
  --font-body:    var(--font-ui);

  /* ── Layout ── */
  --container-max-width: 1240px;
  --radius-sm:   4px;
  --radius-md:   10px;
  --radius-lg:   20px;
  --radius-pill: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(34, 34, 59, 0.05);
  --shadow-md: 0 8px 28px rgba(34, 34, 59, 0.08);
  --shadow-lg: 0 16px 44px rgba(34, 34, 59, 0.13);

  --transition-fast:   0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DARK MODE COLOR SYSTEM (CUSTOM EDITORIAL WARM PALETTE SOURCE OF TRUTH)
   ========================================================================== */
[data-theme="dark"] {
  --color-bg-primary:    #1C1C30;       /* Deep navy — dark page bg */
  --color-bg-secondary:  #222338;       /* Slightly lighter navy — alternating mid dark */
  --color-section-dark:  #141421;       /* Darkest — deep dark sections */
  --color-card-bg:       #2E2F4A;       /* Slate navy — dark cards */
  --color-text-primary:  #F2E9E4;       /* Alabaster — primary text on dark */
  --color-text-secondary:#C9ADA7;       /* Dusty rose — secondary text on dark */
  --color-text-muted:    rgba(242, 233, 228, 0.6);
  --color-border:        rgba(201, 173, 167, 0.18);
  --color-accent:        #C9ADA7;
  --color-accent-hover:  #F2E9E4;

  --color-btn-primary-bg:   var(--color-dusty-rose);
  --color-btn-primary-text: var(--color-deep-navy);
  --color-btn-primary-hover:var(--color-alabaster);
  --color-chip-bg:          var(--color-slate-navy);
  --color-chip-text:        var(--color-alabaster);
  --color-chip-border:      rgba(154, 140, 152, 0.3);
  --color-chip-active-bg:   var(--color-dusty-rose);
  --color-chip-active-text: var(--color-deep-navy);
  --color-accent-highlight: var(--color-dusty-rose);
  --color-dark-surface:     var(--color-deep-navy);
}

/* --------------------------------------------------------------------------
   2. CSS Reset & Accessibility Base System
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Keyboard Focus Ring */
:focus-visible {
  outline: 2.5px solid var(--color-accent-highlight) !important;
  outline-offset: 3px !important;
}

/* Palette-correct ambient overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 173, 167, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 22%, rgba(154, 140, 152, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(242, 233, 228, 0.20) 0%, transparent 55%),
    linear-gradient(160deg, #FAF8F5 0%, #F2E9E4 50%, #FAF8F5 100%);
  background-attachment: fixed;
  transition: opacity var(--transition-medium);
}

/* Dark mode palette ambient overlay */
[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(74, 78, 105, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(34, 34, 59, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 55% 45%, rgba(154, 140, 152, 0.10) 0%, transparent 55%),
    linear-gradient(150deg, #1C1C30 0%, #222338 50%, #1C1C30 100%);
  background-attachment: fixed;
}

/* Global Editorial Typography System (Lora + Inter) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 1.1;
}

/* PRIMARY PAGE TITLES / HERO H1 (Desktop: 48px, Mobile: 38px) */
.primary-page-title,
.hero-headline,
.hero-overlay-title,
.split-hero-title {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  font-size: 48px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
}


/* ==========================================================================
   UPCOMING EVENTS STANDALONE SECTION
   ========================================================================== */

.events-section {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #FAF7F5 0%, #F2E9E4 100%) !important; /* Premium light warm background */
  padding: 5rem 0 4rem;
  overflow: hidden;
  border-top: 1px solid rgba(74, 78, 105, 0.08);
  border-bottom: 1px solid rgba(74, 78, 105, 0.08);
}

[data-theme="dark"] .events-section {
  background: linear-gradient(160deg, #1A1A2C 0%, #2C2F47 100%); /* Lighter dark mode background for visibility */
}

/* Subtle decorative radial glow */
.events-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 173, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.events-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.events-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9ADA7;
  margin-bottom: 0.75rem;
}

.events-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: #22223B !important; /* Deep navy in light mode */
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.events-section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #4A4E69 !important; /* Slate navy in light mode */
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Override card styles inside events section */
.events-section .hero-events-carousel-viewport {
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  padding: 12px 0 20px;
  touch-action: pan-y pinch-zoom;
}

.events-section .hero-events-carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 8px 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
  align-items: stretch;
  width: max-content !important; /* Prevents flex wrapping or card compression on desktop */
}

/* Cards in events section: glassmorphic on the dark section bg */
.events-section .hero-event-card {
  flex: 0 0 calc(33.333% - 1.5rem);
  min-width: 260px;
  max-width: 480px;
  background: #FFFFFF !important; /* Clean white card in light mode */
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform: scale(0.97);
  opacity: 0.8;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.05) !important; /* Soft shadow */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, box-shadow 0.3s ease;
}

.events-section .hero-event-card.active-center {
  transform: scale(1);
  opacity: 1;
  background: #FFFFFF !important;
  border-color: rgba(201, 173, 167, 0.45) !important;
  box-shadow: 0 12px 36px rgba(34, 34, 59, 0.08) !important;
}

.events-section .hero-event-card.active-center:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 42px rgba(34, 34, 59, 0.12) !important;
}

.events-section .hero-event-card.passed-prev {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.events-section .hero-event-card.preview-next {
  opacity: 0.6;
  transform: scale(0.94);
}

/* Card body text */
.events-section .hero-event-card-body {
  padding: 24px !important;
}

.events-section .hero-event-card-title {
  color: #F2E9E4 !important;
  font-size: 1.2rem;
}

.events-section .hero-event-card-desc {
  color: rgba(201, 173, 167, 0.9) !important;
}

.events-section .date-row-left {
  color: rgba(242, 233, 228, 0.8) !important;
}

.events-section .date-row-left svg {
  stroke: rgba(242, 233, 228, 0.8) !important;
}

.events-section .hero-event-date-row {
  border-top-color: rgba(201, 173, 167, 0.2) !important;
  color: rgba(242, 233, 228, 0.8) !important;
}

.events-section .event-action-link {
  color: #4A4E69;
}

.events-section .event-date-badge-inline {
  background: linear-gradient(135deg, #4A4E69 0%, #22223B 100%);
  border: 1px solid rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4;
}

.events-section .badge-day,
.events-section .badge-month {
  color: #F2E9E4 !important;
}

/* No-image text-layout cards inside events section */
.events-section .hero-event-card.no-image.text-layout {
  background: rgba(242, 233, 228, 0.07) !important;
  border: 1px solid rgba(201, 173, 167, 0.2) !important;
  border-left: 4px solid #C9ADA7 !important;
}

.events-section .hero-event-card.no-image .hero-event-banner {
  display: none;
}

/* Controls bar inside events section */
.events-controls-bar-standalone {
  margin-top: 2rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important; /* Forces centered controls instead of space-between */
  gap: 2rem !important;
  padding: 0 !important;
  border-top: none !important;
  background: transparent !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.events-section .hero-carousel-arrow {
  background: rgba(74, 78, 105, 0.06);
  border: 1px solid rgba(74, 78, 105, 0.15);
  color: #4A4E69;
}

.events-section .hero-carousel-arrow:hover {
  background: rgba(74, 78, 105, 0.12);
  color: #22223B;
  border-color: rgba(74, 78, 105, 0.3);
}

.events-section .hero-carousel-progress {
  color: #4A4E69;
}

.events-section .hero-progress-track {
  background: rgba(74, 78, 105, 0.12);
}

.events-section .hero-progress-fill-bar {
  background: #C9ADA7;
}

/* Scroll hint chevron for hero */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
  cursor: pointer;
  text-decoration: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}


/* Card text full fix — all elements inside events section cards */
.events-section .hero-event-card-body * {
  color: inherit;
}

.events-section .hero-event-card-title {
  color: #22223B !important; /* Deep navy text */
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  margin-bottom: 0.6rem !important;
}

.events-section .hero-event-card-desc {
  color: #4A4E69 !important; /* Slate navy description */
  font-size: 0.9rem !important;
}

.events-section .event-action-link {
  color: #4A4E69 !important;
  font-weight: 600 !important;
}

.events-section .event-action-link svg {
  stroke: #4A4E69 !important;
}

.events-section .event-action-link:hover {
  color: #22223B !important;
}

.events-section .event-done-badge {
  display: inline-block;
  background: rgba(201, 173, 167, 0.25);
  color: #C9ADA7;
  border: 1px solid rgba(201, 173, 167, 0.4);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
}

.events-section .hero-event-card.is-done {
  opacity: 0.55 !important;
}

.events-section .hero-event-card.is-done .hero-event-card-title {
  text-decoration: line-through !important;
  opacity: 0.7 !important;
}
@media (max-width: 767px) {
  .primary-page-title,
  .hero-headline,
  .hero-overlay-title,
  .split-hero-title {
    font-size: 38px !important;
    line-height: 1.1 !important;
  }
}

/* Final CTA/readability and carousel control contract. */
.community-showcase-frame .community-pill-cta,
.community-story-chapter .community-pill-cta,
body .community-showcase-frame .community-pill-cta,
body .community-story-chapter .community-pill-cta {
  background: linear-gradient(180deg, #FFF8DE 0%, #F4D99A 100%) !important;
  border: 1px solid rgba(34, 34, 59, 0.28) !important;
  box-shadow: 0 12px 26px rgba(34, 34, 59, 0.18) !important;
}

.community-showcase-frame .community-pill-cta,
.community-showcase-frame .community-pill-cta span,
.community-showcase-frame .community-pill-cta svg,
.community-story-chapter .community-pill-cta,
.community-story-chapter .community-pill-cta span,
.community-story-chapter .community-pill-cta svg,
body .community-showcase-frame .community-pill-cta,
body .community-showcase-frame .community-pill-cta span,
body .community-showcase-frame .community-pill-cta svg,
body .community-story-chapter .community-pill-cta,
body .community-story-chapter .community-pill-cta span,
body .community-story-chapter .community-pill-cta svg {
  color: #17172A !important;
  -webkit-text-fill-color: #17172A !important;
  stroke: #17172A !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Final desktop glass navbar sizing contract. */
@media (min-width: 992px) {
  body .grid-navbar .nav-link,
  .grid-navbar .nav-link,
  body .site-header .nav-link,
  .site-header .nav-link {
    font-size: 1rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.01em !important;
  }

  body .grid-navbar .brand-name,
  .grid-navbar .brand-name {
    font-size: clamp(1.35rem, 1.55vw, 1.7rem) !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
  }

  body .grid-navbar .dropdown-item,
  .grid-navbar .dropdown-item {
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
  }

  body .nav-grid-menu,
  .nav-grid-menu {
    gap: clamp(0.45rem, 0.8vw, 0.95rem) !important;
  }
}

/* SECTION TITLES / SECTION H2 (Desktop: 38px-40px, Mobile: 32px-34px) */
.section-title,
.section-header h2,
.section-title-group h2,
.community-editorial-title,
.community-heading-editorial,
.hero-events-title,
.stay-connected-magazine-title,
#services-heading,
#team-heading,
#community-heading {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  font-size: 38px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 767px) {
  .section-title,
  .section-header h2,
  .section-title-group h2,
  .community-editorial-title,
  .community-heading-editorial,
  .hero-events-title,
  .stay-connected-magazine-title,
  #services-heading,
  #team-heading,
  #community-heading {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }
}

/* CARD / H3 TITLES (Desktop: 24px, Mobile: 21px-22px) */
.hero-event-card-title,
.mag-card-title,
.chapter-title-editorial,
.community-showcase-frame h3,
.overlay-title,
.service-card-title,
.vicar-name,
.bearer-name,
.card-title {
  font-family: var(--font-heading) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

@media (max-width: 767px) {
  .hero-event-card-title,
  .mag-card-title,
  .chapter-title-editorial,
  .community-showcase-frame h3,
  .overlay-title,
  .service-card-title,
  .vicar-name,
  .bearer-name,
  .card-title {
    font-size: 21px !important;
  }
}

/* EYEBROW LABELS (12px-13px, Inter, Weight 600, Uppercase, Letter Spacing 0.22em) */
.sub-title,
.sub-label-eyebrow,
.hero-eyebrow,
.hero-eyebrow-text,
.eyebrow-label,
.community-eyebrow-editorial,
.brand-category,
.vicar-role,
.bearer-role {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--color-text-secondary);
}

/* BODY COPY (Desktop: 17px-18px, Mobile: 17px minimum for readability) */
p,
.body-text,
.hero-subtitle,
.hero-subcopy,
.chapter-desc-editorial,
.overlay-description,
.community-showcase-frame p,
.stay-connected-magazine-subcopy,
.vicar-bio,
.mag-card-excerpt {
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--color-text-secondary);
}

/* SMALL BODY / METADATA / DATES (15px-16px, Inter) */
.events-count-text,
.hero-event-date-row,
.mag-card-meta,
.mag-card-link,
.service-time,
.badge-day,
.badge-month {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* BUTTONS */
.btn,
button,
.hero-cta-btn,
.floating-download-btn,
.btn-vicar-primary-cta {
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
}

/* NAVIGATION LINKS */
.nav-link,
.brand-title,
.magazine-nav-tab {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Container System */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.btn-primary:hover {
  background-color: var(--color-btn-primary-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary {
  background-color: #F2CCB8;
  color: #44496B;
  border-color: #F2CCB8;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #FFFFFF;
  color: #44496B;
}

.btn-secondary {
  background-color: var(--color-card-bg);
  color: var(--color-text-primary);
}

[data-theme="dark"] .btn-secondary {
  border-color: #C9ADA7;
  color: #FFFFFF;
  background-color: transparent;
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: #C9ADA7;
  color: #44496B;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   3. SECTION 1: ARCHITECTURAL GRID HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.grid-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  display: flex !important;
  align-items: stretch !important;
  transition: background var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

/* Scrolled state: Frosted glass */
.grid-navbar.scrolled {
  background: rgba(242, 233, 228, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(74, 78, 105, 0.12);
  box-shadow: 0 4px 24px rgba(34, 34, 59, 0.08);
}

[data-theme="dark"] .grid-navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

[data-theme="dark"] .grid-navbar.scrolled {
  background: rgba(22, 22, 37, 0.9);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(201, 173, 167, 0.18);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-grid-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 1.1rem 3.5rem !important;
}

.nav-grid-cell {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  border: none !important;
}

.nav-grid-brand {
  flex-shrink: 0 !important;
}

.nav-grid-menu {
  flex-grow: 1 !important;
  justify-content: center !important;
  padding: 0 2rem !important;
}

.nav-grid-actions {
  flex-shrink: 0 !important;
  justify-content: flex-end !important;
  gap: 1.25rem !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  position: relative;
  padding-right: 1.75rem;
}

/* Vertical separator after logo — matches Netlify */
.brand-logo::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.35s ease;
}

.grid-navbar.scrolled .brand-logo::after {
  background-color: rgba(31, 45, 61, 0.18) !important;
}

[data-theme="dark"] .grid-navbar.scrolled .brand-logo::after {
  background-color: rgba(139, 160, 164, 0.4) !important;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.grid-navbar.scrolled .brand-name {
  color: #1F2D3D !important;
}

[data-theme="dark"] .brand-name {
  color: #FFFFFF;
}

[data-theme="dark"] .grid-navbar.scrolled .brand-name {
  color: #EAEAEA !important;
}

/* Navbar cell borders: hidden when transparent */
.site-header,
.grid-navbar,
.nav-grid-container,
.nav-grid-cell,
.nav-grid-menu {
  overflow: visible !important;
}

.grid-navbar:not(.scrolled) .nav-grid-cell {
  border-right-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-grid-menu {
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  position: relative;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  position: relative;
  padding: 0.5rem 1.15rem !important; /* Prevent layout shift with consistent padding */
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: 99px !important; /* Pill style matching Bobbin */
  transition: color 0.25s ease, background-color 0.25s ease, font-weight 0.25s ease;
}

.grid-navbar.scrolled .nav-link {
  color: var(--color-text-primary);
  text-shadow: none !important; /* Remove shadow on light background */
}

.nav-link.dropdown-trigger {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 0.5rem 1.55rem !important; /* Roomier pill around dropdown-trigger text */
}

.dropdown-chevron {
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
  color: currentColor;
}

/* Rotate Chevron on Hover or Open */
.nav-item.has-dropdown:hover .dropdown-chevron,
.nav-item.has-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #D89169 !important;
}

/* Remove underline completely */
.nav-link::after,
.nav-link.active::after,
.nav-item.has-dropdown:hover .nav-link::after,
.nav-item.has-dropdown.open .nav-link::after {
  display: none !important;
  content: none !important;
}

/* Active & Hover: Bobbin-style highlighted pill background */
.nav-link:hover,
.nav-link.active {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.grid-navbar.scrolled .nav-link:hover,
.grid-navbar.scrolled .nav-link.active {
  color: #4A4E69 !important;
  background: rgba(74, 78, 105, 0.1) !important;
}

.nav-item.has-dropdown:hover .nav-link,
.nav-item.has-dropdown.open .nav-link {
  color: #FFFFFF !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.18) !important;
}

.grid-navbar.scrolled .nav-item.has-dropdown:hover .nav-link,
.grid-navbar.scrolled .nav-item.has-dropdown.open .nav-link {
  color: #4A4E69 !important;
  background: rgba(74, 78, 105, 0.1) !important;
}

[data-theme="dark"] .nav-link {
  color: #FFFFFF;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-link {
  color: #FFFFFF;
  text-shadow: none !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #F2E9E4 !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .nav-item.has-dropdown:hover .nav-link,
[data-theme="dark"] .nav-item.has-dropdown.open .nav-link {
  color: #F2E9E4 !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .nav-item.has-dropdown:hover .dropdown-chevron,
[data-theme="dark"] .nav-item.has-dropdown.open .dropdown-chevron {
  color: #F2CCB8 !important;
}

/* Dropdown Panel Card (Mockup Exact Match) */
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 270px;
  background-color: #FFFFFF;
  border-radius: 12px;
  border-top: 3px solid #D89169;
  box-shadow: 0 14px 36px rgba(19, 40, 61, 0.14);
  padding: 6px 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  transition-delay: 0.15s; /* Close delay grace period so cursor can cross gap */
  pointer-events: none;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Invisible Bridge spanning the gap between trigger button & dropdown card */
.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

[data-theme="dark"] .dropdown-panel {
  background-color: #FFFFFF; /* High contrast clean white card as requested */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Show Dropdown Panel on Hover (or Hovering Panel itself / Open class) */
.nav-item.has-dropdown:hover .dropdown-panel,
.dropdown-panel:hover,
.nav-item.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s; /* Immediate display on hover */
  pointer-events: auto;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-ui) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #13283D !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 40, 61, 0.07);
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: transparent;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-arrow-icon {
  color: #13283D;
  opacity: 0.6;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #F6F4EF !important;
  color: #D89169 !important;
}

.dropdown-item:hover .dropdown-arrow-icon,
.dropdown-item:focus .dropdown-arrow-icon {
  color: #D89169 !important;
  opacity: 1 !important;
  transform: translateX(3px);
}

.nav-grid-actions {
  gap: 0.85rem;
}

/* Theme Toggle - 44x44px Minimum Touch Target Icon Toggle */
.theme-toggle-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .theme-toggle-btn {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF;
}

.theme-toggle-btn:hover {
  background: transparent !important;
  color: #D89169;
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: transparent !important;
  color: #F2CCB8;
  transform: scale(1.1);
}

.sun-icon { display: block; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

.hamburger-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--color-text-primary);
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .hamburger-toggle {
  color: #FFFFFF;
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding: 1.75rem;
  box-shadow: none;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .mobile-menu-drawer {
  background: transparent;
  border-bottom-color: transparent;
}

.mobile-menu-drawer.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-accordion-item {
  list-style: none;
  width: 100%;
}

/* Level 1: Mobile Top-Level Parent Items (All visually 100% identical) */
.mobile-menu-list > li > .nav-link,
.mobile-menu-list > li > a,
.mobile-accordion-trigger {
  font-family: var(--font-ui) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em !important;
  color: var(--color-text-primary) !important;
  padding: 0.85rem 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(19, 40, 61, 0.08) !important;
  cursor: pointer;
}

[data-theme="dark"] .mobile-menu-list > li > .nav-link,
[data-theme="dark"] .mobile-menu-list > li > a,
[data-theme="dark"] .mobile-accordion-trigger {
  color: #FFFFFF !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-accordion-trigger .mobile-chevron {
  transition: transform 0.25s ease;
}

.mobile-accordion-item.open .mobile-accordion-trigger .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 0.5rem 1rem;
  gap: 0.35rem;
}

.mobile-accordion-item.open .mobile-accordion-panel {
  display: flex;
}

.mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-ui) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
}

[data-theme="dark"] .mobile-sublink {
  color: #FFFFFF;
}

.mobile-sublink:hover,
.mobile-sublink:active {
  background-color: #F6F4EF;
  color: #D89169;
}

[data-theme="dark"] .mobile-sublink:hover,
[data-theme="dark"] .mobile-sublink:active {
  background-color: rgba(242, 204, 184, 0.15);
  color: #F2CCB8;
}

/* --------------------------------------------------------------------------
   4. SECTION 2: SPLIT HERO SECTION (#44496B BACKGROUND & #69514C CARDS)
   -------------------------------------------------------------------------- */
.split-hero-section {
  width: 100%;
  height: 100dvh;
  min-height: 600px;
  max-height: none !important;
  border-bottom: none;
  background: transparent;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .split-hero-section {
  background-color: #22223B;
  border-bottom-color: rgba(201, 173, 167, 0.25);
}

.split-hero-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
  box-sizing: border-box;
}

.hero-left-col {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-right: none !important;
}

[data-theme="dark"] .hero-left-col {
  border-right-color: transparent !important;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.hero-church-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-dark-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 45%, rgba(10, 22, 35, 0.1) 0%, rgba(10, 22, 35, 0.76) 100%);
  pointer-events: none;
}

[data-theme="dark"] .hero-dark-gradient-overlay {
  background: radial-gradient(circle at 40% 45%, rgba(34, 34, 59, 0.1) 0%, rgba(22, 22, 37, 0.82) 100%);
}

.hero-left-content {
  position: absolute;
  left: 5%;
  bottom: 10%;
  z-index: 3;
  color: #FFFFFF;
  max-width: 520px;
}

/* CTA group: two side-by-side buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-overlay-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  white-space: normal;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  display: none;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background-color: rgba(19, 40, 61, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero-cta-btn {
  background-color: #F2CCB8;
  color: #44496B;
  border-color: #F2CCB8;
}

.hero-cta-btn:hover {
  background-color: #FFFFFF;
  color: #13283D;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .hero-cta-btn:hover {
  background-color: #FFFFFF;
  color: #44496B;
}

/* Secondary hero CTA — ghost outline variant */
.hero-cta-btn--secondary {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.92);
}

.hero-cta-btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
  transform: translateY(-2px);
}

[data-theme="dark"] .hero-cta-btn--secondary {
  background-color: transparent;
  border-color: rgba(201, 173, 167, 0.5);
  color: #C9ADA7;
}

[data-theme="dark"] .hero-cta-btn--secondary:hover {
  background-color: rgba(201, 173, 167, 0.15);
  border-color: #C9ADA7;
  color: #F2E9E4;
  transform: translateY(-2px);
}

.hero-right-col {
  position: relative;
  width: 38%;
  height: auto;
  max-height: 90%;
  padding: 2.25rem 0.5rem 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  box-sizing: border-box;
  background-color: transparent !important;
  z-index: 3;
  margin-left: auto;
}

[data-theme="dark"] .hero-right-col {
  background-color: transparent !important;
}

.hero-events-header {
  padding: 0;
  margin-bottom: 0.75rem;
}

.sub-label-eyebrow,
.events-count-text {
  display: none !important;
}

.hero-events-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: #FFFFFF !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  margin: 0;
}

[data-theme="dark"] .hero-events-title {
  color: #FFFFFF !important;
}

.hero-events-carousel-viewport {
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 12px 0 16px 0;
  margin: 0;
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.hero-events-carousel-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 8px 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  overflow: visible;
}

.hero-event-card {
  flex: 0 0 92%;
  min-width: 320px;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transform-origin: center center;
  opacity: 0.75;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .hero-event-card {
  background: rgba(34, 34, 59, 0.25) !important;
  border: 1px solid rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Active Featured Card: Scale 1.0, Opacity 100%, Centered Focal Point */
.hero-event-card.active-center {
  transform: scale(1);
  opacity: 1;
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

[data-theme="dark"] .hero-event-card.active-center {
  background: rgba(34, 34, 59, 0.5) !important;
  border-color: rgba(201, 173, 167, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4) !important;
}

/* Previous Cards to the Left of Center: Completely Hidden per user directive */
.hero-event-card.passed-prev {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Next Cards to the Right of Center: Visible Preview */
.hero-event-card.preview-next {
  visibility: visible !important;
  opacity: 0.85;
  box-shadow: none !important;
}

/* Desktop Hover States */
.hero-event-card.active-center:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .hero-event-card.active-center:hover {
  background: rgba(34, 34, 59, 0.6) !important;
  border-color: rgba(201, 173, 167, 0.5) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5) !important;
}

.hero-event-card.preview-next:hover {
  transform: scale(0.95);
  opacity: 0.95;
  box-shadow: none !important;
}

.hero-event-banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  border-bottom: none !important;
}

[data-theme="dark"] .hero-event-banner {
  background-color: #44496B;
}

.hero-event-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.hero-event-card.no-image .hero-event-banner {
  height: 260px;
  background: linear-gradient(135deg, #1F1918 0%, #3C2E2B 100%);
  border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-event-card.no-image .hero-event-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(247, 175, 99, 0.12) 0%, transparent 60%);
}

.hero-event-card.no-image .hero-event-banner::after {
  content: '†';
  font-size: 7.5rem;
  line-height: 1;
  color: rgba(247, 175, 99, 0.06);
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  font-weight: 300;
  pointer-events: none;
  font-family: serif;
}

[data-theme="dark"] .hero-event-card.no-image .hero-event-banner {
  background: linear-gradient(135deg, #11151D 0%, #1D2533 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .hero-event-card.no-image .hero-event-banner::before {
  background-image: radial-gradient(circle at 80% 20%, rgba(247, 175, 99, 0.08) 0%, transparent 60%);
}

[data-theme="dark"] .hero-event-card.no-image .hero-event-banner::after {
  color: rgba(247, 175, 99, 0.04);
}

.hero-event-card.no-image .hero-event-banner-img {
  display: none;
}

/* Text-focused layout for events without thumbnail images */
.hero-event-card.no-image.text-layout {
  min-height: 290px;
  background: linear-gradient(145deg, #F7F4F0 0%, #EEE8E2 100%);
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  border-left: 5px solid var(--color-dusty-rose) !important;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-event-card.no-image.text-layout {
  background: linear-gradient(145deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
  border: 1px solid var(--color-border) !important;
  border-left: 5px solid var(--color-accent-highlight) !important;
}

/* Large subtle watermark cross in the background of text-only cards */
.hero-event-card.no-image.text-layout::after {
  content: '†';
  font-size: 10rem;
  line-height: 1;
  color: rgba(34, 34, 59, 0.035);
  position: absolute;
  right: 0.5rem;
  bottom: -2.5rem;
  font-weight: 300;
  pointer-events: none;
  font-family: serif;
  z-index: 0;
}

[data-theme="dark"] .hero-event-card.no-image.text-layout::after {
  color: rgba(247, 175, 99, 0.025);
}

/* Completed/Past Events styles */
.hero-event-card.is-done {
  opacity: 0.6;
  border-left-color: #28a745 !important;
}

.hero-event-card.is-done:hover {
  opacity: 1;
}

.event-done-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(40, 167, 69, 0.09);
  color: #28a745;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .event-done-badge {
  background-color: rgba(40, 167, 69, 0.18);
  color: #34ce57;
}

.hero-event-card.no-image.text-layout .hero-event-card-body {
  padding: 1.65rem !important;
  background-color: transparent !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  width: 100%;
}

.event-date-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #13283D;
  color: #FFFFFF;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(19, 40, 61, 0.12);
}

[data-theme="dark"] .event-date-badge-inline {
  background-color: #E0954A;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(224, 149, 74, 0.15);
}

.hero-event-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0 0 1.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

[data-theme="dark"] .hero-event-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.event-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #E0954A;
  transition: color 0.25s ease;
  cursor: pointer;
  margin-left: auto;
}

.event-action-link svg {
  transition: transform 0.25s ease;
}

.hero-event-card:hover .event-action-link svg {
  transform: translateX(4px);
}

.event-date-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  background-color: #171E28;
  color: #FFFFFF;
  border: none !important;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  line-height: 1;
  font-family: var(--font-body);
}

[data-theme="dark"] .event-date-badge {
  background-color: #171E28;
  color: #FFFFFF;
  border: none !important;
}

.badge-day {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-month {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-event-card-body {
  padding: 1.5rem 1.5rem 1.25rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background-color: transparent !important;
  border-radius: 0 0 20px 20px;
}

[data-theme="dark"] .hero-event-card-body {
  background-color: transparent !important;
}

.hero-event-card-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.45rem, 2vw, 1.65rem) !important;
  font-weight: 600 !important;
  color: var(--color-deep-navy);
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin-bottom: 0.75rem !important;
  min-height: auto !important;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .hero-event-card-title {
    font-size: 1.1rem !important;
  }
}

[data-theme="dark"] .hero-event-card-title {
  color: #FFFFFF !important;
}

/* ANCHORED FOOTER ROW */
.hero-event-date-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(74, 78, 105, 0.12);
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary);
  width: 100%;
}

[data-theme="dark"] .hero-event-date-row {
  color: rgba(255, 255, 255, 0.88) !important;
  border-top-color: rgba(201, 173, 167, 0.25) !important;
}

.date-row-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  color: var(--color-text-secondary);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .event-action-icon {
  color: rgba(255, 255, 255, 0.88);
}

.hero-event-card:hover .event-action-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.hero-events-controls-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  border-top: none !important;
  background: transparent !important;
  width: 100%;
}

[data-theme="dark"] .hero-events-controls-bar {
  border-top: none !important;
}

.hero-carousel-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 8px;
  background: transparent;
  border: 1.5px solid rgba(28, 36, 43, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.hero-carousel-arrow:hover {
  background-color: var(--color-text-primary);
  color: #FFFFFF;
  border-color: var(--color-text-primary);
}

[data-theme="dark"] .hero-carousel-arrow {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] .hero-carousel-arrow:hover {
  background-color: #FFFFFF;
  color: #44496B;
}

.hero-carousel-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  flex: 1;
  justify-content: center;
  max-width: 260px;
  margin: 0 auto;
}

[data-theme="dark"] .hero-carousel-progress {
  color: #FFFFFF;
}

.hero-progress-track {
  flex: 1;
  height: 3px;
  background-color: rgba(28, 36, 43, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .hero-progress-track {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-progress-fill-bar {
  height: 100%;
  background-color: var(--color-text-primary);
  width: 25%;
  transition: width 0.4s ease;
}

[data-theme="dark"] .hero-progress-fill-bar {
  background-color: #FFFFFF;
}

[data-theme="dark"] .hero-progress-track {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-progress-fill-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 25%;
  background-color: var(--color-text-primary);
  transition: width var(--transition-medium), left var(--transition-medium);
}

[data-theme="dark"] .hero-progress-fill-bar {
  background-color: #F2CCB8;
}

/* --------------------------------------------------------------------------
   5. SECTION 3: COMMUNITY STORY SECTION (#44496B BACKGROUND IN DARK MODE)
   -------------------------------------------------------------------------- */
.community-story-section {
  scroll-margin-top: 76px;
  position: relative;
  width: 100%;
  border-bottom: none !important;
  background: linear-gradient(160deg, #F2E9E4 0%, #FAF7F5 100%);
  padding: 3.5rem 0 3.5rem 0;
}

[data-theme="dark"] .community-story-section {
  background: linear-gradient(160deg, #4A4E69 0%, #303450 100%);
  border-bottom: none !important;
}

.community-chapter-viewport {
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

[data-theme="dark"] .community-chapter-viewport {
  background: transparent;
}

/* Gallery Section Container */
.community-gallery-container {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

/* Gallery Architectural Grid Framing System */
.community-gallery-frame {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Header Composition (Centered Directly on Top of Frame) */
.community-header-centered {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.community-eyebrow-editorial {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #4A4E69;
  display: block;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .community-eyebrow-editorial {
  color: #C9ADA7;
}

.community-heading-editorial {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #1F2937;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

[data-theme="dark"] .community-heading-editorial {
  color: #FFFFFF;
}

/* Intersecting Grid Lines - Removed per user instruction for clean floating aesthetic */
.gallery-grid-line {
  display: none !important;
}

/* Showcase Stage - Suspended inside the vertical lines */
.gallery-showcase-stage {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.community-showcase-frame {
  position: relative;
  width: 82%;
  max-width: 980px;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(19, 40, 61, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: #13283D;
  z-index: 2;
}

[data-theme="dark"] .community-showcase-frame {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 173, 167, 0.35);
  background-color: #2E313F;
}

/* Individual Full-Bleed Image Slide */
.community-story-chapter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.85s ease;
}

.community-story-chapter.active-chapter {
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: auto;
}

.community-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Link Wrapper for Community Showcase Images on Homepage */
.community-img-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.community-img-link:hover .community-showcase-img {
  transform: scale(1.06);
}

.community-story-chapter.active-chapter .community-showcase-img {
  transform: scale(1);
}

/* Dark Gradient Overlay for Readability */
.community-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(8, 20, 35, 0.92) 0%,
    rgba(8, 20, 35, 0.60) 45%,
    rgba(8, 20, 35, 0.20) 75%,
    rgba(8, 20, 35, 0.05) 100%
  );
  pointer-events: none;
}

[data-theme="dark"] .community-image-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 28, 42, 0.94) 0%,
    rgba(26, 28, 42, 0.65) 45%,
    rgba(26, 28, 42, 0.25) 75%,
    rgba(26, 28, 42, 0.05) 100%
  );
}

/* Content Positioned ON Top of Image (Bottom-Left Aligned) */
.community-showcase-content {
  position: absolute;
  left: 32px;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  max-width: 520px;
  text-align: left;
  color: #FFFFFF;
}

@media (max-width: 767px) {
  .community-showcase-content {
    left: 24px;
    bottom: 24px;
    right: 24px;
  }
}

.chapter-num-editorial {
  display: none !important;
}

.chapter-title-editorial {
  font-family: var(--font-heading) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
  .chapter-title-editorial {
    font-size: 21px !important;
  }
}

.chapter-desc-editorial {
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.55 !important;
  margin-bottom: 24px !important;
  max-width: 480px;
  text-align: left;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Reusable High-Contrast CTA Button (Min 44x44px Touch Target, Height 52px, Inter 15px SemiBold) */
.showcase-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1F2937 !important;
  background-color: #FFFFFF !important;
  border: none !important;
  padding: 0 1.5rem !important;
  height: 52px !important;
  min-height: 44px !important;
  min-width: 140px !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .showcase-cta {
  background-color: #F2CCB8 !important;
  color: #44496B !important;
}

.showcase-cta:hover {
  background-color: #F4F4EF !important;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .showcase-cta:hover {
  background-color: #FFFFFF !important;
  color: #44496B !important;
}

/* Floating Clean Navigation Bar (No lines, no background container) */
.gallery-nav-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 82%;
  max-width: 980px;
  margin: 1.75rem auto 0 auto;
  height: 48px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 2;
}

.gallery-nav-cell {
  background: transparent !important;
  border: none !important;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

[data-theme="dark"] .gallery-nav-cell {
  color: #FFFFFF;
}

.gallery-nav-cell.cell-left,
.gallery-nav-cell.cell-right {
  width: 48px !important;
  height: 48px !important;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px !important;
  border: 1.5px solid rgba(28, 36, 43, 0.25) !important;
  background-color: transparent !important;
  color: var(--color-text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .gallery-nav-cell.cell-left,
[data-theme="dark"] .gallery-nav-cell.cell-right {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
}

.gallery-nav-cell.cell-left:hover,
.gallery-nav-cell.cell-right:hover {
  background-color: rgba(31, 41, 55, 0.08) !important;
  border-color: rgba(28, 36, 43, 0.5) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .gallery-nav-cell.cell-left:hover,
[data-theme="dark"] .gallery-nav-cell.cell-right:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #FFFFFF !important;
}

.gallery-nav-cell.cell-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.community-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 360px;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.community-numeral {
  font-family: var(--font-ui) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary);
  min-width: 28px;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .community-numeral {
  color: #FFFFFF !important;
}

.community-progress-track {
  flex: 1;
  height: 3px;
  background-color: rgba(31, 41, 55, 0.18);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .community-progress-track {
  background-color: rgba(255, 255, 255, 0.25);
}

.community-progress-fill {
  height: 100%;
  background-color: var(--color-text-primary);
  width: 14.28%;
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .community-progress-fill {
  background-color: #FFFFFF;
}

.community-counter {
  display: none;
}

.gallery-nav-cell.cell-right {
  width: 14%;
  cursor: pointer;
  border-left: 1px solid rgba(31, 41, 55, 0.22);
}

[data-theme="dark"] .gallery-nav-cell.cell-right {
  border-left-color: rgba(201, 173, 167, 0.35);
}

.gallery-nav-cell.cell-right:hover {
  background-color: rgba(31, 41, 55, 0.08);
}

[data-theme="dark"] .gallery-nav-cell.cell-right:hover {
  background-color: rgba(201, 173, 167, 0.15);
}

.community-counter {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1F2937;
}

[data-theme="dark"] .community-counter {
  color: #FFFFFF;
}

.community-arrow-btn:hover {
  background-color: #1F2937;
  color: #FFFFFF;
  border-color: #1F2937;
  transform: translateY(-1px);
}

[data-theme="dark"] .community-arrow-btn {
  background-color: #69514C;
  border: 1px solid rgba(201, 173, 167, 0.35);
  color: #FFFFFF;
}

[data-theme="dark"] .community-arrow-btn:hover {
  background-color: #F2CCB8;
  color: #44496B;
  border-color: #F2CCB8;
}

@keyframes underlinePulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. SECTION 4: STAY CONNECTED SECTION (LUXURY EDITORIAL MULTI-GRADIENT)
   -------------------------------------------------------------------------- */
.stay-connected-section {
  position: relative;
  width: 100%;
  border: none !important;
  background: transparent;
}

[data-theme="dark"] .stay-connected-section {
  border: none !important;
}

.stay-connected-viewport {
  position: relative;
  width: 100%;
  padding: 5.5rem 0 4.5rem 0;
  background: linear-gradient(
    160deg,
    #22223B 0%,
    #4A4E69 100%
  );
  color: #FFFFFF;
  overflow: hidden;
}

/* Extreme Left/Right Subtle Vignette Layer (5-8% darker edges) */
.stay-connected-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.02) 12%,
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.02) 88%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Layered Center Radial Glow with 10s Ambient Pulse Animation */
.stay-connected-viewport::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 140%;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.02) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
  animation: ambientGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes ambientGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

[data-theme="dark"] .stay-connected-viewport {
  background: linear-gradient(
    180deg,
    #141424 0%,
    #22223B 50%,
    #2B2B4A 100%
  );
}

[data-theme="dark"] .stay-connected-viewport::after {
  background: radial-gradient(
    circle at center,
    rgba(242, 204, 184, 0.12) 0%,
    rgba(242, 204, 184, 0.07) 30%,
    rgba(242, 204, 184, 0.02) 55%,
    transparent 75%
  );
}

.stay-connected-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  z-index: 2;
}

.stay-connected-header-left {
  text-align: center; /* Center text */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items */
  max-width: 100%;
  margin-bottom: 2.75rem;
  width: 100%;
}

.stay-connected-magazine-title {
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.stay-connected-magazine-subcopy {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  line-height: 1.5;
  margin-bottom: 2.25rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

[data-theme="dark"] .stay-connected-magazine-subcopy {
  color: rgba(255, 255, 255, 0.8);
}

.stay-connected-magazine-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* Center categories */
  gap: 2.25rem;
  border-bottom: none !important;
  padding-bottom: 0.25rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.stay-connected-mag-tab {
  background: transparent !important;
  border: none !important;
  padding: 0.35rem 0;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .stay-connected-mag-tab {
  color: rgba(255, 255, 255, 0.65);
}

.mag-tab-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.stay-connected-mag-tab:hover {
  color: #FFFFFF;
}

.stay-connected-mag-tab.active {
  color: #FFFFFF;
  font-weight: 700;
}

[data-theme="dark"] .stay-connected-mag-tab:hover {
  color: #FFFFFF;
}

[data-theme="dark"] .stay-connected-mag-tab.active {
  color: #FFFFFF;
}

.mag-active-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

[data-theme="dark"] .mag-active-underline {
  background-color: #F2CCB8;
}

.stay-connected-mag-tab.active .mag-active-underline {
  opacity: 1;
  transform: scaleX(1);
}

.stay-connected-carousel-stage {
  width: 100%;
  position: relative;
}

.stay-connected-mag-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stay-connected-mag-panel.active-panel {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mag-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0 1rem 0;
}

.mag-carousel-track {
  display: flex;
  gap: 1.85rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Stay Connected Cards in Dark Mode: #FFFFFF Cards, #44496B Titles, #69514C Meta */
.mag-content-card {
  flex: 0 0 310px;
  max-width: 330px;
  background-color: #F6F4EF;
  color: #13283D;
  border-radius: var(--radius-lg);
  border: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

[data-theme="dark"] .mag-content-card {
  background-color: rgba(74, 78, 105, 0.85);
  color: #F2E9E4;
  border: 1px solid rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.mag-card-hero-image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.mag-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mag-card-body {
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* FIXED TITLE AREA: 56px min-height on desktop, 52px on mobile (Lora 21px desktop, 20px mobile, weight 500) */
.mag-card-title {
  font-family: var(--font-heading) !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #13283D;
  letter-spacing: -0.01em;
  margin-bottom: 20px !important;
  min-height: 56px !important;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .mag-card-title {
    font-size: 20px !important;
    min-height: 52px !important;
  }
}

[data-theme="dark"] .mag-card-title {
  color: var(--color-text-primary);
}

/* ANCHORED FOOTER ROW: Baseline aligned across all magazine cards */
.mag-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto !important;
  padding-top: 16px;
  border-top: 1.5px solid rgba(19, 40, 61, 0.12);
  min-height: 40px;
}

[data-theme="dark"] .mag-card-footer-row {
  border-top-color: var(--color-border);
}

.mag-card-meta {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary);
}

[data-theme="dark"] .mag-card-meta {
  color: var(--color-text-secondary);
}

.mag-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #13283D;
  transition: color var(--transition-fast);
}

[data-theme="dark"] .mag-card-link {
  color: var(--color-accent-highlight);
}

[data-theme="dark"] .mag-content-card:hover .mag-card-link {
  color: var(--color-text-primary);
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
  width: 100%;
}

.mag-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0 !important;
  width: auto;
}

.mag-arrow-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFFFFF !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mag-arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .mag-arrow-btn {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .mag-arrow-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   7. SECTION 5: LEADERSHIP SECTION (LINEAR-GRADIENT(#44496B, #69514C))
   -------------------------------------------------------------------------- */
.team-section {
  position: relative;
  width: 100%;
  border-bottom: 2px solid var(--color-border);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #faf8f4 55%,
    #f4f2ed 100%
  );
}

[data-theme="dark"] .team-section {
  background: linear-gradient(
    135deg,
    #44496B 0%,
    #69514C 100%
  );
  border-bottom-color: rgba(201, 173, 167, 0.25);
}

.vicar-hero-card {
  background-color: #FFFFFF;
  border: 1.5px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(31, 41, 55, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 440px 1fr;
  margin-bottom: 2.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vicar-hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(34, 34, 59, 0.08), 0 4px 16px rgba(34, 34, 59, 0.04);
  border-color: rgba(224, 149, 74, 0.35);
}

[data-theme="dark"] .vicar-hero-card {
  background-color: var(--color-card-bg) !important;
  border-color: var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .vicar-hero-card:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(247, 175, 99, 0.45) !important;
}

.vicar-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-right: 1.5px solid rgba(31, 41, 55, 0.12);
}

[data-theme="dark"] .vicar-image-wrap {
  border-right-color: rgba(68, 73, 107, 0.15);
}

.vicar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vicar-hero-card:hover .vicar-image {
  transform: scale(1.03);
}

.vicar-info {
  padding: 3rem 3rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vicar-role {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 0.6rem;
}

[data-theme="dark"] .vicar-role {
  color: #C9ADA7 !important;
}

.vicar-name {
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
}

[data-theme="dark"] .vicar-name {
  color: var(--color-text-primary) !important;
}

.vicar-bio {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

[data-theme="dark"] .vicar-bio {
  color: var(--color-text-secondary) !important;
}

.vicar-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  align-self: flex-end;
}

/* Leadership Primary CTA in Dark Mode: #F2CCB8 Background, #44496B Text */
.btn-vicar-primary-cta {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF !important;
  background-color: #1F2937 !important;
  border: none !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 9999px !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .btn-vicar-primary-cta {
  background-color: #F2CCB8 !important;
  color: #44496B !important;
}

.btn-vicar-primary-cta:hover {
  background-color: #111827 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.28);
}

[data-theme="dark"] .btn-vicar-primary-cta:hover {
  background-color: #FFFFFF !important;
  color: #44496B !important;
}

.bearers-carousel-container {
  position: relative;
  width: 100%;
}

.bearers-mobile-controls {
  display: none;
}

.bearers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center cards horizontally */
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}

/* Committee Bearer Cards in Dark Mode: #FFFFFF Cards, #44496B Names */
.bearer-card {
  position: relative !important;
  background-color: #FFFFFF;
  border: none !important; /* Removed harsh border */
  border-radius: 24px !important;
  box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important; /* Soft premium drop shadow */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bearer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(34, 34, 59, 0.15) !important;
}

[data-theme="dark"] .bearer-card {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .bearer-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(247, 175, 99, 0.45) !important;
}

.bearer-image-wrap {
  width: 100%;
  height: 310px; /* Increased length to make photo fully visible */
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1.5px solid rgba(31, 41, 55, 0.12);
  background-color: #F4F0EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .bearer-image-wrap {
  border-bottom-color: rgba(68, 73, 107, 0.15);
  background-color: #1B1615;
}

.bearer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%; /* Shifted up so face and entire head are perfectly visible */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bearer-card:hover .bearer-image {
  transform: scale(1.05);
}

/* ── Office Bearers Individual Photo Uniformity Tunings ── */
.bearer-image[src*="vicar_portrait"] {
  object-position: center 5% !important;
}

.bearer-image[src*="bearer_babu_koshy"] {
  object-position: center 8% !important;
  transform: scale(1.2) !important; /* Zoom in to match close-up of others */
}
.bearer-card:hover .bearer-image[src*="bearer_babu_koshy"] {
  transform: scale(1.26) !important;
}

.bearer-image[src*="bearer_lijo_lucose"] {
  object-position: center 10% !important;
}

.bearer-image[src*="bearer_mathew_george"] {
  object-position: center 10% !important;
}

.bearer-image[src*="bearer_abraham_varghese"] {
  object-position: center 10% !important;
}


.bearer-info {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 12px !important;
  padding: 14px 16px !important; /* Normal padding */
  display: flex;
  flex-direction: column;
  background: rgba(34, 34, 59, 0.45) !important; /* Dark glass for contrast against portraits */
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  z-index: 2 !important;
}

/* FIXED NAME AREA: 58px min-height on desktop, 52px on mobile (Lora 21px desktop, 20px mobile, weight 500) */
.bearer-name {
  font-family: var(--font-heading) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 2px !important;
  min-height: auto !important;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .bearer-name {
    font-size: 18px !important;
    min-height: auto !important;
  }
}

[data-theme="dark"] .bearer-name {
  color: var(--color-text-primary) !important;
}

/* ANCHORED DESIGNATION ROW: Top/baseline aligned at exact same vertical position across every card */
.bearer-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px !important;
  padding-top: 0 !important;
  border-top: none !important; /* Removed line separator */
  min-height: auto !important;
  width: 100%;
}

.bearer-role {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

[data-theme="dark"] .bearer-info {
  background: rgba(22, 22, 37, 0.65) !important;
  border-color: rgba(201, 173, 167, 0.2) !important;
}
[data-theme="dark"] .bearer-role {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .bearer-role-row {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.bearer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Action Buttons: Glassmorphic, Borderless, Premium Hover Animation */
.icon-btn-action {
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important; /* Premium circular design */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: none !important; /* Removed border */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep-navy) !important;
  box-shadow: 0 4px 12px rgba(34, 34, 59, 0.08) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background-image 0.3s ease, 
              color 0.3s ease !important;
}

[data-theme="dark"] .icon-btn-action {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  color: #F2E9E4 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.icon-btn-action:hover {
  transform: translateY(-4px) scale(1.08) !important;
  background: linear-gradient(135deg, #C9ADA7 0%, #E8B9B0 100%) !important; /* Rose-peach palette gradient */
  color: #22223B !important;
  box-shadow: 0 8px 20px rgba(201, 173, 167, 0.45) !important;
}

[data-theme="dark"] .icon-btn-action:hover {
  background: linear-gradient(135deg, #F2CCB8 0%, #C9ADA7 100%) !important; /* Warm palette gradient */
  color: #22223B !important;
  box-shadow: 0 8px 22px rgba(242, 204, 184, 0.35) !important;
}



/* Interactive Clickable Heading Highlight Animation */
.heading-link-clean {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none !important;
  border-bottom: none !important;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0.15rem 0.6rem;
  margin: -0.15rem -0.6rem;
  border-radius: var(--radius-sm);
}

.heading-link-clean::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  background: linear-gradient(90deg, #D89169 0%, #E8B496 50%, #D89169 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.heading-link-clean:hover {
  color: #D89169;
  transform: translateY(-2px);
  background-color: rgba(216, 145, 105, 0.08);
}

.heading-link-clean:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

[data-theme="dark"] .heading-link-clean:hover {
  color: #F2CCB8;
  background-color: rgba(242, 204, 184, 0.12);
}

[data-theme="dark"] .heading-link-clean::after {
  background: linear-gradient(90deg, #F2CCB8 0%, #FFFFFF 50%, #F2CCB8 100%);
}

.vicar-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.vicar-name-link:hover {
  color: #D89169;
  text-decoration: underline;
}

[data-theme="dark"] .vicar-name-link:hover {
  color: #F2CCB8;
}

.vicar-image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.vicar-image-link:hover .vicar-image {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   9. UNIVERSAL MODALS & TOAST
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(19, 40, 61, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-medium);
}

[data-theme="dark"] .modal-overlay {
  background: rgba(46, 49, 63, 0.75);
}

.modal-container {
  background: var(--color-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 2.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-medium);
}

[data-theme="dark"] .modal-container {
  background-color: #2E3250;
  border: 1.5px solid rgba(201, 173, 167, 0.25);
  color: #F2E9E4;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-overlay.open .modal-container { transform: translateY(0) scale(1); }

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50% !important; /* Circular button */
  background: rgba(0, 0, 0, 0.06) !important; /* Translucent background */
  border: none !important; /* Removed border */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
  z-index: 10;
  transition: background-color 0.2s ease, color 0.2s ease;
}

[data-theme="dark"] .modal-close-btn {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border: none !important;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

.modal-header-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background-color: #F4F0EB;
  border-bottom: 2px solid var(--color-border);
}

[data-theme="dark"] .modal-header-image {
  background-color: #1B1615;
}

.modal-body { padding: 2rem 2.25rem 2.25rem; }
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .modal-title {
  color: #F2E9E4 !important;
}

.modal-meta-bar {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
  font-weight: 500;
}

[data-theme="dark"] .modal-meta-bar {
  color: #C9ADA7;
  border-bottom-color: rgba(201, 173, 167, 0.2);
}

.modal-content-text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .modal-content-text {
  color: rgba(242, 233, 228, 0.88);
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--color-border);
}

[data-theme="dark"] .modal-footer-actions {
  border-top-color: rgba(201, 173, 167, 0.2);
}

.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-dark-surface);
  color: #FFFFFF;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
}

[data-theme="dark"] .toast-notification {
  background-color: #F2CCB8;
  color: #44496B;
}
.toast-notification.show { transform: translateY(0); opacity: 1; }

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS & ACCESSIBILITY
   -------------------------------------------------------------------------- */
/* Desktop & Tablet Responsive Breakpoints for Hero Section */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-grid-container {
    grid-template-columns: 240px 1fr 100px;
  }
  .split-hero-grid {
    min-height: 580px;
    padding: 2rem 4%;
  }
  .hero-right-col {
    width: 52%;
  }
  .hero-left-content {
    left: 4%;
  }
  .hero-events-header {
    padding-left: 2.25rem;
  }
  .hero-events-carousel-track {
    padding-left: 2.25rem;
    gap: 28px;
  }
  .hero-event-card {
    flex: 0 0 78%;
    max-width: 440px;
    min-width: 320px;
  }
  .hero-events-controls-bar {
    padding: 1.25rem 2.25rem;
  }
  .community-story-chapter {
    grid-template-columns: 45% 51%;
  }
  .chapter-content-left {
    padding-right: 1rem;
  }
  .community-editorial-nav {
    gap: 1.5rem;
  }

  .mag-content-card {
    flex: 0 0 290px;
  }

  .bearers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Responsive Transformation (< 768px): Stacked Image Hero + Full Width Carousel */
@media (max-width: 767px) {
  /* Navbar Mobile Alignment: Right-align dark mode toggle and hamburger menu flush to container edge */
  .nav-grid-container {
    grid-template-columns: 1fr auto !important;
  }
  .nav-grid-cell.nav-grid-brand {
    padding: 0.85rem 1.25rem !important;
  }
  .nav-grid-cell.nav-grid-actions {
    padding: 0.85rem 1.25rem !important;
    justify-content: flex-end !important;
    gap: 0.85rem !important;
  }
  .hamburger-toggle {
    margin: 0 !important;
  }
  .nav-grid-menu { display: none; }
  .hamburger-toggle { display: block; }

  /* Stay Connected Mobile Alignment: Flush vertical alignment with Announcements tab text frame */
  .stay-connected-header-left {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  .stay-connected-magazine-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .stay-connected-magazine-subcopy {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .split-hero-section {
    height: 100dvh !important;
    min-height: 680px !important;
    max-height: 900px !important;
    overflow: hidden !important;
    position: relative !important;
    border-bottom: 2px solid var(--color-border) !important;
  }

  .split-hero-grid {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

  .hero-left-col {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    border-bottom: none !important;
    border-right: none !important;
  }

  .hero-image-wrap {
    padding: 0 !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: flex-end !important;
    box-sizing: border-box !important;
  }

  .hero-church-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .hero-left-content {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 3 !important;
    margin-top: 1.5rem !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-overlay-title {
    white-space: normal !important;
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
    margin-bottom: 1rem !important;
    line-height: 1.15 !important;
  }

  .hero-right-col {
    position: relative !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    margin-top: auto !important;
    margin-bottom: 1.5rem !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .hero-events-header {
    padding: 0 1.5rem;
    margin-bottom: 1.25rem;
  }
  /* 1. Upcoming Events Carousel (Mobile View: Edge-to-Edge Image Floating Card) */
  .hero-events-carousel-viewport {
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .hero-events-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .hero-event-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 1.5rem !important; /* 24px left & right viewport margin */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .hero-event-banner {
    width: 100% !important;
    height: 220px !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
  }
  .hero-event-banner-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: inherit !important;
  }
  .hero-event-card-body {
    width: 100% !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    padding: 24px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
  }

  .hero-event-card:not(.no-image) .hero-event-card-body {
    border-radius: 0 0 20px 20px !important;
    border-top: none !important;
  }

  [data-theme="dark"] .hero-event-card-body {
    background: rgba(34, 34, 59, 0.25) !important;
    border: 1px solid rgba(201, 173, 167, 0.15) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
  }

  .hero-event-card-title {
    color: #FFFFFF !important;
  }

  .hero-event-card-desc {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .date-row-left {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .date-row-left svg {
    stroke: rgba(255, 255, 255, 0.85) !important;
  }

  .event-date-badge-inline {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  [data-theme="dark"] .event-date-badge-inline {
    background-color: rgba(201, 173, 167, 0.2) !important;
    color: var(--color-alabaster) !important;
    border: 1px solid rgba(201, 173, 167, 0.3) !important;
  }

  .hero-event-date-row {
    color: rgba(255, 255, 255, 0.9) !important;
    border-top-color: rgba(255, 255, 255, 0.15) !important;
  }
  /* Mobile hero: remove the right col layout (it's gone), fix left content positioning */
  .split-hero-grid {
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }

  .hero-left-content {
    position: absolute !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
    bottom: 8% !important;
    max-width: 100% !important;
    z-index: 3 !important;
  }

  .hero-cta-group {
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
  }

  .hero-cta-btn {
    font-size: 0.75rem !important;
    padding: 0.65rem 1.25rem !important;
  }

  .hero-scroll-hint {
    display: none !important;
  }

  /* Mobile navbar: brand stays white */
  .grid-navbar .brand-name {
    color: #FFFFFF !important;
  }
  .grid-navbar.scrolled .brand-name {
    color: var(--color-deep-navy) !important;
  }

  /* Mobile events section */
  .events-section {
    padding: 3.5rem 0 3rem !important;
  }

  .events-section-inner {
    padding: 0 !important;
  }

  .events-section-header {
    padding: 0 1.5rem !important;
    margin-bottom: 2rem !important;
    text-align: left !important;
  }

  .events-section-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }

  .events-section-subtitle {
    font-size: 0.9rem !important;
  }

  .events-section .hero-events-carousel-viewport {
    overflow: hidden !important;
    padding: 0 !important;
  }

  .events-section .hero-events-carousel-track {
    gap: 0 !important;
    width: max-content !important;
  }

  .events-section .hero-event-card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .events-section .hero-event-card.active-center {
    transform: none !important;
  }

  .events-section .hero-event-card-body {
    border-radius: 20px !important;
    background: rgba(242, 233, 228, 0.08) !important;
    border: 1px solid rgba(201, 173, 167, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .events-section .hero-event-card.no-image .hero-event-banner {
    display: none !important;
  }

  .events-controls-bar-standalone {
    margin-top: 1.5rem !important;
    padding: 0 1.5rem !important;
    justify-content: space-between !important;
    gap: 1rem !important;
  }

  /* Old hero controls bar — no longer shown on mobile (events moved) */
  .hero-events-controls-bar:not(.events-controls-bar-standalone) {
    display: none !important;
  }


  .community-gallery-container {
    padding: 2.5rem 1rem 2rem 1rem;
  }
  .gallery-grid-line {
    display: none;
  }
  .community-header-centered {
    margin-bottom: 1.5rem;
  }
  .gallery-showcase-stage {
    padding: 1rem 0;
  }
  .community-showcase-frame {
    width: 100%;
    height: 480px;
    border-radius: 18px;
  }
  .community-showcase-content {
    left: 20px;
    bottom: 24px;
    right: 20px;
    max-width: none;
  }
  .chapter-title-editorial {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
  }
  .chapter-desc-editorial {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  .gallery-nav-dock {
    height: 54px;
  }
  .gallery-nav-cell.cell-left,
  .gallery-nav-cell.cell-right {
    width: 22%;
  }

  /* Stay Connected & Magazine Navigation: Mobile Bold Tab Highlighting */
  .stay-connected-viewport {
    padding: 3rem 0 2.5rem 0;
  }

  .stay-connected-magazine-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1.25rem 0.65rem 1.25rem !important;
    scrollbar-width: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 1.75rem;
    width: 100%;
  }
  .stay-connected-magazine-nav::-webkit-scrollbar { display: none; }

  .stay-connected-mag-tab {
    opacity: 0.65;
    color: rgba(255, 255, 255, 0.75) !important;
    flex-shrink: 0;
  }

  .stay-connected-mag-tab.active {
    opacity: 1 !important;
    color: #FFFFFF !important;
  }

  .stay-connected-mag-tab.active .mag-tab-text {
    font-weight: 800 !important;
    color: #FFFFFF !important;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  }

  [data-theme="dark"] .stay-connected-mag-tab.active .mag-tab-text {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  .stay-connected-mag-tab.active .mag-active-underline {
    opacity: 1 !important;
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
    height: 3px !important;
    bottom: -0.65rem !important;
  }

  /* Stay Connected Carousel */
  body .stay-connected-container,
  body .stay-connected-carousel-stage,
  body .mag-carousel-viewport {
    overflow: visible !important;
    width: 100% !important;
    position: relative;
    padding: 12px 0 24px 0 !important;
    margin: 0 !important;
  }

  .mag-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-left: calc(10vw) !important;
    padding-right: calc(10vw) !important;
    scroll-padding-inline: calc(10vw) !important;
    box-sizing: border-box !important;
    transform: none !important;
    padding-top: 15px !important;
    padding-bottom: 25px !important;
    margin-top: -15px !important;
    margin-bottom: -25px !important;
  }

  .mag-carousel-track::-webkit-scrollbar {
    display: none !important;
  }

  .mag-content-card {
    flex: 0 0 80vw !important;
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: none !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  /* Leadership Committee Members Carousel (REFERENCE 2: Left-aligned 1st card with 78vw width & visible 2nd card peek) */
  .bearers-carousel-container {
    overflow: visible !important;
    width: 100% !important;
    position: relative;
    padding: 0 !important;
    margin: 0 !important;
  }

  .bearers-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-left: 1.5rem !important; /* Left-aligned matching Vicar card & page padding */
    padding-right: 1.5rem !important;
    scroll-padding-left: 1.5rem !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }

  .bearer-card {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 320px !important;
    scroll-snap-align: start !important; /* 1st slide snaps to left margin */
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .mag-carousel-controls,
  .bearers-mobile-controls {
    display: none !important;
  }

  .vicar-hero-card {
    grid-template-columns: 1fr;
    margin-bottom: 2.25rem;
  }
  .vicar-image-wrap { height: 340px; min-height: 340px; border-right: none; border-bottom: 2px solid var(--color-border); }
  .vicar-info { padding: 1.75rem 1.5rem; }

  .bearers-arrow-btn:hover,
  .bearers-arrow-btn:active {
    background-color: #1F2937;
    color: #FFFFFF;
    transform: translateY(-1px);
  }

  [data-theme="dark"] .bearers-arrow-btn:hover,
  [data-theme="dark"] .bearers-arrow-btn:active {
    background-color: #F2CCB8;
    color: #44496B;
  }
}

/* --------------------------------------------------------------------------
   GLOBAL PULSATING CURSOR / AMBIENT GLOW SYSTEM
   -------------------------------------------------------------------------- */
.global-cursor-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle at center,
    rgba(216, 145, 105, 0.22) 0%,
    rgba(216, 145, 105, 0.10) 35%,
    rgba(216, 145, 105, 0.02) 65%,
    transparent 80%
  );
  transform: translate(-50%, -50%) scale(1);
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: cursorGlowPulse 4s ease-in-out infinite alternate;
  will-change: left, top, transform, opacity;
}

[data-theme="dark"] .global-cursor-glow {
  background: radial-gradient(
    circle at center,
    rgba(242, 204, 184, 0.18) 0%,
    rgba(242, 204, 184, 0.08) 35%,
    rgba(242, 204, 184, 0.02) 65%,
    transparent 80%
  );
  mix-blend-mode: screen;
}

@keyframes cursorGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
}

@media (max-width: 767px) {
  .global-cursor-glow {
    top: 50% !important;
    left: 50% !important;
    width: 90vw !important;
    height: 90vw !important;
    animation: cursorGlowPulseMobile 5s ease-in-out infinite alternate !important;
  }

  @keyframes cursorGlowPulseMobile {
    0% {
      transform: translate(-50%, -50%) scale(0.85);
      opacity: 0.6;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.15);
      opacity: 0.92;
    }
  }
}

/* ==========================================================================
   11. REUSABLE CHILD PAGE TEMPLATE & "OUR PARISH" SECTION STYLES
   ========================================================================== */

.parish-page-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.parish-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

.parish-section {
  padding: 5.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* SECTION 1: HERO BANNER */
.parish-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 320px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.parish-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.parish-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 40, 61, 0.45) 0%, rgba(10, 22, 35, 0.85) 100%);
  z-index: 1;
}

[data-theme="dark"] .parish-hero-overlay {
  background: linear-gradient(180deg, rgba(68, 73, 107, 0.45) 0%, rgba(20, 22, 32, 0.92) 100%);
}

.parish-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  padding: 0 1.5rem;
}

.parish-breadcrumb {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.parish-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* SECTION 2: OUR STORY */
.our-story-section {
  background-color: var(--color-bg-primary);
}

.our-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.our-story-eyebrow {
  font-family: var(--font-ui) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--color-sandy-brown, #E0954A);
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.5rem;
  display: block;
}

[data-theme="dark"] .our-story-eyebrow {
  color: #F2CCB8;
}

.our-story-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 300 !important;
  font-style: italic !important;
  color: var(--color-text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .our-story-title {
  color: #FFFFFF;
}

.our-story-text p {
  font-family: var(--font-body);
  font-size: 1.025rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .our-story-text p {
  color: rgba(255, 255, 255, 0.85);
}

/* Service Timings Sub-Block Card (Minimal Compact 2-Column Layout) */
.service-timings-card {
  background-color: #F7F4F0; /* Soft warm off-white matching home page */
  border-radius: 16px;
  border-left: 4px solid #C9ADA7; /* Soft dusty rose accent */
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.05); /* Deep navy shadow */
  padding: 1.5rem 1.75rem;
  margin-top: 1.75rem;
  box-sizing: border-box;
}

[data-theme="dark"] .service-timings-card {
  background-color: #2E3250 !important; /* Premium dark navy/slate */
  border-left-color: #C9ADA7 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
}

.service-timings-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.service-clock-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9ADA7;
  flex-shrink: 0;
}

.service-timings-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: #22223B;
  margin: 0;
  line-height: 1.2;
}

[data-theme="dark"] .service-timings-title {
  color: #22223B;
}

.service-timing-rows {
  display: flex;
  flex-direction: column;
}

.service-timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.12);
  gap: 1.25rem;
}

.service-timing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-timing-row:first-child {
  padding-top: 0;
}

.timing-left-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.timing-day {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #22223B;
  line-height: 1.3;
}

[data-theme="dark"] .timing-day {
  color: #22223B;
}

.timing-desc {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  color: #6B6560;
  line-height: 1.3;
}

[data-theme="dark"] .timing-desc {
  color: #6B6560;
}

.timing-time {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: #C9ADA7;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

[data-theme="dark"] .timing-time {
  color: #C9ADA7;
}

/* Facts Strip Below Section 2 */
.parish-facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(19, 40, 61, 0.1);
  text-align: center;
}

[data-theme="dark"] .parish-facts-strip {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.fact-item {
  position: relative;
  padding: 0 1rem;
}

.fact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background-color: rgba(19, 40, 61, 0.12);
}

[data-theme="dark"] .fact-item:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.15);
}

.fact-number {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 600;
  color: var(--color-sandy-brown, #E0954A);
  line-height: 1;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .fact-number {
  color: #F2CCB8;
}

.fact-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="dark"] .fact-label {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .service-timing-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .timing-time {
    text-align: left;
  }
  .parish-facts-strip {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .fact-item:not(:last-child)::after {
    display: none;
  }
}

.our-story-image-wrap {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(19, 40, 61, 0.12);
}

.our-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SECTION 3: PASTORAL LEADERSHIP */
.pastoral-section {
  background-color: var(--color-sage, #C9ADA7);
  border-top: 1px solid rgba(34, 34, 59, 0.12);
  border-bottom: 1px solid rgba(34, 34, 59, 0.12);
}

[data-theme="dark"] .pastoral-section {
  background-color: #3B3E5B;
}

.pastoral-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem auto;
}

.pastoral-eyebrow {
  font-family: var(--font-ui) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--color-sandy-brown, #E0954A);
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.5rem;
  display: block;
}

[data-theme="dark"] .pastoral-eyebrow {
  color: #F2CCB8;
}

.pastoral-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .pastoral-title {
  color: #FFFFFF;
}

.pastoral-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem auto 1rem auto;
}

.pastoral-ornament::before,
.pastoral-ornament::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: #D89169;
}

[data-theme="dark"] .pastoral-ornament::before,
[data-theme="dark"] .pastoral-ornament::after {
  background: #F2CCB8;
}

.pastoral-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D89169;
}

[data-theme="dark"] .pastoral-dot {
  background: #F2CCB8;
}

.pastoral-subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .pastoral-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.pastoral-cards-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
}

.pastoral-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(19, 40, 61, 0.14);
  background-color: #F4F0EB;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

[data-theme="dark"] .pastoral-card {
  background-color: #1B1615;
}

.pastoral-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pastoral-card:hover .pastoral-card-img {
  transform: scale(1.03);
}

.pastoral-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.75rem;
  color: #FFFFFF;
  pointer-events: none;
}

.pastoral-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pastoral-card-role {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #E8B496;
  letter-spacing: 0.05em;
}

/* SECTION 4: PARISH HISTORY */
.history-section {
  background-color: var(--color-bg-primary);
}

.history-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.history-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .history-title {
  color: #FFFFFF;
}

.history-timeline-container {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 0;
}

.history-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(216, 145, 105, 0.35);
  transform: translateX(-50%);
}

[data-theme="dark"] .history-timeline-line {
  background: rgba(242, 204, 184, 0.35);
}

.history-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.history-item.left {
  left: 0;
  text-align: right;
}

.history-item.right {
  left: 50%;
  text-align: left;
}

.history-dot {
  position: absolute;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #D89169;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px rgba(216, 145, 105, 0.4);
  z-index: 2;
}

[data-theme="dark"] .history-dot {
  background-color: #F2CCB8;
  border-color: #44496B;
}

.history-item.left .history-dot {
  right: -7px;
}

.history-item.right .history-dot {
  left: -7px;
}

.history-year {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-sandy-brown, #E0954A);
  line-height: 1;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .history-year {
  color: #F2CCB8;
}

.history-item-heading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .history-item-heading {
  color: #FFFFFF;
}

.history-desc {
  font-family: var(--font-body);
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

[data-theme="dark"] .history-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* SECTION 5: FORMER VICARS */
.vicars-section {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .vicars-section {
  background-color: #3B3E5B;
}

.vicars-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.vicars-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .vicars-title {
  color: #FFFFFF;
}

.vicars-carousel-container {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  overflow: hidden;
}

.vicars-carousel-viewport {
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.5rem 0 1.25rem 0;
}

.vicars-carousel-track {
  display: flex;
  gap: 24px;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: max-content !important;
  box-sizing: border-box;
}

.vicar-card {
  flex: 0 0 270px;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  background: #FAF8EE;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 336px;
  min-height: 336px;
  max-height: 336px;
}

.vicar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(34, 34, 59, 0.16);
}

.vicar-card.no-details {
  cursor: default;
  pointer-events: none;
}

.vicar-card.no-details:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .vicar-card {
    flex: 0 0 calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  .vicars-carousel-viewport {
    width: min(calc(100vw - 2rem), 340px) !important;
    max-width: min(calc(100vw - 2rem), 340px) !important;
    margin-inline: auto !important;
  }

  .vicars-carousel-track {
    gap: 0 !important;
  }

  .vicar-card {
    flex: 0 0 min(calc(100vw - 2rem), 340px) !important;
    width: min(calc(100vw - 2rem), 340px) !important;
    min-width: min(calc(100vw - 2rem), 340px) !important;
    max-width: min(calc(100vw - 2rem), 340px) !important;
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
  }
}

[data-theme="dark"] .vicar-card {
  background: #FAF8EE;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.vicar-card-photo-wrap {
  width: 100%;
  aspect-ratio: auto;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background-color: #FFFFFF;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vicar-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

/* Expand Icon Button at top-right of image */
.vicar-expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 34, 59, 0.2);
  color: #22223B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.vicar-card:hover .vicar-expand-btn,
.vicar-expand-btn:hover {
  background-color: #E0954A;
  color: #FFFFFF;
  border-color: #E0954A;
  transform: scale(1.08);
}

.vicar-card-info {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  padding: 0.9rem 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FAF8EE;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.vicar-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #4A2E22;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.7em;
  max-height: 2.7em;
  overflow: hidden;
}

.vicar-card-years {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #E0954A;
  text-align: center;
  margin: 0;
  flex: 0 0 auto;
  line-height: 1.25;
}

@media (max-width: 767px) {
  .vicar-card-photo-wrap {
    height: 295px;
    min-height: 295px;
    max-height: 295px;
  }

  .vicar-card-info {
    height: 135px;
    min-height: 135px;
    max-height: 135px;
  }
}

/* ==========================================================================
   VICAR DETAIL POPUP MODAL
   ========================================================================== */
.vicar-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 22, 35, 0.75);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vicar-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vicar-modal-container {
  background-color: #FAF8EE;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  box-shadow: 0 24px 60px rgba(45, 27, 20, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(34, 34, 59, 0.15);
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vicar-modal-overlay.active .vicar-modal-container {
  transform: scale(1);
}

.vicar-modal-header {
  padding: 1.5rem 1.75rem 1.15rem 1.75rem;
  border-bottom: 1px solid rgba(34, 34, 59, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #F3EFC9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.vicar-modal-header-text {
  flex: 1;
}

.vicar-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: #22223B;
  line-height: 1.2;
  margin: 0 0 0.25rem 0;
}

.vicar-modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #E0954A;
  margin: 0;
}

.vicar-modal-subline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: #5C544A;
  margin-top: 0.2rem;
}

.vicar-modal-passing {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #E0954A;
  margin-top: 0.35rem;
}

.vicar-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 34, 59, 0.08);
  border: none;
  color: #22223B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.vicar-modal-close-btn:hover {
  background-color: #E0954A;
  color: #FFFFFF;
}

.vicar-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.vicar-modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .vicar-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.vicar-modal-photo-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid #E0954A;
  box-shadow: 0 6px 18px rgba(34, 34, 59, 0.12);
  align-self: start;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vicar-modal-photo-img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center center;
}

.vicar-detail-group {
  margin-bottom: 1.1rem;
}

.vicar-detail-group:last-child {
  margin-bottom: 0;
}

.vicar-detail-label {
  font-family: var(--font-ui) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #E0954A;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.2rem;
  display: block;
}

.vicar-detail-val {
  font-family: var(--font-ui) !important;
  font-size: 0.95rem !important;
  color: #5C544A;
  line-height: 1.5;
}

.vicar-contact-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(34, 34, 59, 0.12);
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  background-color: #E0954A;
  color: #FFFFFF !important;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.directions-btn:hover {
  background-color: #C87D34;
}

/* SECTION 6: CTA BAND */
.parish-cta-band {
  background: linear-gradient(135deg, #D89169 0%, #C47F58 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 4.5rem 1.5rem;
  position: relative;
}

[data-theme="dark"] .parish-cta-band {
  background: linear-gradient(135deg, #44496B 0%, #353954 100%);
}

.parish-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.parish-cta-btn {
  display: inline-block;
  background-color: #FFFFFF;
  color: #13283D;
  border-radius: 50px;
  padding: 0.85rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.parish-cta-btn:hover {
  background-color: #13283D;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* RESPONSIVE BREAKPOINTS FOR OUR PARISH PAGE */
@media (max-width: 768px) {
  .parish-section {
    padding: 3.5rem 0;
  }
  .our-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .our-story-image-wrap {
    height: 300px;
  }
  .pastoral-cards-grid {
    gap: 1.75rem;
  }
  .pastoral-card {
    height: auto;
  }
  
  /* Timeline Collapse to Single Column */
  .history-timeline-line {
    left: 20px !important;
    transform: none !important;
  }
  .history-item {
    width: 100% !important;
    left: 0 !important;
    text-align: left !important;
    padding-left: 52px !important;
    padding-right: 0.5rem !important;
  }
  .history-item.left .history-dot,
  .history-item.right .history-dot {
    left: 13px !important;
    right: auto !important;
  }
  
  /* Former Vicars Carousel Mobile */
  .vicars-carousel-track {
    width: max-content !important;
    display: flex !important;
  }
}

/* ==========================================================================
   VICAR PAGE STYLES (vicar.html)
   ========================================================================== */

.vicar-page-wrapper {
  background-color: #FAF8F5;
  min-height: calc(100vh - 80px);
}

/* Section 1: Hero Section */
.vicar-hero-section {
  position: relative;
  background-color: #FAF8F5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(201, 173, 167, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(74, 78, 105, 0.25) 0%, transparent 40%);
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
  overflow: hidden;
}

/* Decorative Watermark Leaves (matching reference mockup) */
.vicar-hero-watermark-left,
.vicar-hero-watermark-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: auto;
  opacity: 0.25;
  pointer-events: none;
}

.vicar-hero-watermark-left {
  left: 2rem;
}

.vicar-hero-watermark-right {
  right: 2rem;
}

.vicar-hero-grid {
  display: grid;
  grid-template-columns: 35% 65%;
  align-items: center;
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.vicar-hero-photo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Profile Photo Container (240px diameter, circular, Sage border, soft shadow, centered face) */
.vicar-profile-img-wrap {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 4px solid #C9ADA7;
  box-shadow: 0 12px 32px rgba(34, 34, 59, 0.1);
  overflow: hidden;
  position: relative;
  background-color: #F4F0EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .vicar-profile-img-wrap {
  background-color: #1B1615;
}

.vicar-profile-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Right Details Column */
.vicar-hero-info-col {
  display: flex;
  flex-direction: column;
}

.vicar-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: #9A8C98;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.vicar-hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 1rem 0;
  line-height: 1.15;
}

/* Accent Divider */
.vicar-hero-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.5rem;
}

.vicar-hero-line {
  flex: 1;
  height: 1px;
  background-color: rgba(247, 175, 99, 0.4);
}

.vicar-hero-diamond {
  width: 6px;
  height: 6px;
  background-color: #C9ADA7;
  transform: rotate(45deg);
  margin: 0 0.5rem;
}

/* Details Grid */
.vicar-details-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.6rem;
  column-gap: 2.5rem;
  max-width: 400px;
}

.vicar-detail-label {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #22223B;
}

.vicar-detail-val {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  color: #5C544A;
}

/* Section 2: About Our Vicar Section */
.vicar-about-section {
  padding: 4.5rem 0 5rem 0;
  background-color: #FFFFFF;
}

.vicar-about-grid {
  display: grid;
  grid-template-columns: 44% 52%;
  gap: 4%;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.vicar-family-img-wrap {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(74, 78, 105, 0.6);
  box-shadow: 0 16px 36px rgba(34, 34, 59, 0.08);
  overflow: hidden;
  background-color: #FAF8F2;
}

.vicar-family-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 22px;
}

/* Right Content */
.vicar-about-content {
  display: flex;
  flex-direction: column;
}

.vicar-about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.vicar-about-line {
  width: 48px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.vicar-about-text p {
  font-family: var(--font-ui);
  font-size: 1.025rem;
  line-height: 1.75;
  color: #5C544A;
  margin: 0 0 1.25rem 0;
}

.vicar-about-text p:last-child {
  margin-bottom: 0;
}

/* Mobile & Tablet Responsive */
@media (max-width: 900px) {
  .vicar-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .vicar-hero-info-col {
    align-items: center;
  }

  .vicar-hero-divider {
    justify-content: center;
  }

  .vicar-details-grid {
    grid-template-columns: auto auto;
    column-gap: 1.5rem;
    text-align: left;
  }

  .vicar-about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  /* 1. Mobile Hero Section Optimization */
  .vicar-hero-section {
    padding: 1.75rem 1rem 1.5rem 1rem;
  }

  .vicar-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  /* Profile Photo Mobile Size: 135px diameter */
  .vicar-profile-img-wrap {
    width: 135px;
    height: 135px;
    border-width: 3px;
    margin: 0 auto;
  }

  .vicar-profile-img {
    object-fit: cover;
    object-position: center 20%;
  }

  .vicar-hero-info-col {
    align-items: center;
  }

  .vicar-hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
  }

  .vicar-hero-name {
    font-size: clamp(1.75rem, 6.5vw, 2rem); /* 28px - 32px */
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
  }

  .vicar-hero-divider {
    max-width: 260px;
    margin: 0 auto 1rem auto;
  }

  .vicar-details-grid {
    grid-template-columns: auto auto;
    column-gap: 1rem;
    row-gap: 0.35rem;
    font-size: 0.925rem; /* ~15px */
    text-align: left;
  }

  .vicar-detail-label,
  .vicar-detail-val {
    font-size: 0.925rem;
  }

  .vicar-hero-watermark-left,
  .vicar-hero-watermark-right {
    display: none;
  }

  /* 2. About Section Mobile Optimization */
  .vicar-about-section {
    padding: 2rem 1rem 2.5rem 1rem;
  }

  .vicar-about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem; /* ~24px gap between family portrait and about content */
  }

  .vicar-family-img-wrap {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 0;
  }

  .vicar-family-img {
    border-radius: 16px;
    max-height: 280px;
    object-fit: cover;
    object-position: center 20%;
  }

  .vicar-about-title {
    font-size: 1.6rem; /* ~26px */
    margin: 0 0 0.4rem 0;
  }

  .vicar-about-line {
    width: 40px;
    height: 3px;
    margin-bottom: 1rem; /* ~16px gap */
  }

  .vicar-about-text p {
    font-size: 0.95rem; /* ~15px */
    line-height: 1.65;
    margin: 0 0 0.85rem 0; /* ~14px paragraph gap */
  }
}

/* ==========================================================================
   VICAR MESSAGE SECTION STYLES (Message from Our Vicar)
   ========================================================================== */

.vicar-message-section {
  padding: 4.5rem 1.5rem 5.5rem 1.5rem;
  background-color: #FAF8F5;
}

.vicar-message-container {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  background-color: #FAF6EE;
  border-radius: 24px;
  border: 1px solid rgba(74, 78, 105, 0.5);
  box-shadow: 0 12px 36px rgba(34, 34, 59, 0.06);
  padding: 3.5rem 4rem;
  overflow: hidden;
}

/* Background Botanical Line Art */
.vicar-message-botanical {
  position: absolute;
  right: -20px;
  top: 10%;
  bottom: 10%;
  width: 220px;
  height: 80%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

.vicar-message-header {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.vicar-message-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.vicar-message-line {
  width: 48px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
}

.vicar-message-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.vicar-message-quote-icon {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: #C9ADA7;
  opacity: 0.85;
  user-select: none;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.vicar-message-content {
  flex: 1;
  max-width: 720px;
}

.vicar-message-salutation {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 600;
  color: #22223B;
  margin-bottom: 1.25rem !important;
}

.vicar-message-content p {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #5C544A;
  margin: 0 0 1.25rem 0;
}

.vicar-message-closing {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: #5C544A;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

/* Signature Block */
.vicar-signature-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2rem;
  margin-left: auto;
  width: fit-content;
}

.vicar-signature-name {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.95rem;
  font-weight: 500;
  color: #22223B;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.vicar-signature-line {
  width: 42px;
  height: 2px;
  background-color: #C9ADA7;
  margin-bottom: 0.6rem;
  border-radius: 1px;
}

.vicar-signature-role {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: #22223B;
  margin-bottom: 0.15rem;
}

.vicar-signature-church {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  color: #9A8C98;
}

/* Responsive Styling for Vicar Message Section */
@media (max-width: 768px) {
  .vicar-message-section {
    padding: 3rem 1.25rem;
  }

  .vicar-message-container {
    padding: 2.25rem 1.75rem;
    border-radius: 18px;
  }

  .vicar-message-quote-icon {
    font-size: 3.5rem;
    margin-top: 0;
  }

  .vicar-message-body {
    gap: 1rem;
  }

  .vicar-signature-block {
    margin-left: 0;
    margin-top: 1.75rem;
  }

  .vicar-message-botanical {
    width: 140px;
    opacity: 0.15;
  }
}

@media (max-width: 600px) {
  .vicar-message-section {
    padding: 2.25rem 1rem 2.5rem 1rem;
  }

  .vicar-message-container {
    padding: 1.75rem 1.15rem;
    border-radius: 18px;
  }

  .vicar-message-header {
    margin-bottom: 1.25rem;
  }

  .vicar-message-title {
    font-size: clamp(1.75rem, 6.5vw, 1.95rem);
    margin: 0 0 0.5rem 0;
  }

  .vicar-message-line {
    width: 40px;
    height: 3px;
    margin-bottom: 1rem;
  }

  .vicar-message-body {
    flex-direction: column;
    gap: 0.75rem;
  }

  .vicar-message-quote-icon {
    font-size: 2.85rem;
    line-height: 0.8;
    margin-top: 0;
    margin-bottom: 0.25rem;
    opacity: 0.85;
  }

  .vicar-message-salutation {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.85rem !important;
  }

  .vicar-message-content p {
    font-size: 0.975rem;
    line-height: 1.65;
    margin: 0 0 0.85rem 0;
  }

  .vicar-message-closing {
    font-size: 0.975rem;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .vicar-signature-block {
    margin-left: 0;
    margin-top: 1.5rem;
    align-items: flex-start;
  }

  .vicar-signature-name {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .vicar-signature-line {
    width: 36px;
    height: 2px;
    margin-bottom: 0.5rem;
  }

  .vicar-signature-role {
    font-size: 0.875rem;
    margin-bottom: 0.1rem;
  }

  .vicar-signature-church {
    font-size: 0.825rem;
  }

  .vicar-message-botanical {
    width: 120px;
    opacity: 0.1;
  }
}

/* ==========================================================================
   CHOIR PAGE STYLES (ministries_choir.html)
   ========================================================================== */

.choir-page-wrapper {
  background-color: #FAF8F5;
  min-height: calc(100vh - 80px);
}

/* 1. Hero Section */
.choir-hero-section {
  position: relative;
  background-color: #FAF8F5;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(201, 173, 167, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(74, 78, 105, 0.25) 0%, transparent 40%);
  padding: 6.5rem 0 3.5rem; /* Increased top padding to prevent image from hitting the header closely */
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
  overflow: hidden;
}

.choir-hero-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.choir-hero-text-col {
  padding-right: 2rem;
}

.choir-breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #9A8C98;
  margin-bottom: 1.25rem;
}

.choir-breadcrumb a {
  color: #9A8C98;
  text-decoration: none;
}

.choir-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: #C9ADA7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.choir-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

.choir-hero-desc {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5C544A;
  max-width: 460px;
}

.choir-hero-img-col {
  position: relative;
  height: 380px;
  border-top-left-radius: 180px;
  border-bottom-left-radius: 180px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(34, 34, 59, 0.1);
  border: 1px solid rgba(74, 78, 105, 0.5);
}

.choir-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Common Section Container */
.choir-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.06);
}

.choir-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 0.4rem 0;
}

.choir-title-accent {
  width: 42px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* 2 & 3. About & Meeting Timings 3-Column Grid */
.choir-about-timings-grid {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 26fr) minmax(0, 26fr);
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.choir-about-text p {
  font-family: var(--font-ui);
  font-size: 0.975rem;
  line-height: 1.7;
  color: #5C544A;
  margin: 0 0 1rem 0;
}

/* Scripture Quote Block */
.choir-quote-block {
  background-color: #FAF6EE;
  border-radius: 16px;
  border: 1px solid rgba(74, 78, 105, 0.6);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.choir-quote-icon {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  color: #C9ADA7;
  margin-bottom: 0.75rem;
}

.choir-quote-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: #22223B;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.choir-quote-cite {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: #9A8C98;
}

/* Regular Meeting Timings Block */
.choir-timings-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(74, 78, 105, 0.15); /* Slate navy border */
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.04);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.choir-timings-header {
  padding: 1rem 1.25rem;
  background-color: #F7F4F0; /* Soft warm off-white */
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #22223B; /* Deep navy */
  border-bottom: 1px solid rgba(74, 78, 105, 0.1);
}

.choir-timings-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  box-sizing: border-box;
}

.choir-timings-table tr {
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
}

.choir-timings-table tr:last-child {
  border-bottom: none;
}

.choir-timings-table td {
  padding: 0.85rem 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: #5C544A;
  box-sizing: border-box;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

.choir-timings-table td.cell-label {
  width: 56%;
  min-width: 0;
  font-weight: 600;
  color: #22223B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.choir-timings-table td:not(.cell-label) {
  width: 44%;
  min-width: 0;
  text-align: left;
}

.choir-timings-icon {
  width: 18px;
  height: 18px;
  stroke: #C9ADA7;
  flex-shrink: 0;
}

/* 4. Leadership / Office Bearers Table (Explicit Desktop & Tablet HTML Table) */
.choir-leadership-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid rgba(74, 78, 105, 0.7);
  box-shadow: 0 4px 16px rgba(34, 34, 59, 0.03);
  overflow: hidden;
  box-sizing: border-box;
}

.choir-leadership-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.choir-leadership-table th {
  background-color: #C3DEC0;
  color: #4A3E38;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  text-align: left;
  border: none;
}

.choir-leadership-table td {
  padding: 1.05rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: #5C544A;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
  vertical-align: top;
  line-height: 1.5;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}

.choir-leadership-table tr:last-child td {
  border-bottom: none;
}

.choir-leadership-table tr:nth-child(even) {
  background-color: #FAF8F2;
}

.choir-leadership-table tr:nth-child(odd) {
  background-color: #FFFFFF;
}

.choir-leadership-table td.cell-pos {
  font-weight: 600;
  color: #5A453A;
  width: 35%;
}

.choir-leadership-table td.cell-name {
  font-weight: 500;
  color: #3D352B;
  width: 65%;
}

.choir-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.choir-members-list div {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: #3D352B;
  line-height: 1.45;
}

/* Explicit Table Layout for Desktop & Tablet (768px+) */
@media (min-width: 768px) {
  .choir-leadership-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    background-color: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1px solid rgba(74, 78, 105, 0.7) !important;
    box-shadow: 0 4px 16px rgba(34, 34, 59, 0.03) !important;
    overflow: hidden !important;
  }

  .choir-leadership-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    text-align: left !important;
  }

  .choir-leadership-table thead {
    display: table-header-group !important;
  }

  .choir-leadership-table tbody {
    display: table-row-group !important;
  }

  .choir-leadership-table tr {
    display: table-row !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .choir-leadership-table th {
    display: table-cell !important;
    background-color: #C3DEC0 !important;
    color: #4A3E38 !important;
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0.9rem 1.5rem !important;
    text-align: left !important;
    border: none !important;
  }

  .choir-leadership-table td {
    display: table-cell !important;
    padding: 1.05rem 1.5rem !important;
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    color: #5C544A !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.08) !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
  }

  .choir-leadership-table td::before {
    display: none !important;
    content: none !important;
  }

  .choir-leadership-table tr:last-child td {
    border-bottom: none !important;
  }

  .choir-leadership-table tr:nth-child(even) {
    background-color: #FAF8F2 !important;
  }

  .choir-leadership-table tr:nth-child(odd) {
    background-color: #FFFFFF !important;
  }

  .choir-leadership-table td.cell-pos {
    font-weight: 600 !important;
    color: #5A453A !important;
    width: 35% !important;
  }

  .choir-leadership-table td.cell-name {
    font-weight: 500 !important;
    color: #3D352B !important;
    width: 65% !important;
  }
}

/* Mobile Responsive View (<= 767px): Stacked Cards per Office Bearer Row */
@media (max-width: 767px) {
  .choir-leadership-wrap {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .choir-leadership-table,
  .choir-leadership-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .choir-leadership-table thead {
    display: none !important;
  }

  .choir-leadership-table tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 340px !important;
    background-color: #FFFFFF !important;
    border-radius: 14px !important;
    border: 1px solid rgba(74, 78, 105, 0.7) !important;
    box-shadow: 0 4px 12px rgba(34, 34, 59, 0.04) !important;
    padding: 1.1rem 1.25rem !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }

  .choir-leadership-table td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    box-sizing: border-box !important;
  }

  .choir-leadership-table td.cell-pos::before,
  .choir-leadership-table td.cell-name::before {
    display: none !important;
    content: none !important;
  }

  .choir-leadership-table td.cell-pos {
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px dashed rgba(34, 34, 59, 0.15) !important;
    font-family: var(--font-display) !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #22223B !important;
    line-height: 1.3 !important;
  }

  .choir-leadership-table td.cell-name {
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #3D352B !important;
    line-height: 1.45 !important;
  }

  .choir-members-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    margin-top: 0.2rem !important;
  }

  .choir-members-list div {
    font-family: var(--font-ui) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #3D352B !important;
    line-height: 1.45 !important;
  }
}

/* 5. Carousel Controls & Cards (Upcoming & Gallery) */
.carousel-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.carousel-nav-btns {
  display: flex;
  gap: 0.6rem;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(34, 34, 59, 0.2);
  background-color: #FFFFFF;
  color: #22223B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background-color: #C9ADA7;
  border-color: #C9ADA7;
  color: #22223B;
}

/* ==========================================================================
   REBUILT UNIFIED JMTC CAROUSEL SYSTEM (Compact Card Sizing Rules)
   ========================================================================== */

.jmtc-carousel-section {
  position: relative;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.jmtc-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.jmtc-section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: #E0954A;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.jmtc-section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: #22223B;
  margin: 0;
  line-height: 1.2;
}

.jmtc-title-accent {
  width: 45px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
  margin-top: 0.35rem;
}

/* Header Navigation Buttons */
.jmtc-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.jmtc-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(34, 34, 59, 0.2);
  background-color: #FFFFFF;
  color: #22223B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(34, 34, 59, 0.05);
}

.jmtc-carousel-btn:hover:not(:disabled) {
  background-color: #22223B;
  color: #FFFFFF;
  border-color: #22223B;
  box-shadow: 0 4px 10px rgba(34, 34, 59, 0.15);
}

.jmtc-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(34, 34, 59, 0.1);
  box-shadow: none;
}

/* Viewport & Track */
.jmtc-carousel-viewport,
.carousel-track-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.jmtc-carousel-viewport::-webkit-scrollbar,
.carousel-track-container::-webkit-scrollbar {
  display: none;
}

.jmtc-carousel-track,
.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  min-width: 100%;
}

/* Desktop & Tablet Sizing: Exactly 4 Compact Cards visible per row */
.jmtc-card,
.choir-event-card,
.gallery-card-new,
.gallery-card {
  flex: 0 0 calc((100% - 72px) / 4);
  width: calc((100% - 72px) / 4);
  max-width: 310px; /* Increased to align better and prevent truncation */
  box-sizing: border-box;
  background-color: var(--color-card-bg, #FFFFFF);
  border-radius: 20px; /* Softer, premium curved corners */
  border: 1px solid var(--color-border, rgba(74, 78, 105, 0.15)) !important; /* Soft, elegant borders */
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.04); /* Soft shadow */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jmtc-card:hover,
.choir-event-card:hover,
.gallery-card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(34, 34, 59, 0.1);
}

/* Upcoming Event Card (Compact Height: Max 330px) */
.jmtc-carousel-section:not([aria-label="Gallery"]) .jmtc-card {
  max-height: 330px;
}

.jmtc-event-img-wrap,
.choir-event-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  max-height: 175px;
  overflow: hidden;
  background-color: #F5F1E8;
}

.jmtc-event-img,
.choir-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Remove Date Badge Overlay */
.jmtc-date-badge {
  display: none !important;
}

.jmtc-event-body,
.choir-event-body {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.jmtc-event-title,
.choir-event-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #22223B;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jmtc-event-meta,
.choir-event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #5C544A;
  margin-bottom: 0.65rem;
}

.jmtc-event-meta-item,
.choir-event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jmtc-event-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  height: 34px;
  padding: 0 0.75rem;
  border-radius: 17px;
  border: 1px solid #E0954A;
  color: #E0954A;
  background-color: transparent;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  margin-top: auto;
}

.jmtc-event-btn:hover {
  background-color: #E0954A;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(224, 149, 74, 0.25);
}

/* Gallery Card (Photos & Videos - Clickable Title to Open Folder) */
.jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
  max-height: none !important;
}

.jmtc-gallery-img-wrap,
.gallery-img-square-wrap {
  position: relative;
  width: 100%;
  height: 175px;
  max-height: 180px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #F5F1E8;
  display: block;
}

.jmtc-gallery-img,
.gallery-img-square {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.jmtc-card:hover .jmtc-gallery-img,
.gallery-card-new:hover .gallery-img-square {
  transform: scale(1.05);
}

/* Video Badge Overlay for Video Thumbnails */
.jmtc-video-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.jmtc-gallery-body,
.gallery-card-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #FFFFFF;
  flex-grow: 1;
}

.jmtc-gallery-title,
.gallery-card-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #3D352B;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jmtc-gallery-title-link {
  color: #3D352B;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

.jmtc-gallery-title-link:hover {
  color: #E0954A;
  text-decoration: underline;
}

.jmtc-gallery-date,
.gallery-card-date {
  display: none !important;
}

/* Pagination Dots Indicator */
.jmtc-dots-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.jmtc-dots-wrap,
.carousel-dots-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.jmtc-dots-subtext {
  display: none !important;
}

.jmtc-dot,
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(34, 34, 59, 0.22);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.jmtc-dot:hover,
.carousel-dot:hover {
  background-color: rgba(34, 34, 59, 0.5);
}

.jmtc-dot.active,
.carousel-dot.active {
  background-color: #E0954A;
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(224, 149, 74, 0.4);
}

/* --------------------------------------------------------------------------
   GLOBAL OVERFLOW & RESPONSIVE BREAKPOINTS 
   (Desktop 4 Cards, Tablet 2 Cards, Mobile 1 Card)
   -------------------------------------------------------------------------- */

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

.page-wrapper,
.choir-page-wrapper,
.site-main,
.container,
.choir-section,
.jmtc-carousel-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop (1200px+): Clean 3-Column About Section & Exactly 4 cards per row */
@media (min-width: 1200px) {
  .choir-about-timings-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 48fr) minmax(0, 26fr) minmax(0, 26fr) !important;
    gap: 32px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .choir-quote-block,
  .choir-timings-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .choir-timings-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    box-sizing: border-box !important;
  }

  .choir-timings-table td.cell-label {
    width: 58% !important;
    min-width: 0 !important;
    padding: 0.85rem 0.4rem 0.85rem 0.75rem !important;
    font-weight: 600;
    color: #22223B;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }

  .choir-timings-table td:not(.cell-label) {
    width: 42% !important;
    min-width: 0 !important;
    padding: 0.85rem 0.75rem 0.85rem 0.25rem !important;
    color: #5C544A;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .jmtc-carousel-track,
  .carousel-track {
    gap: 24px;
  }

  .jmtc-card,
  .choir-event-card,
  .gallery-card-new,
  .gallery-card {
    flex: 0 0 calc((100% - 72px) / 4);
    width: calc((100% - 72px) / 4);
    max-width: 270px;
  }
}

/* Tablet (768px - 1199px): Exactly 2 cards per row */
@media (min-width: 768px) and (max-width: 1199px) {
  .choir-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .choir-about-timings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .jmtc-carousel-track,
  .carousel-track {
    gap: 24px;
  }

  .jmtc-card,
  .choir-event-card,
  .gallery-card-new,
  .gallery-card {
    flex: 0 0 calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
    max-width: 360px !important;
  }

  .jmtc-carousel-section:not([aria-label="Gallery"]) .jmtc-card {
    max-height: none !important;
  }

  .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
    max-height: none !important;
  }
}

/* Mobile (767px and below): Single-column stacked layout & 1-Card Carousel */
@media (max-width: 767px) {
  /* Hero Section Mobile Stack */
  .choir-hero-section {
    padding: 2rem 0 !important;
  }

  .choir-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  .choir-hero-text-col {
    width: 100% !important;
    padding-right: 0 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
  }

  .choir-hero-desc {
    max-width: 100% !important;
  }

  .choir-hero-img-col {
    width: 100% !important;
    max-width: 340px !important;
    height: 220px !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 24px rgba(34, 34, 59, 0.1) !important;
  }

  .choir-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* About & Meeting Timings Mobile Stack */
  .choir-about-timings-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 1.5rem !important;
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  .choir-about-text {
    width: 100% !important;
  }

  .choir-quote-block,
  .choir-timings-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* Carousel Section & Viewport Mobile Rules */
  .jmtc-carousel-section,
  .choir-section {
    padding: 2rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .jmtc-carousel-header,
  .carousel-header-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-bottom: 1.25rem !important;
    gap: 12px !important;
  }

  .jmtc-carousel-viewport,
  .carousel-viewport {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 !important;
  }

  .jmtc-carousel-track,
  .carousel-track,
  #upcomingTrack,
  #galleryTrack {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 100% Width Centered Carousel Slide Container */
  .jmtc-card,
  .choir-event-card,
  .gallery-card-new,
  .gallery-card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 1.25rem !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: none !important;
    height: auto !important;
  }

  /* Centered Card Box (340px max-width) */
  .jmtc-card-box,
  .jmtc-card > div,
  .jmtc-card > a {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .jmtc-card-box {
    background-color: #FFFFFF !important;
    border-radius: 14px !important;
    border: 1px solid rgba(74, 78, 105, 0.7) !important;
    box-shadow: 0 4px 12px rgba(34, 34, 59, 0.05) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .jmtc-dots-container,
  .jmtc-dots-wrap,
  .carousel-dots-indicator {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1rem !important;
  }

  .jmtc-event-img-wrap,
  .choir-event-img-wrap {
    height: 160px !important;
    max-height: 160px !important;
    width: 100% !important;
  }

  .jmtc-gallery-img-wrap,
  .gallery-img-square-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 340px !important;
  }
}

  /* Leadership / Office Bearers Mobile Definition List (<= 640px) */
  .choir-leadership-wrap {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible;
  }

  .choir-leadership-table, 
  .choir-leadership-table tbody, 
  .choir-leadership-table tr, 
  .choir-leadership-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .choir-leadership-table thead {
    display: none;
  }

  .choir-leadership-table tr {
    background-color: transparent !important;
    border: none !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(34, 34, 59, 0.12) !important;
    margin-bottom: 0;
  }

  .choir-leadership-table tr:last-child {
    border-bottom: none !important;
  }

  .choir-leadership-table td {
    padding: 0;
    border: none !important;
    background-color: transparent !important;
  }

  .choir-leadership-table td.cell-pos {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.925rem;
    font-weight: 600;
    color: #22223B;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    display: block;
    word-break: break-word;
  }

  .choir-leadership-table td.cell-name {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.925rem;
    font-weight: 400;
    color: #5C544A;
    line-height: 1.35;
    display: block;
    word-break: break-word;
  }

  /* Multi-name roles: Vertical list (one name per line, all names 100% visible) */
  .choir-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .choir-members-list div {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.925rem;
    font-weight: 400;
    color: #5C544A;
    line-height: 1.35;
    white-space: normal;
  }

/* ==========================================================================
   EXECUTIVE COMMITTEE TABLE STYLES (executive_committee.html)
   ========================================================================== */

.exec-page-wrapper {
  background-color: #FAF8F5;
  min-height: calc(100vh - 80px);
}

/* 1. Hero Section */
.exec-hero-section {
  position: relative;
  background-color: #FAF8F5;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(201, 173, 167, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(74, 78, 105, 0.25) 0%, transparent 40%);
  padding: 3.5rem 0 3rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
  text-align: center;
}

.exec-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.exec-hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: #9A8C98;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.exec-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 2.85rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 0.75rem 0;
  line-height: 1.15;
}

.exec-hero-line {
  width: 54px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
  margin: 0 auto 1.25rem auto;
}

.exec-hero-desc {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5C544A;
  margin: 0;
}

/* Sections Styling */
.exec-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.06);
}

.exec-section:last-of-type {
  border-bottom: none;
}

.exec-section-header {
  margin-bottom: 2rem;
}

.exec-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: #22223B;
  margin: 0 0 0.4rem 0;
}

.exec-title-accent {
  width: 42px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
}

/* Elegant Table Styling */
.exec-table-wrap {
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(74, 78, 105, 0.6);
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.04);
  overflow: hidden;
}

.exec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.exec-table th {
  background-color: #C9ADA7;
  color: #22223B;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.1rem 1.5rem;
  border-bottom: 2px solid rgba(34, 34, 59, 0.1);
}

.exec-table td {
  padding: 1rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: #5C544A;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
  line-height: 1.5;
}

.exec-table tr:last-child td {
  border-bottom: none;
}

.exec-table tr:nth-child(even) {
  background-color: #FAF8F2;
}

.exec-table td.cell-title {
  font-weight: 600;
  color: #22223B;
  width: 40%;
}

.exec-table td.cell-name {
  font-weight: 500;
  color: #3D352B;
}

/* Mobile Stacked Definition-List View (<= 640px) */
@media (max-width: 640px) {
  .exec-table-wrap {
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .exec-table, 
  .exec-table tbody, 
  .exec-table tr, 
  .exec-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .exec-table thead {
    display: none;
  }

  .exec-table tr {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(34, 34, 59, 0.12) !important;
    margin-bottom: 0;
  }

  .exec-table tr:last-child {
    border-bottom: none !important;
  }

  .exec-table td {
    padding: 0;
    border: none !important;
    background-color: transparent !important;
  }

  .exec-table td.cell-title {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: #22223B;
    margin-bottom: 0.3rem;
    line-height: 1.35;
  }

  .exec-table td.cell-name {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.975rem;
    font-weight: 400;
    color: #5C544A;
    line-height: 1.45;
  }
}

/* Highlight section glow animation on button navigation */
.highlight-section {
  animation: sectionHighlightPulse 1.5s ease-out;
}

@keyframes sectionHighlightPulse {
  0% {
    outline: 3px solid #D89169;
    box-shadow: 0 0 30px rgba(216, 145, 105, 0.4);
  }
  100% {
    outline: 3px solid transparent;
    box-shadow: none;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE & TOUCH INTERACTIVITY OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Touch Target Sizing (Min 44px x 44px for iOS/Android guidelines) */
  button, 
  a.btn, 
  .nav-link, 
  .dropdown-item, 
  .icon-btn-action, 
  .events-arrow-btn, 
  .bearers-arrow-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  /* 2. Mobile Touch Swipable Carousels with Scroll Snap */
  .hero-events-carousel-track,
  .bearers-grid,
  .events-carousel-track {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .hero-event-card,
  .bearer-card {
    scroll-snap-align: center;
    flex: 0 0 88% !important;
    min-width: 280px !important;
  }

  /* 3. Mobile Navigation Drawer Scrolling */
  .mobile-menu-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
    padding-bottom: 3rem;
  }
}

/* ==========================================================================
   🔴 FLOATING LIVE STREAM WIDGET (Frosted Glass & Pulsating Red Dot)
   ========================================================================== */
.live-stream-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(224, 82, 67, 0.25);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(224, 82, 67, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #22223B;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

[data-theme="dark"] .live-stream-widget {
  background: rgba(27, 22, 21, 0.85);
  border-color: rgba(224, 82, 67, 0.35);
  color: #F4F0EB;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(224, 82, 67, 0.2);
}

.live-stream-widget:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(224, 82, 67, 0.5);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12), 0 0 25px rgba(224, 82, 67, 0.35);
}

.live-stream-dot {
  width: 9px;
  height: 9px;
  background-color: #E05243;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(224, 82, 67, 0.7);
  animation: pulse-live-red 1.8s infinite;
}

@keyframes pulse-live-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(224, 82, 67, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(224, 82, 67, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(224, 82, 67, 0);
  }
}

.live-stream-arrow {
  transition: transform 0.3s ease;
}

.live-stream-widget:hover .live-stream-arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .live-stream-widget {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   ANNPOUNCEMENTS PAGE STYLES (Mockup Design System Match)
   ========================================================================== */

/* 1. Hero Section */
.announcements-hero-section {
  background-color: #FAF8F2;
  padding: 3.5rem 0 3rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.06);
}

.announcements-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-sizing: border-box;
}

.announcements-hero-content {
  flex: 1 1 55%;
  min-width: 0;
}

.announcements-hero-label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: #C87D32;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.4rem;
}

.announcements-hero-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 700;
  color: #3D352B;
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
}

.announcements-hero-accent {
  width: 48px;
  height: 3px;
  background-color: #C9ADA7;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.announcements-hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: #5C544A;
  max-width: 520px;
  line-height: 1.55;
  margin: 0;
}

.announcements-hero-img-col {
  flex: 0 0 460px;
  width: 460px;
  height: 300px;
  border-radius: 180px 0 0 180px;
  overflow: hidden;
  box-shadow: -8px 12px 32px rgba(34, 34, 59, 0.08);
}

.announcements-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. Search and Filter Bar */
.announcements-filter-section {
  background-color: #FAF8F2;
  padding: 1.5rem 0 2.5rem 0;
}

.announcements-filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.announcements-search-wrap {
  position: relative;
  flex: 0 0 280px;
  max-width: 320px;
}

.announcements-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 30px;
  border: 1px solid rgba(34, 34, 59, 0.18);
  background-color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #3D352B;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(34, 34, 59, 0.03);
  box-sizing: border-box;
}

.announcements-search-input:focus {
  outline: none;
  border-color: #3E6837;
  box-shadow: 0 0 0 3px rgba(62, 104, 55, 0.15);
}

.announcements-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  stroke: #9A8C98;
  pointer-events: none;
}

.announcements-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.announcement-pill {
  padding: 0.6rem 1.35rem;
  border-radius: 25px;
  border: none;
  background-color: #F4F0E4;
  color: #3D352B;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-pill:hover {
  background-color: #E8E2D2;
  color: #3D352B;
}

.announcement-pill.active {
  background-color: #3E6837 !important;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(62, 104, 55, 0.22);
}

/* 3. Feed Cards */
.announcements-feed-section {
  padding: 1.5rem 0 4rem 0;
  background-color: #FAF8F2;
  min-height: 500px;
}

.announcements-feed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-sizing: border-box;
}

.announcement-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(74, 78, 105, 0.6);
  box-shadow: 0 3px 12px rgba(34, 34, 59, 0.03);
  padding: 1.25rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.07);
  border-color: rgba(74, 78, 105, 0.9);
}

.announcement-card-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.announcement-card-icon-wrap.category-worship {
  background-color: #EAF3E7;
  color: #3E6837;
}

.announcement-card-icon-wrap.category-events {
  background-color: #FDF2E7;
  color: #D87D32;
}

.announcement-card-icon-wrap.category-news {
  background-color: #EBF3F9;
  color: #2B6CB0;
}

.announcement-card-icon-wrap.category-others {
  background-color: #E8F6F4;
  color: #0D9488;
}

.announcement-card-content {
  min-width: 0;
}

.announcement-badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.announcement-badge.badge-worship {
  background-color: #DCEBD7;
  color: #2E5228;
}

.announcement-badge.badge-events {
  background-color: #FADEC9;
  color: #A45213;
}

.announcement-badge.badge-news {
  background-color: #D3E5F5;
  color: #1A4978;
}

.announcement-badge.badge-others {
  background-color: #D0EFEA;
  color: #0A6B62;
}

.announcement-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #3D352B;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.announcement-card-title a {
  color: #3D352B;
  text-decoration: none;
  transition: color 0.2s ease;
}

.announcement-card-title a:hover {
  color: #E0954A;
}

.announcement-card-summary {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #5C544A;
  margin: 0;
  line-height: 1.5;
}

.announcement-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 140px;
  text-align: right;
  flex-shrink: 0;
}

.announcement-date {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: #5C544A;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.announcement-read-more {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: #E0954A;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.announcement-read-more:hover {
  gap: 0.55rem;
  color: #C87D32;
}

/* 4. Pagination */
.announcements-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

.announcement-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: #F4F0E4;
  color: #3D352B;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.announcement-page-btn:hover:not(.active):not(:disabled) {
  background-color: #E8E2D2;
}

.announcement-page-btn.active {
  background-color: #3E6837 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(62, 104, 55, 0.25);
}

.announcement-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.announcement-page-ellipsis {
  padding: 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: #5C544A;
}

.announcements-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #FFFFFF;
  border-radius: 14px;
  border: 1px solid rgba(74, 78, 105, 0.6);
  color: #5C544A;
  font-family: var(--font-ui);
  font-size: 1rem;
  display: none;
}

/* 5. Responsive Rules */
@media (max-width: 991px) {
  .announcements-hero-container {
    gap: 2rem;
  }

  .announcements-hero-title {
    font-size: 2.4rem;
  }

  .announcements-hero-img-col {
    flex: 0 0 340px;
    width: 340px;
    height: 250px;
    border-radius: 140px 0 0 140px;
  }

  .announcement-card {
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
  }

  .announcement-card-meta {
    grid-column: 2 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(34, 34, 59, 0.12);
  }
}

@media (max-width: 767px) {
  .announcements-hero-section {
    padding: 2rem 0 1.5rem 0;
  }

  .announcements-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .announcements-hero-content {
    width: 100%;
  }

  .announcements-hero-title {
    font-size: 2.1rem;
  }

  .announcements-hero-img-col {
    width: 100%;
    max-width: 340px;
    height: 180px;
    border-radius: 120px 120px 0 0;
    margin: 0 auto;
  }

  .announcements-filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .announcements-search-wrap {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .announcements-pills-wrap {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
  }

  .announcement-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
  }

  .announcement-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }

  .announcement-card-icon-wrap {
    width: 54px;
    height: 54px;
  }

  .announcement-card-header-mobile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .announcement-card-meta {
    grid-column: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(34, 34, 59, 0.12);
  }
}

.announcements-results-summary {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #5C544A;
  margin-top: 1.25rem;
  font-weight: 500;
  display: none;
}

/* Breadcrumb Styling */
.announcements-breadcrumb-bar {
  background-color: #FAF8F2;
  padding: 1.25rem 0 0.5rem 0;
}

.announcements-breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.announcements-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #5C544A;
}

.announcements-breadcrumb a {
  color: #22223B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.announcements-breadcrumb a:hover {
  color: #E0954A;
  text-decoration: underline;
}

.announcements-breadcrumb .breadcrumb-separator {
  color: #A0988E;
  font-size: 0.8rem;
}

.announcements-breadcrumb .breadcrumb-item.active {
  color: #9A8C98;
  font-weight: 600;
}

/* ==========================================================================
   ANNOUNCEMENT DETAIL PAGE STYLES
   ========================================================================== */
.announcement-detail-section {
  background-color: #FAF8F2;
  padding: 2rem 0 4rem 0;
  min-height: 70vh;
}

.announcement-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Back Link (Above Breadcrumb) */
.back-announcements-link-wrap {
  margin-bottom: 0.85rem;
}

.back-announcements-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: #22223B;
  text-decoration: none;
  padding: 0.4rem 0;
  min-height: 44px;
  box-sizing: border-box;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-announcements-link:hover {
  color: #E0954A;
  transform: translateX(-3px);
}

.back-announcements-link svg {
  transition: transform 0.2s ease;
}

.back-announcements-link:hover svg {
  transform: translateX(-3px);
}

/* Detail Breadcrumb */
.announcement-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0 0 1.75rem 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #5C544A;
}

.announcement-detail-breadcrumb a {
  color: #22223B;
  text-decoration: none;
  font-weight: 500;
}

.announcement-detail-breadcrumb a:hover {
  color: #E0954A;
  text-decoration: underline;
}

.announcement-detail-breadcrumb .breadcrumb-sep {
  color: #A0988E;
}

.announcement-detail-breadcrumb .breadcrumb-current {
  color: #9A8C98;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Detail Header */
.announcement-detail-header {
  margin-bottom: 2rem;
}

.announcement-detail-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.announcement-detail-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  color: #3D352B;
  line-height: 1.25;
  margin: 0 0 0.85rem 0;
  overflow-wrap: break-word;
}

.announcement-detail-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #7A7267;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.announcement-detail-summary {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  line-height: 1.6;
  color: #5C544A;
  font-weight: 500;
  margin: 0;
}

/* Featured Image */
.announcement-detail-featured-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.25rem;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.08);
}

.announcement-detail-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Announcement Body Content */
.announcement-detail-body {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3D352B;
  margin-bottom: 3rem;
}

.announcement-detail-body p {
  margin-bottom: 1.35rem;
}

.announcement-detail-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #22223B;
  margin: 2rem 0 1rem 0;
}

.announcement-detail-body ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
}

.announcement-detail-body li {
  margin-bottom: 0.6rem;
}

.announcement-detail-body a {
  color: #E0954A;
  text-decoration: underline;
  font-weight: 500;
}

.announcement-detail-body a:hover {
  color: #22223B;
}

/* Attachments Section */
.announcement-attachments-section {
  background-color: #FFFFFF;
  border: 1px solid rgba(34, 34, 59, 0.12);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 4px 20px rgba(34, 34, 59, 0.04);
}

.attachments-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #22223B;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: #FAF8F2;
  border: 1px solid rgba(34, 34, 59, 0.1);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.attachment-card:hover {
  border-color: #E0954A;
  box-shadow: 0 6px 16px rgba(34, 34, 59, 0.08);
  transform: translateY(-2px);
}

.attachment-info-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.attachment-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #FDF2E7;
  color: #C87D32;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attachment-text-meta {
  min-width: 0;
}

.attachment-name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: #3D352B;
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-type-size {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: #7A7267;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.attachment-type-tag {
  background-color: rgba(200, 125, 50, 0.12);
  color: #C87D32;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.attachment-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #3E6837;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.attachment-download-btn:hover {
  background-color: #2E5228;
}

/* Mobile Accordion for > 3 Attachments */
.attachments-accordion-wrap {
  display: none;
}

.attachments-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FAF8F2;
  border: 1px solid rgba(34, 34, 59, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #22223B;
  cursor: pointer;
}

.attachments-accordion-panel {
  display: none;
  padding-top: 1rem;
}

.attachments-accordion-wrap.open .attachments-accordion-panel {
  display: block;
}

.attachments-accordion-wrap.open .attachments-accordion-trigger svg {
  transform: rotate(180deg);
}

@media (max-width: 767px) {
  .announcement-detail-section {
    padding: 1.25rem 0 3rem 0;
  }

  .announcement-detail-container {
    padding: 0 1rem;
  }

  .back-announcements-link {
    width: 100%;
  }

  .announcement-detail-title {
    font-size: 1.65rem;
  }

  .announcement-detail-summary {
    font-size: 1rem;
  }

  .announcement-detail-body {
    font-size: 1rem;
  }

  .attachments-grid {
    grid-template-columns: 1fr;
  }

  .attachment-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .attachment-name {
    white-space: normal;
  }

  .attachment-download-btn {
    width: 100%;
    justify-content: center;
  }

  /* When > 3 attachments exist on mobile, show accordion wrapper */
  .has-many-attachments .attachments-grid-desktop {
    display: none;
  }

  .has-many-attachments .attachments-accordion-wrap {
    display: block;
  }
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-hero-section {
  background-color: #FAF8F2;
  padding: 3.5rem 0 4rem 0;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08);
}

.contact-hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   MINISTRIES & SUBPAGES DARK MODE ADAPTATIONS
   ========================================================================== */
[data-theme="dark"] .choir-hero-section {
  background-color: transparent !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(105, 81, 76, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(68, 73, 107, 0.45) 0%, transparent 50%) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .choir-hero-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .choir-hero-desc {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .choir-hero-img-col {
  border-color: var(--color-border) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .choir-breadcrumb,
[data-theme="dark"] .choir-breadcrumb a {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .choir-section {
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .choir-section-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .choir-about-text p {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .choir-quote-block {
  background-color: var(--color-bg-secondary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .choir-quote-text {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .choir-quote-cite {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .choir-timings-card {
  background-color: var(--color-card-bg) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .choir-timings-header {
  background-color: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .choir-timings-table tr {
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .choir-timings-table td {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .choir-timings-table td.cell-label {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .choir-leadership-wrap {
  background-color: var(--color-bg-secondary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .choir-leadership-table th {
  background-color: var(--color-card-bg) !important;
  color: var(--color-text-primary) !important;
  border-bottom: 1.5px solid var(--color-border) !important;
}

[data-theme="dark"] .choir-leadership-table td {
  color: var(--color-text-secondary) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .choir-leadership-table td.cell-pos {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .choir-leadership-table td.cell-name {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .choir-leadership-table tr:nth-child(even) {
  background-color: var(--color-bg-secondary) !important;
}

[data-theme="dark"] .choir-leadership-table tr:nth-child(odd) {
  background-color: var(--color-bg-primary) !important;
}

[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .choir-event-card,
[data-theme="dark"] .gallery-card-new,
[data-theme="dark"] .gallery-card {
  background-color: var(--color-card-bg) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .jmtc-event-body,
[data-theme="dark"] .choir-event-body {
  background-color: var(--color-card-bg) !important;
}

[data-theme="dark"] .jmtc-event-img-wrap,
[data-theme="dark"] .choir-event-img-wrap {
  background-color: var(--color-bg-primary) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

[data-theme="dark"] .jmtc-event-title,
[data-theme="dark"] .choir-event-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .jmtc-event-meta,
[data-theme="dark"] .choir-event-meta {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .jmtc-event-desc {
  color: var(--color-text-muted) !important;
}

[data-theme="dark"] .jmtc-carousel-btn {
  background-color: var(--color-card-bg) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .jmtc-carousel-btn:hover:not(:disabled) {
  background-color: var(--color-btn-primary-bg) !important;
  color: var(--color-btn-primary-text) !important;
  border-color: var(--color-btn-primary-bg) !important;
}

[data-theme="dark"] .jmtc-carousel-btn:disabled {
  opacity: 0.25 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   VICAR PAGE DARK MODE ADAPTATIONS
   ========================================================================== */
[data-theme="dark"] .vicar-hero-section {
  background-color: transparent !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(105, 81, 76, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(68, 73, 107, 0.45) 0%, transparent 50%) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .vicar-hero-name {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .vicar-hero-eyebrow {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .vicar-detail-label {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .vicar-detail-val {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .vicar-profile-img-wrap {
  border-color: var(--color-border) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .vicar-about-section {
  background-color: var(--color-bg-primary) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .vicar-about-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .vicar-about-text p {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .vicar-family-img-wrap {
  background-color: var(--color-bg-secondary) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .vicar-message-section {
  background-color: var(--color-bg-primary) !important;
  border-top-color: var(--color-border) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .vicar-message-container {
  background-color: var(--color-bg-secondary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .vicar-message-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .vicar-message-body p {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .vicar-message-botanical,
[data-theme="dark"] .vicar-hero-watermark-left,
[data-theme="dark"] .vicar-hero-watermark-right {
  stroke: rgba(224, 149, 74, 0.25) !important;
  opacity: 0.15 !important;
}

/* ==========================================================================
   EXECUTIVE COMMITTEE PAGE DARK MODE ADAPTATIONS
   ========================================================================== */
[data-theme="dark"] .exec-hero-section {
  background-color: transparent !important;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(105, 81, 76, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(68, 73, 107, 0.45) 0%, transparent 50%) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .exec-hero-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .exec-hero-desc {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .exec-section {
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .exec-section-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .exec-table-wrap {
  background-color: var(--color-bg-secondary) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .exec-table th {
  background-color: var(--color-card-bg) !important;
  color: var(--color-text-primary) !important;
  border-bottom: 1.5px solid var(--color-border) !important;
}

[data-theme="dark"] .exec-table td {
  color: var(--color-text-secondary) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .exec-table td.cell-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .exec-table td.cell-name {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .exec-table tr:nth-child(even) {
  background-color: var(--color-bg-secondary) !important;
}

[data-theme="dark"] .exec-table tr:nth-child(odd) {
  background-color: var(--color-bg-primary) !important;
}

/* ==========================================================================
   ANNOUNCEMENTS FEED PAGE DARK MODE ADAPTATIONS
   ========================================================================== */
[data-theme="dark"] .announcement-pill {
  background-color: var(--color-card-bg) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .announcement-pill:hover {
  background-color: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .announcement-pill.active {
  background-color: var(--color-btn-primary-bg) !important;
  color: var(--color-btn-primary-text) !important;
  border-color: var(--color-btn-primary-bg) !important;
}

[data-theme="dark"] .announcement-card {
  background-color: var(--color-card-bg) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .announcement-card-title a {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .announcement-card-summary {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .announcement-date {
  color: var(--color-text-muted) !important;
}

[data-theme="dark"] .announcement-read-more {
  color: var(--color-accent-highlight) !important;
}

[data-theme="dark"] .announcement-page-btn {
  background-color: var(--color-card-bg) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .announcement-page-btn:hover:not(.active):not(:disabled) {
  background-color: var(--color-bg-secondary) !important;
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .announcement-page-btn.active {
  background-color: var(--color-btn-primary-bg) !important;
  color: var(--color-btn-primary-text) !important;
  border-color: var(--color-btn-primary-bg) !important;
}

[data-theme="dark"] .announcement-detail-breadcrumb,
[data-theme="dark"] .announcement-detail-breadcrumb a {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .announcement-detail-title {
  color: var(--color-text-primary) !important;
}

[data-theme="dark"] .announcement-detail-summary {
  color: var(--color-text-secondary) !important;
}

[data-theme="dark"] .announcement-detail-content {
  color: var(--color-text-primary) !important;
}

/* Footer Social Icons Row */
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-link-item {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  width: fit-content;
}

.footer-social-link-item svg {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-social-link-item:hover {
  color: #C9ADA7 !important;
}

.footer-social-link-item:hover svg {
  color: #C9ADA7 !important;
  transform: scale(1.1);
}

/* Stay Connected Social Links */

@media (min-width: 1024px) {
  .stay-connected-mag-panel.active-panel {
    width: 100%;
  }
  .stay-connected-carousel-stage {
    max-width: 1240px;
    margin: 0 auto;
  }
  .mag-carousel-viewport {
    width: 100%;
  }
  .mag-carousel-track {
    gap: 1.5rem !important;
  }
  .mag-content-card {
    flex: 0 0 calc(25% - 1.125rem) !important;
    max-width: 300px !important;
  }
}

.stay-connected-social-links {
  display: flex;
  gap: 12px;
  margin-top: 1.25rem;
  margin-bottom: 1.75rem;
}

.stay-connected-social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stay-connected-social-btn.youtube-btn {
  background: rgba(201, 173, 167, 0.12);
  color: #C9ADA7;
  border-color: rgba(201, 173, 167, 0.3);
}

.stay-connected-social-btn.youtube-btn:hover {
  background: rgba(201, 173, 167, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 173, 167, 0.15);
}

.stay-connected-social-btn.instagram-btn {
  background: rgba(242, 233, 228, 0.12);
  color: #F2E9E4;
  border-color: rgba(242, 233, 228, 0.3);
}

.stay-connected-social-btn.instagram-btn:hover {
  background: rgba(242, 233, 228, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 233, 228, 0.15);
}

/* Modal Content Formatting */
[data-theme="dark"] .modal-content-text {
  color: var(--color-text-secondary) !important;
}

.modal-content-text p {
  margin-bottom: 1rem;
}

.modal-content-text p:last-child {
  margin-bottom: 0;
}

.modal-content-text ul, 
.modal-content-text ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.modal-content-text li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

.modal-content-text strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

.modal-content-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  display: block;
}
/* ── Modal Footer Button Accessibility ── */
.modal-footer-actions .btn-secondary,
.modal-footer-actions .btn-primary {
  min-height: 46px;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

[data-theme="dark"] .modal-footer-actions .btn-secondary {
  background: rgba(201, 173, 167, 0.12);
  color: #F2E9E4;
  border-color: rgba(201, 173, 167, 0.3);
}

[data-theme="dark"] .modal-footer-actions .btn-primary {
  background: #C9ADA7;
  color: #22223B;
  border-color: #C9ADA7;
}

[data-theme="dark"] .modal-footer-actions .btn-primary:hover {
  background: #F2E9E4;
  color: #22223B;
}

#vicar-team .section-header,
#vicar-team .section-title-group {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#vicar-team .sub-title {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

@media (min-width: 768px) {
  .bearer-card {
    flex: 0 0 240px !important;
    width: 240px !important;
    height: 380px !important; /* Uniform height, content fits floating glass overlay */
  }
}

/* ── Stay Connected Side Carousel Arrows ── */
.stay-connected-mag-panel {
  position: relative !important;
}

.panel-header-row {
  position: static !important;
  margin-bottom: 0 !important;
}

.mag-carousel-controls {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: -75px !important;
  right: -75px !important;
  width: calc(100% + 150px) !important;
  display: flex !important;
  justify-content: space-between !important;
  pointer-events: none !important;
  z-index: 100 !important;
}

.mag-arrow-btn {
  pointer-events: auto !important;
  background-color: rgba(34, 34, 59, 0.75) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.mag-arrow-prev {
  left: 0 !important;
}

.mag-arrow-next {
  right: 0 !important;
}

@media (max-width: 1360px) {
  .mag-carousel-controls {
    left: -20px !important;
    right: -20px !important;
    width: calc(100% + 40px) !important;
  }
  .mag-arrow-btn {
    background-color: rgba(34, 34, 59, 0.85) !important;
  }
}

@media (max-width: 1024px) {
  .mag-carousel-controls {
    left: 10px !important;
    right: 10px !important;
    width: calc(100% - 20px) !important;
  }
}

@media (max-width: 767px) {
  .mag-carousel-controls {
    display: none !important; /* Hide on mobile swipe views */
  }
}

/* ── Modal Buttons Refined with Theme/Upcoming Events Color ── */
.modal-footer-actions .btn-primary {
  background-color: #4A4E69 !important; /* Matches upcoming events slate navy */
  color: #FFFFFF !important;
  border: none !important;
  transition: background-color 0.25s ease, transform 0.2s ease !important;
}

.modal-footer-actions .btn-primary:hover {
  background-color: #22223B !important; /* Darker slate on hover */
  transform: translateY(-1px);
}

.modal-footer-actions .btn-secondary {
  background-color: transparent !important;
  color: #4A4E69 !important;
  border: 1.5px solid #4A4E69 !important;
  transition: all 0.25s ease !important;
}

.modal-footer-actions .btn-secondary:hover {
  background-color: rgba(74, 78, 105, 0.08) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .modal-footer-actions .btn-primary {
  background-color: #C9ADA7 !important; /* Muted rose for dark mode */
  color: #22223B !important;
  border: none !important;
}

[data-theme="dark"] .modal-footer-actions .btn-primary:hover {
  background-color: #F2E9E4 !important;
  color: #22223B !important;
}

[data-theme="dark"] .modal-footer-actions .btn-secondary {
  background-color: transparent !important;
  color: #C9ADA7 !important;
  border: 1.5px solid #C9ADA7 !important;
}

[data-theme="dark"] .modal-footer-actions .btn-secondary:hover {
  background-color: rgba(201, 173, 167, 0.12) !important;
}

/* ── Bearer Info Mini Contact Action Buttons ── */
.bearer-info .icon-btn-action {
  min-width: 32px !important;
  min-height: 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(4px) !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  margin: 0 !important;
  transition: all 0.25s ease !important;
}

.bearer-info .icon-btn-action:hover {
  background: #FFFFFF !important;
  color: #22223B !important;
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .bearer-info .icon-btn-action {
  background: rgba(201, 173, 167, 0.2) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .bearer-info .icon-btn-action:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
}

/* ── Theme Harmonization Comment ──
   Successfully aligned subpages (timings, leadership tables, and cards)
   with the Sherwood Muted Lavender Rose palette (#22223B, #4A4E69, #9A8C98, #C9ADA7, #F2E9E4).
*/

/* ── Mobile Layout Overrides for Events Section ── */
@media (max-width: 767px) {
  .events-section .hero-event-card {
    flex: 0 0 85% !important; /* Single card width layout on mobile */
    min-width: 275px !important;
    max-width: none !important;
    transform: scale(0.95) !important;
    opacity: 0.6 !important;
  }
  .events-section .hero-event-card.active-center {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

/* ── Dark Mode Overrides for Upcoming Events ── */
[data-theme="dark"] .events-section {
  background: linear-gradient(160deg, #1A1A2C 0%, #2C2F47 100%) !important;
  border-top: none;
  border-bottom: none;
}

[data-theme="dark"] .events-section-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .events-section-subtitle {
  color: rgba(242, 233, 228, 0.8) !important;
}

[data-theme="dark"] .events-section .hero-event-card {
  background: rgba(242, 233, 228, 0.07) !important;
  border: 1px solid rgba(201, 173, 167, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .events-section .hero-event-card.active-center {
  background: rgba(242, 233, 228, 0.13) !important;
  border-color: rgba(201, 173, 167, 0.45) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .events-section .hero-event-card-title {
  color: #F2E9E4 !important;
}

[data-theme="dark"] .events-section .hero-event-card-desc {
  color: rgba(242, 233, 228, 0.85) !important;
}

[data-theme="dark"] .events-section .event-action-link {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .events-section .event-action-link svg {
  stroke: #C9ADA7 !important;
}

[data-theme="dark"] .events-section .event-action-link:hover {
  color: #F2E9E4 !important;
}

[data-theme="dark"] .events-section .hero-carousel-arrow {
  background: rgba(201, 173, 167, 0.15) !important;
  border: 1px solid rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .events-section .hero-carousel-arrow:hover {
  background: rgba(201, 173, 167, 0.3) !important;
  border-color: rgba(201, 173, 167, 0.6) !important;
}

[data-theme="dark"] .events-section .hero-carousel-progress {
  color: rgba(242, 233, 228, 0.8) !important;
}

[data-theme="dark"] .events-section .hero-progress-track {
  background: rgba(242, 233, 228, 0.15) !important;
}

[data-theme="dark"] .events-section .hero-progress-fill-bar {
  background: #C9ADA7 !important;
}

/* ── Contrasting Dark Sections for Ministry Pages ── */
.choir-section-dark {
  background: linear-gradient(135deg, #22223B 0%, #353853 100%) !important;
  color: #FFFFFF !important;
  border-top: 1px solid rgba(74, 78, 105, 0.15);
  border-bottom: 1px solid rgba(74, 78, 105, 0.15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.choir-section-dark .choir-section-title {
  color: #FFFFFF !important;
}

.choir-section-dark .choir-title-accent {
  background: #C9ADA7 !important;
}

/* Dark Section Table Overrides */
.choir-section-dark .choir-leadership-table {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.choir-section-dark .choir-leadership-table th {
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

.choir-section-dark .choir-leadership-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  font-size: 1rem !important;
}

.choir-section-dark .choir-leadership-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

.choir-section-dark .choir-leadership-table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.choir-section-dark .choir-leadership-table td.cell-pos {
  color: #EAD5D0 !important; /* Brightened rose color for AAA grade readability contrast */
  font-weight: 600 !important;
}

.choir-section-dark .choir-leadership-table td.cell-name {
  color: #FFFFFF !important;
  font-weight: 500 !important;
}

/* Forces committee member listing text to render in crisp white on dark background */
.choir-section-dark .choir-members-list div {
  color: #FFFFFF !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
}

/* Dark theme specific override for dark section */
[data-theme="dark"] .choir-section-dark {
  background: linear-gradient(135deg, #161625 0%, #25283B 100%) !important;
  border-top: none;
  border-bottom: none;
}

/* ── Graceful Navbar Collapse to prevent theme toggle clipping ── */
@media (max-width: 1080px) {
  .nav-grid-menu {
    display: none !important;
  }
  .hamburger-toggle {
    display: block !important;
  }
  .nav-grid-container {
    grid-template-columns: 1fr auto !important;
  }
  .nav-grid-cell.nav-grid-actions {
    display: flex !important;
    justify-content: flex-end !important;
  }
}

/* ── Event Card Description styling with proper contrast ── */
.jmtc-event-desc {
  font-family: var(--font-ui) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  color: var(--color-text-secondary, #4A4E69) !important; /* Clear slate gray with excellent contrast */
  margin-top: 0.5rem !important;
}


/* =====================================================================
   V3.3 FULL PALETTE DESIGN SYSTEM OVERRIDE
   Palette: #22223B | #4A4E69 | #9A8C98 | #C9ADA7 | #F2E9E4
   ===================================================================== */

/* ── BODY BASE ── */
body {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
}
[data-theme="dark"] body {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
}

/* ── SECTION ALTERNATION UTILITY CLASSES ── */
/* Light (cream) — default, warm off-white */
.section-light {
  background-color: #FAF8F5 !important;
  color: #22223B !important;
}
[data-theme="dark"] .section-light {
  background-color: #1C1C30 !important;
  color: #F2E9E4 !important;
}

/* Mid (soft lavender-grey) — alternating contrast */
.section-mid {
  background-color: #EDE8EC !important;
  color: #22223B !important;
}
[data-theme="dark"] .section-mid {
  background-color: #222338 !important;
  color: #F2E9E4 !important;
}

/* Dark (deep navy) — strong contrast anchor in dark mode, soft cream in light mode */
.section-dark {
  background-color: #FAF8F5 !important;
  color: #22223B !important;
}
[data-theme="dark"] .section-dark {
  background-color: #141421 !important;
  color: #F2E9E4 !important;
}

/* Section headings */
.section-light h1, .section-light h2, .section-light h3,
.section-light h4, .section-light h5 {
  color: #22223B !important;
}
.section-mid h1, .section-mid h2, .section-mid h3,
.section-mid h4, .section-mid h5 {
  color: #22223B !important;
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 {
  color: #22223B !important;
}
[data-theme="dark"] .section-dark h1,
[data-theme="dark"] .section-dark h2,
[data-theme="dark"] .section-dark h3,
[data-theme="dark"] .section-dark h4,
[data-theme="dark"] .section-dark h5 {
  color: #FFFFFF !important;
}
[data-theme="dark"] .section-light h1, [data-theme="dark"] .section-light h2,
[data-theme="dark"] .section-light h3, [data-theme="dark"] .section-mid h1,
[data-theme="dark"] .section-mid h2, [data-theme="dark"] .section-mid h3 {
  color: #F2E9E4 !important;
}

/* Section body text */
.section-light p, .section-light li { color: #4A4E69 !important; }
.section-mid p, .section-mid li { color: #4A4E69 !important; }
.section-dark p, .section-dark li { color: #4A4E69 !important; }
[data-theme="dark"] .section-dark p, [data-theme="dark"] .section-dark li { color: rgba(242, 233, 228, 0.85) !important; }
[data-theme="dark"] .section-light p, [data-theme="dark"] .section-mid p { color: #C9ADA7 !important; }

/* ── NAVBAR ── legacy override removed; overlay handled by .grid-navbar rules */

/* Nav links */
.nav-link, .nav-grid-menu a {
  color: #4A4E69 !important;
  font-weight: 500 !important;
}
.nav-link:hover, .nav-grid-menu a:hover,
.nav-link.active, .nav-grid-menu a.active {
  color: #22223B !important;
}
[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-grid-menu a {
  color: rgba(242, 233, 228, 0.85) !important;
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-grid-menu a:hover,
[data-theme="dark"] .nav-link.active {
  color: #C9ADA7 !important;
}

/* Brand name */
.brand-name {
  color: #22223B !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .brand-name {
  color: #F2E9E4 !important;
}

/* Theme toggle button — always visible */
.theme-toggle-btn {
  color: #4A4E69 !important;
  background: transparent !important;
  border: 1.5px solid rgba(74, 78, 105, 0.20) !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}
.theme-toggle-btn:hover {
  background: rgba(74, 78, 105, 0.08) !important;
  border-color: rgba(74, 78, 105, 0.35) !important;
  color: #22223B !important;
}
[data-theme="dark"] .theme-toggle-btn {
  color: #C9ADA7 !important;
  border-color: rgba(201, 173, 167, 0.25) !important;
}
[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(201, 173, 167, 0.12) !important;
  border-color: rgba(201, 173, 167, 0.5) !important;
  color: #F2E9E4 !important;
}
/* Ensure sun/moon icon SVGs are always correctly coloured */
.theme-toggle-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

/* Hamburger */
.hamburger-toggle {
  color: #22223B !important;
}
[data-theme="dark"] .hamburger-toggle {
  color: #F2E9E4 !important;
}

/* ── CARDS — ALL TYPES ── */
.jmtc-card,
.choir-event-card,
.gallery-card,
.gallery-card-new,
.announcement-card,
.mag-content-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 24px rgba(34, 34, 59, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease !important;
}
.jmtc-card:hover,
.choir-event-card:hover,
.gallery-card:hover,
.announcement-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(34, 34, 59, 0.10) !important;
  border-color: rgba(201, 173, 167, 0.45) !important;
}
[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .choir-event-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .gallery-card-new,
[data-theme="dark"] .announcement-card,
[data-theme="dark"] .mag-content-card {
  background-color: #2E2F4A !important;
  border-color: rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}
[data-theme="dark"] .jmtc-card:hover,
[data-theme="dark"] .choir-event-card:hover,
[data-theme="dark"] .announcement-card:hover {
  border-color: rgba(201, 173, 167, 0.4) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38) !important;
}

/* Card text */
.jmtc-event-title, .choir-event-title, .announcement-card-title a {
  color: #22223B !important;
  font-family: var(--font-display) !important;
}
[data-theme="dark"] .jmtc-event-title,
[data-theme="dark"] .choir-event-title,
[data-theme="dark"] .announcement-card-title a {
  color: #F2E9E4 !important;
}

.jmtc-event-meta, .choir-event-meta, .announcement-date {
  color: #9A8C98 !important;
}
[data-theme="dark"] .jmtc-event-meta,
[data-theme="dark"] .choir-event-meta,
[data-theme="dark"] .announcement-date {
  color: rgba(201, 173, 167, 0.75) !important;
}

.jmtc-event-desc {
  color: #4A4E69 !important;
  font-family: var(--font-ui) !important;
}
[data-theme="dark"] .jmtc-event-desc {
  color: rgba(242, 233, 228, 0.75) !important;
}

/* Card bodies */
.jmtc-event-body, .choir-event-body {
  background-color: transparent !important;
}
[data-theme="dark"] .jmtc-event-body,
[data-theme="dark"] .choir-event-body {
  background-color: transparent !important;
}

/* Gallery album cards (resources_gallery.html) */
.gallery-album-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 6px 24px rgba(34, 34, 59, 0.05) !important;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.gallery-album-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(34, 34, 59, 0.10) !important;
  border-color: rgba(201, 173, 167, 0.5) !important;
}
[data-theme="dark"] .gallery-album-card {
  background-color: #2E2F4A !important;
  border-color: rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}

.gallery-album-title {
  color: #22223B !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .gallery-album-title { color: #F2E9E4 !important; }

.gallery-album-desc {
  color: #4A4E69 !important;
  font-family: var(--font-ui) !important;
}
[data-theme="dark"] .gallery-album-desc { color: #C9ADA7 !important; }

.gallery-album-cta {
  color: #C9ADA7 !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .gallery-album-cta { color: #C9ADA7 !important; }

/* ── BUTTONS ── */
.btn-primary {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  transition: background-color 0.25s ease, transform 0.2s ease !important;
}
.btn-primary:hover {
  background-color: #4A4E69 !important;
  transform: translateY(-1px) !important;
}
[data-theme="dark"] .btn-primary {
  background-color: #C9ADA7 !important;
  color: #22223B !important;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: #F2E9E4 !important;
}

.btn-secondary {
  background-color: transparent !important;
  color: #22223B !important;
  border: 1.5px solid rgba(74, 78, 105, 0.35) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}
.btn-secondary:hover {
  background-color: rgba(74, 78, 105, 0.07) !important;
  border-color: #4A4E69 !important;
}
[data-theme="dark"] .btn-secondary {
  color: #F2E9E4 !important;
  border-color: rgba(201, 173, 167, 0.35) !important;
}
[data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(201, 173, 167, 0.10) !important;
  border-color: #C9ADA7 !important;
}

/* ── CAROUSEL NAVIGATION BUTTONS ── */
.jmtc-carousel-btn {
  background-color: #FFFFFF !important;
  color: #22223B !important;
  border: 1.5px solid rgba(74, 78, 105, 0.18) !important;
  box-shadow: 0 2px 10px rgba(34, 34, 59, 0.06) !important;
}
.jmtc-carousel-btn:hover:not(:disabled) {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
}
[data-theme="dark"] .jmtc-carousel-btn {
  background-color: #2E2F4A !important;
  color: #F2E9E4 !important;
  border-color: rgba(201, 173, 167, 0.2) !important;
}
[data-theme="dark"] .jmtc-carousel-btn:hover:not(:disabled) {
  background-color: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* ── TABLES (exec committee, choir office bearers) ── */
.choir-leadership-table,
.exec-table {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 4px 16px rgba(34, 34, 59, 0.05) !important;
}
.choir-leadership-table th,
.exec-table th {
  background-color: #22223B !important;
  color: #F2E9E4 !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 1rem 1.25rem !important;
  border-bottom: none !important;
}
.choir-leadership-table td,
.exec-table td {
  color: #22223B !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
  padding: 0.9rem 1.25rem !important;
  font-size: 0.95rem !important;
}
.choir-leadership-table tr:nth-child(even),
.exec-table tr:nth-child(even) {
  background-color: rgba(237, 232, 236, 0.5) !important;
}
.choir-leadership-table tr:nth-child(odd),
.exec-table tr:nth-child(odd) {
  background-color: #FFFFFF !important;
}
.choir-leadership-table td.cell-pos,
.exec-table td.cell-title {
  color: #4A4E69 !important;
  font-weight: 600 !important;
}
.choir-leadership-table td.cell-name,
.exec-table td.cell-name {
  color: #22223B !important;
}

/* Tables in dark mode */
[data-theme="dark"] .choir-leadership-table,
[data-theme="dark"] .exec-table {
  border-color: rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="dark"] .choir-leadership-table th,
[data-theme="dark"] .exec-table th {
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
}
[data-theme="dark"] .choir-leadership-table td,
[data-theme="dark"] .exec-table td {
  color: #F2E9E4 !important;
  border-bottom-color: rgba(201, 173, 167, 0.10) !important;
}
[data-theme="dark"] .choir-leadership-table tr:nth-child(even),
[data-theme="dark"] .exec-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
[data-theme="dark"] .choir-leadership-table tr:nth-child(odd),
[data-theme="dark"] .exec-table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
[data-theme="dark"] .choir-leadership-table td.cell-pos,
[data-theme="dark"] .exec-table td.cell-title {
  color: #C9ADA7 !important;
}
[data-theme="dark"] .choir-leadership-table td.cell-name,
[data-theme="dark"] .exec-table td.cell-name {
  color: #F2E9E4 !important;
}

/* ── OFFICE BEARERS DARK SECTION (choir-section-dark) ── */
.choir-section-dark {
  background: linear-gradient(145deg, #22223B 0%, #2E2F4A 60%, #22223B 100%) !important;
  color: #F2E9E4 !important;
  -webkit-font-smoothing: antialiased;
}
[data-theme="dark"] .choir-section-dark {
  background: linear-gradient(145deg, #141421 0%, #1C1C30 60%, #141421 100%) !important;
}
.choir-section-dark .choir-section-title { color: #FFFFFF !important; }
.choir-section-dark .choir-title-accent { background: #C9ADA7 !important; }

/* Table inside dark section */
.choir-section-dark .choir-leadership-table th {
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
  border-bottom: 2px solid rgba(255,255,255,0.15) !important;
}
.choir-section-dark .choir-leadership-table td {
  color: #F2E9E4 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}
.choir-section-dark .choir-leadership-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
.choir-section-dark .choir-leadership-table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
.choir-section-dark .choir-leadership-table td.cell-pos {
  color: #C9ADA7 !important;
  font-weight: 600 !important;
}
.choir-section-dark .choir-leadership-table td.cell-name {
  color: #FFFFFF !important;
  font-weight: 500 !important;
}
.choir-section-dark .choir-members-list div {
  color: #F2E9E4 !important;
  font-weight: 500 !important;
}

/* ── MINISTRY PAGE SECTIONS (alternating) ── */
/* About sections — light */
.choir-section:not(.choir-section-dark):not(.jmtc-carousel-section) {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .choir-section:not(.choir-section-dark):not(.jmtc-carousel-section) {
  background-color: #1C1C30 !important;
}

/* Timings card */
.choir-timings-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(34, 34, 59, 0.05) !important;
}
[data-theme="dark"] .choir-timings-card {
  background-color: #2E2F4A !important;
  border-color: rgba(201, 173, 167, 0.15) !important;
}

/* Upcoming events carousel sections on ministry pages */
.jmtc-carousel-section {
  background-color: #EDE8EC !important;
}
[data-theme="dark"] .jmtc-carousel-section {
  background-color: #222338 !important;
}

/* Carousel section headings */
.jmtc-carousel-section .choir-section-title {
  color: #22223B !important;
}
[data-theme="dark"] .jmtc-carousel-section .choir-section-title {
  color: #F2E9E4 !important;
}

/* ── OUR PARISH PAGE ── */
.parish-section {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .parish-section {
  background-color: #1C1C30 !important;
}
.parish-section.pastoral-section,
.parish-section.vicars-section {
  background-color: #EDE8EC !important;
}
[data-theme="dark"] .parish-section.pastoral-section,
[data-theme="dark"] .parish-section.vicars-section {
  background-color: #222338 !important;
}
.parish-section.history-section {
  background-color: #22223B !important;
  color: #F2E9E4 !important;
}
[data-theme="dark"] .parish-section.history-section {
  background-color: #141421 !important;
}
.parish-section.history-section h2,
.parish-section.history-section h3,
.parish-section.history-section p {
  color: rgba(242, 233, 228, 0.90) !important;
}
.parish-section.history-section h2 { color: #FFFFFF !important; }

/* ── VICAR PAGE ── */
.vicar-about-section {
  background-color: #EDE8EC !important;
}
[data-theme="dark"] .vicar-about-section {
  background-color: #222338 !important;
}
.vicar-message-section {
  background-color: #22223B !important;
}
[data-theme="dark"] .vicar-message-section {
  background-color: #141421 !important;
}

/* ── EXECUTIVE COMMITTEE PAGE ── */
.exec-section {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .exec-section {
  background-color: #1C1C30 !important;
}
.exec-section:nth-of-type(even) {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .exec-section:nth-of-type(even) {
  background-color: #222338 !important;
}
.exec-section-title {
  color: #22223B !important;
  font-family: var(--font-display) !important;
}
[data-theme="dark"] .exec-section-title { color: #F2E9E4 !important; }

/* ── ANNOUNCEMENTS PAGE ── */
.announcements-hero-section {
  background: linear-gradient(145deg, #22223B 0%, #4A4E69 100%) !important;
  color: #F2E9E4 !important;
}
.announcements-filter-section {
  background-color: #EDE8EC !important;
}
[data-theme="dark"] .announcements-filter-section {
  background-color: #222338 !important;
}
.announcements-feed-section {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .announcements-feed-section {
  background-color: #1C1C30 !important;
}

/* Announcement filter pills */
.announcement-pill {
  background-color: #FFFFFF !important;
  color: #4A4E69 !important;
  border: 1.5px solid rgba(74, 78, 105, 0.18) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}
.announcement-pill:hover {
  background-color: #EDE8EC !important;
  border-color: #4A4E69 !important;
  color: #22223B !important;
}
.announcement-pill.active {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
}
[data-theme="dark"] .announcement-pill {
  background-color: #2E2F4A !important;
  color: #C9ADA7 !important;
  border-color: rgba(201, 173, 167, 0.18) !important;
}
[data-theme="dark"] .announcement-pill.active {
  background-color: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* ── GALLERY PAGE ── */
.gallery-hero-header {
  background: linear-gradient(145deg, #22223B 0%, #4A4E69 100%) !important;
  padding: 8.5rem 0 4.5rem !important;
  color: #F2E9E4 !important;
}
.gallery-grid-container {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .gallery-grid-container {
  background-color: #1C1C30 !important;
}

/* ── RESOURCE PAGES (forms, kalpanas, lectionary, worship order) ── */
.resource-hero-section,
.resources-hero {
  background: linear-gradient(145deg, #22223B 0%, #4A4E69 100%) !important;
  color: #F2E9E4 !important;
}

/* ── SECTION TITLE ACCENTS (underline bars) ── */
.choir-title-accent,
.section-title-accent,
.title-accent-bar {
  background-color: #C9ADA7 !important;
}
.section-dark .choir-title-accent,
.section-dark .section-title-accent {
  background-color: #C9ADA7 !important;
}

/* ── STAY CONNECTED SECTION (index.html) ── */
.stay-connected-section {
  background: linear-gradient(145deg, #22223B 0%, #2E2F4A 100%) !important;
  color: #F2E9E4 !important;
}
[data-theme="dark"] .stay-connected-section {
  background: linear-gradient(145deg, #141421 0%, #1C1C30 100%) !important;
}

/* ── COMMUNITY STORY SECTION (index.html) ── */
.community-story-section {
  background-color: #EDE8EC !important;
}
[data-theme="dark"] .community-story-section {
  background-color: #222338 !important;
}

/* ── TEAM/VICAR SECTION (index.html) ── */
.team-section {
  background-color: #FAF8F5 !important;
}
[data-theme="dark"] .team-section {
  background-color: #1C1C30 !important;
}


/* ── TOAST NOTIFICATIONS ── */
.toast-notification {
  background-color: #22223B !important;
  color: #F2E9E4 !important;
  border: 1px solid rgba(201, 173, 167, 0.2) !important;
  border-radius: 12px !important;
}

/* ── MOBILE MENU DRAWER ── */
.mobile-menu-drawer, .nav-mobile-drawer {
  background-color: #22223B !important;
  color: #F2E9E4 !important;
}
.mobile-nav-link, .mobile-sublink {
  color: rgba(242, 233, 228, 0.85) !important;
}
.mobile-nav-link:hover, .mobile-sublink:hover {
  color: #C9ADA7 !important;
}

/* ── LIGHTBOX MODAL ── */
.lightbox-content {
  background-color: #22223B !important;
  border-radius: 20px !important;
}
.lightbox-title { color: #F2E9E4 !important; }

/* ── MOBILE OPTIMIZATION ── */
@media (max-width: 768px) {
  /* Cards go single column */
  .jmtc-card,
  .choir-event-card,
  .gallery-album-card {
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  /* Section heading sizes */
  .section-light h2, .section-mid h2, .section-dark h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }

  /* Reduce padding on sections */
  .choir-section, .parish-section, .exec-section,
  .announcements-filter-section, .announcements-feed-section {
    padding: 3rem 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .gallery-albums-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-album-card {
    border-radius: 14px !important;
  }
}

/* ── RESPONSIVE NAVBAR COLLAPSE (keeps toggle always visible) ── */
@media (max-width: 1080px) {
  .nav-grid-menu { display: none !important; }
  .hamburger-toggle { display: flex !important; }
  .nav-grid-container { grid-template-columns: 1fr auto !important; }
  .nav-grid-cell.nav-grid-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
  }
}

/* END V3.3 DESIGN SYSTEM OVERRIDE */




/* =====================================================================
   HOSTINGER SITE EXACT GLASSMORPHIC NAVBAR IMPLEMENTATION
   ===================================================================== */

/* ── Base Floating Grid Navbar ── */
.site-header,
.grid-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease !important;
}

/* ── Light Mode Scrolled State: Premium Alabaster Frosted Glass ── */
.grid-navbar.scrolled {
  background: rgba(242, 233, 228, 0.88) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 4px 24px rgba(34, 34, 59, 0.08) !important;
}

/* ── Dark Mode Base (Unscrolled): Transparent over Hero ── */
[data-theme="dark"] .site-header,
[data-theme="dark"] .grid-navbar {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ── Dark Mode Scrolled State: Deep Navy Glass ── */
[data-theme="dark"] .grid-navbar.scrolled {
  background: rgba(22, 22, 37, 0.85) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.18) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* ── Subpages with Light Tops — subtle glass backdrop when unscrolled ── */
body:not(.home-page) .grid-navbar:not(.scrolled) {
  background: rgba(250, 248, 245, 0.85) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}
[data-theme="dark"] body:not(.home-page) .grid-navbar:not(.scrolled) {
  background: rgba(22, 22, 37, 0.80) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.14) !important;
}

/* Subpages with dark hero headers (e.g. Gallery, Choir, Edavaka Mission, Vicar) */
body.has-dark-hero .grid-navbar:not(.scrolled),
.gallery-hero-header ~ .grid-navbar:not(.scrolled),
.choir-hero-section ~ .grid-navbar:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid transparent !important;
}

/* ── Nav Link Colors & Typography ── */
.nav-link {
  font-family: var(--font-ui) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 99px !important;
  transition: color 0.25s ease, background-color 0.25s ease !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Unscrolled homepage link color */
.grid-navbar:not(.scrolled) .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Scrolled light mode link color */
.grid-navbar.scrolled .nav-link {
  color: #22223B !important;
  text-shadow: none !important;
}

/* Subpages unscrolled light mode link color */
body:not(.home-page) .grid-navbar:not(.scrolled) .nav-link {
  color: #22223B !important;
  text-shadow: none !important;
}

/* Subpages with dark hero header unscrolled link color */
body.has-dark-hero .grid-navbar:not(.scrolled) .nav-link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Dark mode link colors across all states */
[data-theme="dark"] .nav-link,
[data-theme="dark"] .grid-navbar .nav-link,
[data-theme="dark"] .grid-navbar:not(.scrolled) .nav-link,
[data-theme="dark"] .grid-navbar.scrolled .nav-link {
  color: #F2E9E4 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Nav Link Hover & Active Pill Effects */
.nav-link:hover,
.nav-item.has-dropdown:hover .nav-link,
.nav-item.has-dropdown.open .nav-link {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.20) !important;
}

.grid-navbar.scrolled .nav-link:hover,
.grid-navbar.scrolled .nav-item.has-dropdown:hover .nav-link,
.grid-navbar.scrolled .nav-item.has-dropdown.open .nav-link {
  color: #4A4E69 !important;
  background: rgba(74, 78, 105, 0.10) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .grid-navbar .nav-link:hover,
[data-theme="dark"] .nav-item.has-dropdown:hover .nav-link,
[data-theme="dark"] .nav-item.has-dropdown.open .nav-link {
  color: #FFFFFF !important;
  background: rgba(201, 173, 167, 0.22) !important;
}

/* ── Brand Logo Text ── */
.brand-name {
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.grid-navbar.scrolled .brand-name {
  color: #22223B !important;
  text-shadow: none !important;
}
body:not(.home-page) .grid-navbar:not(.scrolled) .brand-name {
  color: #22223B !important;
  text-shadow: none !important;
}
[data-theme="dark"] .brand-name,
[data-theme="dark"] .grid-navbar.scrolled .brand-name {
  color: #FFFFFF !important;
}

/* ── Dropdown Panel Styling ── */
.dropdown-panel {
  background-color: #FFFFFF !important;
  border-radius: 14px !important;
  border-top: 3px solid #C9ADA7 !important;
  box-shadow: 0 14px 40px rgba(19, 40, 61, 0.16) !important;
}
[data-theme="dark"] .dropdown-panel {
  background-color: #25263A !important;
  border-top: 3px solid #C9ADA7 !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5) !important;
}

/* END HOSTINGER NAVBAR FIX */

/* ── 3. CHOIR SECTION INNER PADDING — Fix left-alignment ── */
/* The choir-section-dark has h2 and content as DIRECT children with no wrapper.
   We add horizontal padding directly to the section and its immediate children's containers. */

.choir-section-dark {
  padding: 4rem 2rem !important;
}

/* Responsive inner container for ALL choir-section content */
.choir-section .choir-title-accent,
.choir-section .choir-section-title,
.choir-section .choir-leadership-wrap,
.choir-section .choir-about-timings-grid,
.choir-section .choir-members-wrap,
.choir-section .jmtc-carousel-header,
.choir-section .jmtc-carousel-viewport,
.choir-section .jmtc-carousel-nav-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* The section itself must stay full-bleed; inner children provide the readable inset. */
.choir-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Contained inner wrapper for about/timings grid content */
.choir-about-timings-grid {
  width: 100% !important;
}

/* Leadership table wrap — ensure it centers and constrains */
.choir-leadership-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

/* jmtc carousel sections — fix header alignment */
.jmtc-carousel-section {
  padding: 4rem 2rem !important;
}
.jmtc-carousel-header {
  max-width: 1200px !important;
  margin: 0 auto 2rem !important;
  width: 100% !important;
}
.jmtc-carousel-viewport {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.jmtc-carousel-nav-container,
.events-controls-bar-standalone {
  max-width: 1200px !important;
  margin: 1rem auto 0 !important;
}

/* ── 4. MOBILE MENU DRAWER — Correct dark mode colors ── */
.mobile-menu-drawer,
.nav-mobile-drawer {
  background-color: #22223B !important;
  color: #F2E9E4 !important;
}
.mobile-menu-list > li > .nav-link,
.mobile-menu-list > li > a {
  color: #F2E9E4 !important;
  border-bottom-color: rgba(201, 173, 167, 0.12) !important;
}
[data-theme="dark"] .mobile-menu-list > li > .nav-link,
[data-theme="dark"] .mobile-menu-list > li > a,
[data-theme="dark"] .mobile-accordion-trigger {
  color: #F2E9E4 !important;
  border-bottom-color: rgba(201, 173, 167, 0.12) !important;
}
.mobile-sublink {
  color: rgba(242, 233, 228, 0.80) !important;
}
.mobile-sublink:hover {
  background-color: rgba(201, 173, 167, 0.15) !important;
  color: #C9ADA7 !important;
}
[data-theme="dark"] .mobile-sublink {
  color: rgba(242, 233, 228, 0.80) !important;
}
[data-theme="dark"] .mobile-sublink:hover {
  background-color: rgba(201, 173, 167, 0.15) !important;
  color: #C9ADA7 !important;
}

/* ── 5. MOBILE — Maintain padding on small screens ── */
@media (max-width: 768px) {
  .choir-section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .jmtc-carousel-section {
    padding: 3rem 1.25rem !important;
  }
  .choir-leadership-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* END V3.3-FIX */


/* =====================================================================
   CONTACT US PAGE DESIGN SYSTEM (MATCHING REFERENCE UI)
   ===================================================================== */

/* ── 1. Page Header / Banner ── */
.contact-header-banner {
  background: linear-gradient(135deg, #F9F6F0 0%, #F3EEE6 100%);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08);
  margin-top: 70px;
}

[data-theme="dark"] .contact-header-banner {
  background: linear-gradient(135deg, #1C1D2E 0%, #25263A 100%);
  border-bottom-color: rgba(201, 173, 167, 0.15);
}

.contact-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-ornament-cross {
  font-size: 1.5rem;
  color: var(--color-dusty-rose, #C9ADA7);
  margin-bottom: 0.5rem;
}

.contact-page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: #22223B;
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .contact-page-title {
  color: #F2E9E4;
}

.contact-title-divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-dusty-rose, #C9ADA7);
  margin: 0 auto 1.25rem;
  border-radius: 99px;
}

.contact-page-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #4A4E69;
  line-height: 1.6;
}

[data-theme="dark"] .contact-page-subtitle {
  color: rgba(242, 233, 228, 0.82);
}

/* ── 2. Container & Top 3 Cards Grid ── */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-info-card {
  background: #FAF7F5;
  border: 1px solid rgba(74, 78, 105, 0.10);
  border-radius: 18px;
  padding: 2.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34, 34, 59, 0.08);
}

[data-theme="dark"] .contact-info-card {
  background: #25263A;
  border-color: rgba(201, 173, 167, 0.16);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-card-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.badge-green {
  background-color: #E2EFE7;
  color: #2D6A4F;
}

.badge-gold {
  background-color: #FDF3E3;
  color: #D4883B;
}

.badge-teal {
  background-color: #E3F2F4;
  color: #2A7B88;
}

[data-theme="dark"] .badge-green {
  background-color: rgba(45, 106, 79, 0.25);
  color: #74C69D;
}
[data-theme="dark"] .badge-gold {
  background-color: rgba(212, 136, 59, 0.25);
  color: #EEBA7B;
}
[data-theme="dark"] .badge-teal {
  background-color: rgba(42, 123, 136, 0.25);
  color: #76C8D5;
}

.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #22223B;
  margin-bottom: 1rem;
}

[data-theme="dark"] .contact-card-title {
  color: #F2E9E4;
}

.contact-card-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #4A4E69;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

[data-theme="dark"] .contact-card-text {
  color: rgba(242, 233, 228, 0.8);
}

.contact-church-name {
  font-weight: 600;
  color: #22223B;
}
[data-theme="dark"] .contact-church-name {
  color: #F2E9E4;
}

.contact-timings-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  width: 100%;
  flex-grow: 1;
}

.contact-timings-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: #4A4E69;
  padding: 0.35rem 0;
}

[data-theme="dark"] .contact-timings-list li {
  color: rgba(242, 233, 228, 0.82);
}

.timing-bullet {
  color: #D4883B;
  font-weight: bold;
}

.timing-label {
  font-weight: 500;
  flex-grow: 1;
}

.timing-val {
  font-weight: 600;
  color: #22223B;
}

[data-theme="dark"] .timing-val {
  color: #F2E9E4;
}

.contact-details-list {
  margin-bottom: 1.5rem;
  width: 100%;
  flex-grow: 1;
  text-align: center;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #4A4E69;
  margin-bottom: 0.5rem;
}

.contact-row a {
  color: #22223B;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-row a:hover {
  color: #D4883B;
}

[data-theme="dark"] .contact-row,
[data-theme="dark"] .contact-row a {
  color: #F2E9E4;
}

.contact-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 99px;
  border: 1.5px solid rgba(74, 78, 105, 0.25);
  background: transparent;
  color: #22223B;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: auto;
}

.contact-card-btn:hover {
  background: #22223B;
  color: #FFFFFF;
  border-color: #22223B;
}

[data-theme="dark"] .contact-card-btn {
  border-color: rgba(201, 173, 167, 0.35);
  color: #F2E9E4;
}

[data-theme="dark"] .contact-card-btn:hover {
  background: #C9ADA7;
  color: #22223B;
  border-color: #C9ADA7;
}

.contact-dual-btns {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  margin-top: auto;
}

.contact-btn-filled {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  background: #D4883B;
  color: #FFFFFF;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s ease;
}

.contact-btn-filled:hover {
  background: #B66F28;
}

.contact-btn-outlined {
  flex: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgba(74, 78, 105, 0.25);
  background: transparent;
  color: #22223B;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-btn-outlined:hover {
  background: rgba(74, 78, 105, 0.08);
}

[data-theme="dark"] .contact-btn-outlined {
  border-color: rgba(201, 173, 167, 0.35);
  color: #F2E9E4;
}

/* ── 3. Main 2-Column Grid (Form + Map) ── */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background: #FAF7F5;
  border: 1px solid rgba(74, 78, 105, 0.10);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.04);
}

[data-theme="dark"] .contact-form-card {
  background: #25263A;
  border-color: rgba(201, 173, 167, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: #22223B;
  margin-bottom: 1.75rem;
}

[data-theme="dark"] .contact-form-title {
  color: #F2E9E4;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #22223B;
}

[data-theme="dark"] .form-label {
  color: #F2E9E4;
}

.required-star {
  color: #C0392B;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #22223B;
  background: #FFFFFF;
  border: 1.5px solid rgba(74, 78, 105, 0.18);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #D4883B;
  box-shadow: 0 0 0 3px rgba(212, 136, 59, 0.18);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background: #1C1D2E;
  border-color: rgba(201, 173, 167, 0.22);
  color: #F2E9E4;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  border-color: #C9ADA7;
  box-shadow: 0 0 0 3px rgba(201, 173, 167, 0.2);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  background: #D4883B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
  background: #B66F28;
  transform: translateY(-1px);
}

[data-theme="dark"] .contact-submit-btn {
  background: #C9ADA7;
  color: #22223B;
}

[data-theme="dark"] .contact-submit-btn:hover {
  background: #F2E9E4;
}

.contact-feedback-message {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-feedback-message.success {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #C8E6C9;
}

.contact-feedback-message.error {
  background: #FFEBEE;
  color: #B71C1C;
  border: 1px solid #FFCDD2;
}

/* ── 4. Map & Floating Overlay Card ── */
.contact-map-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(74, 78, 105, 0.10);
}

.contact-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.contact-map-overlay-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.16);
  border: 1px solid rgba(74, 78, 105, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 600px) {
  .contact-map-overlay-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .overlay-directions-btn {
    width: 100%;
  }
}

[data-theme="dark"] .contact-map-overlay-card {
  background: #25263A;
  border-color: rgba(201, 173, 167, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.overlay-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.overlay-pin-icon {
  color: #C0392B;
}

.overlay-church-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #22223B;
  margin-bottom: 0.2rem;
}

[data-theme="dark"] .overlay-church-name {
  color: #F2E9E4;
}

.overlay-address {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #4A4E69;
}

[data-theme="dark"] .overlay-address {
  color: rgba(242, 233, 228, 0.75);
}

.overlay-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(74, 78, 105, 0.2);
  background: transparent;
  color: #22223B;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.overlay-directions-btn:hover {
  background: #22223B;
  color: #FFFFFF;
}

[data-theme="dark"] .overlay-directions-btn {
  border-color: rgba(201, 173, 167, 0.35);
  color: #F2E9E4;
}

[data-theme="dark"] .overlay-directions-btn:hover {
  background: #C9ADA7;
  color: #22223B;
}

/* END CONTACT US PAGE STYLES */


/* =====================================================================
   REFINEMENTS: ANNOUNCEMENTS CONTRAST, NAV TEXT SIZE & THEME TOGGLE VISIBILITY
   ===================================================================== */

/* ── 1. Announcements Hero Banner — Warm Editorial Background with High Contrast ── */
.announcements-hero-section {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
  color: #22223B !important;
  padding: 4.5rem 0 3.5rem 0 !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}

[data-theme="dark"] .announcements-hero-section {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
  border-bottom-color: rgba(201, 173, 167, 0.15) !important;
}

.announcements-hero-label {
  color: #D4883B !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
}

.announcements-hero-title {
  color: #22223B !important;
  font-size: clamp(2.4rem, 4vw, 3.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
}

[data-theme="dark"] .announcements-hero-title {
  color: #F2E9E4 !important;
}

.announcements-hero-subtitle {
  color: #4A4E69 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}

[data-theme="dark"] .announcements-hero-subtitle {
  color: rgba(242, 233, 228, 0.88) !important;
}

/* ── 2. Bigger, bolder, highly readable Nav Links ── */
.nav-link {
  font-family: var(--font-ui) !important;
  font-size: 17.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 99px !important;
}

/* ── 3. High-Visibility Theme Toggle Button (Light/Dark Mode Switch) ── */
.theme-toggle-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.theme-toggle-btn svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.theme-toggle-btn:hover {
  background: #FFFFFF !important;
  color: #22223B !important;
  border-color: #FFFFFF !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28) !important;
}

/* Scrolled state toggle button */
.grid-navbar.scrolled .theme-toggle-btn {
  background: rgba(34, 34, 59, 0.08) !important;
  border: 1.5px solid rgba(34, 34, 59, 0.25) !important;
  color: #22223B !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.grid-navbar.scrolled .theme-toggle-btn:hover {
  background: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
  transform: scale(1.08) !important;
}

/* Dark mode toggle button */
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .grid-navbar .theme-toggle-btn {
  background: rgba(201, 173, 167, 0.22) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.50) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .grid-navbar .theme-toggle-btn:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 20px rgba(201, 173, 167, 0.4) !important;
}

/* High-Visibility Mobile Hamburger Toggle */
.hamburger-toggle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(8px) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.40) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.grid-navbar.scrolled .hamburger-toggle {
  background: rgba(34, 34, 59, 0.08) !important;
  border: 1.5px solid rgba(34, 34, 59, 0.25) !important;
  color: #22223B !important;
}

[data-theme="dark"] .hamburger-toggle {
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.45) !important;
  color: #F2E9E4 !important;
}

/* END REFINEMENTS */


/* =====================================================================
   STRICT ALTERNATING SECTION COLOR CONTRAST SYSTEM
   ===================================================================== */

/* Light Warm Section */
.section-light,
.choir-section-light {
  background-color: #FAF7F5 !important;
  color: #22223B !important;
  border-top: 1px solid rgba(74, 78, 105, 0.08);
  border-bottom: 1px solid rgba(74, 78, 105, 0.08);
}

[data-theme="dark"] .section-light,
[data-theme="dark"] .choir-section-light {
  background-color: #1C1D2E !important;
  color: #F2E9E4 !important;
  border-top-color: rgba(201, 173, 167, 0.12);
  border-bottom-color: rgba(201, 173, 167, 0.12);
}

/* Dark Rich Slate Navy Section (High Contrast Divider) */
.section-dark,
.choir-section-dark {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
  padding: 4.5rem 2rem !important;
  border-top: 1px solid rgba(201, 173, 167, 0.15) !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.15) !important;
}

.section-dark .choir-section-title,
.section-dark .jmtc-section-title,
.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: #F2E9E4 !important;
}

.section-dark .choir-section-subtitle,
.section-dark .jmtc-section-label,
.section-dark p {
  color: rgba(242, 233, 228, 0.85) !important;
}

.section-dark .choir-leadership-table th {
  background: #191A29 !important;
  color: #C9ADA7 !important;
}

.section-dark .choir-leadership-table td {
  border-bottom-color: rgba(201, 173, 167, 0.15) !important;
  color: #F2E9E4 !important;
}

.section-dark .cell-pos {
  color: #C9ADA7 !important;
}

.section-dark .jmtc-card {
  background: #25263A !important;
  border-color: rgba(201, 173, 167, 0.18) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.section-dark .jmtc-event-title,
.section-dark .jmtc-gallery-title-link {
  color: #F2E9E4 !important;
}

.section-dark .jmtc-gallery-sub {
  color: rgba(242, 233, 228, 0.75) !important;
}

/* Photo Count Badge on Cards */
.jmtc-photo-count-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(34, 34, 59, 0.82);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

/* END STRICT ALTERNATING CONTRAST */


/* =====================================================================
   COMPREHENSIVE ALTERNATING SECTION STYLING SYSTEM
   ===================================================================== */

/* ── 1. LIGHT WARM SECTION ── */
section.section-light,
div.section-light,
.section-light {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
  color: #22223B !important;
  padding: 4.5rem 0 !important;
  border-top: 1px solid rgba(74, 78, 105, 0.08) !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}

[data-theme="dark"] section.section-light,
[data-theme="dark"] div.section-light,
[data-theme="dark"] .section-light {
  background: linear-gradient(145deg, #181926 0%, #1F2032 100%) !important;
  color: #F2E9E4 !important;
  border-top-color: rgba(201, 173, 167, 0.12) !important;
  border-bottom-color: rgba(201, 173, 167, 0.12) !important;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light .jmtc-section-title,
.section-light .choir-section-title,
.section-light .section-title,
.section-light .contact-card-title,
.section-light .contact-form-title {
  color: #22223B !important;
}

.section-light p,
.section-light span:not(.jmtc-photo-count-badge):not(.jmtc-badge-month),
.section-light .jmtc-section-label,
.section-light .choir-section-subtitle,
.section-light .contact-card-text {
  color: #4A4E69 !important;
}

.section-light .jmtc-card,
.section-light .contact-info-card,
.section-light .contact-form-card,
.section-light .gallery-card,
.section-light .announcement-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.05) !important;
  color: #22223B !important;
}


/* ── 2. DARK SLATE NAVY ACCENT SECTION (HIGH CONTRAST) ── */
section.section-dark,
div.section-dark,
.section-dark {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
  padding: 4.5rem 0 !important;
  border-top: 1px solid rgba(201, 173, 167, 0.18) !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.18) !important;
}

/* Section bands are full-bleed even when legacy pages place them inside a container. */
.container > section.section-light,
.container > section.section-dark,
.choir-leadership-wrap > section.section-light,
.choir-leadership-wrap > section.section-dark,
.contact-container > section.section-light,
.contact-container > section.section-dark {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.container > section.exec-section > *,
.container > section.choir-section > *,
.container > section.jmtc-carousel-section > * {
  width: min(100% - 3rem, 1200px) !important;
  max-width: min(100% - 3rem, 1200px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.container > section.exec-section > * {
  max-width: min(100% - 3rem, 1000px) !important;
}

.contact-container > section.contact-info-grid,
.contact-container > section.contact-main-grid {
  padding-left: max(1.5rem, calc((100vw - 1180px) / 2)) !important;
  padding-right: max(1.5rem, calc((100vw - 1180px) / 2)) !important;
  box-sizing: border-box !important;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .jmtc-section-title,
.section-dark .choir-section-title,
.section-dark .section-title,
.section-dark .contact-card-title,
.section-dark .contact-form-title,
.section-dark .brand-name,
.section-dark .jmtc-event-title,
.section-dark .jmtc-gallery-title-link,
.section-dark .cell-name {
  color: #F2E9E4 !important;
}

.section-dark p,
.section-dark .jmtc-section-label,
.section-dark .choir-section-subtitle,
.section-dark .jmtc-gallery-sub,
.section-dark .contact-card-text,
.section-dark .contact-timings-list li,
.section-dark .cell-pos,
.section-dark label {
  color: rgba(242, 233, 228, 0.88) !important;
}

.section-dark .jmtc-section-label {
  color: #D4883B !important;
}

.section-dark .jmtc-card,
.section-dark .contact-info-card,
.section-dark .contact-form-card,
.section-dark .gallery-card,
.section-dark .announcement-card,
.section-dark .event-card,
.section-dark .choir-leadership-wrap {
  background: #25263A !important;
  border: 1px solid rgba(201, 173, 167, 0.20) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  color: #F2E9E4 !important;
}

.section-dark .choir-leadership-table th {
  background: #191A29 !important;
  color: #C9ADA7 !important;
}

.section-dark .choir-leadership-table td {
  border-bottom-color: rgba(201, 173, 167, 0.15) !important;
  color: #F2E9E4 !important;
}

.section-dark .form-input,
.section-dark .form-textarea {
  background: #1C1D2E !important;
  border-color: rgba(201, 173, 167, 0.25) !important;
  color: #F2E9E4 !important;
}

.section-dark .form-input:focus,
.section-dark .form-textarea:focus {
  border-color: #C9ADA7 !important;
  box-shadow: 0 0 0 3px rgba(201, 173, 167, 0.2) !important;
}

.section-dark .contact-card-btn,
.section-dark .contact-btn-outlined {
  border-color: rgba(201, 173, 167, 0.35) !important;
  color: #F2E9E4 !important;
}

.section-dark .contact-card-btn:hover,
.section-dark .contact-btn-outlined:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

.section-dark .announcement-pill {
  background: rgba(201, 173, 167, 0.12) !important;
  border-color: rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
}

.section-dark .announcement-pill.active {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* END COMPREHENSIVE ALTERNATING SYSTEM */


/* DARK HEADER BANNER FOR MINISTRY PAGES */
.contact-header-banner.section-dark {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.18) !important;
}

.contact-header-banner.section-dark .contact-page-title {
  color: #F2E9E4 !important;
}

.contact-header-banner.section-dark .contact-page-subtitle {
  color: rgba(242, 233, 228, 0.88) !important;
}

.contact-header-banner.section-dark .contact-ornament-cross {
  color: #D4883B !important;
}

/* =====================================================================
   JMTC HEBBAL — CONSOLIDATED MASTER DESIGN SYSTEM OVERRIDES
   ===================================================================== */

/* ── 1. GLOBAL CONTAINER & MOBILE CONTAINMENT ── */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-text-size-adjust: 100% !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, svg, video, canvas, iframe {
  max-width: 100% !important;
  height: auto !important;
}

a, button, input, select, textarea, .btn, .nav-link, .theme-toggle-btn, .hamburger-toggle {
  min-height: 44px;
}

/* Fixed Navbar Subpage Top Clearance (75px) */
body:not(.home-page) main,
body:not(.home-page) .site-main {
  padding-top: 75px !important;
}

body:not(.home-page) main > section:first-child,
body:not(.home-page) .site-main > section:first-child,
body:not(.home-page) .contact-header-banner,
body:not(.home-page) .announcements-hero-section,
body:not(.home-page) .announcements-breadcrumb-bar {
  margin-top: 0 !important;
}


/* ── 2. NAVBAR TYPOGRAPHY & UNSCROLLED SUBPAGE MATCH ── */
.nav-link,
.grid-navbar .nav-link,
.site-header .nav-link,
.dropdown-trigger,
body .nav-link {
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 99px !important;
  white-space: nowrap !important;
  transition: all 0.2s ease-in-out !important;
}

.brand-name,
.grid-navbar .brand-name {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.dropdown-item,
.nav-dropdown .dropdown-item {
  font-size: 16px !important;
  font-weight: 600 !important;
}

body:not(.home-page) .grid-navbar:not(.scrolled) {
  background: #FAF7F5 !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.10) !important;
}

[data-theme="dark"] body:not(.home-page) .grid-navbar:not(.scrolled) {
  background: #1C1D2E !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.18) !important;
}

body:not(.home-page) .grid-navbar:not(.scrolled) .nav-link,
body:not(.home-page) .grid-navbar:not(.scrolled) .brand-name {
  color: #22223B !important;
}

[data-theme="dark"] body:not(.home-page) .grid-navbar:not(.scrolled) .nav-link,
[data-theme="dark"] body:not(.home-page) .grid-navbar:not(.scrolled) .brand-name {
  color: #F2E9E4 !important;
}


/* ── 3. DARK SECTIONS & DARK GLASS CARDS (100% LEGIBILITY) ── */
.section-dark,
section.section-dark,
div.section-dark,
.events-section,
.contact-header-banner {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6,
.section-dark .section-title, .section-dark .jmtc-section-title, .section-dark .choir-section-title,
.events-section .section-title, .contact-header-banner h1 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

.section-dark p, .section-dark .section-subtitle, .section-dark .choir-section-subtitle,
.events-section p, .contact-header-banner p {
  color: rgba(242, 233, 228, 0.92) !important;
}

.section-dark .jmtc-section-label, .section-dark .sub-title, .section-dark .eyebrow-label,
.events-section .jmtc-section-label {
  color: #EEBA7B !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* Dark Glass Cards (background: #25263A) */
.hero-event-card,
.bearer-card,
.section-dark .hero-event-card,
.section-dark .bearer-card,
.section-dark .contact-info-card,
.gallery-album-card,
[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .announcement-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .contact-form-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #F2E9E4 !important;
}

.hero-event-card-title,
.bearer-name,
.section-dark .contact-card-title,
[data-theme="dark"] .contact-form-title,
[data-theme="dark"] .jmtc-event-title,
[data-theme="dark"] .announcement-card-title a,
.gallery-album-title {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

.hero-event-card-desc,
.section-dark .contact-card-text p,
[data-theme="dark"] .jmtc-event-desc,
[data-theme="dark"] .announcement-card-excerpt,
.gallery-album-excerpt {
  color: rgba(242, 233, 228, 0.94) !important;
  font-weight: 400 !important;
}

.event-action-link, .event-action-link span,
.bearer-role,
.section-dark .contact-card-btn,
.section-dark .timing-label,
.gallery-album-link,
[data-theme="dark"] .jmtc-event-btn,
[data-theme="dark"] .announcement-card-readmore {
  color: #EEBA7B !important;
  font-weight: 700 !important;
}

.event-date-badge-inline, .jmtc-date-badge, .contact-card-icon-badge, .gallery-photo-badge {
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1px solid rgba(201, 173, 167, 0.45) !important;
  color: #EEBA7B !important;
}

.badge-day, .badge-month {
  color: #EEBA7B !important;
  font-weight: 700 !important;
}

/* Contact Info Card Details */
.section-dark .timing-val {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
}

.section-dark .contact-row a {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.section-dark .contact-row a:hover {
  color: #EEBA7B !important;
}


/* ── 4. LIGHT SECTIONS & WHITE CARDS (100% HIGH CONTRAST) ── */
.section-light,
section.section-light,
div.section-light {
  background: #FAF7F5 !important;
  color: #22223B !important;
}

.section-light h1, .section-light h2, .section-light h3, .section-light h4, .section-light h5, .section-light h6,
.section-light .section-title, .section-light .jmtc-section-title, .section-light .choir-section-title {
  color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.section-light p, .section-light .section-subtitle, .section-light .choir-section-subtitle {
  color: #4A4E69 !important;
}

.section-light .jmtc-section-label, .section-light .sub-title, .section-light .eyebrow-label {
  color: #D4883B !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

/* White Cards (background: #FFFFFF) */
.jmtc-card,
.announcement-card,
.gallery-card,
.info-card,
.service-card,
.resource-card,
.form-card,
.section-light .jmtc-card,
.section-light .announcement-card,
.section-light .gallery-card,
.section-dark .jmtc-card,
.section-dark .announcement-card,
body:not([data-theme="dark"]) .contact-form-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.06) !important;
  color: #22223B !important;
}

.jmtc-card h1, .jmtc-card h2, .jmtc-card h3, .jmtc-card h4,
.announcement-card-title, .announcement-card-title a,
.jmtc-event-title, .gallery-card-title,
body:not([data-theme="dark"]) .contact-form-title,
body .announcement-card-title a, body .jmtc-card h3 {
  color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.jmtc-card p, .jmtc-card div,
.announcement-card p, .announcement-card-excerpt, .announcement-card-summary,
.jmtc-event-desc, .gallery-card-desc,
body .announcement-card-excerpt, body .jmtc-card p {
  color: #4A4E69 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

.announcement-date, .jmtc-card .jmtc-event-meta,
body .announcement-date {
  color: #7A7D93 !important;
  font-weight: 500 !important;
}

.announcement-card-readmore, .announcement-card a.view-more,
body .announcement-card-readmore {
  color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.announcement-card-readmore:hover {
  color: #D4883B !important;
}


/* ── 5. PHOTO OVERLAY SHOWCASE FRAMES (PURE WHITE OVERLAY TEXT) ── */
.community-showcase-frame h3,
.community-showcase-content h3,
.chapter-title-editorial,
.community-showcase-frame .chapter-title-editorial,
body .community-showcase-content h3 {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
  margin-bottom: 10px !important;
}

.community-showcase-frame p,
.community-showcase-content p,
body .community-showcase-content p {
  color: rgba(255, 255, 255, 0.94) !important;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}


/* ── 6. CONTACT FORM & SUBMIT BUTTONS ── */
body:not([data-theme="dark"]) .contact-form-card label {
  color: #D4883B !important;
  font-weight: 700 !important;
}

body:not([data-theme="dark"]) .contact-form-card input,
body:not([data-theme="dark"]) .contact-form-card textarea {
  background: #FAF7F5 !important;
  border: 1.5px solid rgba(74, 78, 105, 0.2) !important;
  color: #22223B !important;
}

body:not([data-theme="dark"]) .contact-submit-btn {
  background: linear-gradient(135deg, #D4883B 0%, #B66D25 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(212, 136, 59, 0.35) !important;
}

[data-theme="dark"] .contact-form-card label {
  color: #EEBA7B !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .contact-form-card input,
[data-theme="dark"] .contact-form-card textarea {
  background: #1C1D2E !important;
  border: 1.5px solid rgba(201, 173, 167, 0.35) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .contact-submit-btn {
  background: linear-gradient(135deg, #EEBA7B 0%, #D4883B 100%) !important;
  color: #22223B !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(238, 186, 123, 0.35) !important;
}


/* ── 7. RESPONSIVE MEDIA QUERIES (ALL SCREENS) ── */
@media (max-width: 1200px) and (min-width: 992px) {
  .nav-link {
    font-size: 16px !important;
    padding: 0.45rem 0.75rem !important;
  }
}

@media (max-width: 991px) {
  .site-header {
    height: 70px !important;
  }

  body:not(.home-page) main,
  body:not(.home-page) .site-main {
    padding-top: 70px !important;
  }

  .nav-menu {
    display: none !important;
  }

  .hamburger-toggle {
    display: flex !important;
  }

  .mobile-menu-list .nav-link,
  .mobile-menu-list a,
  .mobile-accordion-trigger {
    font-size: 19px !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 767px) {
  .container,
  .nav-grid-container,
  .contact-container,
  .site-main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bearers-grid,
  .contact-info-grid,
  .community-showcase-grid,
  .events-grid,
  .announcements-grid,
  .gallery-grid,
  .resources-grid,
  .forms-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  .community-showcase-frame {
    min-height: 360px !important;
    height: 360px !important;
    border-radius: 16px !important;
    width: 100% !important;
  }

  .community-showcase-content {
    left: 16px !important;
    bottom: 20px !important;
    right: 16px !important;
    max-width: 100% !important;
  }

  .community-showcase-content h3,
  .chapter-title-editorial {
    font-size: 20px !important;
    margin-bottom: 6px !important;
  }

  .community-showcase-content p {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .hero-event-card {
    min-width: 100% !important;
    width: 100% !important;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.25rem !important;
  }

  .contact-form-title {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.15rem !important;
  }

  .section-title,
  .jmtc-section-title,
  .choir-section-title {
    font-size: 1.6rem !important;
  }

  .hero-event-card-title {
    font-size: 1.1rem !important;
  }
}

/* END CONSOLIDATED MASTER OVERRIDES */

/* =====================================================================
   FIX OVERSIZED LOGO & ENHANCE NAVBAR READABILITY FOR ELDERLY MEMBERS
   ===================================================================== */

/* 1. Strictly Constrain Brand Logo Size (44px x 44px) */
.brand-logo-img,
.brand-logo img,
.site-header img.brand-logo-img,
.grid-navbar img.brand-logo-img,
header img.brand-logo-img,
body img.brand-logo-img {
  height: 44px !important;
  width: 44px !important;
  max-height: 44px !important;
  max-width: 44px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3)) !important;
}

/* 2. Large, Extra-Bold Navbar Links for Elderly Readability (20px, Weight 800) */
.nav-link,
.grid-navbar .nav-link,
.site-header .nav-link,
.dropdown-trigger,
body .nav-link {
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 20px !important; /* 20px for crystal-clear readability */
  font-weight: 800 !important; /* Extra Bold weight */
  letter-spacing: 0.02em !important;
  padding: 0.6rem 1.05rem !important;
  border-radius: 99px !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important; /* Sharp contrast over hero images */
  transition: all 0.2s ease-in-out !important;
}

/* Brand Name Text (24px / 1.5rem Extra Bold) */
.brand-name,
.grid-navbar .brand-name {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7) !important;
}

/* Dropdown Menu Items */
.dropdown-item,
.nav-dropdown .dropdown-item {
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 0.75rem 1.25rem !important;
}

/* Scrolled & Light Mode Navbar Text Shadows */
.grid-navbar.scrolled .nav-link,
.grid-navbar.scrolled .brand-name,
body:not(.home-page) .grid-navbar:not(.scrolled) .nav-link,
body:not(.home-page) .grid-navbar:not(.scrolled) .brand-name {
  text-shadow: none !important;
}

/* Laptop & Tablet Breakpoint (992px - 1200px) */
@media (max-width: 1200px) and (min-width: 992px) {
  .nav-link,
  .grid-navbar .nav-link {
    font-size: 17.5px !important;
    padding: 0.5rem 0.8rem !important;
  }
  .brand-name {
    font-size: 1.35rem !important;
  }
}

/* Mobile Drawer Links (21px Extra Bold) */
@media (max-width: 991px) {
  .mobile-menu-list .nav-link,
  .mobile-menu-list a,
  .mobile-accordion-trigger {
    font-size: 21px !important;
    font-weight: 800 !important;
  }
}

/* END OVERSIZED LOGO & ELDERLY NAVBAR FIX */


/* =====================================================================
   PERMANENT FIX: ALL CARDS IN DARK SECTIONS MUST MATCH DARK MODE 100%
   ===================================================================== */

/* ANY card inside ANY dark section MUST be dark navy (#25263A) with pure white text */
.section-dark .hero-event-card,
.section-dark .jmtc-card,
.section-dark .event-card,
.section-dark .announcement-card,
.section-dark .gallery-card,
.section-dark .gallery-album-card,
.section-dark .bearer-card,
.section-dark .contact-info-card,
.section-dark .contact-form-card,
.events-section .hero-event-card,
.events-section .jmtc-card,
.events-section .event-card,
body .events-section .hero-event-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #F2E9E4 !important;
}

/* ALL Card Titles in dark sections MUST be PURE BRIGHT WHITE (#FFFFFF) */
.section-dark .hero-event-card-title,
.section-dark .jmtc-event-title,
.section-dark .choir-event-title,
.section-dark .announcement-card-title,
.section-dark .announcement-card-title a,
.section-dark .jmtc-gallery-title,
.section-dark .gallery-album-title,
.section-dark .contact-card-title,
.section-dark .contact-form-title,
.section-dark .bearer-name,
.section-dark .jmtc-card h1,
.section-dark .jmtc-card h2,
.section-dark .jmtc-card h3,
.section-dark .jmtc-card h4,
.events-section .hero-event-card-title,
.events-section .jmtc-event-title,
.events-section h3,
body .events-section .hero-event-card-title,
body .section-dark .jmtc-event-title,
body .events-section h3.hero-event-card-title {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

/* ALL Card Body Text & Descriptions in dark sections MUST be CRISP ALABASTER WHITE */
.section-dark .hero-event-card-desc,
.section-dark .jmtc-event-desc,
.section-dark .announcement-card-excerpt,
.section-dark .gallery-album-excerpt,
.section-dark .contact-card-text p,
.section-dark .jmtc-card p,
.section-dark .jmtc-card div,
.events-section .hero-event-card-desc,
.events-section .jmtc-event-desc,
.events-section p,
body .events-section .hero-event-card-desc,
body .section-dark .jmtc-event-desc,
body .events-section p.hero-event-card-desc {
  color: rgba(242, 233, 228, 0.94) !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* ALL Card Metadata in dark sections MUST be DUSTY ROSE */
.section-dark .hero-event-date-row,
.section-dark .date-row-left,
.section-dark .date-row-left span,
.section-dark .jmtc-event-meta,
.section-dark .announcement-date,
.section-dark .gallery-photo-badge,
.events-section .date-row-left,
.events-section .date-row-left span,
body .events-section .date-row-left span {
  color: rgba(201, 173, 167, 0.95) !important;
}

/* ALL Card Links & View Details in dark sections MUST be BRIGHT AMBER GOLD */
.section-dark .event-action-link,
.section-dark .event-action-link span,
.section-dark .jmtc-event-btn,
.section-dark .announcement-card-readmore,
.section-dark .gallery-album-link,
.section-dark .contact-card-btn,
.section-dark .bearer-role,
.events-section .event-action-link,
.events-section .event-action-link span,
body .events-section .event-action-link span {
  color: #EEBA7B !important;
  font-weight: 700 !important;
}

/* ALL Date Badges in dark sections */
.section-dark .event-date-badge-inline,
.section-dark .jmtc-date-badge,
.section-dark .contact-card-icon-badge,
.events-section .event-date-badge-inline,
body .events-section .event-date-badge-inline {
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1px solid rgba(201, 173, 167, 0.45) !important;
  color: #EEBA7B !important;
}

.section-dark .badge-day,
.section-dark .badge-month,
.events-section .badge-day,
.events-section .badge-month,
body .events-section .badge-day,
body .events-section .badge-month {
  color: #EEBA7B !important;
  font-weight: 700 !important;
}

/* CARDS ONLY IN LIGHT SECTIONS (background: #FAF7F5) */
.section-light .jmtc-card,
.section-light .announcement-card,
.section-light .gallery-card,
.section-light .info-card,
.section-light .service-card,
.section-light .resource-card,
.section-light .form-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.06) !important;
  color: #22223B !important;
}

.section-light .jmtc-card h1,
.section-light .jmtc-card h2,
.section-light .jmtc-card h3,
.section-light .jmtc-card h4,
.section-light .announcement-card-title,
.section-light .announcement-card-title a,
.section-light .jmtc-event-title,
.section-light .gallery-card-title {
  color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.section-light .jmtc-card p,
.section-light .announcement-card-excerpt,
.section-light .jmtc-event-desc {
  color: #4A4E69 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* END PERMANENT FIX */


/* =====================================================================
   CRITICAL FIX: ANNOUNCEMENT CARDS MUST USE NORMAL DARK SLATE NAVY TEXT (#22223B)
   NO WHITE TEXT OR WHITE SHADOWS ON WHITE CARDS!
   ===================================================================== */

/* Force Announcement Cards to clean White background & Dark Slate Navy Text */
.announcement-card,
.section-dark .announcement-card,
.section-light .announcement-card,
body .announcement-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.06) !important;
  color: #22223B !important;
}

/* Announcement Card Titles MUST be Rich Dark Slate Navy (#22223B) with ZERO white text-shadow */
.announcement-card-title,
.announcement-card-title a,
.section-dark .announcement-card-title,
.section-dark .announcement-card-title a,
.section-light .announcement-card-title,
.section-light .announcement-card-title a,
body .announcement-card-title a,
body .announcement-card-title h3,
body .announcement-card h3 {
  color: #22223B !important;
  font-weight: 700 !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #22223B !important;
}

/* Announcement Card Titles Hover */
.announcement-card-title a:hover,
body .announcement-card-title a:hover {
  color: #D4883B !important;
  -webkit-text-fill-color: #D4883B !important;
}

/* Announcement Card Excerpts & Summaries MUST be Slate Navy (#4A4E69) */
.announcement-card-excerpt,
.announcement-card-summary,
.announcement-card p,
.section-dark .announcement-card-excerpt,
.section-dark .announcement-card p,
body .announcement-card-excerpt,
body .announcement-card p {
  color: #4A4E69 !important;
  font-weight: 400 !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

/* Announcement Card Dates MUST be Muted Slate (#7A7D93) */
.announcement-date,
.announcement-card-meta,
.section-dark .announcement-date,
body .announcement-date {
  color: #7A7D93 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* View More Links MUST be Dark Navy (#22223B) */
.announcement-card-readmore,
.announcement-card a.view-more,
.section-dark .announcement-card-readmore,
body .announcement-card-readmore {
  color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #22223B !important;
}

.announcement-card-readmore:hover {
  color: #D4883B !important;
  -webkit-text-fill-color: #D4883B !important;
}

/* END ANNOUNCEMENT CARDS FIX */


/* =====================================================================
   CRITICAL FIX: OFFICE BEARER CARD NAMES MUST BE PURE BRIGHT WHITE (#FFFFFF)
   NO PITCH BLACK NAMES ON DARK GLASS OVERLAYS!
   ===================================================================== */

/* 1. Bearer Info Overlay Box (Scoped to legacy overlay mode only) */
.bearer-card-overlay .bearer-info,
.bearer-card-overlay .bearer-card .bearer-info {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  right: 10px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(180deg, rgba(20, 21, 35, 0.88) 0%, rgba(14, 15, 26, 0.98) 100%) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
  z-index: 5 !important;
}

/* 2. Member Name (Scoped to legacy overlay mode only) */
.bearer-card-overlay .bearer-name,
.bearer-card-overlay .bearer-card .bearer-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  margin-bottom: 4px !important;
}

/* 3. Role Title (Scoped to legacy overlay mode only) */
.bearer-card-overlay .bearer-role,
.bearer-card-overlay .bearer-card .bearer-role {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* 4. Action Buttons (Scoped to legacy overlay mode only) */
.bearer-card-overlay .bearer-actions a,
.bearer-card-overlay .bearer-action-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.20) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.bearer-card-overlay .bearer-actions a:hover,
.bearer-card-overlay .bearer-action-btn:hover {
  background: #EEBA7B !important;
  color: #22223B !important;
  border-color: #EEBA7B !important;
  transform: scale(1.1) !important;
}

/* END OFFICE BEARER CARD FIX */


/* =====================================================================
   CRITICAL FIX: SERVICE TIMINGS CARDS — CLEAN DARK SLATE NAVY TEXT & COPPER GOLD
   NO WHITE TEXT OR BLURRY WHITE SHADOWS ON CREAM/WHITE CARDS!
   ===================================================================== */

/* 1. Service Timings Card Container */
.service-timings-card,
.service-card,
.section-dark .service-timings-card,
.section-dark .service-card,
.section-light .service-timings-card,
.section-light .service-card,
body .service-timings-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.15) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.08) !important;
  padding: 1.75rem !important;
  color: #22223B !important;
}

/* 2. Clock Icon */
.service-clock-icon-wrap svg,
.service-timings-card svg {
  stroke: #D4883B !important;
  color: #D4883B !important;
}

/* 3. Service Timings Card Title MUST be Rich Dark Slate Navy (#22223B) with ZERO shadows */
.service-timings-title,
.service-card-title,
.service-timings-card h3,
.section-dark .service-timings-title,
.section-dark .service-timings-card h3,
body .service-timings-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  text-shadow: none !important; /* REMOVED BLURRY SHADOW */
  margin-bottom: 1.25rem !important;
}

/* 4. Timing Row Borders & Spacing */
.service-timing-row {
  border-bottom: 1px solid rgba(74, 78, 105, 0.12) !important;
  padding: 0.85rem 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.service-timing-row:last-child {
  border-bottom: none !important;
}

/* 5. Timing Day Heading MUST be Rich Dark Navy (#22223B) */
.timing-day,
.service-timings-card .timing-day,
.section-dark .timing-day,
body .timing-day {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  display: block !important;
}

/* 6. Timing Description MUST be Dark Slate Grey (#4A4E69) */
.timing-desc,
.service-timings-card .timing-desc,
.section-dark .timing-desc,
body .timing-desc {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  display: block !important;
}

/* 7. Timing Time Badges MUST be Warm Copper Gold (#D4883B) */
.timing-time,
.service-timings-card .timing-time,
.section-dark .timing-time,
body .timing-time {
  color: #D4883B !important;
  -webkit-text-fill-color: #D4883B !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

/* END SERVICE TIMINGS CARDS FIX */


/* =====================================================================
   PASTORAL LEADERSHIP CARDS (DIOCESAN BISHOP & PARISH VICAR)
   ===================================================================== */

.pastoral-cards-grid {
  display: flex !important;
  justify-content: center !important;
  gap: 2rem !important;
  flex-wrap: wrap !important;
  margin-top: 2rem !important;
}

.pastoral-card {
  position: relative !important;
  width: 320px !important;
  max-width: 100% !important;
  height: 440px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.pastoral-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4) !important;
}

.pastoral-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Gradient Overlay Box Anchored STRICTLY at Bottom (Clearing Face) */
.pastoral-card-overlay,
body .pastoral-card-overlay {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 2.5rem 1.25rem 1.25rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background: linear-gradient(180deg, rgba(20, 21, 35, 0) 0%, rgba(20, 21, 35, 0.88) 45%, rgba(14, 15, 26, 0.98) 100%) !important;
  z-index: 5 !important;
}

/* Crisp Pure White Name Text */
.pastoral-card-name,
.section-light .pastoral-card-name,
.section-dark .pastoral-card-name,
body .pastoral-card-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  margin: 0 0 4px 0 !important;
}

/* Bright Amber Gold Role Designation */
.pastoral-card-role,
.section-light .pastoral-card-role,
.section-dark .pastoral-card-role,
body .pastoral-card-role {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

@media (max-width: 767px) {
  .pastoral-cards-grid {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  .pastoral-card {
    width: 100% !important;
    max-width: 320px !important;
    height: 420px !important;
  }
}

/* END PASTORAL LEADERSHIP CARDS FIX */


/* =====================================================================
   CAROUSEL MOBILE & SCROLL-SNAP SYSTEM (ALL CAROUSELS & PAGES)
   ===================================================================== */

.hero-events-viewport,
.jmtc-carousel-viewport,
.mag-carousel-viewport,
.carousel-track-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

/* Horizontal Track Container (MUST REMAIN ROW SNAP ON ALL DEVICES) */
.hero-events-slider,
.jmtc-carousel-track,
.mag-carousel-track,
.carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Mobile Viewport Card Dimensions (1 Card Per View on Mobile) */
@media (max-width: 767px) {
  .hero-events-slider .hero-event-card,
  .jmtc-carousel-track .jmtc-card,
  .jmtc-carousel-track .gallery-card,
  .mag-carousel-track .announcement-card,
  .mag-carousel-track .gallery-card,
  .mag-carousel-track .jmtc-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Tablet Viewport (2 Cards Per View) */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-events-slider .hero-event-card,
  .jmtc-carousel-track .jmtc-card,
  .mag-carousel-track .announcement-card,
  .mag-carousel-track .gallery-card {
    flex: 0 0 calc(50% - 0.75rem) !important;
    min-width: calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem) !important;
  }
}

/* Desktop Viewport (3 Cards Per View) */
@media (min-width: 1200px) {
  .hero-events-slider .hero-event-card,
  .jmtc-carousel-track .jmtc-card,
  .mag-carousel-track .announcement-card,
  .mag-carousel-track .gallery-card {
    flex: 0 0 calc(33.333% - 1rem) !important;
    min-width: calc(33.333% - 1rem) !important;
    max-width: calc(33.333% - 1rem) !important;
  }
}

/* Carousel Pagination Controls Styling */
.hero-carousel-pagination,
.jmtc-carousel-pagination,
.mag-carousel-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

.hero-carousel-btn,
.jmtc-carousel-btn,
.mag-carousel-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

/* END CAROUSEL MOBILE & SCROLL-SNAP SYSTEM */


/* =====================================================================
   CRITICAL FIX: MINISTRY OFFICE BEARERS TABLES — ULTRA-HIGH CONTRAST
   NO WHITE TEXT ON WHITE ROWS!
   ===================================================================== */

/* 1. Table Outer Container */
.choir-leadership-wrap,
.office-bearers-table-wrap,
.table-responsive,
.choir-leadership-table,
body .choir-leadership-wrap {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* 2. Table Element */
table.choir-leadership-table,
table.office-bearers-table,
.choir-section-dark table,
body table.choir-leadership-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: transparent !important;
  color: #F2E9E4 !important;
}

/* 3. Table Header (TH) */
.choir-leadership-table thead,
.choir-leadership-table thead tr,
.choir-leadership-table th,
body .choir-leadership-table th {
  background: #1C1D2E !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 1.1rem 1.25rem !important;
  border-bottom: 2px solid rgba(201, 173, 167, 0.3) !important;
  text-align: left !important;
}

/* 4. Table Body Rows (TR) */
.choir-leadership-table tbody tr,
body .choir-leadership-table tbody tr {
  border-bottom: 1px solid rgba(201, 173, 167, 0.15) !important;
  transition: background 0.2s ease !important;
}

.choir-leadership-table tbody tr:nth-child(odd),
body .choir-leadership-table tbody tr:nth-child(odd) {
  background: #25263A !important;
}

.choir-leadership-table tbody tr:nth-child(even),
body .choir-leadership-table tbody tr:nth-child(even) {
  background: #1E1F30 !important;
}

.choir-leadership-table tbody tr:hover,
body .choir-leadership-table tbody tr:hover {
  background: #2D2E45 !important;
}

/* 5. Cell Position / Role MUST BE BRIGHT AMBER GOLD (#EEBA7B) */
td.cell-pos,
.choir-leadership-table td.cell-pos,
.choir-leadership-table td:first-child,
body .choir-leadership-table td.cell-pos {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  padding: 1.1rem 1.25rem !important;
  vertical-align: top !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* 6. Cell Name MUST BE PURE BRIGHT WHITE (#FFFFFF) */
td.cell-name,
.choir-leadership-table td.cell-name,
.choir-leadership-table td:nth-child(2),
body .choir-leadership-table td.cell-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  padding: 1.1rem 1.25rem !important;
  vertical-align: top !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* 7. Committee Members List */
.choir-members-list div,
body .choir-members-list div {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  line-height: 1.4 !important;
}

.choir-members-list div:last-child {
  margin-bottom: 0 !important;
}

/* END MINISTRY TABLES FIX */


/* =====================================================================
   CRITICAL FIX: SLEEK CAROUSEL PAGINATION DOTS & PROGRESS PILL BARS
   NO WEIRD SQUISHED OVAL CAPSULES!
   ===================================================================== */

.jmtc-dots-wrap,
.jmtc-dots-container,
.carousel-dots-indicator,
.mag-carousel-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 1.5rem !important;
  padding: 0.5rem 1rem !important;
  width: 100% !important;
}

.jmtc-dot,
.carousel-dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  border-radius: 50% !important;
  background: rgba(74, 78, 105, 0.3) !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.jmtc-dot.active,
.carousel-dot.active {
  width: 28px !important;
  height: 10px !important;
  border-radius: 99px !important;
  background: #D4883B !important; /* Active Copper Gold Pill Bar */
  box-shadow: 0 2px 8px rgba(212, 136, 59, 0.4) !important;
}

[data-theme="dark"] .jmtc-dot,
.section-dark .jmtc-dot {
  background: rgba(242, 233, 228, 0.3) !important;
}

[data-theme="dark"] .jmtc-dot.active,
.section-dark .jmtc-dot.active {
  background: #EEBA7B !important; /* Active Amber Gold Pill Bar in Dark Sections */
  box-shadow: 0 2px 8px rgba(238, 186, 123, 0.4) !important;
}

/* END SLEEK CAROUSEL PAGINATION DOTS FIX */


/* =====================================================================
   UNIVERSAL LAW: ALL WHITE CARDS ACROSS ALL PAGES MUST USE DARK NAVY TEXT (#22223B)
   NEVER WHITE TEXT OR BLURRY TEXT-SHADOWS ON WHITE CARDS!
   ===================================================================== */

/* 1. White Card Containers (Universal Target) */
.gallery-card,
.gallery-album-card,
.gallery-card-new,
.announcement-card,
.jmtc-card,
.resource-card,
.form-card,
.service-card,
.info-card,
.section-dark .gallery-card,
.section-dark .gallery-album-card,
.section-dark .gallery-card-new,
.section-dark .announcement-card,
.section-dark .jmtc-card,
.section-dark .resource-card,
.section-dark .form-card,
.section-dark .service-card,
.section-dark .info-card,
.section-light .gallery-card,
.section-light .announcement-card,
.section-light .jmtc-card,
body .gallery-card,
body .gallery-album-card,
body .gallery-card-new,
body .announcement-card,
body .jmtc-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.06) !important;
  color: #22223B !important;
}

/* 2. All Headings inside White Cards MUST be Rich Dark Slate Navy (#22223B) */
.gallery-card h1, .gallery-card h2, .gallery-card h3, .gallery-card h4,
.gallery-album-card h1, .gallery-album-card h2, .gallery-album-card h3, .gallery-album-card h4,
.gallery-card-title, .gallery-album-title, .gallery-card-new-title,
.announcement-card-title, .announcement-card-title a,
.jmtc-card h1, .jmtc-card h2, .jmtc-card h3, .jmtc-card h4,
.section-dark .gallery-card h3,
.section-dark .gallery-card-title,
.section-dark .gallery-album-title,
.section-dark .announcement-card-title,
.section-dark .announcement-card-title a,
.section-dark .jmtc-card h3,
body .gallery-card h3,
body .gallery-card-title,
body .gallery-album-title,
body .announcement-card-title a,
body .jmtc-card h3 {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  text-shadow: none !important; /* NO WHITE GLOW TEXT SHADOW */
}

/* Hover state for title links */
.gallery-card-title:hover,
.gallery-album-title:hover,
.announcement-card-title a:hover,
body .gallery-card-title:hover,
body .announcement-card-title a:hover {
  color: #D4883B !important;
  -webkit-text-fill-color: #D4883B !important;
}

/* 3. All Paragraphs & Excerpts inside White Cards MUST be Slate Navy (#4A4E69) */
.gallery-card p, .gallery-card-desc,
.gallery-album-card p, .gallery-album-excerpt,
.announcement-card p, .announcement-card-excerpt, .announcement-card-summary,
.jmtc-card p, .jmtc-card div,
.section-dark .gallery-card p,
.section-dark .gallery-card-desc,
.section-dark .gallery-album-excerpt,
.section-dark .announcement-card-excerpt,
.section-dark .jmtc-card p,
body .gallery-card p,
body .gallery-card-desc,
body .gallery-album-excerpt,
body .announcement-card-excerpt,
body .jmtc-card p {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* 4. Dates & Meta inside White Cards MUST be Muted Slate (#7A7D93) */
.gallery-photo-badge,
.announcement-date,
.announcement-card-meta,
.jmtc-card .jmtc-event-meta,
.section-dark .gallery-photo-badge,
.section-dark .announcement-date,
body .gallery-photo-badge,
body .announcement-date {
  color: #7A7D93 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* 5. Action Links inside White Cards MUST be Dark Navy (#22223B) */
.gallery-album-link,
.announcement-card-readmore,
.announcement-card a.view-more,
.section-dark .gallery-album-link,
.section-dark .announcement-card-readmore,
body .gallery-album-link,
body .announcement-card-readmore {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.gallery-album-link:hover,
.announcement-card-readmore:hover {
  color: #D4883B !important;
  -webkit-text-fill-color: #D4883B !important;
}

/* END UNIVERSAL WHITE CARDS FIX */



/* =====================================================================
   GOOGLE MAPS PIN VISIBILITY & OVERLAY CARD STYLING
   ===================================================================== */

.contact-map-card {
  height: 100% !important;
  min-height: 480px !important;
}

.contact-map-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 480px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.12) !important;
}

.contact-map-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 480px !important;
  border: 0 !important;
}

/* Floating Overlay Card at bottom of map */
.contact-map-overlay-card {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  right: 16px !important;
  background: rgba(37, 38, 58, 0.94) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.3) !important;
  border-radius: 14px !important;
  padding: 1rem 1.25rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 5 !important;
}

.overlay-church-name {
  color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 0 0 2px 0 !important;
}

.overlay-address {
  color: rgba(242, 233, 228, 0.85) !important;
  font-size: 12.5px !important;
  margin: 0 !important;
}

.overlay-directions-btn {
  background: linear-gradient(135deg, #EEBA7B 0%, #D4883B 100%) !important;
  color: #22223B !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 0.55rem 1rem !important;
  border-radius: 99px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(238, 186, 123, 0.35) !important;
  transition: transform 0.2s ease !important;
}

.overlay-directions-btn:hover {
  transform: translateY(-2px) !important;
}

@media (max-width: 767px) {
  .contact-map-card,
  .contact-map-wrapper,
  .contact-map-wrapper iframe {
    min-height: 380px !important;
  }

  .contact-map-overlay-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 0.85rem 1rem !important;
  }
}

/* END GOOGLE MAPS PIN FIX */


/* =====================================================================
   UNIVERSAL DARK MODE CARDS OVERHAUL ([data-theme="dark"])
   NO WHITE CARDS IN DARK MODE EVER! ALL CARDS TURN TO DARK NAVY (#25263A)
   ===================================================================== */

[data-theme="dark"] .announcement-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .gallery-album-card,
[data-theme="dark"] .gallery-card-new,
[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .hero-event-card,
[data-theme="dark"] .bearer-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .service-timings-card,
html[data-theme="dark"] .announcement-card,
html[data-theme="dark"] .gallery-card,
html[data-theme="dark"] .jmtc-card,
body[data-theme="dark"] .announcement-card,
body[data-theme="dark"] .gallery-card,
body[data-theme="dark"] .jmtc-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  color: #F2E9E4 !important;
}

/* Headings in Dark Mode Cards -> Pure Bright White (#FFFFFF) */
[data-theme="dark"] .announcement-card-title,
[data-theme="dark"] .announcement-card-title a,
[data-theme="dark"] .gallery-card-title,
[data-theme="dark"] .gallery-album-title,
[data-theme="dark"] .jmtc-card h1,
[data-theme="dark"] .jmtc-card h2,
[data-theme="dark"] .jmtc-card h3,
[data-theme="dark"] .jmtc-card h4,
[data-theme="dark"] .service-timings-title,
[data-theme="dark"] .timing-day,
html[data-theme="dark"] .announcement-card-title a,
body[data-theme="dark"] .announcement-card-title a,
body[data-theme="dark"] .jmtc-card h3 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Paragraphs & Excerpts in Dark Mode Cards -> Crisp Alabaster White */
[data-theme="dark"] .announcement-card-excerpt,
[data-theme="dark"] .announcement-card-summary,
[data-theme="dark"] .announcement-card p,
[data-theme="dark"] .gallery-card p,
[data-theme="dark"] .gallery-card-desc,
[data-theme="dark"] .gallery-album-excerpt,
[data-theme="dark"] .jmtc-card p,
[data-theme="dark"] .timing-desc,
html[data-theme="dark"] .announcement-card-excerpt,
body[data-theme="dark"] .announcement-card-excerpt,
body[data-theme="dark"] .jmtc-card p {
  color: rgba(242, 233, 228, 0.94) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.94) !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Dates & Meta in Dark Mode Cards -> Dusty Rose */
[data-theme="dark"] .announcement-date,
[data-theme="dark"] .announcement-card-meta,
[data-theme="dark"] .gallery-photo-badge,
[data-theme="dark"] .jmtc-event-meta,
body[data-theme="dark"] .announcement-date {
  color: rgba(201, 173, 167, 0.95) !important;
  text-shadow: none !important;
}

/* Read More Links & Action Buttons in Dark Mode Cards -> Amber Gold */
[data-theme="dark"] .announcement-card-readmore,
[data-theme="dark"] .announcement-card a.view-more,
[data-theme="dark"] .gallery-album-link,
[data-theme="dark"] .timing-time,
body[data-theme="dark"] .announcement-card-readmore {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

/* Category Badges & Icons in Dark Mode Cards */
[data-theme="dark"] .category-badge,
[data-theme="dark"] .announcement-badge,
[data-theme="dark"] .badge,
[data-theme="dark"] .announcement-icon-wrap,
[data-theme="dark"] .service-clock-icon-wrap {
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1px solid rgba(201, 173, 167, 0.45) !important;
  color: #EEBA7B !important;
}

[data-theme="dark"] .category-badge span,
[data-theme="dark"] .announcement-badge span {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
}

/* END UNIVERSAL DARK MODE CARDS OVERHAUL */


/* =====================================================================
   CRITICAL FIX: DARK MODE ANNOUNCEMENT CARDS TEXT CONTRAST OVERHAUL
   ===================================================================== */

/* 1. Dark Mode Category Badges ("WORSHIP & PRAYER", "EVENTS", etc.) */
[data-theme="dark"] .announcement-badge,
[data-theme="dark"] .category-badge,
[data-theme="dark"] .announcement-category,
[data-theme="dark"] .badge,
[data-theme="dark"] span.worship-prayer,
[data-theme="dark"] span.events,
[data-theme="dark"] span.news,
[data-theme="dark"] span.others,
html[data-theme="dark"] .announcement-badge,
body[data-theme="dark"] .announcement-badge {
  background: rgba(238, 186, 123, 0.18) !important;
  border: 1px solid rgba(238, 186, 123, 0.45) !important;
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .announcement-badge span,
[data-theme="dark"] .category-badge span,
[data-theme="dark"] .announcement-category span {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
}

/* 2. Dark Mode Date Labels ("May 18, 2025") */
[data-theme="dark"] .announcement-date,
[data-theme="dark"] .announcement-card-meta,
[data-theme="dark"] .announcement-card-date,
[data-theme="dark"] .gallery-photo-badge,
[data-theme="dark"] .jmtc-event-meta,
html[data-theme="dark"] .announcement-date,
body[data-theme="dark"] .announcement-date,
body[data-theme="dark"] .announcement-card-meta {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* 3. Dark Mode Read More Links ("Read More ->") */
[data-theme="dark"] .announcement-card-readmore,
[data-theme="dark"] .announcement-card a.view-more,
[data-theme="dark"] .read-more-link,
[data-theme="dark"] .gallery-album-link,
html[data-theme="dark"] .announcement-card-readmore,
body[data-theme="dark"] .announcement-card-readmore,
body[data-theme="dark"] .read-more-link {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .announcement-card-readmore:hover,
[data-theme="dark"] .read-more-link:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* 4. Dark Mode Left Icon Circle */
[data-theme="dark"] .announcement-icon-wrap,
[data-theme="dark"] .announcement-card-icon {
  background: rgba(238, 186, 123, 0.18) !important;
  border: 1px solid rgba(238, 186, 123, 0.4) !important;
  color: #EEBA7B !important;
}

[data-theme="dark"] .announcement-icon-wrap svg,
[data-theme="dark"] .announcement-card-icon svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

/* END DARK MODE ANNOUNCEMENT CARDS TEXT CONTRAST FIX */



/* =====================================================================
   HIGH-VISIBILITY NAVBAR THEME TOGGLE BUTTON FIX
   ===================================================================== */

.theme-toggle-btn,
button.theme-toggle-btn,
body .theme-toggle-btn {
  background: #25263A !important;
  color: #EEBA7B !important;
  border: 1.5px solid rgba(238, 186, 123, 0.45) !important;
  border-radius: 99px !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.2s ease !important;
  z-index: 100 !important;
}

.theme-toggle-btn svg,
body .theme-toggle-btn svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
  fill: none !important;
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.theme-toggle-btn:hover {
  background: #1C1D2E !important;
  border-color: #EEBA7B !important;
  transform: scale(1.06) !important;
  box-shadow: 0 6px 16px rgba(238, 186, 123, 0.3) !important;
}

/* Dark Mode Theme Toggle Button */
[data-theme="dark"] .theme-toggle-btn,
html[data-theme="dark"] .theme-toggle-btn,
body[data-theme="dark"] .theme-toggle-btn {
  background: rgba(238, 186, 123, 0.22) !important;
  border-color: rgba(238, 186, 123, 0.5) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .theme-toggle-btn svg,
body[data-theme="dark"] .theme-toggle-btn svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* END HIGH-VISIBILITY THEME TOGGLE BUTTON FIX */



/* =====================================================================
   CRITICAL FIX: GOOGLE MAPS FLOATING OVERLAY CARD TEXT CONTRAST
   FORCE PURE WHITE HEADING (#FFFFFF) AND CRISP ALABASTER ADDRESS (#F2E9E4)
   ===================================================================== */

.contact-map-overlay-card,
div.contact-map-overlay-card,
body .contact-map-overlay-card {
  background: rgba(24, 25, 40, 0.96) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.38) !important;
  border-radius: 16px !important;
  padding: 1.1rem 1.35rem !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important;
  z-index: 20 !important;
}

/* Church Title in Map Overlay Card -> Pure Bright White (#FFFFFF) */
.contact-map-overlay-card h3,
.contact-map-overlay-card .overlay-church-name,
.contact-map-overlay-card div h3,
div.contact-map-overlay-card h3,
body .contact-map-overlay-card .overlay-church-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 3px 0 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Address in Map Overlay Card -> Crisp Alabaster White (#F2E9E4) */
.contact-map-overlay-card p,
.contact-map-overlay-card .overlay-address,
.contact-map-overlay-card div p,
div.contact-map-overlay-card p,
body .contact-map-overlay-card .overlay-address {
  color: rgba(242, 233, 228, 0.94) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.94) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Pin Icon in Map Overlay Card -> Bright Amber Gold (#EEBA7B) */
.contact-map-overlay-card .overlay-pin-icon,
.contact-map-overlay-card svg {
  color: #EEBA7B !important;
  stroke: #EEBA7B !important;
}

/* GET DIRECTIONS Button */
.contact-map-overlay-card .overlay-directions-btn,
a.overlay-directions-btn,
body .overlay-directions-btn {
  background: linear-gradient(135deg, #EEBA7B 0%, #D4883B 100%) !important;
  color: #181928 !important;
  -webkit-text-fill-color: #181928 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.04em !important;
  padding: 0.6rem 1.15rem !important;
  border-radius: 99px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(238, 186, 123, 0.4) !important;
  transition: all 0.2s ease !important;
}

.contact-map-overlay-card .overlay-directions-btn svg {
  color: #181928 !important;
  stroke: #181928 !important;
}

.contact-map-overlay-card .overlay-directions-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(238, 186, 123, 0.55) !important;
}

/* END MAP OVERLAY CARD CONTRAST FIX */


/* =====================================================================
   UNIVERSAL CARD DIMENSIONS & PHOTO SIZING OVERHAUL (ALL PAGES)
   INCREASED LENGTH, WIDTH, AND PHOTO HEIGHT (250PX) WITH CENTER-TOP ALIGNMENT
   SO FACES AND FULL GROUP PHOTOS ARE 100% VISIBLE & NEVER CROPPED OFF!
   ===================================================================== */

/* 1. Card Cover Image Wrappers across All Pages */
.jmtc-gallery-img-wrap,
.gallery-album-cover-wrap,
.mag-card-hero-image-wrap,
.jmtc-card-img-wrap,
.resource-card-img-wrap,
body .jmtc-gallery-img-wrap,
body .gallery-album-cover-wrap {
  position: relative !important;
  width: 100% !important;
  height: 250px !important; /* Increased from 140px/160px for full scene rendering */
  min-height: 250px !important;
  max-height: 250px !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
  background: #1C1D2E !important;
}

/* 2. Card Cover Image Tag Parameters */
.jmtc-gallery-img,
.gallery-album-cover,
.mag-card-img,
.jmtc-card-img,
.resource-card-img,
body .jmtc-gallery-img,
body .gallery-album-cover {
  width: 100% !important;
  height: 100% !important;
  min-height: 250px !important;
  object-fit: cover !important;
  object-position: center top !important; /* Ensures faces & heads are 100% visible */
  display: block !important;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.jmtc-card:hover .jmtc-gallery-img,
.gallery-album-card:hover .gallery-album-cover,
.mag-content-card:hover .mag-card-img {
  transform: scale(1.05) !important;
}

/* 3. Card Container Length & Width Overhaul */
.jmtc-card,
.gallery-album-card,
.mag-content-card,
.resource-card,
.service-card,
body .jmtc-card,
body .gallery-album-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 430px !important; /* Increased vertical card length */
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 28px rgba(34, 34, 59, 0.12) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* Card Body Content Padding */
.jmtc-gallery-body,
.gallery-album-body,
.mag-card-body,
.jmtc-card-body,
body .jmtc-gallery-body {
  padding: 1.35rem 1.5rem !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.jmtc-gallery-title,
.gallery-album-title,
.mag-card-title,
body .jmtc-gallery-title {
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 0.5rem !important;
}

.jmtc-gallery-sub,
.gallery-album-desc,
.mag-card-excerpt,
body .jmtc-gallery-sub {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 1rem !important;
}

/* 4. Carousel Card Width in Tracks */
.jmtc-carousel-track .jmtc-card,
.mag-carousel-track .mag-content-card,
body .jmtc-carousel-track .jmtc-card {
  flex: 0 0 360px !important; /* Generous card width in carousels */
  width: 360px !important;
  max-width: 360px !important;
}

/* 5. Grid Card Layout in Gallery & Resources */
.gallery-albums-grid,
.jmtc-card-grid,
body .gallery-albums-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important; /* 340px min width */
  gap: 2.25rem !important;
}

@media (max-width: 767px) {
  .jmtc-gallery-img-wrap,
  .gallery-album-cover-wrap,
  .mag-card-hero-image-wrap,
  body .jmtc-gallery-img-wrap {
    height: 200px !important;
    min-height: 200px !important;
  }
  
  .jmtc-carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
  }

  .gallery-albums-grid {
    grid-template-columns: 1fr !important;
  }
}

/* END UNIVERSAL CARD SIZING OVERHAUL */


/* =====================================================================
   FROSTED GLASS MULTI-PHOTO COUNT BADGES (AMBER GOLD & SLATE GLASS)
   ===================================================================== */

.jmtc-photo-count-badge,
.gallery-album-badge,
span.jmtc-photo-count-badge,
span.gallery-album-badge,
body .jmtc-photo-count-badge,
body .gallery-album-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: rgba(24, 25, 40, 0.85) !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border: 1.5px solid rgba(238, 186, 123, 0.45) !important;
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 99px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  z-index: 10 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

/* Hide any remaining 1 photo badges */
.jmtc-photo-count-badge:empty,
.gallery-album-badge:empty {
  display: none !important;
}

/* END FROSTED GLASS MULTI-PHOTO BADGES FIX */


/* =====================================================================
   CRITICAL FIX: UPCOMING EVENTS CAROUSEL CARDS TEXT CONTRAST OVERHAUL
   PREVENTS WHITE TEXT ON WHITE CARDS!
   ===================================================================== */

/* 1. Light Mode / White Body Cards (.hero-event-card, .mag-content-card, .jmtc-card) */
.mag-content-card,
.hero-event-card,
body .mag-content-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 20px !important;
  color: #22223B !important;
  box-shadow: 0 6px 24px rgba(34, 34, 59, 0.05) !important;
  overflow: hidden !important;
}

/* Light Mode Card Titles -> Deep Dark Slate Navy (#22223B) */
.mag-content-card .mag-card-title,
.hero-event-card .mag-card-title,
.mag-content-card h3,
.hero-event-card h3,
.mag-content-card a,
body .mag-content-card .mag-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  margin-bottom: 0.5rem !important;
}

/* Light Mode Card Date & Meta -> Clean Slate Grey (#6C757D) */
.mag-content-card .mag-card-meta,
.hero-event-card .mag-card-meta,
.mag-content-card span.mag-card-meta,
body .mag-content-card .mag-card-meta {
  color: #6C757D !important;
  -webkit-text-fill-color: #6C757D !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Light Mode View More Link -> Deep Dark Slate (#22223B) */
.mag-content-card .mag-card-link,
.hero-event-card .mag-card-link,
.mag-content-card span.mag-card-link,
body .mag-content-card .mag-card-link {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.mag-content-card .mag-card-link svg,
.hero-event-card .mag-card-link svg {
  stroke: #22223B !important;
  color: #22223B !important;
}


/* 2. Dark Mode Overrides ([data-theme="dark"]) */
[data-theme="dark"] .mag-content-card,
[data-theme="dark"] .hero-event-card,
html[data-theme="dark"] .mag-content-card,
body[data-theme="dark"] .mag-content-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  color: #F2E9E4 !important;
}

/* Dark Mode Card Titles -> Pure Bright White (#FFFFFF) */
[data-theme="dark"] .mag-content-card .mag-card-title,
[data-theme="dark"] .hero-event-card .mag-card-title,
[data-theme="dark"] .mag-content-card h3,
html[data-theme="dark"] .mag-content-card .mag-card-title,
body[data-theme="dark"] .mag-content-card .mag-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Dark Mode Date & Meta -> Alabaster White (#F2E9E4) */
[data-theme="dark"] .mag-content-card .mag-card-meta,
[data-theme="dark"] .hero-event-card .mag-card-meta,
body[data-theme="dark"] .mag-content-card .mag-card-meta {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Dark Mode View More Link -> Bright Amber Gold (#EEBA7B) */
[data-theme="dark"] .mag-content-card .mag-card-link,
[data-theme="dark"] .hero-event-card .mag-card-link,
body[data-theme="dark"] .mag-content-card .mag-card-link {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .mag-content-card .mag-card-link svg,
[data-theme="dark"] .hero-event-card .mag-card-link svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

/* END UPCOMING EVENTS CAROUSEL CARDS TEXT CONTRAST FIX */


/* =====================================================================
   BULLETPROOF DUAL CONTRAST SYSTEM FOR ALL CARDS ACROSS ALL PAGES
   ELIMINATES WHITE TEXT ON WHITE CARDS 100% GUARANTEED!
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. LIGHT MODE CARDS (WHITE CARD BACKGROUNDS = DEEP DARK CHARCOAL TEXT)
   --------------------------------------------------------------------- */

/* All Card Titles on White Card Backgrounds */
.jmtc-card .jmtc-gallery-title,
.jmtc-card .jmtc-gallery-title span,
.jmtc-card .jmtc-gallery-title a,
.jmtc-card h1, .jmtc-card h2, .jmtc-card h3, .jmtc-card h4,
.gallery-album-card .gallery-album-title,
.gallery-album-card h3,
.mag-content-card .mag-card-title,
.mag-content-card h3,
.hero-event-card .mag-card-title,
.hero-event-card h3,
.announcement-card .announcement-card-title,
.announcement-card .announcement-card-title a,
.resource-card h3,
.service-card h3,
.info-card h3,
body .jmtc-card .jmtc-gallery-title,
body .jmtc-card .jmtc-gallery-title span,
body .jmtc-card h3,
body .gallery-album-card .gallery-album-title,
body .mag-content-card .mag-card-title {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  margin-bottom: 0.45rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* All Card Subtitles & Excerpts on White Card Backgrounds */
.jmtc-card .jmtc-gallery-sub,
.jmtc-card p,
.gallery-album-card .gallery-album-desc,
.gallery-album-card p,
.mag-content-card .mag-card-excerpt,
.mag-content-card p,
.hero-event-card p,
.announcement-card p,
.resource-card p,
body .jmtc-card .jmtc-gallery-sub,
body .jmtc-card p,
body .gallery-album-card .gallery-album-desc,
body .mag-content-card p {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* All Card Action Links & CTAs on White Card Backgrounds */
.jmtc-card .jmtc-gallery-title-link,
.jmtc-card a,
.jmtc-card span.mag-card-link,
.gallery-album-card .gallery-album-cta,
.gallery-album-card .gallery-album-cta span,
.mag-content-card .mag-card-link,
.mag-content-card .mag-card-link span,
body .jmtc-card .jmtc-gallery-title-link,
body .gallery-album-card .gallery-album-cta span {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  text-decoration: none !important;
}


/* ---------------------------------------------------------------------
   2. DARK MODE OVERRIDES ([data-theme="dark"])
   ALL CARDS TURN DEEP SLATE NAVY (#25263A) WITH CRISP WHITE TEXT (#FFFFFF)
   --------------------------------------------------------------------- */

[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .gallery-album-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .mag-content-card,
[data-theme="dark"] .hero-event-card,
[data-theme="dark"] .announcement-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .info-card,
html[data-theme="dark"] .jmtc-card,
html[data-theme="dark"] .gallery-album-card,
body[data-theme="dark"] .jmtc-card,
body[data-theme="dark"] .gallery-album-card,
body[data-theme="dark"] .mag-content-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Dark Mode Card Titles -> Pure Bright White (#FFFFFF) */
[data-theme="dark"] .jmtc-card .jmtc-gallery-title,
[data-theme="dark"] .jmtc-card .jmtc-gallery-title span,
[data-theme="dark"] .jmtc-card .jmtc-gallery-title a,
[data-theme="dark"] .jmtc-card h1, [data-theme="dark"] .jmtc-card h2, [data-theme="dark"] .jmtc-card h3, [data-theme="dark"] .jmtc-card h4,
[data-theme="dark"] .gallery-album-card .gallery-album-title,
[data-theme="dark"] .gallery-album-card h3,
[data-theme="dark"] .mag-content-card .mag-card-title,
[data-theme="dark"] .mag-content-card h3,
[data-theme="dark"] .hero-event-card h3,
[data-theme="dark"] .announcement-card .announcement-card-title a,
html[data-theme="dark"] .jmtc-card .jmtc-gallery-title,
body[data-theme="dark"] .jmtc-card .jmtc-gallery-title,
body[data-theme="dark"] .gallery-album-card .gallery-album-title,
body[data-theme="dark"] .mag-content-card .mag-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

/* Dark Mode Card Subtitles & Body Paragraphs -> Crisp Alabaster White (#F2E9E4) */
[data-theme="dark"] .jmtc-card .jmtc-gallery-sub,
[data-theme="dark"] .jmtc-card p,
[data-theme="dark"] .gallery-album-card .gallery-album-desc,
[data-theme="dark"] .gallery-album-card p,
[data-theme="dark"] .mag-content-card .mag-card-excerpt,
[data-theme="dark"] .mag-content-card p,
[data-theme="dark"] .announcement-card p,
html[data-theme="dark"] .jmtc-card .jmtc-gallery-sub,
body[data-theme="dark"] .jmtc-card .jmtc-gallery-sub,
body[data-theme="dark"] .gallery-album-card .gallery-album-desc,
body[data-theme="dark"] .mag-content-card p {
  color: rgba(242, 233, 228, 0.94) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Dark Mode Card Action Links & CTAs -> Bright Amber Gold (#EEBA7B) */
[data-theme="dark"] .jmtc-card .jmtc-gallery-title-link,
[data-theme="dark"] .jmtc-card a,
[data-theme="dark"] .jmtc-card span.mag-card-link,
[data-theme="dark"] .gallery-album-card .gallery-album-cta,
[data-theme="dark"] .gallery-album-card .gallery-album-cta span,
[data-theme="dark"] .mag-content-card .mag-card-link,
[data-theme="dark"] .mag-content-card .mag-card-link span,
html[data-theme="dark"] .jmtc-card .jmtc-gallery-title-link,
body[data-theme="dark"] .jmtc-card .jmtc-gallery-title-link,
body[data-theme="dark"] .gallery-album-card .gallery-album-cta span,
body[data-theme="dark"] .mag-content-card .mag-card-link span {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .mag-content-card .mag-card-link svg,
body[data-theme="dark"] .mag-content-card .mag-card-link svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

/* END BULLETPROOF DUAL CONTRAST SYSTEM */


/* =====================================================================
   PERMANENT FIX: CARDS INSIDE DARK SECTIONS (UPCOMING EVENTS, GALLERY, ETC.)
   FORCES PURE WHITE TITLES (#FFFFFF) AND ALABASTER TEXT (#F2E9E4)
   IN BOTH LIGHT AND DARK MODES FOR 100% LEGIBILITY!
   ===================================================================== */

/* Cards inside Dark Sections (.section-dark, .dark-section, #upcoming-events-section) */
.section-dark .mag-content-card,
.section-dark .hero-event-card,
.section-dark .jmtc-card,
.dark-section .mag-content-card,
.dark-section .hero-event-card,
.dark-section .jmtc-card,
#upcoming-events-section .mag-content-card,
#upcoming-events-section .hero-event-card,
body .section-dark .mag-content-card,
body #upcoming-events-section .mag-content-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Card Titles inside Dark Sections -> Pure Bright White (#FFFFFF) */
.section-dark .mag-content-card .mag-card-title,
.section-dark .hero-event-card .mag-card-title,
.section-dark .mag-content-card h3,
.section-dark .hero-event-card h3,
.section-dark .jmtc-card .jmtc-gallery-title,
.section-dark .jmtc-card h3,
.dark-section .mag-content-card h3,
#upcoming-events-section .mag-content-card h3,
#upcoming-events-section .mag-card-title,
body .section-dark .mag-content-card .mag-card-title,
body #upcoming-events-section .mag-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Card Body Paragraphs & Subtitles inside Dark Sections -> Crisp Alabaster White (#F2E9E4) */
.section-dark .mag-content-card .mag-card-excerpt,
.section-dark .mag-content-card p,
.section-dark .hero-event-card p,
.section-dark .jmtc-card .jmtc-gallery-sub,
.section-dark .jmtc-card p,
.dark-section .mag-content-card p,
#upcoming-events-section .mag-content-card p,
#upcoming-events-section .mag-card-excerpt,
body .section-dark .mag-content-card p,
body #upcoming-events-section .mag-card-excerpt {
  color: rgba(242, 233, 228, 0.94) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.94) !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Card Dates & Meta Tags inside Dark Sections */
.section-dark .mag-content-card .mag-card-meta,
.section-dark .hero-event-card .mag-card-meta,
.section-dark .mag-content-card span.mag-card-meta,
#upcoming-events-section .mag-card-meta,
body #upcoming-events-section .mag-card-meta {
  color: rgba(242, 233, 228, 0.88) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.88) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Card Action Links & CTAs inside Dark Sections -> Bright Amber Gold (#EEBA7B) */
.section-dark .mag-content-card .mag-card-link,
.section-dark .hero-event-card .mag-card-link,
.section-dark .mag-content-card span.mag-card-link,
.section-dark .jmtc-card .jmtc-gallery-title-link,
.section-dark .jmtc-card a,
#upcoming-events-section .mag-card-link,
body .section-dark .mag-content-card .mag-card-link,
body #upcoming-events-section .mag-card-link {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  text-decoration: none !important;
}

.section-dark .mag-content-card .mag-card-link svg,
.section-dark .hero-event-card .mag-card-link svg,
#upcoming-events-section .mag-card-link svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

/* END DARK SECTION CARDS CONTRAST FIX */


/* =====================================================================
   UNBREAKABLE UPCOMING EVENTS CARDS CONTRAST OVERHAUL
   FORCES DARK NAVY CARD BACKGROUND (#25263A) WITH CRISP WHITE (#FFFFFF) TEXT
   AND STOPS BLURRY WHITE GHOST TEXT ON WHITE CARDS!
   ===================================================================== */

/* Force Slate Navy Card Background on Upcoming Events & Stay Connected Cards */
/* Force Slate Navy Card Background on Upcoming Events & Stay Connected Cards in Dark Mode/Dark Sections */
[data-theme="dark"] .mag-content-card,
[data-theme="dark"] .hero-event-card,
#upcoming-events-section .mag-content-card,
.section-dark .mag-content-card,
body[data-theme="dark"] .mag-content-card,
body #upcoming-events-section .mag-content-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.32) !important;
  border-radius: 20px !important;
  color: #F2E9E4 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
}

/* Ensure inner card body has no competing borders, radius, shadows, or background duplicate overrides */
.mag-content-card .mag-card-body,
.hero-event-card .mag-card-body,
.hero-event-card-body,
body .mag-content-card .mag-card-body,
body .hero-event-card-body {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Card Titles on Dark Navy Cards -> Pure Crisp White (#FFFFFF) with NO blurry shadows */
.mag-content-card .mag-card-title,
.hero-event-card .mag-card-title,
.mag-content-card h3,
.hero-event-card h3,
.mag-content-card .mag-card-title a,
#upcoming-events-section .mag-card-title,
#upcoming-events-section h3,
body .mag-content-card .mag-card-title,
body #upcoming-events-section .mag-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  margin-bottom: 0.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Card Dates & Excerpts on Dark Navy Cards -> Crisp Alabaster White (#F2E9E4) */
.mag-content-card .mag-card-meta,
.hero-event-card .mag-card-meta,
.mag-content-card span.mag-card-meta,
.mag-content-card p,
.hero-event-card p,
#upcoming-events-section .mag-card-meta,
body .mag-content-card .mag-card-meta,
body #upcoming-events-section .mag-card-meta {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Card Action Links on Dark Navy Cards -> Bright Amber Gold (#EEBA7B) */
.mag-content-card .mag-card-link,
.hero-event-card .mag-card-link,
.mag-content-card span.mag-card-link,
#upcoming-events-section .mag-card-link,
body .mag-content-card .mag-card-link,
body #upcoming-events-section .mag-card-link {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-shadow: none !important;
  text-decoration: none !important;
}

.mag-content-card .mag-card-link svg,
.hero-event-card .mag-card-link svg,
#upcoming-events-section .mag-card-link svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

/* ---------------------------------------------------------------------
   FALLBACK: IF ANY CARD HAS EXPLICIT WHITE BACKGROUND (#FFFFFF)
   FORCE DEEP SLATE NAVY TEXT (#1C1D2E)
   --------------------------------------------------------------------- */

.mag-content-card[style*="background: #FFF"],
.mag-content-card[style*="background: #fff"],
.mag-content-card[style*="background: white"],
.mag-content-card.bg-white {
  background: #FFFFFF !important;
}

.mag-content-card[style*="background: #FFF"] .mag-card-title,
.mag-content-card[style*="background: #fff"] .mag-card-title,
.mag-content-card.bg-white .mag-card-title {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
  text-shadow: none !important;
}

.mag-content-card[style*="background: #FFF"] .mag-card-meta,
.mag-content-card[style*="background: #fff"] .mag-card-meta,
.mag-content-card.bg-white .mag-card-meta {
  color: #6C757D !important;
  -webkit-text-fill-color: #6C757D !important;
  text-shadow: none !important;
}

.mag-content-card[style*="background: #FFF"] .mag-card-link,
.mag-content-card[style*="background: #fff"] .mag-card-link,
.mag-content-card.bg-white .mag-card-link {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
  text-shadow: none !important;
}

/* END UNBREAKABLE UPCOMING EVENTS CARDS CONTRAST FIX */


/* =====================================================================
   EXECUTIVE COMMITTEE TABLE & THEME TOGGLE BUTTON OVERHAUL
   100% LEGIBILITY & GUARANTEED INSTANT TOGGLE CLICK EXECUTION
   ===================================================================== */

/* 1. Theme Toggle Button Pointer Events & Z-Index Guarantee */
#themeToggleBtn,
.theme-toggle-btn,
button#themeToggleBtn,
body .theme-toggle-btn {
  position: relative !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

#themeToggleBtn *,
.theme-toggle-btn *,
button#themeToggleBtn * {
  pointer-events: none !important;
}

/* 2. Executive Committee Page Hero & Text Contrast */
.exec-hero-title,
h1.exec-hero-title,
body .exec-hero-title {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .exec-hero-title,
body[data-theme="dark"] .exec-hero-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.exec-hero-desc,
body .exec-hero-desc {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

[data-theme="dark"] .exec-hero-desc,
body[data-theme="dark"] .exec-hero-desc {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

.exec-section-title,
h2.exec-section-title,
body .exec-section-title {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 0.75rem !important;
}

/* 3. Executive Committee Tables (100% Crisp White & Alabaster on Navy) */
.exec-table-wrap,
.exec-table,
div.exec-table-wrap,
table.exec-table,
body .exec-table-wrap {
  background: #181928 !important;
  border: 1.5px solid rgba(201, 173, 167, 0.32) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  width: 100% !important;
}

.exec-table th,
table.exec-table th,
body .exec-table th {
  background: #25263A !important;
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.95rem 1.25rem !important;
  border-bottom: 1.5px solid rgba(238, 186, 123, 0.4) !important;
}

.exec-table td,
table.exec-table td,
body .exec-table td {
  padding: 0.85rem 1.25rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
}

.exec-table tr:last-child td {
  border-bottom: none !important;
}

/* Explicit alternating dark rows to override light mode styles */
.exec-table tr:nth-child(odd),
.exec-table tbody tr:nth-child(odd),
body .exec-table tbody tr:nth-child(odd) {
  background-color: #25263A !important;
  background: #25263A !important;
}

.exec-table tr:nth-child(even),
.exec-table tbody tr:nth-child(even),
body .exec-table tbody tr:nth-child(even) {
  background-color: #1E1F30 !important;
  background: #1E1F30 !important;
}

.exec-table tr:hover,
.exec-table tbody tr:hover,
body .exec-table tbody tr:hover {
  background-color: #2D2E45 !important;
  background: #2D2E45 !important;
}

/* Role / Position Title -> Amber Gold (#EEBA7B) */
.exec-table td.cell-title,
.exec-table .cell-title,
td.cell-title,
body .exec-table td.cell-title {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Member Name -> Pure Bright White (#FFFFFF) */
.exec-table td.cell-name,
.exec-table .cell-name,
td.cell-name,
body .exec-table td.cell-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* END EXECUTIVE COMMITTEE TABLE & THEME TOGGLE FIX */


/* =====================================================================
   GLOBAL LIGHT & DARK MODE PAGE THEME TRANSITION OVERHAUL
   INSTANT VISUAL FEEDBACK WHEN TOGGLING LIGHT / DARK MODE
   ===================================================================== */

/* Light Mode Defaults ([data-theme="light"] or default) */
html[data-theme="light"] body,
body[data-theme="light"],
body:not([data-theme="dark"]) {
  background-color: #FAF8F5 !important;
  color: #1C1D2E !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

html[data-theme="light"] .exec-page-wrapper,
body[data-theme="light"] .exec-page-wrapper,
body:not([data-theme="dark"]) .exec-page-wrapper {
  background-color: #FAF8F5 !important;
}

html[data-theme="light"] .exec-hero-section,
body[data-theme="light"] .exec-hero-section,
body:not([data-theme="dark"]) .exec-hero-section {
  background-color: #FAF8F5 !important;
}


/* Dark Mode Overrides ([data-theme="dark"]) */
html[data-theme="dark"] body,
body[data-theme="dark"] {
  background-color: #121320 !important;
  color: #F2E9E4 !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}

html[data-theme="dark"] .exec-page-wrapper,
body[data-theme="dark"] .exec-page-wrapper,
html[data-theme="dark"] .exec-hero-section,
body[data-theme="dark"] .exec-hero-section {
  background-color: #121320 !important;
}

html[data-theme="dark"] .exec-hero-title,
body[data-theme="dark"] .exec-hero-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

html[data-theme="dark"] .exec-hero-desc,
body[data-theme="dark"] .exec-hero-desc {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

/* END GLOBAL LIGHT & DARK MODE OVERHAUL */


/* ==========================================================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ========================================================================== */

/* 1. Global Setup & Overflow Prevention */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  section, .container, .main-content {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Interactive Elements Touch Target Size */
  button, a.button, .btn, .nav-link, input, select, textarea {
    min-height: 44px !important;
  }
}

/* 2. Tablet (max-width: 991px) */
@media (max-width: 991px) {
  /* Typography Scaling */
  h1, .h1 { font-size: 2rem !important; }
  h2, .h2 { font-size: 1.75rem !important; }
  h3, .h3 { font-size: 1.5rem !important; }
  
  /* Navbar */
  .grid-navbar {
    grid-template-columns: 1fr auto !important;
    padding: 10px 20px !important;
  }
  .nav-grid-container {
    display: none !important; /* Hide standard nav */
  }
  .hamburger-toggle {
    display: block !important;
  }
  .mobile-nav-drawer {
    display: none; /* Handled by JS */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
  }
  .mobile-nav-drawer.active {
    display: block !important;
  }

  /* Hero Sections */
  .hero-section, .exec-hero-section, .vicar-hero-section, .gallery-hero-header, .choir-hero-section {
    min-height: auto !important;
    padding: 60px 20px !important;
  }

  /* Vicar Section */
  .vicar-card-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

/* Gallery Grid */
  .jmtc-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Ministry Pages */
  .ministry-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 3. Mobile (max-width: 767px) */
@media (max-width: 767px) {
  /* Typography */
  h1, .h1 { font-size: 1.75rem !important; }
  h2, .h2 { font-size: 1.5rem !important; }
  
  /* Section Padding */
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Service Timings */
  .service-timings-grid {
    grid-template-columns: 1fr !important;
  }

  /* Card Carousels */
  .mag-carousel-track {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 15px !important;
  }
  .mag-content-card, .hero-event-card {
    min-width: 280px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    flex: 0 0 auto !important;
  }

  /* Executive Tables */
  .exec-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
  }
  .exec-table {
    min-width: 600px !important; /* Force scroll */
  }

/* Contact Page */
  .contact-info-grid, .contact-form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Gallery Grid */
  .jmtc-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Announcement Cards */
  .announcement-feed-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Lightbox */
  .lightbox-modal, #lightboxModal {
    padding: 10px !important;
  }
  .lightbox-modal .modal-content, #lightboxModal .modal-content {
    max-width: 100% !important;
    max-height: 90vh !important;
  }
}

/* 4. Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Typography */
  h1, .h1 { font-size: 1.5rem !important; }
  h2, .h2 { font-size: 1.25rem !important; }
  body { font-size: 14px !important; }
  
  /* Card Carousels */
  .mag-content-card, .hero-event-card {
    min-width: 85vw !important;
    max-width: 90vw !important;
  }
  
  /* Forms / Inputs */
  input, select, textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* Kalpana/Forms/Lectionary Pages */
  .content-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}


/* =====================================================================
   CRITICAL MOBILE FIXES - TARGETED OVERRIDES
   These rules use extreme specificity to override earlier !important
   declarations that break mobile layouts.
   ===================================================================== */

/* --- FIX 1: Card carousel cards fixed at 360px breaking mobile --- */
@media (max-width: 767px) {
  .mag-carousel-track .mag-content-card,
  body .mag-carousel-track .mag-content-card,
  .mag-carousel-track .hero-event-card,
  body .mag-carousel-track .hero-event-card {
    flex: 0 0 calc(100vw - 3rem) !important;
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
  }

  .jmtc-carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card {
    flex: 0 0 calc(100vw - 3rem) !important;
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
  }
}

@media (max-width: 480px) {
  .mag-carousel-track .mag-content-card,
  body .mag-carousel-track .mag-content-card,
  .mag-carousel-track .hero-event-card,
  body .mag-carousel-track .hero-event-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
  }

  .jmtc-carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
  }
}

/* --- FIX 2: Carousel viewports must allow touch scrolling --- */
@media (max-width: 991px) {
  .jmtc-carousel-viewport,
  .mag-carousel-viewport,
  body .jmtc-carousel-viewport,
  body .mag-carousel-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .jmtc-carousel-viewport::-webkit-scrollbar,
  .mag-carousel-viewport::-webkit-scrollbar {
    display: none !important;
  }

  .jmtc-carousel-viewport,
  .carousel-track-container,
  .hero-events-carousel-viewport,
  .mag-carousel-viewport,
  .bearers-carousel-container,
  body .jmtc-carousel-viewport,
  body .carousel-track-container,
  body .hero-events-carousel-viewport,
  body .mag-carousel-viewport,
  body .bearers-carousel-container {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
  }

  .jmtc-carousel-track > .jmtc-card,
  .carousel-track > .jmtc-card,
  .carousel-track > .choir-event-card,
  .carousel-track > .gallery-card,
  .carousel-track > .gallery-card-new,
  .mag-carousel-track > .mag-content-card,
  .hero-events-carousel-track > .hero-event-card,
  .bearers-grid > .bearer-card,
  body .jmtc-carousel-track > .jmtc-card,
  body .carousel-track > .jmtc-card,
  body .carousel-track > .choir-event-card,
  body .carousel-track > .gallery-card,
  body .carousel-track > .gallery-card-new,
  body .mag-carousel-track > .mag-content-card,
  body .hero-events-carousel-track > .hero-event-card,
  body .bearers-grid > .bearer-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    scroll-snap-align: center !important;
  }

  .choir-leadership-wrap,
  body .choir-leadership-wrap {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
  }

  .choir-section.choir-,
  body .choir-section.choir- {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .choir-leadership-wrap > .jmtc-carousel-section,
  body .choir-leadership-wrap > .jmtc-carousel-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card,
  body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
  }

  html body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-carousel-track > .jmtc-card,
  html body .jmtc-carousel-section[aria-label="Gallery"] .carousel-track > .jmtc-card,
  html body .jmtc-carousel-section[aria-label="Gallery"] .mag-content-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
  }
}

.choir-about-text .btn.btn-primary,
body .choir-about-text .btn.btn-primary,
.contact-card-btn,
.contact-submit-btn,
.overlay-directions-btn,
body .contact-card-btn,
body .contact-submit-btn,
body .overlay-directions-btn {
  background: #22223B !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border-color: #22223B !important;
  text-shadow: none !important;
}

.choir-about-text .btn.btn-primary span,
.choir-about-text .btn.btn-primary svg,
.contact-card-btn span,
.contact-card-btn svg,
.contact-submit-btn span,
.contact-submit-btn svg,
.overlay-directions-btn span,
.overlay-directions-btn svg,
body .choir-about-text .btn.btn-primary span,
body .choir-about-text .btn.btn-primary svg,
body .contact-card-btn span,
body .contact-card-btn svg,
body .contact-submit-btn span,
body .contact-submit-btn svg,
body .overlay-directions-btn span,
body .overlay-directions-btn svg {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  stroke: currentColor !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.announcement-read-more,
.announcement-read-more span,
.announcement-read-more svg,
body .announcement-read-more,
body .announcement-read-more span,
body .announcement-read-more svg {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  stroke: currentColor !important;
  text-shadow: none !important;
}

.exec-section-title,
body .exec-section-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

.gallery-hero-title,
body .gallery-hero-title,
.gallery-hero-header .gallery-hero-title,
body .gallery-hero-header .gallery-hero-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

.gallery-hero-subcopy,
body .gallery-hero-subcopy,
.gallery-hero-header .gallery-hero-subcopy,
body .gallery-hero-header .gallery-hero-subcopy {
  color: rgba(255, 255, 255, 0.86) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.86) !important;
  text-shadow: none !important;
}

[data-theme="dark"] .gallery-hero-title,
[data-theme="dark"] .gallery-hero-subcopy,
[data-theme="dark"] body .gallery-hero-title,
[data-theme="dark"] body .gallery-hero-subcopy,
[data-theme="dark"] .exec-section-title,
[data-theme="dark"] body .exec-section-title {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
}

@media (max-width: 767px) {
  :root {
    --mobile-home-card-width: min(calc(100vw - 3rem), 342px);
    --mobile-home-card-height: clamp(360px, 98vw, 390px);
  }

  .grid-navbar,
  body .grid-navbar {
    min-height: 74px !important;
  }

  .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 0.75rem 1.25rem !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 1rem !important;
  }

  .grid-navbar .nav-grid-cell,
  body .grid-navbar .nav-grid-cell,
  .grid-navbar .nav-grid-brand,
  .grid-navbar .nav-grid-actions,
  body .grid-navbar .nav-grid-brand,
  body .grid-navbar .nav-grid-actions {
    padding: 0 !important;
    min-height: 0 !important;
  }

  .grid-navbar .brand-logo,
  body .grid-navbar .brand-logo {
    gap: 0.75rem !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .grid-navbar .brand-logo-img,
  body .grid-navbar .brand-logo-img {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    max-width: 48px !important;
  }

  .grid-navbar .brand-name,
  body .grid-navbar .brand-name {
    width: auto !important;
    max-width: calc(100vw - 190px) !important;
    font-size: clamp(1.45rem, 7vw, 1.9rem) !important;
    line-height: 1 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .grid-navbar .nav-grid-actions,
  body .grid-navbar .nav-grid-actions {
    gap: 0.7rem !important;
  }

  .grid-navbar .theme-toggle-btn,
  .grid-navbar .hamburger-toggle,
  body .grid-navbar .theme-toggle-btn,
  body .grid-navbar .hamburger-toggle {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex-basis: 46px !important;
  }

  body.home-page .community-gallery-container,
  body.home-page .community-gallery-frame,
  body.home-page .gallery-showcase-stage,
  body.home-page .community-showcase-frame,
  body.home-page .stay-connected-carousel-stage,
  body.home-page .stay-connected-mag-panel,
  body.home-page .mag-carousel-viewport {
    width: var(--mobile-home-card-width) !important;
    max-width: var(--mobile-home-card-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home-page .community-story-section,
  body.home-page .team-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home-page .community-story-section .community-gallery-container,
  body.home-page .team-section > .container {
    width: var(--mobile-home-card-width) !important;
    max-width: var(--mobile-home-card-width) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  body.home-page .community-showcase-frame,
  body.home-page .community-story-chapter,
  body.home-page .mag-carousel-track > .mag-content-card,
  body.home-page .mag-content-card {
    flex: 0 0 var(--mobile-home-card-width) !important;
    width: var(--mobile-home-card-width) !important;
    min-width: var(--mobile-home-card-width) !important;
    max-width: var(--mobile-home-card-width) !important;
    height: var(--mobile-home-card-height) !important;
    min-height: var(--mobile-home-card-height) !important;
    max-height: var(--mobile-home-card-height) !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.home-page .community-showcase-img,
  body.home-page .community-img-link {
    width: 100% !important;
    height: 100% !important;
  }

  body.home-page .community-showcase-img {
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home-page .mag-card-hero-image-wrap {
    width: 100% !important;
    height: 58% !important;
    min-height: 0 !important;
    flex: 0 0 58% !important;
  }

  body.home-page .mag-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body.home-page .mag-card-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 1.15rem !important;
  }

  body.home-page .mag-card-title {
    font-size: clamp(1.25rem, 5.4vw, 1.55rem) !important;
    line-height: 1.15 !important;
  }

  body.home-page .gallery-nav-dock,
  body.home-page .mag-carousel-controls {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    width: min(calc(100vw - 0.75rem), 374px) !important;
    max-width: min(calc(100vw - 0.75rem), 374px) !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    pointer-events: none !important;
    z-index: 120 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.home-page .gallery-nav-cell.cell-left,
  body.home-page .gallery-nav-cell.cell-right,
  body.home-page .mag-arrow-btn {
    pointer-events: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    border: 1px solid rgba(34, 34, 59, 0.16) !important;
    box-shadow: 0 12px 26px rgba(34, 34, 59, 0.16) !important;
  }

  body.home-page .gallery-nav-cell.cell-center {
    display: none !important;
  }

  body.home-page .community-progress-bar-wrap {
    width: var(--mobile-home-card-width) !important;
    max-width: var(--mobile-home-card-width) !important;
    margin-inline: auto !important;
  }

  body.home-page .bearers-carousel-container,
  body.home-page .bearers-grid {
    width: clamp(270px, 74vw, 284px) !important;
    max-width: clamp(270px, 74vw, 284px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.home-page .bearers-carousel-container {
    overflow: visible !important;
  }

  body.home-page .bearers-grid {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scroll-padding-inline: 0 !important;
    height: 440px !important;
  }

  body.home-page .bearers-grid > .bearer-card {
    flex: 0 0 clamp(270px, 74vw, 284px) !important;
    width: clamp(270px, 74vw, 284px) !important;
    min-width: clamp(270px, 74vw, 284px) !important;
    max-width: clamp(270px, 74vw, 284px) !important;
    height: 440px !important;
    min-height: 440px !important;
    max-height: 440px !important;
    margin-inline: auto !important;
    background: #FFFFFF !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 44px rgba(34, 34, 59, 0.12) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.home-page .team-section .bearer-image-wrap,
  body.home-page .bearer-image-wrap {
    height: 300px !important;
    min-height: 300px !important;
    flex: 0 0 300px !important;
    background: #F7F5F2 !important;
  }

  body.home-page .team-section .bearer-image,
  body.home-page .bearer-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  body.home-page .team-section .bearer-info,
  body.home-page .bearer-info {
    min-height: 140px !important;
    height: 140px !important;
    padding: 1.25rem 1.35rem !important;
    background: #FFFFFF !important;
  }

  body.home-page .bearer-role-row {
    align-items: center !important;
    gap: 0.75rem !important;
  }

  body.home-page .bearer-actions {
    display: flex !important;
    gap: 0.55rem !important;
    margin-left: auto !important;
  }

  body.home-page .bearers-arrows-group {
    width: calc(100vw - 1.5rem) !important;
    max-width: 374px !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  body.home-page .bearers-carousel-container {
    height: auto !important;
    min-height: 500px !important;
  }
}

/* Final mobile hero polish: keep brand readable, CTAs compact, and live chip unobtrusive. */
@media (max-width: 767px) {
  body.home-page .grid-navbar,
  body:has(#hero.split-hero-section) .grid-navbar {
    min-height: 68px !important;
  }

  body.home-page .grid-navbar .nav-grid-container,
  body:has(#hero.split-hero-section) .grid-navbar .nav-grid-container {
    min-height: 68px !important;
    padding: 0.6rem 0.85rem !important;
    gap: 0.55rem !important;
  }

  body.home-page .grid-navbar .brand-logo,
  body:has(#hero.split-hero-section) .grid-navbar .brand-logo {
    gap: 0.55rem !important;
  }

  body.home-page .grid-navbar .brand-logo-img,
  body:has(#hero.split-hero-section) .grid-navbar .brand-logo-img {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
    max-width: 42px !important;
  }

  body.home-page .grid-navbar .brand-name,
  body:has(#hero.split-hero-section) .grid-navbar .brand-name {
    max-width: calc(100vw - 168px) !important;
    font-size: clamp(1.2rem, 5.35vw, 1.55rem) !important;
    overflow: visible !important;
    text-overflow: clip !important;
    letter-spacing: 0 !important;
  }

  body.home-page .grid-navbar .nav-grid-actions,
  body:has(#hero.split-hero-section) .grid-navbar .nav-grid-actions {
    gap: 0.45rem !important;
  }

  body.home-page .grid-navbar .theme-toggle-btn,
  body.home-page .grid-navbar .hamburger-toggle,
  body.home-page .grid-navbar .mobile-nav-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .theme-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .hamburger-toggle,
  body:has(#hero.split-hero-section) .grid-navbar .mobile-nav-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-basis: 42px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 22px rgba(34, 34, 59, 0.13) !important;
  }

  body:has(#hero.split-hero-section) #hero.split-hero-section {
    min-height: calc(100svh - 68px) !important;
  }

  body:has(#hero.split-hero-section) #hero .split-hero-grid,
  body:has(#hero.split-hero-section) #hero .hero-left-col,
  body:has(#hero.split-hero-section) #hero .hero-image-wrap {
    min-height: calc(100svh - 68px) !important;
    height: calc(100svh - 68px) !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-church-img {
    min-height: calc(100svh - 68px) !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-left-content {
    bottom: clamp(1.05rem, 4.6svh, 2rem) !important;
    padding-inline: 1.3rem !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-overlay-title {
    font-size: clamp(2rem, 9.4vw, 2.58rem) !important;
    margin-bottom: 1rem !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.72rem !important;
    width: min(100%, 330px) !important;
    margin: 0 auto !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0.72rem 1.1rem !important;
    border-radius: 999px !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    background: rgba(255, 255, 255, 0.93) !important;
    border: 1px solid rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn span {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .live-stream-widget,
  body .live-stream-widget,
  :root:not([data-theme="dark"]) .live-stream-widget,
  :root:not([data-theme="dark"]) body .live-stream-widget {
    left: auto !important;
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    width: auto !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    border-radius: 999px !important;
  }

  .live-stream-widget .live-stream-text,
  .live-stream-widget .live-stream-arrow,
  body .live-stream-widget .live-stream-text,
  body .live-stream-widget .live-stream-arrow {
    display: none !important;
  }

  .live-stream-widget .live-stream-youtube,
  body .live-stream-widget .live-stream-youtube {
    width: 18px !important;
    height: 18px !important;
    margin-left: 0 !important;
  }

  .live-stream-widget .live-stream-dot,
  body .live-stream-widget .live-stream-dot {
    position: absolute !important;
    top: 8px !important;
    left: 9px !important;
    width: 7px !important;
    height: 7px !important;
  }
}

/* True final mobile polish: sharp hero image, compact drawer, icon-only live widget. */
@media (max-width: 767px) {
  body.home-page #hero .hero-church-img,
  body.home-page #hero.split-hero-section .hero-church-img,
  body:has(#hero.split-hero-section) #hero .hero-church-img {
    object-fit: cover !important;
    object-position: 54% 35% !important;
    filter: contrast(1.08) saturate(1.08) brightness(1.02) !important;
    image-rendering: auto !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) scale(1.01) !important;
  }

  body.home-page #hero .hero-dark-gradient-overlay,
  body.home-page #hero.split-hero-section .hero-dark-gradient-overlay,
  body:has(#hero.split-hero-section) #hero .hero-dark-gradient-overlay {
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.08) 0%, rgba(7, 14, 24, 0.2) 38%, rgba(6, 12, 22, 0.78) 100%),
      radial-gradient(circle at 55% 32%, rgba(255, 255, 255, 0.04) 0%, rgba(5, 12, 22, 0.24) 58%, rgba(5, 12, 22, 0.7) 100%) !important;
  }

  body.home-page .mobile-menu-drawer,
  body .mobile-menu-drawer,
  body.home-page .mobile-nav-drawer,
  body .mobile-nav-drawer {
    top: 68px !important;
    max-height: calc(100svh - 68px) !important;
    padding: 0.72rem 1.05rem 0.95rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid rgba(34, 34, 59, 0.12) !important;
    box-shadow: 0 18px 42px rgba(34, 34, 59, 0.12) !important;
  }

  body.home-page .mobile-menu-list,
  body .mobile-menu-list {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home-page .mobile-accordion-item,
  body .mobile-accordion-item,
  body.home-page .mobile-menu-list > li,
  body .mobile-menu-list > li {
    margin: 0 !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.09) !important;
  }

  body.home-page .mobile-menu-list > li:last-child,
  body .mobile-menu-list > li:last-child {
    border-bottom: 0 !important;
  }

  body.home-page .mobile-menu-list > li > .nav-link,
  body.home-page .mobile-menu-list > li > a,
  body.home-page .mobile-accordion-trigger,
  body .mobile-menu-list > li > .nav-link,
  body .mobile-menu-list > li > a,
  body .mobile-accordion-trigger {
    min-height: 44px !important;
    padding: 0.64rem 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    font-family: var(--font-body) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
  }

  body.home-page .mobile-accordion-trigger,
  body .mobile-accordion-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  body.home-page .mobile-accordion-trigger span,
  body .mobile-accordion-trigger span,
  body.home-page .mobile-menu-list > li > a span,
  body .mobile-menu-list > li > a span,
  body.home-page .mobile-menu-list > li > .nav-link span,
  body .mobile-menu-list > li > .nav-link span {
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    text-shadow: none !important;
  }

  body.home-page .mobile-chevron,
  body .mobile-chevron {
    width: 18px !important;
    height: 18px !important;
    color: #22223B !important;
    stroke: #22223B !important;
    opacity: 0.92 !important;
  }

  body.home-page .mobile-accordion-panel,
  body .mobile-accordion-panel {
    padding: 0 0 0.42rem !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body.home-page .mobile-accordion-item.open .mobile-accordion-panel,
  body .mobile-accordion-item.open .mobile-accordion-panel {
    padding-top: 0.1rem !important;
  }

  body.home-page .mobile-sublink,
  body.home-page .mobile-sublink span,
  body .mobile-sublink,
  body .mobile-sublink span {
    min-height: 34px !important;
    padding: 0.42rem 0.35rem 0.42rem 0.75rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #3F435F !important;
    -webkit-text-fill-color: #3F435F !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    text-shadow: none !important;
  }

  body.home-page .live-stream-widget,
  body .live-stream-widget,
  html body .live-stream-widget,
  :root:not([data-theme="dark"]) body .live-stream-widget,
  html:not([data-theme="dark"]) body .live-stream-widget,
  html[data-theme="light"] body .live-stream-widget,
  body[data-theme="light"] .live-stream-widget,
  body:not([data-theme="dark"]) .live-stream-widget,
  body[data-theme="dark"] .live-stream-widget,
  [data-theme="dark"] body .live-stream-widget {
    left: auto !important;
    right: 0.75rem !important;
    top: calc(68px + 0.75rem) !important;
    bottom: auto !important;
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  body .live-stream-widget .live-stream-text,
  body .live-stream-widget .live-stream-arrow {
    display: none !important;
  }
}

/* Absolute last mobile carousel controls: below-card arrows and visible progress. */
@media (max-width: 767px) {
  body.home-page .community-pill-cta,
  body.home-page .community-pill-cta span,
  body.home-page .community-story-chapter .community-pill-cta,
  body.home-page .community-story-chapter .community-pill-cta span,
  body.home-page main .community-pill-cta span,
  body.home-page .community-showcase-frame .community-pill-cta,
  body.home-page .community-showcase-frame .community-pill-cta span {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    text-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  body.home-page .community-pill-cta svg,
  body.home-page .community-story-chapter .community-pill-cta svg,
  body.home-page .community-showcase-frame .community-pill-cta svg {
    color: #050505 !important;
    stroke: #050505 !important;
    filter: none !important;
  }

  body.home-page .community-gallery-frame {
    overflow: visible !important;
  }

  body.home-page .gallery-nav-dock,
  body .gallery-nav-dock {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 0.85rem 1rem !important;
    width: min(calc(100vw - 3rem), 342px) !important;
    max-width: min(calc(100vw - 3rem), 342px) !important;
    margin: 1rem auto 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
  }

  body.home-page .gallery-nav-cell.cell-center,
  body .gallery-nav-cell.cell-center {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  body.home-page .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-left {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.home-page .gallery-nav-cell.cell-right,
  body .gallery-nav-cell.cell-right {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  body.home-page .gallery-nav-cell.cell-left,
  body.home-page .gallery-nav-cell.cell-right,
  body .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-right {
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.home-page .stay-connected-mag-panel,
  body .stay-connected-mag-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  body.home-page .stay-connected-mag-panel > .mag-carousel-viewport,
  body .stay-connected-mag-panel > .mag-carousel-viewport {
    order: 1 !important;
  }

  body.home-page .stay-connected-mag-panel > .panel-header-row,
  body .stay-connected-mag-panel > .panel-header-row {
    order: 2 !important;
    width: 100% !important;
    margin: 1rem 0 0 !important;
  }

  body.home-page .mag-carousel-controls,
  body .mag-carousel-controls,
  body .jmtc-carousel-nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
  }

  body .events-section .hero-events-controls-bar {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.85rem !important;
    width: min(calc(100vw - 3rem), 342px) !important;
    max-width: min(calc(100vw - 3rem), 342px) !important;
    margin: 1rem auto 0 !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body .events-section #heroEventsPrev,
  body .events-section #heroEventsNext {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  body .events-section .hero-carousel-progress {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body .bearers-mobile-controls {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 1rem !important;
    width: min(calc(100vw - 3rem), 342px) !important;
    max-width: min(calc(100vw - 3rem), 342px) !important;
    margin: 1rem auto 0 !important;
  }

  body .bearers-arrows-group {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 767px) {
  body.home-page main .community-gallery-container .community-story-chapter .community-showcase-content .community-pill-cta span,
  body.home-page main .community-gallery-container .community-story-chapter .community-showcase-content .community-pill-cta,
  body.home-page main .community-gallery-container .community-story-chapter .community-showcase-content .community-pill-cta * {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    text-shadow: none !important;
    filter: none !important;
  }

  body.home-page main .community-gallery-container .community-story-chapter .community-showcase-content .community-pill-cta svg {
    stroke: #050505 !important;
  }

  body.home-page .events-section .hero-events-controls-bar,
  body.home-page .team-section .bearers-mobile-controls {
    width: min(calc(100vw - 3rem), 342px) !important;
    max-width: min(calc(100vw - 3rem), 342px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Final mobile visual polish: sharper hero crop and compact, consistent drawer menu. */
@media (max-width: 767px) {
  body.home-page #hero .hero-image-wrap,
  body:has(#hero.split-hero-section) #hero .hero-image-wrap {
    background: #0F1722 !important;
  }

  body.home-page #hero .hero-church-img,
  body:has(#hero.split-hero-section) #hero .hero-church-img {
    object-fit: cover !important;
    object-position: 54% 35% !important;
    filter: contrast(1.08) saturate(1.08) brightness(1.02) !important;
    image-rendering: auto !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) scale(1.01) !important;
  }

  body.home-page #hero .hero-dark-gradient-overlay,
  body:has(#hero.split-hero-section) #hero .hero-dark-gradient-overlay {
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.08) 0%, rgba(7, 14, 24, 0.2) 38%, rgba(6, 12, 22, 0.78) 100%),
      radial-gradient(circle at 55% 32%, rgba(255, 255, 255, 0.04) 0%, rgba(5, 12, 22, 0.24) 58%, rgba(5, 12, 22, 0.7) 100%) !important;
  }

  body.home-page .mobile-menu-drawer,
  body .mobile-menu-drawer,
  body.home-page .mobile-nav-drawer,
  body .mobile-nav-drawer {
    top: 68px !important;
    max-height: calc(100svh - 68px) !important;
    padding: 0.72rem 1.05rem 0.95rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid rgba(34, 34, 59, 0.12) !important;
    box-shadow: 0 18px 42px rgba(34, 34, 59, 0.12) !important;
  }

  body.home-page .mobile-menu-list,
  body .mobile-menu-list {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home-page .mobile-accordion-item,
  body .mobile-accordion-item,
  body.home-page .mobile-menu-list > li,
  body .mobile-menu-list > li {
    margin: 0 !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.09) !important;
  }

  body.home-page .mobile-menu-list > li:last-child,
  body .mobile-menu-list > li:last-child {
    border-bottom: 0 !important;
  }

  body.home-page .mobile-menu-list > li > .nav-link,
  body.home-page .mobile-menu-list > li > a,
  body.home-page .mobile-accordion-trigger,
  body .mobile-menu-list > li > .nav-link,
  body .mobile-menu-list > li > a,
  body .mobile-accordion-trigger {
    min-height: 44px !important;
    padding: 0.64rem 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    font-family: var(--font-body) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
  }

  body.home-page .mobile-accordion-trigger,
  body .mobile-accordion-trigger {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  body.home-page .mobile-accordion-trigger span,
  body .mobile-accordion-trigger span,
  body.home-page .mobile-menu-list > li > a span,
  body .mobile-menu-list > li > a span,
  body.home-page .mobile-menu-list > li > .nav-link span,
  body .mobile-menu-list > li > .nav-link span {
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    text-shadow: none !important;
  }

  body.home-page .mobile-chevron,
  body .mobile-chevron {
    width: 18px !important;
    height: 18px !important;
    color: #22223B !important;
    stroke: #22223B !important;
    opacity: 0.92 !important;
  }

  body.home-page .mobile-accordion-panel,
  body .mobile-accordion-panel {
    padding: 0 0 0.42rem 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body.home-page .mobile-accordion-item.open .mobile-accordion-panel,
  body .mobile-accordion-item.open .mobile-accordion-panel {
    padding-top: 0.1rem !important;
  }

  body.home-page .mobile-sublink,
  body.home-page .mobile-sublink span,
  body .mobile-sublink,
  body .mobile-sublink span {
    min-height: 34px !important;
    padding: 0.42rem 0.35rem 0.42rem 0.75rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #3F435F !important;
    -webkit-text-fill-color: #3F435F !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    text-shadow: none !important;
  }

  body.home-page .mobile-sublink:hover,
  body .mobile-sublink:hover {
    background: rgba(238, 186, 123, 0.16) !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
  }

  body[data-theme="dark"] .mobile-menu-drawer,
  body[data-theme="dark"] .mobile-nav-drawer,
  [data-theme="dark"] body .mobile-menu-drawer,
  [data-theme="dark"] body .mobile-nav-drawer {
    background: rgba(28, 28, 48, 0.98) !important;
    border-top-color: rgba(238, 186, 123, 0.2) !important;
  }

  body[data-theme="dark"] .mobile-menu-list > li > .nav-link,
  body[data-theme="dark"] .mobile-menu-list > li > a,
  body[data-theme="dark"] .mobile-accordion-trigger,
  body[data-theme="dark"] .mobile-accordion-trigger span,
  [data-theme="dark"] body .mobile-menu-list > li > .nav-link,
  [data-theme="dark"] body .mobile-menu-list > li > a,
  [data-theme="dark"] body .mobile-accordion-trigger,
  [data-theme="dark"] body .mobile-accordion-trigger span {
    color: #F8F5F2 !important;
    -webkit-text-fill-color: #F8F5F2 !important;
  }

  body[data-theme="dark"] .mobile-sublink,
  body[data-theme="dark"] .mobile-sublink span,
  [data-theme="dark"] body .mobile-sublink,
  [data-theme="dark"] body .mobile-sublink span {
    color: rgba(248, 245, 242, 0.82) !important;
    -webkit-text-fill-color: rgba(248, 245, 242, 0.82) !important;
  }

  .live-stream-widget,
  body .live-stream-widget,
  html body .live-stream-widget,
  :root:not([data-theme="dark"]) body .live-stream-widget,
  html:not([data-theme="dark"]) body .live-stream-widget,
  html[data-theme="light"] body .live-stream-widget,
  body[data-theme="light"] .live-stream-widget,
  body:not([data-theme="dark"]) .live-stream-widget,
  body[data-theme="dark"] .live-stream-widget,
  [data-theme="dark"] body .live-stream-widget {
    left: auto !important;
    right: 0.75rem !important;
    top: calc(68px + 0.75rem) !important;
    bottom: auto !important;
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  .live-stream-widget .live-stream-text,
  .live-stream-widget .live-stream-arrow,
  body .live-stream-widget .live-stream-text,
  body .live-stream-widget .live-stream-arrow {
    display: none !important;
  }

  .live-stream-widget .live-stream-youtube,
  body .live-stream-widget .live-stream-youtube {
    width: 18px !important;
    height: 18px !important;
    margin-left: 0 !important;
  }

  .live-stream-widget .live-stream-dot,
  body .live-stream-widget .live-stream-dot {
    position: absolute !important;
    top: 8px !important;
    left: 9px !important;
    width: 7px !important;
    height: 7px !important;
  }
}

/* Shared action-icon contract: keep contact glyphs visible on light and dark cards. */
.icon-btn-action,
.bearer-info .icon-btn-action,
body .icon-btn-action,
body .bearer-info .icon-btn-action {
  background: #FFFFFF !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  border: 1px solid rgba(34, 34, 59, 0.16) !important;
  box-shadow: 0 8px 18px rgba(34, 34, 59, 0.12) !important;
}

.icon-btn-action svg,
.bearer-info .icon-btn-action svg,
body .icon-btn-action svg,
body .bearer-info .icon-btn-action svg {
  color: #22223B !important;
  stroke: #22223B !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.icon-btn-action:hover,
.bearer-info .icon-btn-action:hover,
body .icon-btn-action:hover,
body .bearer-info .icon-btn-action:hover {
  background: #22223B !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border-color: #22223B !important;
}

.icon-btn-action:hover svg,
.bearer-info .icon-btn-action:hover svg,
body .icon-btn-action:hover svg,
body .bearer-info .icon-btn-action:hover svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

[data-theme="dark"] .icon-btn-action,
[data-theme="dark"] .bearer-info .icon-btn-action,
body[data-theme="dark"] .icon-btn-action,
body[data-theme="dark"] .bearer-info .icon-btn-action {
  background: #F8F5F2 !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  border-color: rgba(248, 245, 242, 0.25) !important;
}

[data-theme="dark"] .icon-btn-action svg,
[data-theme="dark"] .bearer-info .icon-btn-action svg,
body[data-theme="dark"] .icon-btn-action svg,
body[data-theme="dark"] .bearer-info .icon-btn-action svg {
  color: #22223B !important;
  stroke: #22223B !important;
}

/* --- FIX 3: Navbar - don't hide nav-grid-container, just nav-grid-menu --- */
@media (max-width: 1080px) {
  .nav-grid-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
  }

  .nav-grid-menu,
  .nav-grid-cell:nth-child(2) {
    display: none !important;
  }

  .hamburger-toggle {
    display: flex !important;
  }
}

/* --- FIX 4: Split Hero section clipping on short mobile screens --- */
@media (max-width: 767px) {
  .split-hero-section,
  body .split-hero-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2rem 1rem !important;
  }

  .split-hero-section .hero-text-column,
  .split-hero-section .hero-visual-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-visual-column {
    display: none !important;
  }
}

/* --- FIX 5: Gallery albums grid min column too wide for small screens --- */
@media (max-width: 767px) {
  .gallery-albums-grid,
  body .gallery-albums-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .gallery-albums-grid,
  body .gallery-albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}

/* --- FIX 6: Vicar card max-width constraint on mobile --- */
@media (max-width: 767px) {
  .vicar-card,
  body .vicar-card {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .vicar-hero-card,
  body .vicar-hero-card {
    grid-template-columns: 1fr !important;
  }

  .vicar-hero-grid,
  body .vicar-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .vicar-profile-img-wrap {
    margin: 0 auto !important;
  }
}

/* --- FIX 7: Table wrappers must allow horizontal scroll, not clip --- */
@media (max-width: 767px) {
  .exec-table-wrap,
  .choir-leadership-wrap,
  .office-bearers-table-wrap,
  body .exec-table-wrap,
  body .choir-leadership-wrap,
  body .office-bearers-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100vw !important;
    width: 100% !important;
    display: block !important;
  }
}

/* --- FIX 8: Global cursor glow — hide on touch devices --- */
@media (hover: none), (max-width: 768px) {
  .global-cursor-glow,
  body .global-cursor-glow {
    display: none !important;
  }
}

/* --- FIX 9: Contact page responsive --- */
@media (max-width: 767px) {
  .contact-container,
  body .contact-container {
    padding: 2rem 1rem !important;
  }

  .contact-map-wrapper iframe {
    min-height: 300px !important;
    width: 100% !important;
  }

  .contact-map-overlay-card,
  body .contact-map-overlay-card {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: calc(100vw - 24px) !important;
    font-size: 0.85rem !important;
  }
}

/* --- FIX 10: Announcements hero image column --- */
@media (max-width: 767px) {
  .announcements-hero-img-col,
  body .announcements-hero-img-col {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* --- FIX 11: Mobile padding for all containers with inline max-width --- */
@media (max-width: 767px) {
  .container,
  [style*="max-width"],
  body .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* --- FIX 13: Ministry page grids on mobile --- */
@media (max-width: 767px) {
  .choir-about-timings-grid,
  body .choir-about-timings-grid {
    grid-template-columns: 1fr !important;
  }

  .bearers-grid,
  body .bearers-grid {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
  }

  .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }

  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
    scroll-snap-align: start !important;
  }
}

/* --- FIX 14: Ensure mobile nav drawer is scrollable --- */
@media (max-width: 991px) {
  .mobile-menu-drawer,
  .mobile-nav-drawer,
  body .mobile-menu-drawer,
  body .mobile-nav-drawer {
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* --- FIX 15: Live stream widget responsive --- */
@media (max-width: 767px) {
  .live-stream-widget,
  .live-stream-embed,
  body .live-stream-widget {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
  }

  .live-stream-embed iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
  }
}

/* --- FIX 16: Section title and hero text sizing on mobile --- */
@media (max-width: 480px) {
  .exec-hero-title,
  body .exec-hero-title {
    font-size: 1.5rem !important;
  }

  .exec-section-title,
  body .exec-section-title {
    font-size: 1.1rem !important;
  }

  .exec-hero-desc,
  body .exec-hero-desc {
    font-size: 0.9rem !important;
  }

  .vicar-hero-section h1,
  body .vicar-hero-section h1 {
    font-size: 1.5rem !important;
  }

  .gallery-hero-header h1,
  body .gallery-hero-header h1 {
    font-size: 1.5rem !important;
  }
}

/* END CRITICAL MOBILE FIXES */


/* =====================================================================
   STAY CONNECTED VIEW MORE CONTRAST FIX
   Fixes the legibility of "View More" links and arrows on dark cards.
   ===================================================================== */
.mag-content-card .mag-card-link,
.mag-content-card .mag-card-link span,
.mag-content-card span.mag-card-link,
.mag-content-card span.mag-card-link span,
.hero-event-card .mag-card-link,
.hero-event-card .mag-card-link span,
#upcoming-events-section .mag-card-link,
#upcoming-events-section .mag-card-link span,
.section-dark .mag-content-card .mag-card-link,
.section-dark .mag-content-card .mag-card-link span,
body .mag-content-card .mag-card-link,
body .mag-content-card .mag-card-link span,
body .section-dark .mag-content-card .mag-card-link span {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mag-content-card .mag-card-link svg,
.hero-event-card .mag-card-link svg,
#upcoming-events-section .mag-card-link svg,
.section-dark .mag-content-card .mag-card-link svg,
body .mag-content-card .mag-card-link svg,
body .section-dark .mag-content-card .mag-card-link svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
  fill: none !important;
  opacity: 1 !important;
  display: inline-block !important;
  transition: transform 0.2s ease !important;
}

/* Hover effects */
.mag-content-card:hover .mag-card-link,
.mag-content-card:hover .mag-card-link span,
.hero-event-card:hover .mag-card-link,
.hero-event-card:hover .mag-card-link span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.mag-content-card:hover .mag-card-link svg,
.hero-event-card:hover .mag-card-link svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

/* Fallback: if a card has a light background, use a dark color for contrast */
.mag-content-card[style*="background: #FFF"] .mag-card-link,
.mag-content-card[style*="background: #FFF"] .mag-card-link span,
.mag-content-card[style*="background: #fff"] .mag-card-link,
.mag-content-card[style*="background: #fff"] .mag-card-link span,
.mag-content-card.bg-white .mag-card-link,
.mag-content-card.bg-white .mag-card-link span {
  color: #1C1D2E !important;
  -webkit-text-fill-color: #1C1D2E !important;
}

.mag-content-card[style*="background: #FFF"] .mag-card-link svg,
.mag-content-card[style*="background: #fff"] .mag-card-link svg,
.mag-content-card.bg-white .mag-card-link svg {
  stroke: #1C1D2E !important;
  color: #1C1D2E !important;
}


/* ==========================================================================
   PALETTE INTEGRATION & LIGHT MODE BACKGROUND
   ========================================================================== */
:root {
  /* Sherwood Muted Lavender Rose Palette */
  --color-deep-navy:      #22223B;
  --color-slate-navy:     #4A4E69;
  --color-lavender-grey:  #9A8C98;
  --color-dusty-rose:     #C9ADA7;
  --color-alabaster:      #F2E9E4;

  /* Theme color assignments */
  --color-bg-primary:     #FAF8F5;       /* Soft solid cream-wheat background */
  --color-bg-secondary:    #F4F0EB;
  --color-text-primary:   #22223B;
  --color-text-secondary: #4A4E69;
  --color-border:         rgba(74, 78, 105, 0.15);
  --color-card-bg:        #FFFFFF;
  --color-accent:         #C9ADA7;
  --color-chip-bg:        #F4F0EB;
  --color-chip-text:      #4A4E69;
  --color-chip-active-bg:  #C9ADA7;
  --color-chip-active-text:#22223B;

  --transition-medium:    0.35s ease;
  --font-body:            'Outfit', sans-serif;
  --font-heading:         'Lora', serif;
}

[data-theme="dark"] {
  --color-bg-primary:     #22223B;       /* Deep navy */
  --color-bg-secondary:    #4A4E69;       /* Slate navy */
  --color-text-primary:   #F2E9E4;
  --color-text-secondary: #9A8C98;
  --color-border:         rgba(201, 173, 167, 0.25);
  --color-card-bg:        rgba(255, 255, 255, 0.08);
  --color-accent:         #C9ADA7;
  --color-chip-bg:        #4A4E69;
  --color-chip-text:      #F2E9E4;
  --color-chip-active-bg:  #C9ADA7;
  --color-chip-active-text:#22223B;
}

/* Base body background setting: Solid cream background in Light Mode, dark gradient in Dark Mode */
body::before {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -10 !important;
  background: #FAF8F5 !important;
}

[data-theme="dark"] body::before {
  background: linear-gradient(135deg, #22223B 0%, #4A4E69 100%) !important;
}

/* ==========================================================================
   STICKY TRANSPARENT-TO-GLASSMORPHIC NAVBAR
   ========================================================================== */
.grid-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  transition: background var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium) !important;
}

[data-theme="dark"] .grid-navbar {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}

.grid-navbar.scrolled {
  background: rgba(242, 233, 228, 0.88) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border-bottom: 1.5px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 4px 24px rgba(34, 34, 59, 0.08) !important;
}

[data-theme="dark"] .grid-navbar.scrolled {
  background: rgba(34, 34, 59, 0.88) !important;
  border-bottom: 1.5px solid rgba(201, 173, 167, 0.25) !important;
}

/* Navbar Link & Branding Typography Sizes & Colors */
.grid-navbar .nav-link,
.grid-navbar .brand-name,
.grid-navbar .theme-toggle-btn,
.grid-navbar .hamburger-toggle,
.grid-navbar .dropdown-chevron {
  color: #FFFFFF !important;
  fill: none !important;
}

.grid-navbar .theme-toggle-btn svg,
.grid-navbar .hamburger-toggle svg {
  stroke: #FFFFFF !important;
}

.grid-navbar .nav-link {
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Light mode scrolled state typography triggers */
.grid-navbar.scrolled .nav-link,
.grid-navbar.scrolled .brand-name,
.grid-navbar.scrolled .theme-toggle-btn,
.grid-navbar.scrolled .hamburger-toggle,
.grid-navbar.scrolled .dropdown-chevron {
  color: #22223B !important;
}

.grid-navbar.scrolled .theme-toggle-btn svg,
.grid-navbar.scrolled .hamburger-toggle svg {
  stroke: #22223B !important;
}

/* Dark mode scrolled state typography triggers */
[data-theme="dark"] .grid-navbar.scrolled .nav-link,
[data-theme="dark"] .grid-navbar.scrolled .brand-name,
[data-theme="dark"] .grid-navbar.scrolled .theme-toggle-btn,
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle,
[data-theme="dark"] .grid-navbar.scrolled .dropdown-chevron {
  color: #FFFFFF !important;
}

[data-theme="dark"] .grid-navbar.scrolled .theme-toggle-btn svg,
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle svg {
  stroke: #FFFFFF !important;
}

.grid-navbar .nav-link:hover,
.grid-navbar .nav-link.active,
.grid-navbar .nav-item.has-dropdown:hover .nav-link,
.grid-navbar .nav-item.has-dropdown.open .nav-link {
  color: var(--color-accent) !important;
}

.grid-navbar .nav-item.has-dropdown:hover .dropdown-chevron {
  color: var(--color-accent) !important;
}

/* ==========================================================================
   FULL-WIDTH WELCOME HERO SECTION & TEXT ALIGNMENTS
   ========================================================================== */
.hero-left-col {
  width: 100% !important;
  border-right: none !important;
}

.hero-image-wrap {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 4.5rem !important;
  box-sizing: border-box !important;
}

.hero-left-content {
  position: relative !important;
  z-index: 2 !important;
  color: #FFFFFF !important;
  max-width: 560px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   GLASSMORPHIC OFFICE BEARERS CARDS OVERRIDES
   ========================================================================== */
.bearers-grid {
  display: flex !important;
  gap: 1.5rem !important;
}

.bearer-card {
  position: relative !important;
  background-color: var(--color-deep-navy) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 380px !important;
  width: 240px !important;
  flex: 0 0 240px !important;
}

@media (min-width: 768px) {
  .bearer-card {
    flex: 0 0 240px !important;
    width: 240px !important;
    height: 380px !important;
  }
}

.bearer-image-wrap {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  border-bottom: none !important;
  background-color: #1B1615 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1 !important;
}

.bearer-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bearer-card:hover .bearer-image {
  transform: scale(1.06) !important;
}

.bearer-info {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(34, 34, 59, 0.65) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  z-index: 2 !important;
}

[data-theme="dark"] .bearer-info {
  background: rgba(22, 22, 37, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.bearer-name {
  font-family: var(--font-heading) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 2px !important;
  min-height: auto !important;
  display: flex !important;
  align-items: flex-start !important;
}

.bearer-role-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 2px !important;
  padding-top: 0 !important;
  border-top: none !important;
  min-height: auto !important;
  width: 100% !important;
}

.bearer-role {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

[data-theme="dark"] .bearer-role {
  color: var(--color-accent) !important;
}

.bearer-info .icon-btn-action {
  min-width: 32px !important;
  min-height: 32px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(4px) !important;
  border: none !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
}

.bearer-info .icon-btn-action:hover {
  background: #FFFFFF !important;
  color: #22223B !important;
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .bearer-info .icon-btn-action {
  background: rgba(201, 173, 167, 0.2) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .bearer-info .icon-btn-action:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
}

/* Individual portraits zoom tuning */
.bearer-image[src*="vicar_portrait"] {
  object-position: center 5% !important;
}

.bearer-image[src*="bearer_babu_koshy"] {
  object-position: center 8% !important;
  transform: scale(1.2) !important;
}
.bearer-card:hover .bearer-image[src*="bearer_babu_koshy"] {
  transform: scale(1.26) !important;
}

.bearer-image[src*="bearer_lijo_lucose"] {
  object-position: center 10% !important;
}

.bearer-image[src*="bearer_mathew_george"] {
  object-position: center 10% !important;
}

.bearer-image[src*="bearer_abraham_varghese"] {
  object-position: center 10% !important;
}


/* ==========================================================================
   CONSOLIDATED ADAPTIVE UPCOMING EVENTS CAROUSEL STYLES
   ========================================================================== */
.events-section {
  width: 100% !important;
  position: relative !important;
  background: #FAF8F5 !important;
  padding: 5rem 0 4rem !important;
  overflow: hidden !important;
}

[data-theme="dark"] .events-section {
  background: linear-gradient(135deg, #22223B 0%, #4A4E69 100%) !important;
}

.events-section::before {
  content: '' !important;
  position: absolute !important;
  top: -30% !important;
  right: -10% !important;
  width: 600px !important;
  height: 600px !important;
  background: radial-gradient(circle, rgba(201, 173, 167, 0.08) 0%, transparent 70%) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.events-section-inner {
  position: relative !important;
  z-index: 1 !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

.events-section-header {
  text-align: center !important;
  margin-bottom: 3rem !important;
}

.events-eyebrow {
  display: block !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: 0.75rem !important;
}

.events-section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  font-weight: 500 !important;
  color: var(--color-text-primary) !important;
  margin: 0 0 0.85rem !important;
  letter-spacing: -0.01em !important;
}

.events-section-subtitle {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: var(--color-text-secondary) !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  line-height: 1.65 !important;
}

.hero-events-carousel-viewport {
  overflow-x: clip !important;
  overflow-y: visible !important;
  width: 100% !important;
  padding: 12px 0 20px !important;
  touch-action: pan-y pinch-zoom !important;
}

.hero-events-carousel-track {
  display: flex !important;
  gap: 1.5rem !important;
  padding: 8px 0 !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
  overflow: visible !important;
  width: max-content !important;
}

.hero-event-card {
  flex: 0 0 320px !important;
  min-width: 280px !important;
  max-width: 360px !important;
  background: var(--color-card-bg) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  transform: scale(0.96) !important;
  opacity: 0.8 !important;
  box-shadow: var(--shadow-md) !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, box-shadow 0.3s ease !important;
}

.hero-event-card.active-center {
  transform: scale(1) !important;
  opacity: 1 !important;
  border-color: var(--color-accent) !important;
  box-shadow: var(--shadow-lg) !important;
}

.hero-event-card.active-center:hover {
  transform: scale(1.02) !important;
  box-shadow: var(--shadow-lg) !important;
}

.hero-event-card.passed-prev,
.hero-event-card.preview-next {
  opacity: 0.6 !important;
  transform: scale(0.94) !important;
}

.hero-event-card-body {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.hero-event-card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}

.hero-event-card-desc {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.5 !important;
  margin-bottom: 1.5rem !important;
}

.hero-event-date-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--color-border) !important;
  width: 100% !important;
}

.date-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--color-text-secondary) !important;
  font-size: 0.85rem !important;
}

.date-row-left svg {
  stroke: var(--color-text-secondary) !important;
}

.event-action-link {
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--color-accent) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
  transition: color 0.25s ease !important;
  cursor: pointer !important;
}

.event-action-link svg {
  stroke: var(--color-accent) !important;
  transition: transform 0.25s ease !important;
}

.hero-event-card:hover .event-action-link {
  color: var(--color-text-primary) !important;
}

.hero-event-card:hover .event-action-link svg {
  stroke: var(--color-text-primary) !important;
  transform: translateX(4px) !important;
}

[data-theme="dark"] .event-action-link {
  color: var(--color-accent) !important;
}

[data-theme="dark"] .event-action-link svg {
  stroke: var(--color-accent) !important;
}

[data-theme="dark"] .hero-event-card:hover .event-action-link {
  color: #FFFFFF !important;
}

[data-theme="dark"] .hero-event-card:hover .event-action-link svg {
  stroke: #FFFFFF !important;
}

.event-date-badge-inline {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-bg-secondary) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 8px !important;
  width: 50px !important;
  height: 50px !important;
  margin-bottom: 12px !important;
}

.badge-day {
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--color-text-primary) !important;
  line-height: 1 !important;
}

.badge-month {
  font-family: var(--font-body) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--color-text-secondary) !important;
  margin-top: 2px !important;
}

/* Controls Standalone */
.events-controls-bar-standalone {
  margin-top: 2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2rem !important;
  padding: 0 !important;
  border-top: none !important;
  background: transparent !important;
}

.hero-carousel-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--color-card-bg) !important;
  border: 1.5px solid var(--color-border) !important;
  color: var(--color-text-primary) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.hero-carousel-arrow:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-deep-navy) !important;
  transform: scale(1.08) !important;
}

.hero-carousel-progress {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--color-text-secondary) !important;
}

.hero-progress-track {
  width: 140px !important;
  height: 3px !important;
  background: var(--color-border) !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
}

.hero-progress-fill-bar {
  height: 100% !important;
  background: var(--color-accent) !important;
  width: 0%;
  transition: width 0.4s ease !important;
}

/* ==========================================================================
   COMPLETED/PAST EVENTS STYLING OVERRIDES (STRIKE-THROUGH & COMPLETED BADGE)
   ========================================================================== */
.event-card-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 12px !important;
}

.event-done-badge {
  font-family: var(--font-body) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--color-accent) !important;
  background: rgba(201, 173, 167, 0.15) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.3) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  display: inline-block !important;
  margin-left: auto !important;
  height: fit-content !important;
}

[data-theme="dark"] .event-done-badge {
  background: rgba(201, 173, 167, 0.22) !important;
  border-color: rgba(201, 173, 167, 0.45) !important;
}

.hero-event-card.is-done {
  opacity: 0.45 !important;
}

.hero-event-card.is-done:hover {
  opacity: 0.55 !important;
}

.hero-event-card.is-done .hero-event-card-title {
  text-decoration: line-through !important;
  opacity: 0.7 !important;
}

.hero-event-card.is-done .hero-event-card-desc {
  opacity: 0.65 !important;
}

/* ==========================================================================
   FLOATING LIVE STREAM WIDGET & PREMIUM COMPACT SPREAD-OUT FOOTER OVERRIDES
   ========================================================================== */
.live-stream-widget {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 22px !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 32px rgba(34, 34, 59, 0.18) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(242, 233, 228, 0.9) !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  color: #22223B !important;
}

[data-theme="dark"] .live-stream-widget {
  background: rgba(34, 34, 59, 0.9) !important;
  border: 1.5px solid rgba(201, 173, 167, 0.25) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

.live-stream-widget:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 12px 40px rgba(34, 34, 59, 0.28) !important;
}

[data-theme="dark"] .live-stream-widget:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

.live-stream-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #E05243 !important;
  position: relative !important;
  display: inline-block !important;
}

.live-stream-dot::after {
  content: '' !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: 50% !important;
  background: rgba(224, 82, 67, 0.4) !important;
  animation: pulse-live 1.6s infinite !important;
}

.live-stream-text {
  letter-spacing: -0.01em !important;
}

.live-stream-arrow {
  transition: transform 0.25s ease !important;
}

.live-stream-widget:hover .live-stream-arrow {
  transform: translateX(3px) !important;
}


/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUT MEDIA QUERY OVERRIDES
   ========================================================================== */
@media (max-width: 767px) {
  .events-section {
    padding: 3.5rem 0 3rem !important;
  }
  .events-section-inner {
    padding: 0 !important;
  }
  .events-section-header {
    padding: 0 1.5rem !important;
    text-align: left !important;
    margin-bottom: 2rem !important;
  }
  .hero-events-carousel-viewport {
    overflow: hidden !important;
    padding: 0 !important;
  }
  .hero-events-carousel-track {
    gap: 0 !important;
    width: max-content !important;
  }
  .hero-event-card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    padding: 0 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .hero-event-card.active-center {
    transform: none !important;
  }
  .hero-event-card-body {
    border-radius: 20px !important;
    background: var(--color-card-bg) !important;
    border: 1px solid var(--color-border) !important;
    padding: 20px !important;
  }
  .events-controls-bar-standalone {
    margin-top: 1.5rem !important;
    padding: 0 1.5rem !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
}


/* ==========================================================================
   CONTACT PAGE INFO CARDS LIGHT & DARK MODE BACKGROUNDS
   ========================================================================== */

/* Light mode defaults: Cards have clean white surface background with dark text */
.contact-info-card,
.section-dark .contact-info-card {
  background: #FFFFFF !important;
  color: #22223B !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  box-shadow: 0 8px 30px rgba(34, 34, 59, 0.06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.contact-info-card .contact-card-title,
.section-dark .contact-info-card .contact-card-title {
  color: #22223B !important;
}

.contact-info-card .contact-card-text p,
.contact-info-card .contact-church-name,
.contact-info-card .contact-timings-list li,
.section-dark .contact-info-card .contact-card-text p,
.section-dark .contact-info-card .contact-church-name,
.section-dark .contact-info-card .contact-timings-list li {
  color: #4A4E69 !important;
}

.contact-info-card .timing-bullet,
.section-dark .contact-info-card .timing-bullet {
  color: var(--color-accent) !important;
}

/* Call/Email/Direction link buttons inside light contact cards */
.contact-info-card .contact-card-btn,
.section-dark .contact-info-card .contact-card-btn {
  border: 1.5px solid rgba(74, 78, 105, 0.22) !important;
  color: #22223B !important;
}

.contact-info-card .contact-card-btn:hover,
.section-dark .contact-info-card .contact-card-btn:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #22223B !important;
}

/* Dark mode theme overrides */
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .section-dark .contact-info-card {
  background: #25263A !important;
  color: #F2E9E4 !important;
  border-color: rgba(201, 173, 167, 0.2) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .contact-info-card .contact-card-title,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .contact-info-card .contact-card-text p,
[data-theme="dark"] .contact-info-card .contact-church-name,
[data-theme="dark"] .contact-info-card .contact-timings-list li,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-text p,
[data-theme="dark"] .section-dark .contact-info-card .contact-church-name,
[data-theme="dark"] .section-dark .contact-info-card .contact-timings-list li {
  color: rgba(242, 233, 228, 0.85) !important;
}

[data-theme="dark"] .contact-info-card .contact-card-btn,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-btn {
  border-color: rgba(201, 173, 167, 0.25) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .contact-card-btn:hover,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-btn:hover {
  background: #C9ADA7 !important;
  border-color: #C9ADA7 !important;
  color: #22223B !important;
}


/* ==========================================================================
   FLOATING LIVE STREAM WIDGET & FINAL OVERRIDES
   ========================================================================== */
.live-stream-widget {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 22px !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 32px rgba(34, 34, 59, 0.18) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: rgba(242, 233, 228, 0.9) !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  color: #22223B !important;
}

.live-stream-widget:hover {
  transform: translateY(-2px) scale(1.02) !important;
  background: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
  box-shadow: 0 12px 40px rgba(34, 34, 59, 0.28) !important;
}


/* ==========================================================================
   CONTACT INFO CARDS CONTRAST OVERRIDES IN LIGHT MODE
   ========================================================================== */

/* Default backgrounds for light mode */
.contact-info-card,
.section-dark .contact-info-card {
  background: #FFFFFF !important;
  color: #22223B !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  box-shadow: 0 8px 30px rgba(34, 34, 59, 0.06) !important;
  padding: 2.25rem !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-sizing: border-box !important;
}

.contact-info-card:hover,
.section-dark .contact-info-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 40px rgba(34, 34, 59, 0.1) !important;
}

/* Force dark card title */
.contact-info-card .contact-card-title,
.section-dark .contact-info-card .contact-card-title {
  color: #22223B !important;
  font-family: var(--font-heading) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 1.25rem 0 !important;
}

/* Contact timings items */
.contact-info-card .contact-timings-list,
.section-dark .contact-info-card .contact-timings-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1.75rem 0 !important;
  width: 100% !important;
}

.contact-info-card .contact-timings-list li,
.section-dark .contact-info-card .contact-timings-list li {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: #4A4E69 !important;
  margin-bottom: 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-shadow: none !important;
}

/* timing labels and timing vals */
.contact-info-card .timing-label,
.section-dark .contact-info-card .timing-label {
  color: #22223B !important;
  font-weight: 600 !important;
}

.contact-info-card .timing-val,
.section-dark .contact-info-card .timing-val {
  color: #4A4E69 !important;
  font-weight: 700 !important;
  margin-top: 2px !important;
}

.contact-info-card .timing-bullet,
.section-dark .contact-info-card .timing-bullet {
  display: none !important;
}

/* Contact details block */
.contact-info-card .contact-details-list,
.section-dark .contact-info-card .contact-details-list {
  margin: 0 0 1.75rem 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

.contact-info-card .contact-row,
.section-dark .contact-info-card .contact-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  color: #22223B !important;
  font-size: 0.9rem !important;
  margin: 0 !important;
  text-shadow: none !important;
}

.contact-info-card .contact-row a,
.section-dark .contact-info-card .contact-row a {
  color: #22223B !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  transition: color 0.2s ease !important;
}

.contact-info-card .contact-row a:hover,
.section-dark .contact-info-card .contact-row a:hover {
  color: var(--color-accent) !important;
}

.contact-info-card .contact-row svg,
.section-dark .contact-info-card .contact-row svg {
  color: #EEBA7B !important;
  flex-shrink: 0 !important;
}

/* Clean, standard outline buttons inside cards in light mode */
.contact-info-card .contact-card-btn,
.section-dark .contact-info-card .contact-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 99px !important;
  border: 1.5px solid rgba(34, 34, 59, 0.25) !important;
  background: transparent !important;
  color: #22223B !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-info-card .contact-card-btn:hover,
.section-dark .contact-info-card .contact-card-btn:hover {
  background: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
}

/* Filled Call now button styling */
.contact-info-card .contact-btn-filled,
.section-dark .contact-info-card .contact-btn-filled {
  background: #22223B !important;
  color: #FFFFFF !important;
  border: 1.5px solid #22223B !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 99px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-size: 0.8rem !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.contact-info-card .contact-btn-filled:hover,
.section-dark .contact-info-card .contact-btn-filled:hover {
  background: #EEBA7B !important;
  border-color: #EEBA7B !important;
  color: #22223B !important;
}

/* Outlined Email button styling */
.contact-info-card .contact-btn-outlined,
.section-dark .contact-info-card .contact-btn-outlined {
  background: transparent !important;
  color: #22223B !important;
  border: 1.5px solid rgba(34, 34, 59, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 99px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-size: 0.8rem !important;
  width: 100% !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.contact-info-card .contact-btn-outlined:hover,
.section-dark .contact-info-card .contact-btn-outlined:hover {
  background: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
}

.contact-info-card .contact-dual-btns,
.section-dark .contact-info-card .contact-dual-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

/* Dark mode overrides for card details contrast */
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .section-dark .contact-info-card {
  background: #25263A !important;
  border-color: rgba(201, 173, 167, 0.2) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .contact-card-title,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .contact-info-card .contact-timings-list li,
[data-theme="dark"] .section-dark .contact-info-card .contact-timings-list li,
[data-theme="dark"] .contact-info-card .timing-label,
[data-theme="dark"] .section-dark .contact-info-card .timing-label {
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .timing-val,
[data-theme="dark"] .section-dark .contact-info-card .timing-val {
  color: rgba(242, 233, 228, 0.85) !important;
}

[data-theme="dark"] .contact-info-card .contact-row,
[data-theme="dark"] .contact-info-card .contact-row a,
[data-theme="dark"] .section-dark .contact-info-card .contact-row,
[data-theme="dark"] .section-dark .contact-info-card .contact-row a {
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .contact-card-btn,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-btn {
  border-color: rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .contact-card-btn:hover,
[data-theme="dark"] .section-dark .contact-info-card .contact-card-btn:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

[data-theme="dark"] .contact-info-card .contact-btn-filled,
[data-theme="dark"] .section-dark .contact-info-card .contact-btn-filled {
  background: #C9ADA7 !important;
  border-color: #C9ADA7 !important;
  color: #22223B !important;
}

[data-theme="dark"] .contact-info-card .contact-btn-filled:hover,
[data-theme="dark"] .section-dark .contact-info-card .contact-btn-filled:hover {
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
  color: #22223B !important;
}

[data-theme="dark"] .contact-info-card .contact-btn-outlined,
[data-theme="dark"] .section-dark .contact-info-card .contact-btn-outlined {
  border-color: rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .contact-info-card .contact-btn-outlined:hover,
[data-theme="dark"] .section-dark .contact-info-card .contact-btn-outlined:hover {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* ==========================================================================
   UNIFY SECTION BACKGROUNDS: LIGHT GRADIENT BY DEFAULT, DARK IN DARK MODE ONLY
   ========================================================================== */

/* 1. Reset .section-dark & .stay-connected-section to be light warm cream in light mode */
section.section-dark,
div.section-dark,
.section-dark,
.stay-connected-section,
.stay-connected-viewport {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
  color: #22223B !important;
  border-top: 1px solid rgba(74, 78, 105, 0.08) !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}

/* 2. Force text inside section-dark & stay-connected to have high contrast in light mode */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark .section-title,
.section-dark .section-title-accent,
.section-dark .choir-section-title,
.section-dark .jmtc-section-title,
.section-dark .contact-card-title,
.section-dark .contact-form-title,
.section-dark .brand-name,
.section-dark .jmtc-event-title,
.section-dark .jmtc-gallery-title-link,
.section-dark .cell-name,
.stay-connected-section h2,
.stay-connected-section h3,
.stay-connected-section .section-title,
.stay-connected-section .section-title-accent,
.stay-connected-section .stay-connected-magazine-title {
  color: #22223B !important;
  text-shadow: none !important;
}

.section-dark p,
.section-dark span,
.section-dark li,
.section-dark td,
.section-dark th,
.section-dark label,
.section-dark strong,
.section-dark .jmtc-section-label,
.section-dark .choir-section-subtitle,
.section-dark .jmtc-gallery-sub,
.section-dark .contact-card-text,
.section-dark .cell-pos,
.stay-connected-section p,
.stay-connected-section span,
.stay-connected-section li,
.stay-connected-section label,
.stay-connected-section .section-subtitle,
.stay-connected-section .stay-connected-magazine-subcopy {
  color: #4A4E69 !important;
  text-shadow: none !important;
}

/* 3. Social buttons & magazine tabs inside stay-connected in light mode */
.stay-connected-social-btn {
  border-color: rgba(34, 34, 59, 0.2) !important;
}

.stay-connected-social-btn.youtube-btn {
  background: rgba(178, 59, 59, 0.08) !important;
  color: #B23B3B !important;
  border-color: rgba(178, 59, 59, 0.25) !important;
}
.stay-connected-social-btn.youtube-btn:hover {
  background: #B23B3B !important;
  color: #FFFFFF !important;
}

.stay-connected-social-btn.instagram-btn {
  background: rgba(131, 58, 180, 0.08) !important;
  color: #833AB4 !important;
  border-color: rgba(131, 58, 180, 0.25) !important;
}
.stay-connected-social-btn.instagram-btn:hover {
  background: #833AB4 !important;
  color: #FFFFFF !important;
}

.stay-connected-mag-tab {
  color: rgba(74, 78, 105, 0.75) !important;
}
.stay-connected-mag-tab:hover,
.stay-connected-mag-tab.active {
  color: #22223B !important;
}
.mag-active-underline {
  background-color: #D89169 !important;
}

/* 4. Dark mode overrides: only when [data-theme="dark"] is applied, make them dark slate navy */
[data-theme="dark"] section.section-dark,
[data-theme="dark"] div.section-dark,
[data-theme="dark"] .section-dark,
[data-theme="dark"] .stay-connected-section,
[data-theme="dark"] .stay-connected-viewport {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
  color: #F2E9E4 !important;
  border-top: 1px solid rgba(201, 173, 167, 0.18) !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.18) !important;
}

[data-theme="dark"] .section-dark h1,
[data-theme="dark"] .section-dark h2,
[data-theme="dark"] .section-dark h3,
[data-theme="dark"] .section-dark h4,
[data-theme="dark"] .section-dark h5,
[data-theme="dark"] .section-dark h6,
[data-theme="dark"] .section-dark .section-title,
[data-theme="dark"] .section-dark .section-title-accent,
[data-theme="dark"] .section-dark .choir-section-title,
[data-theme="dark"] .section-dark .jmtc-section-title,
[data-theme="dark"] .section-dark .contact-card-title,
[data-theme="dark"] .section-dark .contact-form-title,
[data-theme="dark"] .section-dark .brand-name,
[data-theme="dark"] .section-dark .jmtc-event-title,
[data-theme="dark"] .section-dark .jmtc-gallery-title-link,
[data-theme="dark"] .section-dark .cell-name,
[data-theme="dark"] .stay-connected-section h2,
[data-theme="dark"] .stay-connected-section h3,
[data-theme="dark"] .stay-connected-section .section-title,
[data-theme="dark"] .stay-connected-section .stay-connected-magazine-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .section-dark p,
[data-theme="dark"] .section-dark span,
[data-theme="dark"] .section-dark li,
[data-theme="dark"] .section-dark td,
[data-theme="dark"] .section-dark th,
[data-theme="dark"] .section-dark label,
[data-theme="dark"] .section-dark strong,
[data-theme="dark"] .section-dark .jmtc-section-label,
[data-theme="dark"] .section-dark .choir-section-subtitle,
[data-theme="dark"] .section-dark .jmtc-gallery-sub,
[data-theme="dark"] .section-dark .contact-card-text,
[data-theme="dark"] .section-dark .cell-pos,
[data-theme="dark"] .stay-connected-section p,
[data-theme="dark"] .stay-connected-section span,
[data-theme="dark"] .stay-connected-section li,
[data-theme="dark"] .stay-connected-section label,
[data-theme="dark"] .stay-connected-section .section-subtitle,
[data-theme="dark"] .stay-connected-section .stay-connected-magazine-subcopy {
  color: rgba(242, 233, 228, 0.88) !important;
}

[data-theme="dark"] .stay-connected-mag-tab {
  color: rgba(255, 255, 255, 0.65) !important;
}
[data-theme="dark"] .stay-connected-mag-tab:hover,
[data-theme="dark"] .stay-connected-mag-tab.active {
  color: #FFFFFF !important;
}
[data-theme="dark"] .mag-active-underline {
  background-color: #F2CCB8 !important;
}

[data-theme="dark"] .stay-connected-social-btn.youtube-btn {
  background: rgba(201, 173, 167, 0.12) !important;
  color: #C9ADA7 !important;
  border-color: rgba(201, 173, 167, 0.3) !important;
}
[data-theme="dark"] .stay-connected-social-btn.instagram-btn {
  background: rgba(242, 233, 228, 0.12) !important;
  color: #F2E9E4 !important;
  border-color: rgba(242, 233, 228, 0.3) !important;
}

/* ==========================================================================
   CAROUSEL SIDE ARROWS AND GALLERY CARD TEXT CONTRAST FIXES
   ========================================================================== */

/* 1. Force clean dark text and remove text shadow from gallery cards in light mode */
.gallery-card-title,
.jmtc-gallery-title,
.jmtc-gallery-title-link,
.section-dark .gallery-card-title,
.section-dark .jmtc-gallery-title,
.section-dark .jmtc-gallery-title-link,
.gallery-card h3,
.section-dark .gallery-card h3,
body .gallery-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
  font-weight: 700 !important;
}

/* Hover state in light mode */
.gallery-card-title:hover,
.jmtc-gallery-title-link:hover,
.section-dark .gallery-card-title:hover,
.section-dark .jmtc-gallery-title-link:hover {
  color: #D89169 !important;
  -webkit-text-fill-color: #D89169 !important;
}

/* Dark mode gallery text contrast */
[data-theme="dark"] .gallery-card-title,
[data-theme="dark"] .jmtc-gallery-title,
[data-theme="dark"] .jmtc-gallery-title-link,
[data-theme="dark"] .section-dark .gallery-card-title,
[data-theme="dark"] .section-dark .jmtc-gallery-title,
[data-theme="dark"] .section-dark .jmtc-gallery-title-link,
[data-theme="dark"] .gallery-card h3,
[data-theme="dark"] .section-dark .gallery-card h3,
body[data-theme="dark"] .gallery-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

[data-theme="dark"] .gallery-card-title:hover,
[data-theme="dark"] .jmtc-gallery-title-link:hover,
[data-theme="dark"] .section-dark .gallery-card-title:hover,
[data-theme="dark"] .section-dark .jmtc-gallery-title-link:hover {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
}

/* 2. Position Unified Carousel navigation buttons on the left & right sides */
.jmtc-carousel-section {
  position: relative !important;
}

@media (min-width: 1280px) {
  .jmtc-carousel-nav {
    position: absolute !important;
    top: 55% !important;
    left: -40px !important;
    right: -40px !important;
    width: calc(100% + 80px) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 100 !important;
  }
}

@media (max-width: 1279px) {
  .jmtc-carousel-nav {
    display: flex !important;
    gap: 0.5rem !important;
    pointer-events: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    margin-bottom: 0.5rem !important;
  }
}

.jmtc-carousel-btn {
  pointer-events: auto !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid rgba(34, 34, 59, 0.25) !important;
  box-shadow: 0 4px 14px rgba(34, 34, 59, 0.1) !important;
  color: #22223B !important;
}

.jmtc-carousel-btn:hover:not(:disabled) {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
}

/* Dark mode styling for unified carousel buttons */
[data-theme="dark"] .jmtc-carousel-btn {
  background-color: #25263A !important;
  border-color: rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .jmtc-carousel-btn:hover:not(:disabled) {
  background-color: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* 3. Position Upcoming Events Carousel arrows on the left & right sides */
.events-section {
  position: relative !important;
}

.events-section #heroEventsPrev {
  position: absolute !important;
  left: 12px !important;
  top: 48% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

.events-section #heroEventsNext {
  position: absolute !important;
  right: 12px !important;
  top: 48% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

/* Adjust upcoming events controls bar bottom spacing and keep index tracker visible */
.events-section .hero-events-controls-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 1.5rem !important;
}

.events-section .hero-events-controls-bar .hero-carousel-arrow {
  display: inline-flex !important;
}

/* Responsive adjustment: on very small mobile screens, ensure side arrows are clear and do not overlay content */
@media (max-width: 575px) {
  .jmtc-carousel-nav {
    top: 50% !important;
    left: 4px !important;
    right: 4px !important;
    width: calc(100% - 8px) !important;
  }
  .events-section #heroEventsPrev {
    left: 4px !important;
  }
  .events-section #heroEventsNext {
    right: 4px !important;
  }
}

/* ==========================================================================
   PAGE WRAPPER TRANSPARENCY FIXES (PREVENT LIGHT STRIPES ON THE SIDES IN DARK MODE)
   ========================================================================== */

.choir-page-wrapper,
.vicar-page-wrapper,
.exec-page-wrapper,
.parish-page-wrapper,
.page-wrapper {
  background-color: transparent !important;
  background: transparent !important;
}

/* Ensure that body is dark in dark mode and light in light mode */
[data-theme="dark"] body {
  background-color: #141421 !important;
}

/* ==========================================================================
   OFFICE BEARERS TABLE AND MEMBERS LIST TYPOGRAPHY CONTRAST OVERRIDES
   ========================================================================== */

/* 1. Office Bearers Table - Light Mode by default */
.choir-section-dark .choir-leadership-table,
.choir-leadership-table {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.15) !important;
  box-shadow: 0 4px 15px rgba(34, 34, 59, 0.04) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.choir-section-dark .choir-leadership-table th,
.choir-leadership-table th {
  background-color: #4A4E69 !important; /* Elegant slate navy header */
  color: #FFFFFF !important;
  border-bottom: 2px solid rgba(34, 34, 59, 0.12) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
}

.choir-section-dark .choir-leadership-table td,
.choir-leadership-table td {
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
  color: #22223B !important;
  font-size: 0.95rem !important;
  background-color: transparent !important;
  text-shadow: none !important;
}

.choir-section-dark .choir-leadership-table tr:nth-child(even),
.choir-leadership-table tr:nth-child(even) {
  background-color: rgba(74, 78, 105, 0.02) !important;
}

.choir-section-dark .choir-leadership-table tr:nth-child(odd),
.choir-leadership-table tr:nth-child(odd) {
  background-color: #FFFFFF !important;
}

.choir-section-dark .choir-leadership-table td.cell-pos,
.choir-leadership-table td.cell-pos {
  color: #B06830 !important; /* Beautiful readable terracotta gold */
  font-weight: 600 !important;
}

.choir-section-dark .choir-leadership-table td.cell-name,
.choir-leadership-table td.cell-name {
  color: #22223B !important;
  font-weight: 500 !important;
}

/* Committee members list text in light mode */
.choir-section-dark .choir-members-list div,
.choir-members-list div {
  color: #22223B !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* 2. Office Bearers Table & Members List - Dark Mode Overrides */
[data-theme="dark"] .choir-section-dark .choir-leadership-table,
[data-theme="dark"] .choir-leadership-table {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table th,
[data-theme="dark"] .choir-leadership-table th {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #F2E9E4 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table td,
[data-theme="dark"] .choir-leadership-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table tr:nth-child(even),
[data-theme="dark"] .choir-leadership-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table tr:nth-child(odd),
[data-theme="dark"] .choir-leadership-table tr:nth-child(odd) {
  background-color: transparent !important;
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table td.cell-pos,
[data-theme="dark"] .choir-leadership-table td.cell-pos {
  color: #C9ADA7 !important; /* Soft rose gold in dark mode */
}

[data-theme="dark"] .choir-section-dark .choir-leadership-table td.cell-name,
[data-theme="dark"] .choir-leadership-table td.cell-name {
  color: #FFFFFF !important;
}

[data-theme="dark"] .choir-section-dark .choir-members-list div,
[data-theme="dark"] .choir-members-list div {
  color: #FFFFFF !important;
}

/* ==========================================================================
   ANNOUNCEMENT PAGE FILTER PILLS TYPOGRAPHY AND CONTRAST FIXES
   ========================================================================== */

/* 1. Announcement Pills - Light Mode by default */
.section-dark .announcement-pill,
.announcement-pill {
  background: rgba(74, 78, 105, 0.06) !important;
  border: 1px solid rgba(74, 78, 105, 0.15) !important;
  color: #4A4E69 !important;
  transition: all 0.25s ease !important;
}

.section-dark .announcement-pill:hover,
.announcement-pill:hover {
  background: rgba(74, 78, 105, 0.12) !important;
  color: #22223B !important;
}

.section-dark .announcement-pill.active,
.announcement-pill.active {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* 2. Announcement Pills - Dark Mode overrides */
[data-theme="dark"] .section-dark .announcement-pill,
[data-theme="dark"] .announcement-pill {
  background: rgba(201, 173, 167, 0.12) !important;
  border-color: rgba(201, 173, 167, 0.3) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .section-dark .announcement-pill:hover,
[data-theme="dark"] .announcement-pill:hover {
  background: rgba(201, 173, 167, 0.22) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .section-dark .announcement-pill.active,
[data-theme="dark"] .announcement-pill.active {
  background: #C9ADA7 !important;
  color: #22223B !important;
  border-color: #C9ADA7 !important;
}

/* ==========================================================================
   GLOBAL BREADCRUMB REMOVAL (HIDES BREADCRUMB STRIPES ACROSS ALL PAGES)
   ========================================================================== */

.announcements-breadcrumb-bar,
.announcements-breadcrumb-container,
.announcement-detail-breadcrumb,
.parish-breadcrumb,
nav[aria-label="Breadcrumb"] {
  display: none !important;
}

/* ==========================================================================
   GLOBAL GALLERY PHOTO COUNT BADGES REMOVAL
   ========================================================================== */

.jmtc-photo-count-badge,
.gallery-album-badge,
span.jmtc-photo-count-badge,
span.gallery-album-badge,
body .jmtc-photo-count-badge,
body .gallery-album-badge {
  display: none !important;
}

/* ==========================================================================
   HOMEPAGE HERO LEGIBILITY AND CTA BUTTON CONTRAST OVERRIDES
   ========================================================================== */

/* 1. Darken the image overlay gradient to prevent text from washing out */
.hero-dark-gradient-overlay {
  background: radial-gradient(circle at 40% 45%, rgba(10, 22, 35, 0.38) 0%, rgba(10, 22, 35, 0.82) 100%) !important;
}

[data-theme="dark"] .hero-dark-gradient-overlay {
  background: radial-gradient(circle at 40% 45%, rgba(10, 22, 35, 0.45) 0%, rgba(10, 22, 37, 0.88) 100%) !important;
}

/* 2. Hero CTA Buttons - Light Mode (High Contrast Slate-Navy) */
.hero-cta-btn {
  background-color: rgba(250, 248, 245, 0.92) !important;
  color: #22223B !important;
  border: 1.5px solid #22223B !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.25s ease !important;
}

.hero-cta-btn span {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}

.hero-cta-btn svg {
  stroke: #22223B !important;
  color: #22223B !important;
}

.hero-cta-btn:hover {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
  transform: translateY(-2px) !important;
}

.hero-cta-btn:hover span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.hero-cta-btn:hover svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* 3. Hero CTA Buttons - Dark Mode (Elegant Amber Gold Glassmorphism) */
[data-theme="dark"] .hero-cta-btn {
  background-color: rgba(20, 20, 35, 0.82) !important;
  color: #EEBA7B !important;
  border: 1.5px solid rgba(238, 186, 123, 0.7) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

[data-theme="dark"] .hero-cta-btn span {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
}

[data-theme="dark"] .hero-cta-btn svg {
  stroke: #EEBA7B !important;
  color: #EEBA7B !important;
}

[data-theme="dark"] .hero-cta-btn:hover {
  background-color: #EEBA7B !important;
  color: #22223B !important;
  border-color: #EEBA7B !important;
  transform: translateY(-2px) !important;
}

[data-theme="dark"] .hero-cta-btn:hover span {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}

[data-theme="dark"] .hero-cta-btn:hover svg {
  stroke: #22223B !important;
  color: #22223B !important;
}

/* ==========================================================================
   PARISH HISTORY TIMELINE LEGIBILITY AND CONTRAST OVERRIDES
   ========================================================================== */

/* 1. History Section - Light Mode by default */
.history-section {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
}

.history-section .history-title,
.parish-section.history-section h2 {
  color: #22223B !important;
  text-shadow: none !important;
}

.history-section .history-header p,
.parish-section.history-section p,
.history-section .history-desc {
  color: #4A4E69 !important;
  text-shadow: none !important;
}

.history-section .history-item-heading,
.parish-section.history-section h3 {
  color: #22223B !important;
  text-shadow: none !important;
}

.history-section .history-year {
  color: #B06830 !important; /* Rich brand gold/terracotta */
  text-shadow: none !important;
}

.history-section .history-dot {
  background-color: #B06830 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(176, 104, 48, 0.2) !important;
}

.history-section .history-timeline-line {
  background: rgba(176, 104, 48, 0.2) !important;
}

/* 2. History Section - Dark Mode overrides */
[data-theme="dark"] .history-section {
  background: linear-gradient(145deg, #1C1D2E 0%, #25263A 100%) !important;
}

[data-theme="dark"] .history-section .history-title,
[data-theme="dark"] .parish-section.history-section h2 {
  color: #FFFFFF !important;
}

[data-theme="dark"] .history-section .history-header p,
[data-theme="dark"] .parish-section.history-section p,
[data-theme="dark"] .history-section .history-desc {
  color: rgba(242, 233, 228, 0.88) !important;
}

[data-theme="dark"] .history-section .history-item-heading,
[data-theme="dark"] .parish-section.history-section h3 {
  color: #FFFFFF !important;
}

[data-theme="dark"] .history-section .history-year {
  color: #F2CCB8 !important;
}

[data-theme="dark"] .history-section .history-dot {
  background-color: #F2CCB8 !important;
  border-color: #22223B !important;
  box-shadow: 0 0 0 2px rgba(242, 204, 184, 0.2) !important;
}

[data-theme="dark"] .history-section .history-timeline-line {
  background: rgba(242, 204, 184, 0.2) !important;
}

/* ==========================================================================
   UPCOMING EVENTS CAROUSEL CARDS TYPOGRAPHY CONTRAST OVERRIDES
   ========================================================================== */

/* 1. Upcoming Events Cards - Light Mode by default */
.hero-event-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 6px 20px rgba(34, 34, 59, 0.05) !important;
}

body .events-section .hero-event-card-title,
body .events-section h3.hero-event-card-title,
.hero-event-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

.events-section .hero-event-card-desc,
body .events-section .hero-event-card-desc,
body .events-section p.hero-event-card-desc,
.hero-event-card-desc {
  color: #4A4E69 !important;
  text-shadow: none !important;
}

.events-section .date-row-left,
.events-section .date-row-left span,
body .events-section .date-row-left span {
  color: #6C708C !important;
}

.events-section .event-action-link,
.events-section .event-action-link span,
body .events-section .event-action-link span {
  color: #B06830 !important; /* Rich readable brand terracotta gold */
}

body .events-section .event-date-badge-inline,
.events-section .event-date-badge-inline {
  background: rgba(176, 104, 48, 0.08) !important;
  border: 1px solid rgba(176, 104, 48, 0.25) !important;
  color: #B06830 !important;
}

.events-section .badge-day,
.events-section .badge-month,
body .events-section .badge-day,
body .events-section .badge-month {
  color: #B06830 !important;
}

/* 2. Upcoming Events Cards - Dark Mode overrides */
[data-theme="dark"] .hero-event-card {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] body .events-section .hero-event-card-title,
[data-theme="dark"] body .events-section h3.hero-event-card-title,
[data-theme="dark"] .hero-event-card-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
}

[data-theme="dark"] .events-section .hero-event-card-desc,
[data-theme="dark"] body .events-section .hero-event-card-desc,
[data-theme="dark"] body .events-section p.hero-event-card-desc,
[data-theme="dark"] .hero-event-card-desc {
  color: rgba(242, 233, 228, 0.94) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .events-section .date-row-left,
[data-theme="dark"] .events-section .date-row-left span,
[data-theme="dark"] body .events-section .date-row-left span {
  color: rgba(201, 173, 167, 0.95) !important;
}

[data-theme="dark"] .events-section .event-action-link,
[data-theme="dark"] .events-section .event-action-link span,
[data-theme="dark"] body .events-section .event-action-link span {
  color: #EEBA7B !important;
}

[data-theme="dark"] body .events-section .event-date-badge-inline,
[data-theme="dark"] .events-section .event-date-badge-inline {
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1px solid rgba(201, 173, 167, 0.45) !important;
  color: #EEBA7B !important;
}

[data-theme="dark"] .events-section .badge-day,
[data-theme="dark"] .events-section .badge-month,
[data-theme="dark"] body .events-section .badge-day,
[data-theme="dark"] body .events-section .badge-month {
  color: #EEBA7B !important;
}

/* ==========================================================================
   OFFICE BEARER CARDS REDESIGN (SIMILAR TO NETLIFY/EDITORIAL CARDS)
   ========================================================================== */

/* 1. Reset card structure: content below image, not absolutely overlaying it */
.bearer-card {
  position: relative !important;
  background-color: #FFFFFF !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.06) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid rgba(74, 78, 105, 0.08) !important;
  height: auto !important;
}

.bearer-image-wrap {
  width: 100% !important;
  height: 240px !important;
  position: relative !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}

.bearer-info {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 1.25rem !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 2. Card Typography & Contrast in Light Mode */
.bearer-name {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #22223B !important;
  text-shadow: none !important;
  margin-bottom: 0.75rem !important;
}

.bearer-role-row {
  border-top: 1px solid rgba(74, 78, 105, 0.12) !important;
  padding-top: 0.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}

.bearer-role {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  color: #6C708C !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* 3. Action Buttons style */
.bearer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.icon-btn-action {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(74, 78, 105, 0.18) !important;
  background-color: rgba(74, 78, 105, 0.04) !important;
  color: #4A4E69 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

.icon-btn-action:hover {
  background-color: #22223B !important;
  color: #FFFFFF !important;
  border-color: #22223B !important;
  transform: translateY(-1px) !important;
}

/* 4. Dark Theme Overrides */
[data-theme="dark"] .bearer-card {
  background-color: #25263A !important;
  border-color: rgba(201, 173, 167, 0.15) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .bearer-info {
  background: transparent !important;
}

[data-theme="dark"] .bearer-image-wrap {
  border-bottom-color: rgba(201, 173, 167, 0.12) !important;
}

[data-theme="dark"] .bearer-name {
  color: #FFFFFF !important;
}

[data-theme="dark"] .bearer-role-row {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .bearer-role {
  color: #C9ADA7 !important;
}

[data-theme="dark"] .icon-btn-action {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .icon-btn-action:hover {
  background-color: #EEBA7B !important;
  color: #22223B !important;
  border-color: #EEBA7B !important;
}

/* ==========================================================================
   CAROUSEL SIDE ARROWS ALIGNMENT AND CENTERING OVERRIDES
   ========================================================================== */

/* 1. Centering the unified carousel navigation arrows to the 1200px container */
@media (min-width: 1280px) {
  .jmtc-carousel-nav {
    position: absolute !important;
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    max-width: 1280px !important; /* Centers arrows relative to the 1200px viewport */
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 100 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }
}

/* 2. Centering the homepage upcoming events carousel arrows */
.events-section-inner {
  position: relative !important;
}

.events-section #heroEventsPrev {
  position: absolute !important;
  left: -40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

.events-section #heroEventsNext {
  position: absolute !important;
  right: -40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
}

/* 3. Responsive adjustments: prevent arrows from sliding off-screen on smaller widths */
@media (max-width: 1320px) {
  .events-section #heroEventsPrev {
    left: 10px !important;
  }
  .events-section #heroEventsNext {
    right: 10px !important;
  }
}

/* ==========================================================================
   FINAL WEBSITE POLISHES & STRUCTURAL LAYOUT UNIFICATION
   ========================================================================== */

/* 1. Remove Silver Sheen from Stay Connected Viewport in Light Mode */
.stay-connected-viewport::before,
.stay-connected-viewport::after {
  display: none !important;
}

[data-theme="dark"] .stay-connected-viewport::before,
[data-theme="dark"] .stay-connected-viewport::after {
  display: block !important;
}

.stay-connected-viewport {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* 2. Upcoming Events Card Description Contrast in Light Mode */
body .events-section .hero-event-card-desc,
body .section-dark .hero-event-card-desc,
body .events-section p.hero-event-card-desc,
.hero-event-card-desc {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

[data-theme="dark"] body .events-section .hero-event-card-desc,
[data-theme="dark"] body .section-dark .hero-event-card-desc,
[data-theme="dark"] body .events-section p.hero-event-card-desc,
[data-theme="dark"] .hero-event-card-desc {
  color: rgba(255, 255, 255, 0.85) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* 3. Parish Statistics Strip Legibility & Contrast */
.fact-number {
  color: #B06830 !important; /* Premium brand gold/terracotta */
  font-weight: 700 !important;
}

.fact-label {
  color: #4A4E69 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.fact-item:not(:last-child)::after {
  background-color: rgba(74, 78, 105, 0.18) !important;
}

.parish-facts-strip {
  border-top-color: rgba(74, 78, 105, 0.15) !important;
}

[data-theme="dark"] .fact-number {
  color: #F2CCB8 !important;
}

[data-theme="dark"] .fact-label {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .fact-item:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="dark"] .parish-facts-strip {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}

/* 4. Alternating Section Background Colors Uniformly across Website in Light Mode */
main > section:nth-of-type(even) {
  background: #FFFFFF !important;
  color: #22223B !important;
}

main > section:nth-of-type(odd) {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
  color: #22223B !important;
}

main > section:first-of-type {
  background: transparent !important;
  color: inherit;
}

/* Clean up hardcoded page overrides that break alternating sequence */
.team-section {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

.vicar-about-section {
  background: linear-gradient(135deg, #FAF8F2 0%, #F4EFE6 100%) !important;
}

.vicar-message-section {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}

/* Alternating Sections in Dark Mode overrides */
[data-theme="dark"] main > section:nth-of-type(even) {
  background: #1C1D2E !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] main > section:nth-of-type(odd) {
  background: #25263A !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] main > section:first-of-type {
  background: transparent !important;
  color: inherit;
}

[data-theme="dark"] .team-section {
  background: #25263A !important;
}

[data-theme="dark"] .vicar-about-section {
  background: #25263A !important;
}

[data-theme="dark"] .vicar-message-section {
  background: #1C1D2E !important;
}

/* Force high contrast text on light sections vs dark sections in both modes (except hero/banner sections) */
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h1,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h2,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h3,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h4,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h5,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h6 {
  color: #22223B !important;
}

[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h1,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h2,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h3,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h4,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h5,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) h6 {
  color: #FFFFFF !important;
}

main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) p,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) span,
main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) li {
  color: #4A4E69 !important;
}

[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) p,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) span,
[data-theme="dark"] main > section:not(#hero):not(.split-hero-section):not(.parish-hero):not(.vicar-hero-section):not(.gallery-hero-header):not(.announcements-hero-section):not(.contact-header-banner) li {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 5. Executive Committee (Kaisthana Samithi) Table Light Mode Redesign */
.exec-table-wrap,
.exec-table,
div.exec-table-wrap,
table.exec-table,
body .exec-table-wrap {
  background: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.05) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.exec-table th,
table.exec-table th,
body .exec-table th {
  background: #4A4E69 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  border-bottom: 1.5px solid rgba(74, 78, 105, 0.2) !important;
}

.exec-table td,
table.exec-table td,
body .exec-table td {
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
  color: #22223B !important;
  background: transparent !important;
}

.exec-table tr:nth-child(odd),
.exec-table tbody tr:nth-child(odd),
body .exec-table tbody tr:nth-child(odd) {
  background-color: rgba(74, 78, 105, 0.03) !important;
  background: rgba(74, 78, 105, 0.03) !important;
}

.exec-table tr:nth-child(even),
.exec-table tbody tr:nth-child(even),
body .exec-table tbody tr:nth-child(even) {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
}

.exec-table tr:hover,
.exec-table tbody tr:hover,
body .exec-table tbody tr:hover {
  background-color: rgba(74, 78, 105, 0.06) !important;
  background: rgba(74, 78, 105, 0.06) !important;
}

.exec-table td.cell-title,
.exec-table .cell-title,
td.cell-title,
body .exec-table td.cell-title {
  color: #B06830 !important;
  -webkit-text-fill-color: #B06830 !important;
  text-shadow: none !important;
}

.exec-table td.cell-name,
.exec-table .cell-name,
td.cell-name,
body .exec-table td.cell-name {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

/* Executive Committee Table - Dark Mode overrides */
[data-theme="dark"] .exec-table-wrap,
[data-theme="dark"] .exec-table,
[data-theme="dark"] div.exec-table-wrap,
[data-theme="dark"] table.exec-table,
[data-theme="dark"] body .exec-table-wrap {
  background: #181928 !important;
  border: 1.5px solid rgba(201, 173, 167, 0.32) !important;
}

[data-theme="dark"] .exec-table th,
[data-theme="dark"] table.exec-table th,
[data-theme="dark"] body .exec-table th {
  background: #25263A !important;
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  border-bottom: 1.5px solid rgba(238, 186, 123, 0.4) !important;
}

[data-theme="dark"] .exec-table td,
[data-theme="dark"] table.exec-table td,
[data-theme="dark"] body .exec-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #F2E9E4 !important;
}

[data-theme="dark"] .exec-table tr:nth-child(odd),
[data-theme="dark"] .exec-table tbody tr:nth-child(odd),
[data-theme="dark"] body .exec-table tbody tr:nth-child(odd) {
  background-color: #25263A !important;
  background: #25263A !important;
}

[data-theme="dark"] .exec-table tr:nth-child(even),
[data-theme="dark"] .exec-table tbody tr:nth-child(even),
[data-theme="dark"] body .exec-table tbody tr:nth-child(even) {
  background-color: #1E1F30 !important;
  background: #1E1F30 !important;
}

[data-theme="dark"] .exec-table tr:hover,
[data-theme="dark"] .exec-table tbody tr:hover,
[data-theme="dark"] body .exec-table tbody tr:hover {
  background-color: #2D2E45 !important;
  background: #2D2E45 !important;
}

[data-theme="dark"] .exec-table td.cell-title,
[data-theme="dark"] .exec-table .cell-title,
[data-theme="dark"] td.cell-title,
[data-theme="dark"] body .exec-table td.cell-title {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .exec-table td.cell-name,
[data-theme="dark"] .exec-table .cell-name,
[data-theme="dark"] td.cell-name,
[data-theme="dark"] body .exec-table td.cell-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* 6. Office Bearers Card Structure & Mobile Grid Alignment */
.bearer-card {
  height: auto !important;
  width: 285px !important;
  flex: 0 0 285px !important;
  max-width: 100% !important;
  position: relative !important;
  background-color: #FFFFFF !important;
  border-radius: 20px !important;
  border: 1px solid rgba(74, 78, 105, 0.08) !important;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.bearer-image-wrap {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 300px !important;
  flex-shrink: 0 !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
  overflow: hidden !important;
  background-color: #FAF8F5 !important;
}

.bearer-image {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  object-fit: cover !important;
  transform: none !important;
}

.bearer-info {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  padding: 1.25rem !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 1 !important;
}

/* Convert swipable mobile carousel to adjacent grid on desktop */
@media (min-width: 768px) {
  .bearers-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .bearers-mobile-controls {
    display: none !important;
  }
}

/* Swipable mobile carousel overrides for Office Bearers */
@media (max-width: 767px) {
  .bearers-grid,
  body .bearers-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    gap: 16px !important;
    padding-left: calc(10vw) !important;
    padding-right: calc(10vw) !important;
    scroll-padding-inline: calc(10vw) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    transform: none !important;
    padding-top: 15px !important;
    padding-bottom: 25px !important;
    margin-top: -15px !important;
    margin-bottom: -25px !important;
  }

  .bearers-grid::-webkit-scrollbar,
  body .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }

  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 80vw !important;
    width: 80vw !important;
    min-width: 80vw !important;
    max-width: none !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .bearers-grid .bearer-image-wrap,
  body .bearers-grid .bearer-image-wrap {
    height: 240px !important;
  }

  .bearers-carousel-container,
  body .bearers-carousel-container {
    overflow: visible !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   SOLEMN OBITUARY SECTION STYLE DEFINITIONS
   ========================================================================== */
.obituary-section {
  padding: 4.5rem 0 !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.1) !important;
}

.obituary-container {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

.obituary-grid {
  display: grid !important;
  grid-template-columns: 300px 1fr !important;
  gap: 3.5rem !important;
  align-items: center !important;
}

.obituary-image-wrap {
  width: 100% !important;
  height: 380px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.08) !important;
}

.obituary-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: grayscale(100%) contrast(1.05) !important; /* Grayscale for solemn respect */
}

.obituary-content-col {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
}

.obituary-eyebrow {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  color: #B06830 !important;
  margin-bottom: 0.35rem !important;
  text-transform: uppercase !important;
}

.obituary-title {
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: clamp(2rem, 3.5vw, 2.6rem) !important;
  font-weight: 600 !important;
  color: #22223B !important;
  margin: 0 0 0.75rem 0 !important;
}

.obituary-divider {
  width: 60px !important;
  height: 2px !important;
  background-color: #B06830 !important;
  margin-bottom: 1.75rem !important;
}

.obituary-text-main {
  font-family: var(--font-body) !important;
  font-size: 1.12rem !important;
  line-height: 1.65 !important;
  color: #22223B !important;
  margin-bottom: 1.25rem !important;
}

.obituary-text-details,
.obituary-text-prayers {
  font-family: var(--font-body) !important;
  font-size: 0.98rem !important;
  line-height: 1.6 !important;
  color: #4A4E69 !important;
  margin-bottom: 1.25rem !important;
}

.obituary-signatures-row {
  display: flex !important;
  gap: 3rem !important;
  margin-top: 1.5rem !important;
  border-top: 1px solid rgba(74, 78, 105, 0.12) !important;
  padding-top: 1.25rem !important;
}

.obituary-sig {
  display: flex !important;
  flex-direction: column !important;
}

.obituary-sig-name {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #22223B !important;
}

.obituary-sig-role {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  color: #6C708C !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
}

.obituary-church {
  margin-top: 0.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #22223B !important;
  letter-spacing: 0.02em !important;
}

/* Dark theme overrides */
[data-theme="dark"] .obituary-section {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .obituary-image-wrap {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .obituary-title,
[data-theme="dark"] .obituary-text-main,
[data-theme="dark"] .obituary-sig-name,
[data-theme="dark"] .obituary-church {
  color: #FFFFFF !important;
}
[data-theme="dark"] .obituary-text-details,
[data-theme="dark"] .obituary-text-prayers {
  color: rgba(255, 255, 255, 0.82) !important;
}
[data-theme="dark"] .obituary-sig-role {
  color: #C9ADA7 !important;
}

@media (max-width: 767px) {
  .obituary-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .obituary-image-wrap {
    height: 300px !important;
    max-width: 240px !important;
    margin: 0 auto !important;
  }
}

/* ==========================================================================
   VICAR HERO CARD AND ACTIONS ROW STYLING OVERRIDES
   ========================================================================== */
.vicar-hero-card {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 36px rgba(34, 34, 59, 0.05) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  margin-bottom: 3rem !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.vicar-hero-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(34, 34, 59, 0.08) !important;
}

.vicar-image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.vicar-hero-card .vicar-image-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  border-right: 1px solid rgba(74, 78, 105, 0.12) !important;
  overflow: hidden !important;
}

.vicar-hero-card .vicar-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
}

.vicar-hero-card .vicar-info {
  padding: 2.5rem 3rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
}

.vicar-hero-card .vicar-role {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-weight: 700 !important;
  color: #B06830 !important;
  margin-bottom: 0.5rem !important;
}

.vicar-hero-card .vicar-name {
  font-family: var(--font-heading), 'Lora', serif !important;
  font-size: 2.2rem !important;
  font-weight: 600 !important;
  color: #22223B !important;
  margin: 0 0 0.85rem 0 !important;
}

.vicar-hero-card .vicar-name-link {
  text-decoration: none !important;
  color: inherit !important;
}

.vicar-hero-card .vicar-bio {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: #4A4E69 !important;
  margin-bottom: 1.75rem !important;
}

.vicar-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
}

.btn-vicar-primary-cta {
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 0.65rem 1.75rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}

.btn-vicar-primary-cta:hover {
  background-color: #22223B !important;
}

/* Dark mode overrides */
[data-theme="dark"] .vicar-hero-card {
  background-color: #25263A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .vicar-hero-card .vicar-image-wrap {
  border-right-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .vicar-hero-card .vicar-name {
  color: #FFFFFF !important;
}

[data-theme="dark"] .vicar-hero-card .vicar-bio {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .btn-vicar-primary-cta {
  background-color: #EEBA7B !important;
  color: #22223B !important;
}

[data-theme="dark"] .btn-vicar-primary-cta:hover {
  background-color: #FFFFFF !important;
}

@media (max-width: 767px) {
  .vicar-hero-card {
    grid-template-columns: 1fr !important;
    margin-bottom: 2rem !important;
  }
  .vicar-hero-card .vicar-image-wrap {
    border-right: none !important;
    border-bottom: 1px solid rgba(74, 78, 105, 0.12) !important;
    height: 300px !important;
    min-height: auto !important;
  }
  .vicar-hero-card .vicar-info {
    padding: 2rem !important;
  }
}

/* ==========================================================================
   GLOBAL DESIGN SYSTEM OVERRIDES - LIGHT THEME & MOBILE POLISHES
   ========================================================================== */

/* 1. Light Mode Homogenized Sections (No dark backgrounds in light theme) */
.section-dark,
section.section-dark,
div.section-dark {
  background-color: #FAF8F5 !important;
  background: linear-gradient(135deg, #FAF7F5 0%, #F2E9E4 100%) !important;
  color: #22223B !important;
  border-color: rgba(74, 78, 105, 0.08) !important;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark .choir-section-title,
.section-dark .jmtc-section-title,
.section-dark .section-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

.section-dark p,
.section-dark li,
.section-dark .jmtc-section-label,
.section-dark .choir-section-subtitle,
.section-dark .jmtc-gallery-sub,
.section-dark span {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

/* Restrict dark backgrounds to dark mode only */
[data-theme="dark"] .section-dark,
[data-theme="dark"] section.section-dark,
[data-theme="dark"] div.section-dark {
  background-color: #141421 !important;
  background: #141421 !important;
  color: #F2E9E4 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .section-dark h1,
[data-theme="dark"] .section-dark h2,
[data-theme="dark"] .section-dark h3,
[data-theme="dark"] .section-dark h4,
[data-theme="dark"] .section-dark h5,
[data-theme="dark"] .section-dark .choir-section-title,
[data-theme="dark"] .section-dark .jmtc-section-title,
[data-theme="dark"] .section-dark .section-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] .section-dark p,
[data-theme="dark"] .section-dark li,
[data-theme="dark"] .section-dark .jmtc-section-label,
[data-theme="dark"] .section-dark .choir-section-subtitle,
[data-theme="dark"] .section-dark .jmtc-gallery-sub {
  color: rgba(242, 233, 228, 0.85) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.85) !important;
}

/* 2. Light Theme Cards Design (No dark card backgrounds in light theme) */
.jmtc-card,
.mag-content-card,
.gallery-card,
.announcement-card,
.choir-event-card {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #22223B !important;
  border: 1px solid rgba(74, 78, 105, 0.08) !important;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.05), 0 1px 3px rgba(34, 34, 59, 0.02) !important;
}

.jmtc-card *,
.mag-content-card *,
.gallery-card *,
.announcement-card *,
.choir-event-card * {
  text-shadow: none !important;
}

.jmtc-card h1, .jmtc-card h2, .jmtc-card h3, .jmtc-card h4,
.mag-content-card h3, .mag-content-card .mag-card-title,
.gallery-card h3, .gallery-card .gallery-card-title,
.jmtc-event-title, .jmtc-gallery-title, .jmtc-gallery-title-link,
.section-dark .jmtc-card .jmtc-event-title,
.section-dark .jmtc-card .jmtc-gallery-title-link {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}

.jmtc-card p, .jmtc-card span,
.mag-content-card p, .mag-content-card span,
.gallery-card p, .gallery-card span,
.jmtc-gallery-sub,
.section-dark .jmtc-card .jmtc-gallery-sub {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

/* Force details link color inside cards */
.jmtc-event-btn,
.jmtc-event-btn:hover {
  border: 1.5px solid #22223B !important;
  color: #22223B !important;
  background: transparent !important;
}

/* Hover state for gallery link */
.jmtc-gallery-title-link:hover {
  color: #D89169 !important;
  -webkit-text-fill-color: #D89169 !important;
}

/* Dark theme cards override */
[data-theme="dark"] .jmtc-card,
[data-theme="dark"] .mag-content-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .announcement-card,
[data-theme="dark"] .choir-event-card {
  background-color: #22223B !important;
  background: #22223B !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .jmtc-card h1, [data-theme="dark"] .jmtc-card h2, [data-theme="dark"] .jmtc-card h3, [data-theme="dark"] .jmtc-card h4,
[data-theme="dark"] .mag-content-card h3, [data-theme="dark"] .mag-content-card .mag-card-title,
[data-theme="dark"] .gallery-card h3, [data-theme="dark"] .gallery-card .gallery-card-title,
[data-theme="dark"] .jmtc-event-title, [data-theme="dark"] .jmtc-gallery-title, [data-theme="dark"] .jmtc-gallery-title-link,
[data-theme="dark"] .section-dark .jmtc-card .jmtc-event-title,
[data-theme="dark"] .section-dark .jmtc-card .jmtc-gallery-title-link {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] .jmtc-card p, [data-theme="dark"] .jmtc-card span,
[data-theme="dark"] .mag-content-card p, [data-theme="dark"] .mag-content-card span,
[data-theme="dark"] .gallery-card p, [data-theme="dark"] .gallery-card span,
[data-theme="dark"] .jmtc-gallery-sub,
[data-theme="dark"] .section-dark .jmtc-card .jmtc-gallery-sub {
  color: rgba(242, 233, 228, 0.85) !important;
  -webkit-text-fill-color: rgba(242, 233, 228, 0.85) !important;
}

[data-theme="dark"] .jmtc-event-btn {
  border-color: rgba(255, 255, 255, 0.6) !important;
  color: #FFFFFF !important;
}

/* 3. Mobile Navigation Drawer Colors */
.mobile-menu-drawer,
body .mobile-menu-drawer,
.nav-mobile-drawer,
body .nav-mobile-drawer {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #22223B !important;
  border-bottom: 2px solid rgba(74, 78, 105, 0.12) !important;
}

.mobile-menu-list > li > .nav-link,
.mobile-menu-list > li > a,
.mobile-accordion-trigger,
.mobile-sublink {
  color: #22223B !important;
  border-bottom-color: rgba(74, 78, 105, 0.08) !important;
}

.mobile-chevron {
  color: #22223B !important;
}

[data-theme="dark"] .mobile-menu-drawer,
[data-theme="dark"] body .mobile-menu-drawer,
[data-theme="dark"] .nav-mobile-drawer,
[data-theme="dark"] body .nav-mobile-drawer {
  background-color: #22223B !important;
  background: #22223B !important;
  color: #FFFFFF !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .mobile-menu-list > li > .nav-link,
[data-theme="dark"] .mobile-menu-list > li > a,
[data-theme="dark"] .mobile-accordion-trigger,
[data-theme="dark"] .mobile-sublink {
  color: #FFFFFF !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .mobile-chevron {
  color: #FFFFFF !important;
}

/* 4. Carousel Layout Mobile Fixes */
@media (max-width: 991px) {
  .jmtc-carousel-track,
  .mag-carousel-track,
  .carousel-track {
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    gap: 1.5rem !important;
  }

  .jmtc-carousel-viewport,
  .mag-carousel-viewport {
    background: transparent !important;
  }
}

/* 5. Floating Live Stream Widget Mobile Fix */
@media (max-width: 767px) {
  .live-stream-widget,
  body .live-stream-widget {
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    bottom: 1rem !important;
    max-width: none !important;
    border-radius: 99px !important;
    box-sizing: border-box !important;
  }
}

/* 6. Vicar Family Portrait & Hero Header Crop Fixes */
@media (max-width: 767px) {
  .vicar-family-img {
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .announcements-hero-img-col,
  body .announcements-hero-img-col {
    border-radius: 12px !important;
    height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 7. Homepage Hero Layout & Font Overlap Fix */
@media (max-width: 767px) {
  .split-hero-section,
  body .split-hero-section {
    height: 80vh !important;
    min-height: 500px !important;
    display: block !important;
  }

  .hero-left-col {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
  }

  .hero-image-wrap {
    padding: 2rem 1.5rem !important;
    display: flex !important;
    align-items: flex-end !important;
  }

  .hero-overlay-title,
  body .hero-overlay-title {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-cta-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 8. Office Bearers Mobile Table Light Style Overrides */
@media (max-width: 767px) {
  .choir-leadership-table tr,
  .section-dark .choir-leadership-table tr {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(74, 78, 105, 0.12) !important;
    box-shadow: 0 4px 12px rgba(34, 34, 59, 0.04) !important;
  }

  .choir-leadership-table td.cell-pos,
  .section-dark .choir-leadership-table td.cell-pos {
    color: #22223B !important;
    border-bottom: 1px dashed rgba(74, 78, 105, 0.15) !important;
  }

  .choir-leadership-table td.cell-name,
  .section-dark .choir-leadership-table td.cell-name {
    color: #4A4E69 !important;
  }

  /* Dark mode table override */
  [data-theme="dark"] .choir-leadership-table tr,
  [data-theme="dark"] .section-dark .choir-leadership-table tr {
    background-color: #22223B !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="dark"] .choir-leadership-table td.cell-pos,
  [data-theme="dark"] .section-dark .choir-leadership-table td.cell-pos {
    color: #FFFFFF !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
  }

  [data-theme="dark"] .choir-leadership-table td.cell-name,
  [data-theme="dark"] .section-dark .choir-leadership-table td.cell-name {
    color: rgba(242, 233, 228, 0.85) !important;
  }
}


/* ── UNIFIED OFFICE BEARERS LIGHT THEME TABLES FOR ALL ORGS ── */
.choir-leadership-table,
body .choir-leadership-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  border: 1px solid rgba(34, 34, 59, 0.08) !important;
  background: #FFFFFF !important;
  margin: 1.5rem 0 !important;
}

.choir-leadership-table th,
body .choir-leadership-table th {
  background-color: #C9ADA7 !important;
  color: #22223B !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 1.1rem 1.5rem !important;
  border-bottom: 2px solid rgba(34, 34, 59, 0.1) !important;
}

.choir-leadership-table td,
body .choir-leadership-table td {
  padding: 1rem 1.5rem !important;
  font-family: var(--font-ui), 'Inter', sans-serif !important;
  font-size: 1rem !important;
  color: #5C544A !important;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08) !important;
  line-height: 1.5 !important;
  background: transparent !important;
}

.choir-leadership-table tr:last-child td,
body .choir-leadership-table tr:last-child td {
  border-bottom: none !important;
}

.choir-leadership-table tr:nth-child(even),
body .choir-leadership-table tr:nth-child(even) {
  background-color: #FAF8F2 !important;
}

.choir-leadership-table td.cell-pos,
body .choir-leadership-table td.cell-pos {
  font-weight: 600 !important;
  color: #22223B !important;
}

.choir-leadership-table td.cell-name,
body .choir-leadership-table td.cell-name {
  font-weight: 500 !important;
  color: #3D352B !important;
}

/* Dark mode overrides for these tables */
[data-theme="dark"] .choir-leadership-table,
body[data-theme="dark"] .choir-leadership-table {
  background: #25263A !important;
  border: 1px solid rgba(201, 173, 167, 0.18) !important;
}

[data-theme="dark"] .choir-leadership-table th,
body[data-theme="dark"] .choir-leadership-table th {
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
  border-bottom: 2px solid rgba(201, 173, 167, 0.25) !important;
}

[data-theme="dark"] .choir-leadership-table td,
body[data-theme="dark"] .choir-leadership-table td {
  color: #F2E9E4 !important;
  border-bottom: 1px solid rgba(201, 173, 167, 0.15) !important;
}

[data-theme="dark"] .choir-leadership-table tr:nth-child(even),
body[data-theme="dark"] .choir-leadership-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .choir-leadership-table td.cell-pos,
body[data-theme="dark"] .choir-leadership-table td.cell-pos {
  color: #EEBA7B !important;
}

[data-theme="dark"] .choir-leadership-table td.cell-name,
body[data-theme="dark"] .choir-leadership-table td.cell-name {
  color: #FFFFFF !important;
}

/* Mobile responsive office bearer card styling overrides */
@media (max-width: 640px) {
  .choir-leadership-table tr,
  body .choir-leadership-table tr {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(74, 78, 105, 0.12) !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    box-shadow: 0 4px 12px rgba(34, 34, 59, 0.04) !important;
    display: block !important;
  }
  
  .choir-leadership-table td,
  body .choir-leadership-table td {
    border: none !important;
    padding: 0.25rem 0 !important;
  }
  
  [data-theme="dark"] .choir-leadership-table tr,
  body[data-theme="dark"] .choir-leadership-table tr {
    background-color: #25263A !important;
    border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Fix mobile upcoming events card overflow and cutoff */
@media (max-width: 767px) {
  body .events-section .hero-event-card,
  body .hero-events-carousel-viewport .hero-event-card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 1.25rem !important; /* 20px margin from screen edges */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
  }

  body .events-section .hero-event-card.active-center,
  body .hero-events-carousel-viewport .hero-event-card.active-center {
    transform: none !important;
  }

  body .events-section .hero-event-card-body,
  body .hero-events-carousel-viewport .hero-event-card-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    padding: 24px !important;
    background: #FFFFFF !important; /* Standard high contrast white in light mode */
    border: 1.5px solid rgba(74, 78, 105, 0.12) !important;
    box-shadow: 0 8px 24px rgba(34, 34, 59, 0.05) !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Dark mode card overrides */
  body[data-theme="dark"] .events-section .hero-event-card-body,
  body[data-theme="dark"] .hero-events-carousel-viewport .hero-event-card-body {
    background: #25263A !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  }
}

/* ==========================================================================
   FINAL LIGHT/DARK SURFACE GOVERNOR
   Keeps dark surfaces out of light mode across tables, carousel cards, and
   floating widgets. Footer and explicit dark theme are intentionally excluded.
   ========================================================================== */

:root:not([data-theme="dark"]) .section-dark,
:root:not([data-theme="dark"]) .choir-section-dark,
:root:not([data-theme="dark"]) section.section-dark,
:root:not([data-theme="dark"]) div.section-dark,
:root:not([data-theme="dark"]) .history-section,
:root:not([data-theme="dark"]) .vicar-message-section {
  background: linear-gradient(135deg, #FAF8F5 0%, #F2E9E4 100%) !important;
  background-color: #FAF8F5 !important;
  color: #22223B !important;
  border-color: rgba(74, 78, 105, 0.10) !important;
}

:root:not([data-theme="dark"]) .section-dark h1,
:root:not([data-theme="dark"]) .section-dark h2,
:root:not([data-theme="dark"]) .section-dark h3,
:root:not([data-theme="dark"]) .section-dark h4,
:root:not([data-theme="dark"]) .section-dark h5,
:root:not([data-theme="dark"]) .choir-section-dark h1,
:root:not([data-theme="dark"]) .choir-section-dark h2,
:root:not([data-theme="dark"]) .choir-section-dark h3,
:root:not([data-theme="dark"]) .choir-section-title,
:root:not([data-theme="dark"]) .jmtc-section-title,
:root:not([data-theme="dark"]) .section-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .section-dark p,
:root:not([data-theme="dark"]) .section-dark li,
:root:not([data-theme="dark"]) .section-dark span:not(.live-stream-dot),
:root:not([data-theme="dark"]) .choir-section-dark p,
:root:not([data-theme="dark"]) .choir-section-dark li,
:root:not([data-theme="dark"]) .choir-section-dark span:not(.live-stream-dot) {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

/* Organization / ministry office-bearer tables: white in light mode. */
:root:not([data-theme="dark"]) .choir-leadership-wrap,
:root:not([data-theme="dark"]) body .choir-leadership-wrap,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-wrap,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-wrap {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 1px solid rgba(74, 78, 105, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(34, 34, 59, 0.08) !important;
  overflow: hidden !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table,
:root:not([data-theme="dark"]) body .choir-leadership-table,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border: 0 !important;
  color: #22223B !important;
  box-shadow: none !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table th,
:root:not([data-theme="dark"]) body .choir-leadership-table th,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table th,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table th {
  background: #C9ADA7 !important;
  background-color: #C9ADA7 !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.16) !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table tbody tr,
:root:not([data-theme="dark"]) body .choir-leadership-table tbody tr,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table tbody tr,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table tbody tr {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #22223B !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table tbody tr:nth-child(even),
:root:not([data-theme="dark"]) body .choir-leadership-table tbody tr:nth-child(even),
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table tbody tr:nth-child(even),
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table tbody tr:nth-child(even) {
  background: #FAF8F5 !important;
  background-color: #FAF8F5 !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table td,
:root:not([data-theme="dark"]) body .choir-leadership-table td,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table td,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table td {
  background: transparent !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table td.cell-pos,
:root:not([data-theme="dark"]) body .choir-leadership-table td.cell-pos,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table td.cell-pos,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table td.cell-pos {
  color: #B06830 !important;
  -webkit-text-fill-color: #B06830 !important;
  font-weight: 700 !important;
}

:root:not([data-theme="dark"]) .choir-leadership-table td.cell-name,
:root:not([data-theme="dark"]) body .choir-leadership-table td.cell-name,
:root:not([data-theme="dark"]) .section-dark .choir-leadership-table td.cell-name,
:root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table td.cell-name,
:root:not([data-theme="dark"]) .choir-members-list,
:root:not([data-theme="dark"]) .choir-members-list * {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Event/gallery carousel cards and card bodies stay light in light mode. */
:root:not([data-theme="dark"]) .jmtc-card,
:root:not([data-theme="dark"]) .mag-content-card,
:root:not([data-theme="dark"]) .hero-event-card,
:root:not([data-theme="dark"]) .hero-event-card-body,
:root:not([data-theme="dark"]) .gallery-card,
:root:not([data-theme="dark"]) .gallery-card-new,
:root:not([data-theme="dark"]) .announcement-card,
:root:not([data-theme="dark"]) .choir-event-card,
:root:not([data-theme="dark"]) #upcoming-events-section .mag-content-card,
:root:not([data-theme="dark"]) .section-dark .jmtc-card,
:root:not([data-theme="dark"]) .section-dark .mag-content-card {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #22223B !important;
  border-color: rgba(74, 78, 105, 0.12) !important;
  box-shadow: 0 8px 24px rgba(34, 34, 59, 0.06) !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .jmtc-card h1,
:root:not([data-theme="dark"]) .jmtc-card h2,
:root:not([data-theme="dark"]) .jmtc-card h3,
:root:not([data-theme="dark"]) .mag-content-card h3,
:root:not([data-theme="dark"]) .mag-card-title,
:root:not([data-theme="dark"]) .hero-event-card-title,
:root:not([data-theme="dark"]) .jmtc-event-title,
:root:not([data-theme="dark"]) .jmtc-gallery-title,
:root:not([data-theme="dark"]) .jmtc-gallery-title-link,
:root:not([data-theme="dark"]) .gallery-card-title,
:root:not([data-theme="dark"]) #upcoming-events-section .mag-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .jmtc-card p,
:root:not([data-theme="dark"]) .jmtc-card span:not(.event-date-badge-inline),
:root:not([data-theme="dark"]) .mag-content-card p,
:root:not([data-theme="dark"]) .mag-card-meta,
:root:not([data-theme="dark"]) .hero-event-card-desc,
:root:not([data-theme="dark"]) .jmtc-gallery-sub,
:root:not([data-theme="dark"]) .gallery-card p,
:root:not([data-theme="dark"]) #upcoming-events-section .mag-card-excerpt {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .mag-card-link,
:root:not([data-theme="dark"]) .mag-card-link span,
:root:not([data-theme="dark"]) .event-action-link,
:root:not([data-theme="dark"]) .jmtc-event-btn {
  color: #B06830 !important;
  -webkit-text-fill-color: #B06830 !important;
  border-color: rgba(176, 104, 48, 0.45) !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .mag-card-link svg,
:root:not([data-theme="dark"]) .event-action-link svg {
  stroke: #B06830 !important;
  color: #B06830 !important;
}

/* Floating live stream widget should not turn into a dark chip in light mode. */
:root:not([data-theme="dark"]) .live-stream-widget,
:root:not([data-theme="dark"]) body .live-stream-widget {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #22223B !important;
  border: 1.5px solid rgba(224, 82, 67, 0.28) !important;
  box-shadow: 0 10px 28px rgba(34, 34, 59, 0.13) !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .live-stream-widget:hover,
:root:not([data-theme="dark"]) body .live-stream-widget:hover {
  background: #FFFFFF !important;
  color: #22223B !important;
  border-color: rgba(224, 82, 67, 0.45) !important;
  box-shadow: 0 14px 34px rgba(34, 34, 59, 0.16) !important;
}

@media (max-width: 767px) {
  :root:not([data-theme="dark"]) .choir-leadership-table,
  :root:not([data-theme="dark"]) .choir-leadership-table tbody {
    background: transparent !important;
    border: 0 !important;
  }

  :root:not([data-theme="dark"]) .choir-leadership-table tr,
  :root:not([data-theme="dark"]) body .choir-leadership-table tr,
  :root:not([data-theme="dark"]) .section-dark .choir-leadership-table tr,
  :root:not([data-theme="dark"]) .choir-section-dark .choir-leadership-table tr {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border: 1px solid rgba(74, 78, 105, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(34, 34, 59, 0.07) !important;
  }

  :root:not([data-theme="dark"]) .choir-leadership-table td.cell-pos,
  :root:not([data-theme="dark"]) .section-dark .choir-leadership-table td.cell-pos {
    border-bottom: 1px dashed rgba(74, 78, 105, 0.16) !important;
    padding-bottom: 0.55rem !important;
    margin-bottom: 0.35rem !important;
  }

  :root:not([data-theme="dark"]) .live-stream-widget,
  :root:not([data-theme="dark"]) body .live-stream-widget {
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }

  .nav-grid-container,
  body .nav-grid-container {
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 0.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100vw !important;
    overflow: visible !important;
  }

  .nav-grid-cell.nav-grid-actions,
  body .nav-grid-cell.nav-grid-actions {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    transform: none !important;
  }

  .hamburger-toggle,
  body .hamburger-toggle {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .exec-table-wrap,
  body .exec-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .exec-table,
  body .exec-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  .exec-table tbody,
  body .exec-table tbody,
  .exec-table tr,
  body .exec-table tr,
  .exec-table td,
  body .exec-table td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .exec-table td.cell-title,
  .exec-table td.cell-name,
  body .exec-table td.cell-title,
  body .exec-table td.cell-name {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* ==========================================================================
   FINAL MOBILE CAROUSEL AND IMAGE-OVERLAY REPAIR
   ========================================================================== */

/* Image overlay showcase cards must keep light text over darkened photos. */
.community-showcase-frame,
.community-showcase-frame .community-showcase-content {
  color: #FFFFFF !important;
}

.community-showcase-frame .chapter-title-editorial,
.community-showcase-frame .chapter-desc-editorial,
.community-showcase-frame .community-showcase-content h3,
.community-showcase-frame .community-showcase-content p,
.community-showcase-frame .community-showcase-content span:not(.community-progress-fill) {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65) !important;
}

.community-showcase-frame .chapter-desc-editorial {
  color: rgba(248, 245, 242, 0.88) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.88) !important;
}

.community-showcase-frame .community-pill-cta,
.community-showcase-frame .community-pill-cta span {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  text-shadow: none !important;
}

@media (max-width: 767px) {
  /* Upcoming Events: one clean full card with visible controls. */
  .events-section,
  body .events-section {
    overflow: hidden !important;
  }

  .events-section-inner,
  body .events-section-inner {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .hero-events-carousel-viewport,
  body .hero-events-carousel-viewport {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 22px !important;
  }

  .hero-events-carousel-track,
  body .hero-events-carousel-track {
    display: flex !important;
    gap: 0 !important;
    width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
    will-change: transform !important;
  }

  body .events-section .hero-event-card,
  body .hero-events-carousel-viewport .hero-event-card {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    opacity: 1 !important;
  }

  body .events-section .hero-event-card-body,
  body .hero-events-carousel-viewport .hero-event-card-body {
    min-height: 292px !important;
    width: 100% !important;
    border-radius: 22px !important;
    padding: 22px !important;
  }

  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    padding: 0 1rem !important;
  }

  .events-section .hero-events-controls-bar .hero-carousel-arrow,
  body .events-section .hero-events-controls-bar .hero-carousel-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #22223B !important;
    border: 1.5px solid rgba(201, 173, 167, 0.55) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
  }

  [data-theme="dark"] .events-section .hero-events-controls-bar .hero-carousel-arrow {
    background: #25263A !important;
    color: #F2E9E4 !important;
    border-color: rgba(201, 173, 167, 0.45) !important;
  }

  .hero-carousel-progress,
  body .hero-carousel-progress {
    min-width: 160px !important;
    max-width: 190px !important;
    flex: 1 1 170px !important;
  }

  /* Stay Connected / Announcements: prevent clipped cards and keep arrows visible. */
  .stay-connected-section,
  .stay-connected-viewport,
  .stay-connected-container,
  .stay-connected-carousel-stage,
  body .stay-connected-section,
  body .stay-connected-viewport,
  body .stay-connected-container,
  body .stay-connected-carousel-stage {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .stay-connected-header-left,
  body .stay-connected-header-left {
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
  }

  .stay-connected-magazine-nav,
  body .stay-connected-magazine-nav {
    max-width: calc(100vw - 2.7rem) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .stay-connected-magazine-nav::-webkit-scrollbar {
    display: none !important;
  }

  .stay-connected-mag-panel,
  body .stay-connected-mag-panel {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .stay-connected-mag-panel .panel-header-row,
  body .stay-connected-mag-panel .panel-header-row {
    display: flex !important;
    justify-content: flex-end !important;
    padding: 0 1.35rem 0.8rem !important;
    margin: 0 !important;
  }

  .mag-carousel-controls,
  body .mag-carousel-controls {
    display: inline-flex !important;
    gap: 0.55rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .mag-arrow-btn,
  body .mag-arrow-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #22223B !important;
    border: 1.5px solid rgba(201, 173, 167, 0.5) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  }

  [data-theme="dark"] .mag-arrow-btn {
    background: #25263A !important;
    color: #F2E9E4 !important;
    border-color: rgba(201, 173, 167, 0.4) !important;
  }

  .mag-carousel-viewport,
  body .mag-carousel-viewport {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    border-radius: 18px !important;
  }

  .mag-carousel-track,
  body .mag-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: max-content !important;
    will-change: transform !important;
  }

  .mag-carousel-track .mag-content-card,
  body .mag-carousel-track .mag-content-card {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .mag-card-title,
  .mag-card-title a,
  body .mag-card-title,
  body .mag-card-title a {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  /* Office bearers: real mobile carousel with controls and progress. */
  .team-section,
  #vicar-team,
  body .team-section,
  body #vicar-team {
    overflow: hidden !important;
  }

  .bearers-carousel-container,
  body .bearers-carousel-container {
    width: 100% !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  .bearers-grid,
  body .bearers-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .bearers-grid::-webkit-scrollbar,
  body .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }

  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    border-radius: 18px !important;
    scroll-snap-align: start !important;
    overflow: hidden !important;
  }

  .bearers-grid .bearer-image-wrap,
  body .bearers-grid .bearer-image-wrap {
    height: 255px !important;
    border-radius: 0 !important;
  }

  .bearers-grid .bearer-info,
  body .bearers-grid .bearer-info {
    min-height: 128px !important;
    padding: 1.25rem !important;
  }

  .bearers-carousel-progress-wrap,
  body .bearers-carousel-progress-wrap {
    display: block !important;
    width: 100% !important;
    margin: 1rem 0 0 !important;
  }

  .bearers-progress-track,
  body .bearers-progress-track {
    display: block !important;
    width: 100% !important;
    height: 3px !important;
    background: rgba(74, 78, 105, 0.18) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  .bearers-progress-fill,
  body .bearers-progress-fill {
    display: block !important;
    height: 100% !important;
    width: 20% !important;
    background: #C9ADA7 !important;
    border-radius: inherit !important;
  }

  .bearers-mobile-controls,
  body .bearers-mobile-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .bearers-counter,
  body .bearers-counter {
    color: #4A4E69 !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
  }

  [data-theme="dark"] .bearers-counter {
    color: rgba(242, 233, 228, 0.82) !important;
  }

  .bearers-arrows-group,
  body .bearers-arrows-group {
    display: inline-flex !important;
    gap: 0.55rem !important;
  }

  .bearers-arrow-btn,
  body .bearers-arrow-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #22223B !important;
    border: 1.5px solid rgba(74, 78, 105, 0.18) !important;
    box-shadow: 0 8px 18px rgba(34, 34, 59, 0.12) !important;
  }

  [data-theme="dark"] .bearers-arrow-btn {
    background: #25263A !important;
    color: #F2E9E4 !important;
    border-color: rgba(201, 173, 167, 0.35) !important;
  }
}

/* Last-mile mobile clipping and overlay contrast fixes. */
.community-story-chapter .community-showcase-content,
.community-story-chapter .community-showcase-content h3,
.community-story-chapter .chapter-title-editorial,
.community-story-chapter .community-showcase-content p,
.community-story-chapter .chapter-desc-editorial {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72) !important;
}

.community-story-chapter .chapter-desc-editorial {
  color: rgba(248, 245, 242, 0.88) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.88) !important;
}

.community-story-chapter .community-pill-cta,
.community-story-chapter .community-pill-cta span,
body .community-story-chapter .community-pill-cta,
body .community-story-chapter .community-pill-cta span,
main .community-story-chapter .community-pill-cta span {
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  text-shadow: none !important;
}

@media (max-width: 767px) {
  .hero-events-carousel-viewport,
  body .hero-events-carousel-viewport,
  .bearers-carousel-container,
  body .bearers-carousel-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  body .events-section .hero-event-card,
  body .hero-events-carousel-viewport .hero-event-card {
    flex: 0 0 calc(100vw - 52px) !important;
    width: calc(100vw - 52px) !important;
    min-width: calc(100vw - 52px) !important;
    max-width: calc(100vw - 52px) !important;
  }

  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .bearers-grid,
  body .bearers-grid {
    width: 100% !important;
    max-width: 100% !important;
  }

  .bearers-carousel-progress-wrap,
  .bearers-mobile-controls,
  body .bearers-carousel-progress-wrap,
  body .bearers-mobile-controls {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-event-card-title,
  .hero-event-card-desc,
  .hero-event-date-row,
  body .hero-event-card-title,
  body .hero-event-card-desc,
  body .hero-event-date-row {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .hero-event-card-desc,
  body .hero-event-card-desc {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
  }
}

/* ==========================================================================
   FINAL ORGANIZATION CARD, GALLERY, AND VICAR CAROUSEL POLISH
   ========================================================================== */

.jmtc-carousel-section,
.choir-section,
.gallery-page-main,
body .jmtc-carousel-section,
body .choir-section {
  overflow-x: hidden !important;
}

.jmtc-carousel-viewport,
.carousel-track-container,
body .jmtc-carousel-viewport,
body .carousel-track-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.jmtc-carousel-track,
.carousel-track,
body .jmtc-carousel-track,
body .carousel-track {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}

.jmtc-carousel-track .jmtc-card,
.carousel-track .jmtc-card,
body .jmtc-carousel-track .jmtc-card,
body .carousel-track .jmtc-card {
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 300px !important;
  min-height: 410px !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.jmtc-carousel-section[aria-label="Gallery"] .jmtc-card,
body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
  min-height: 340px !important;
}

.jmtc-event-img-wrap,
.jmtc-gallery-img-wrap,
body .jmtc-event-img-wrap,
body .jmtc-gallery-img-wrap {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  border-radius: 18px 18px 0 0 !important;
  background: #F5F1E8 !important;
}

.jmtc-event-img,
.jmtc-gallery-img,
body .jmtc-event-img,
body .jmtc-gallery-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.jmtc-event-body,
.jmtc-gallery-body,
body .jmtc-event-body,
body .jmtc-gallery-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 0.85rem !important;
  padding: 1.2rem 1.25rem 1.25rem !important;
  box-sizing: border-box !important;
}

.jmtc-event-title,
.jmtc-gallery-title,
.jmtc-gallery-title-link,
body .jmtc-event-title,
body .jmtc-gallery-title,
body .jmtc-gallery-title-link {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.jmtc-event-meta,
.jmtc-event-meta-item,
.jmtc-gallery-sub,
body .jmtc-event-meta,
body .jmtc-event-meta-item,
body .jmtc-gallery-sub {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.jmtc-gallery-sub,
body .jmtc-gallery-sub {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.jmtc-event-btn,
.jmtc-event-btn span,
body .jmtc-event-btn,
body .jmtc-event-btn span {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  background: #FFFFFF !important;
  border-color: rgba(176, 104, 48, 0.55) !important;
  text-shadow: none !important;
}

.jmtc-event-btn:hover,
body .jmtc-event-btn:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: #B06830 !important;
  border-color: #B06830 !important;
}

[data-theme="dark"] .jmtc-event-btn,
[data-theme="dark"] .jmtc-event-btn span {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(238, 186, 123, 0.55) !important;
}

[data-theme="dark"] .jmtc-event-btn:hover {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  background: #EEBA7B !important;
  border-color: #EEBA7B !important;
}

[data-theme="dark"] .vicar-card,
[data-theme="dark"] .vicar-card-info,
body[data-theme="dark"] .vicar-card,
body[data-theme="dark"] .vicar-card-info {
  background: #24243A !important;
  color: #F8F5F2 !important;
}

[data-theme="dark"] .vicar-card-name,
[data-theme="dark"] .vicar-card-years,
body[data-theme="dark"] .vicar-card-name,
body[data-theme="dark"] .vicar-card-years {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .vicar-card-years,
body[data-theme="dark"] .vicar-card-years {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
}

[data-theme="dark"] .vicar-expand-btn {
  background: rgba(248, 245, 242, 0.92) !important;
  color: #22223B !important;
}

.img-fallback-badge {
  font-family: var(--font-body), Arial, sans-serif !important;
  line-height: 1.2 !important;
}

@media (min-width: 1024px) {
  .jmtc-carousel-track .jmtc-card,
  .carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card,
  body .carousel-track .jmtc-card {
    flex-basis: 282px !important;
    width: 282px !important;
    max-width: 282px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .jmtc-carousel-track .jmtc-card,
  .carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card,
  body .carousel-track .jmtc-card {
    flex-basis: calc((100% - 24px) / 2) !important;
    width: calc((100% - 24px) / 2) !important;
    max-width: calc((100% - 24px) / 2) !important;
  }
}

@media (max-width: 767px) {
  .jmtc-carousel-section,
  body .jmtc-carousel-section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .jmtc-carousel-header,
  body .jmtc-carousel-header {
    max-width: 100% !important;
  }

  .jmtc-carousel-track,
  .carousel-track,
  body .jmtc-carousel-track,
  body .carousel-track {
    gap: 0 !important;
    width: max-content !important;
    padding: 0 !important;
  }

  .jmtc-carousel-track .jmtc-card,
  .carousel-track .jmtc-card,
  body .jmtc-carousel-track .jmtc-card,
  body .carousel-track .jmtc-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    min-height: 390px !important;
    margin: 0 !important;
  }

  .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card,
  body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
    min-height: 318px !important;
  }

  .jmtc-event-body,
  .jmtc-gallery-body,
  body .jmtc-event-body,
  body .jmtc-gallery-body {
    padding: 1rem !important;
  }

  .jmtc-event-title,
  body .jmtc-event-title {
    font-size: 1rem !important;
    line-height: 1.28 !important;
  }

  .jmtc-gallery-title,
  .jmtc-gallery-title-link,
  body .jmtc-gallery-title,
  body .jmtc-gallery-title-link {
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
  }
}

/* Contact page title should be dark on the light banner, not white-on-white. */
:root:not([data-theme="dark"]) .contact-header-banner,
:root:not([data-theme="dark"]) body .contact-header-banner {
  background: #FAF8F5 !important;
  color: #22223B !important;
}

:root:not([data-theme="dark"]) .contact-page-title,
:root:not([data-theme="dark"]) body .contact-page-title,
:root:not([data-theme="dark"]) .contact-header-banner .contact-page-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .contact-page-subtitle,
:root:not([data-theme="dark"]) body .contact-page-subtitle {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .contact-page-title {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
}

/* ==========================================================================
   FINAL CAROUSEL ARROW VISIBILITY AND SIDE PLACEMENT
   ========================================================================== */

.events-section,
.events-section-inner,
.jmtc-carousel-section,
.stay-connected-mag-panel,
.bearers-carousel-container {
  position: relative !important;
}

.events-section,
.jmtc-carousel-section,
.stay-connected-section {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.events-section .hero-events-controls-bar,
body .events-section .hero-events-controls-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 52px !important;
  margin-top: 1.5rem !important;
  pointer-events: none !important;
}

.events-section .hero-events-controls-bar .hero-carousel-arrow,
body .events-section .hero-events-controls-bar .hero-carousel-arrow,
.events-section #heroEventsPrev,
.events-section #heroEventsNext {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: calc(50% + 1.4rem) !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  color: #22223B !important;
  border: 1.5px solid rgba(74, 78, 105, 0.18) !important;
  box-shadow: 0 12px 28px rgba(34, 34, 59, 0.16) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 50 !important;
}

.events-section #heroEventsPrev {
  left: -0.25rem !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
}

.events-section #heroEventsNext {
  right: -0.25rem !important;
  left: auto !important;
  transform: translate(50%, -50%) !important;
}

.events-section .hero-carousel-progress,
body .events-section .hero-carousel-progress {
  pointer-events: auto !important;
}

.jmtc-carousel-nav,
body .jmtc-carousel-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: 40 !important;
}

.jmtc-carousel-btn,
.mag-arrow-btn,
.bearers-arrow-btn,
body .jmtc-carousel-btn,
body .mag-arrow-btn,
body .bearers-arrow-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.jmtc-carousel-btn:disabled,
body .jmtc-carousel-btn:disabled {
  opacity: 0.45 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 768px) {
  .jmtc-carousel-section .jmtc-carousel-nav,
  body .jmtc-carousel-section .jmtc-carousel-nav {
    position: absolute !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    top: 55% !important;
    width: auto !important;
    max-width: none !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar {
    gap: 0.85rem !important;
    min-height: 48px !important;
    pointer-events: auto !important;
  }

  .events-section .hero-events-controls-bar .hero-carousel-arrow,
  body .events-section .hero-events-controls-bar .hero-carousel-arrow,
  .events-section #heroEventsPrev,
  .events-section #heroEventsNext {
    position: static !important;
    transform: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
  }

  .jmtc-carousel-section .jmtc-carousel-nav,
  body .jmtc-carousel-section .jmtc-carousel-nav {
    position: absolute !important;
    top: 58% !important;
    left: 0.25rem !important;
    right: 0.25rem !important;
    width: auto !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

[data-theme="dark"] .events-section .hero-events-controls-bar .hero-carousel-arrow,
[data-theme="dark"] .events-section #heroEventsPrev,
[data-theme="dark"] .events-section #heroEventsNext {
  background: #25263A !important;
  color: #F8F5F2 !important;
  border-color: rgba(238, 186, 123, 0.42) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32) !important;
}

/* Mobile drawer links sit on a white panel in light mode. */
:root:not([data-theme="dark"]) .mobile-menu-drawer .nav-link,
:root:not([data-theme="dark"]) .mobile-menu-drawer a,
:root:not([data-theme="dark"]) .mobile-menu-drawer .mobile-accordion-trigger,
:root:not([data-theme="dark"]) .mobile-menu-drawer .mobile-chevron,
:root:not([data-theme="dark"]) body .mobile-menu-drawer .nav-link,
:root:not([data-theme="dark"]) body .mobile-menu-drawer a,
:root:not([data-theme="dark"]) body .mobile-menu-drawer .mobile-accordion-trigger {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .mobile-menu-drawer .mobile-sublink,
:root:not([data-theme="dark"]) .mobile-menu-drawer .mobile-sublink span {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

.mobile-menu-drawer .dropdown-item,
.mobile-menu-drawer .dropdown-panel,
.nav-mobile-drawer .dropdown-item,
.nav-mobile-drawer .dropdown-panel {
  display: none !important;
}

.btn-primary,
.btn-primary span,
.btn-primary svg,
a.btn-primary,
a.btn-primary span,
body .btn-primary,
body .btn-primary span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

.btn-primary svg,
a.btn-primary svg,
body .btn-primary svg {
  stroke: #FFFFFF !important;
}

@media (max-width: 767px) {
  .bearers-carousel-container,
  body .bearers-carousel-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .bearers-grid,
  body .bearers-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 8vw !important;
    padding: 0 8vw 1rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 84vw !important;
    width: 84vw !important;
    min-width: 84vw !important;
    max-width: 84vw !important;
    min-height: 384px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .bearers-grid .bearer-image-wrap,
  body .bearers-grid .bearer-image-wrap {
    height: 254px !important;
    min-height: 254px !important;
    flex: 0 0 254px !important;
  }

  .bearers-grid .bearer-info,
  body .bearers-grid .bearer-info {
    flex: 1 1 auto !important;
    min-height: 130px !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   MOBILE HOME ROOT LAYOUT CORRECTIONS
   ========================================================================== */

@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  #hero.split-hero-section,
  body #hero.split-hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100svh !important;
    height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #111827 !important;
    border: 0 !important;
  }

  #hero .split-hero-grid,
  body #hero .split-hero-grid,
  #hero .hero-left-col,
  body #hero .hero-left-col,
  #hero .hero-image-wrap,
  body #hero .hero-image-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  #hero .hero-church-img,
  body #hero .hero-church-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 0 !important;
  }

  #hero .hero-left-content,
  body #hero .hero-left-content {
    width: 100% !important;
    padding: 0 1rem 2rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #hero .hero-cta-group,
  body #hero .hero-cta-group {
    width: 100% !important;
    gap: 0.85rem !important;
  }

  #hero .hero-cta-btn,
  #hero .hero-cta-btn span,
  body #hero .hero-cta-btn,
  body #hero .hero-cta-btn span {
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    text-shadow: none !important;
  }

  #hero .hero-cta-btn svg,
  body #hero .hero-cta-btn svg {
    color: #22223B !important;
    stroke: #22223B !important;
  }

  .community-pill-cta,
  .community-pill-cta span,
  body .community-pill-cta,
  body .community-pill-cta span,
  main .community-pill-cta span {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    text-shadow: none !important;
  }

  .community-pill-cta svg,
  body .community-pill-cta svg {
    color: #050505 !important;
    stroke: #050505 !important;
  }

  .events-section,
  body .events-section {
    overflow: hidden !important;
  }

  .events-section-inner,
  body .events-section-inner {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .hero-events-carousel-viewport,
  body .hero-events-carousel-viewport {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 20px !important;
  }

  .hero-events-carousel-track,
  body .hero-events-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: max-content !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .events-section .hero-event-card,
  body .events-section .hero-event-card,
  body .hero-events-carousel-viewport .hero-event-card {
    flex: 0 0 calc(100vw - 2.5rem) !important;
    width: calc(100vw - 2.5rem) !important;
    min-width: calc(100vw - 2.5rem) !important;
    max-width: calc(100vw - 2.5rem) !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    overflow: hidden !important;
  }

  .events-section .hero-event-card.preview-next,
  .events-section .hero-event-card.passed-prev,
  body .events-section .hero-event-card.preview-next,
  body .events-section .hero-event-card.passed-prev {
    opacity: 1 !important;
    transform: none !important;
  }

  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar {
    padding: 0 !important;
    gap: 0.8rem !important;
    justify-content: center !important;
  }
}

/* Final navbar contract: desktop never renders the mobile drawer in page flow. */
@media (min-width: 992px) {
  .mobile-menu-drawer,
  body .mobile-menu-drawer,
  .mobile-nav-drawer,
  body .mobile-nav-drawer {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    inset: 0 auto auto 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  .hamburger-toggle,
  body .hamburger-toggle,
  .mobile-nav-toggle-btn,
  body .mobile-nav-toggle-btn {
    display: none !important;
  }

  .nav-grid-container,
  body .nav-grid-container {
    display: grid !important;
  }

  .nav-grid-menu,
  body .nav-grid-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 991px) {
  .nav-grid-container,
  body .nav-grid-container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  .nav-grid-menu,
  body .nav-grid-menu {
    display: none !important;
  }

  .nav-grid-brand,
  .nav-grid-actions,
  body .nav-grid-brand,
  body .nav-grid-actions {
    display: flex !important;
  }

  .mobile-nav-drawer,
  body .mobile-nav-drawer {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }

  .mobile-nav-drawer.open,
  .mobile-nav-drawer.active,
  body .mobile-nav-drawer.open,
  body .mobile-nav-drawer.active {
    display: block !important;
  }

  .mobile-nav-toggle-btn,
  body .mobile-nav-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Final contact-page contrast and layout contract. */
body.contact-page .contact-header-banner,
body.contact-page main .contact-header-banner {
  background: #FAF8F2 !important;
  color: #22223B !important;
  border-bottom: 1px solid rgba(74, 78, 105, 0.08) !important;
}

body.contact-page .contact-page-title,
body.contact-page .contact-header-banner h1,
body.contact-page main .contact-page-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

body.contact-page .contact-page-subtitle,
body.contact-page .contact-header-banner p,
body.contact-page main .contact-page-subtitle {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body.contact-page .contact-ornament-cross {
  color: rgba(176, 124, 96, 0.45) !important;
  -webkit-text-fill-color: rgba(176, 124, 96, 0.45) !important;
  text-shadow: none !important;
}

body.contact-page .contact-container {
  width: min(100%, 1180px) !important;
  max-width: calc(100vw - 2rem) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.contact-page .contact-info-grid,
body.contact-page section.contact-info-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: clamp(1rem, 2.4vw, 1.75rem) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(1.25rem, 3vw, 2rem) 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.contact-page .contact-info-card {
  min-width: 0 !important;
  width: 100% !important;
  background: #FFFFFF !important;
  color: #22223B !important;
}

body.contact-page .contact-info-card .contact-card-title,
body.contact-page .contact-info-card .timing-label,
body.contact-page .contact-info-card .contact-row,
body.contact-page .contact-info-card .contact-row a {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

body.contact-page .contact-info-card .contact-card-text,
body.contact-page .contact-info-card .contact-card-text p,
body.contact-page .contact-info-card .timing-val,
body.contact-page .contact-info-card .contact-timings-list li {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

[data-theme="dark"] body.contact-page .contact-header-banner,
[data-theme="dark"] body.contact-page main .contact-header-banner,
body.contact-page[data-theme="dark"] .contact-header-banner,
body.contact-page[data-theme="dark"] main .contact-header-banner {
  background: #22223B !important;
  color: #F8F5F2 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] body.contact-page .contact-page-title,
[data-theme="dark"] body.contact-page .contact-header-banner h1,
[data-theme="dark"] body.contact-page main .contact-page-title,
body.contact-page[data-theme="dark"] .contact-page-title,
body.contact-page[data-theme="dark"] .contact-header-banner h1,
body.contact-page[data-theme="dark"] main .contact-page-title {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] body.contact-page .contact-page-subtitle,
[data-theme="dark"] body.contact-page .contact-header-banner p,
[data-theme="dark"] body.contact-page main .contact-page-subtitle,
body.contact-page[data-theme="dark"] .contact-page-subtitle,
body.contact-page[data-theme="dark"] .contact-header-banner p,
body.contact-page[data-theme="dark"] main .contact-page-subtitle {
  color: rgba(248, 245, 242, 0.82) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.82) !important;
}

/* Canonical mobile responsive contract: nav, footer, cards, and carousel centering. */
@media (max-width: 767px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
  }

  body,
  main,
  section,
  .container {
    max-width: 100vw !important;
  }

  img,
  picture,
  video,
  canvas,
  svg {
    max-width: 100%;
  }

  .grid-navbar,
  body .grid-navbar {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    overflow: visible !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
    box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.75rem !important;
    min-height: 72px !important;
    padding: 0.65rem 0.9rem !important;
    align-items: center !important;
  }

  .grid-navbar .nav-grid-brand,
  body .grid-navbar .nav-grid-brand {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .grid-navbar .brand-logo,
  body .grid-navbar .brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .grid-navbar .brand-logo-img,
  body .grid-navbar .brand-logo-img {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    object-fit: contain !important;
  }

  .grid-navbar .brand-name,
  body .grid-navbar .brand-name {
    display: block !important;
    min-width: 0 !important;
    max-width: calc(100vw - 158px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(1.18rem, 5.6vw, 1.58rem) !important;
    line-height: 1.05 !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    text-shadow: none !important;
  }

  .grid-navbar .nav-grid-actions,
  body .grid-navbar .nav-grid-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 0.5rem !important;
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .grid-navbar .theme-toggle-btn,
  .grid-navbar .hamburger-toggle,
  .grid-navbar .mobile-nav-toggle-btn,
  body .grid-navbar .theme-toggle-btn,
  body .grid-navbar .hamburger-toggle,
  body .grid-navbar .mobile-nav-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    stroke: #22223B !important;
    border: 1px solid rgba(34, 34, 59, 0.18) !important;
  }

  body.home-page .grid-navbar:not(.scrolled) .theme-toggle-btn,
  body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle,
  body.home-page .grid-navbar:not(.scrolled) .mobile-nav-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar:not(.scrolled) .theme-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar:not(.scrolled) .hamburger-toggle,
  body:has(#hero.split-hero-section) .grid-navbar:not(.scrolled) .mobile-nav-toggle-btn {
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    stroke: #22223B !important;
  }

  .grid-navbar .theme-toggle-btn svg,
  .grid-navbar .hamburger-toggle svg,
  .grid-navbar .mobile-nav-toggle-btn svg,
  body .grid-navbar .theme-toggle-btn svg,
  body .grid-navbar .hamburger-toggle svg,
  body .grid-navbar .mobile-nav-toggle-btn svg {
    color: #22223B !important;
    stroke: #22223B !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 23px !important;
    height: 23px !important;
  }

  .mobile-menu-drawer,
  .mobile-nav-drawer,
  body .mobile-menu-drawer,
  body .mobile-nav-drawer {
    left: 0 !important;
    right: 0 !important;
    top: 72px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100svh - 72px) !important;
    background: #FFFFFF !important;
    color: #22223B !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .mobile-menu-drawer a,
  .mobile-nav-drawer a,
  .mobile-menu-drawer span,
  .mobile-nav-drawer span,
  .mobile-menu-drawer button,
  .mobile-nav-drawer button,
  .mobile-menu-drawer svg,
  .mobile-nav-drawer svg,
  body .mobile-menu-drawer a,
  body .mobile-nav-drawer a,
  body .mobile-menu-drawer span,
  body .mobile-nav-drawer span,
  body .mobile-menu-drawer button,
  body .mobile-nav-drawer button,
  body .mobile-menu-drawer svg,
  body .mobile-nav-drawer svg {
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    stroke: currentColor !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  [data-theme="dark"] .mobile-menu-drawer,
  [data-theme="dark"] .mobile-nav-drawer,
  [data-theme="dark"] body .mobile-menu-drawer,
  [data-theme="dark"] body .mobile-nav-drawer,
  body[data-theme="dark"] .mobile-menu-drawer,
  body[data-theme="dark"] .mobile-nav-drawer {
    background: #17172A !important;
    color: #F8F5F2 !important;
  }

  [data-theme="dark"] .mobile-menu-drawer a,
  [data-theme="dark"] .mobile-nav-drawer a,
  [data-theme="dark"] .mobile-menu-drawer span,
  [data-theme="dark"] .mobile-nav-drawer span,
  [data-theme="dark"] .mobile-menu-drawer button,
  [data-theme="dark"] .mobile-nav-drawer button,
  [data-theme="dark"] body .mobile-menu-drawer a,
  [data-theme="dark"] body .mobile-nav-drawer a,
  [data-theme="dark"] body .mobile-menu-drawer span,
  [data-theme="dark"] body .mobile-nav-drawer span,
  [data-theme="dark"] body .mobile-menu-drawer button,
  [data-theme="dark"] body .mobile-nav-drawer button,
  body[data-theme="dark"] .mobile-menu-drawer a,
  body[data-theme="dark"] .mobile-nav-drawer a,
  body[data-theme="dark"] .mobile-menu-drawer span,
  body[data-theme="dark"] .mobile-nav-drawer span,
  body[data-theme="dark"] .mobile-menu-drawer button,
  body[data-theme="dark"] .mobile-nav-drawer button {
    color: #F8F5F2 !important;
    -webkit-text-fill-color: #F8F5F2 !important;
  }

  body:has(#hero.split-hero-section) #main-content,
  body:has(#hero.split-hero-section) #hero.split-hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body:has(#hero.split-hero-section) #hero.split-hero-section {
    min-height: calc(100svh - 72px) !important;
    height: auto !important;
    padding: 0 !important;
  }

  body:has(#hero.split-hero-section) #hero .split-hero-grid,
  body:has(#hero.split-hero-section) #hero .hero-left-col,
  body:has(#hero.split-hero-section) #hero .hero-image-wrap {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: calc(100svh - 72px) !important;
    height: calc(100svh - 72px) !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: hidden !important;
    background: #111827 !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-church-img {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: calc(100svh - 72px) !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-left-content {
    position: absolute !important;
    top: auto !important;
    bottom: clamp(1.25rem, 7svh, 3rem) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1.15rem !important;
    transform: none !important;
    z-index: 4 !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-overlay-title {
    max-width: 100% !important;
    font-size: clamp(1.95rem, 9.2vw, 2.7rem) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere !important;
    margin: 0 0 1.25rem !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45) !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-eyebrow-text {
    display: block !important;
    margin-bottom: 0.55rem !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.16em !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-group {
    width: 100% !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  .community-pill-cta,
  .community-pill-cta span,
  .community-pill-cta svg,
  body .community-pill-cta,
  body .community-pill-cta span,
  body .community-pill-cta svg {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    stroke: #050505 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  [data-theme="dark"] .community-pill-cta,
  [data-theme="dark"] .community-pill-cta span,
  [data-theme="dark"] body .community-pill-cta,
  [data-theme="dark"] body .community-pill-cta span,
  body[data-theme="dark"] .community-pill-cta,
  body[data-theme="dark"] .community-pill-cta span {
    color: #F8F5F2 !important;
    -webkit-text-fill-color: #F8F5F2 !important;
  }

  .jmtc-carousel-section,
  .choir-section.jmtc-carousel-section,
  .stay-connected-mag-panel,
  .events-section,
  .team-section,
  .bearers-carousel-container,
  body .jmtc-carousel-section,
  body .stay-connected-mag-panel,
  body .events-section,
  body .team-section,
  body .bearers-carousel-container {
    position: relative !important;
    overflow-x: hidden !important;
  }

  .jmtc-carousel-viewport,
  .carousel-track-container,
  body .jmtc-carousel-viewport,
  body .carousel-track-container {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
  }

  .jmtc-carousel-viewport::-webkit-scrollbar,
  .carousel-track-container::-webkit-scrollbar,
  .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }

  .hero-events-carousel-viewport,
  .mag-carousel-viewport,
  .bearers-carousel-container,
  body .hero-events-carousel-viewport,
  body .mag-carousel-viewport,
  body .bearers-carousel-container {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
    overflow: hidden !important;
  }

  .bearers-grid,
  body .bearers-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .jmtc-carousel-track,
  .carousel-track,
  .mag-carousel-track,
  .hero-events-carousel-track,
  body .jmtc-carousel-track,
  body .carousel-track,
  body .mag-carousel-track,
  body .hero-events-carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: max-content !important;
    max-width: none !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .jmtc-carousel-track > .jmtc-card,
  .carousel-track > .jmtc-card,
  .carousel-track > .choir-event-card,
  .carousel-track > .gallery-card,
  .carousel-track > .gallery-card-new,
  .mag-carousel-track > .mag-content-card,
  .hero-events-carousel-track > .hero-event-card,
  .bearers-grid > .bearer-card,
  body .jmtc-carousel-track > .jmtc-card,
  body .carousel-track > .jmtc-card,
  body .carousel-track > .choir-event-card,
  body .carousel-track > .gallery-card,
  body .carousel-track > .gallery-card-new,
  body .mag-carousel-track > .mag-content-card,
  body .hero-events-carousel-track > .hero-event-card,
  body .bearers-grid > .bearer-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    transform: none !important;
  }

  .team-section .bearers-grid > .bearer-card,
  body .team-section .bearers-grid > .bearer-card {
    min-height: 440px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
  }

  .team-section .bearer-image-wrap,
  body .team-section .bearer-image-wrap {
    height: clamp(250px, 68vw, 330px) !important;
    min-height: clamp(250px, 68vw, 330px) !important;
    flex: 0 0 clamp(250px, 68vw, 330px) !important;
  }

  .team-section .bearer-image,
  body .team-section .bearer-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .team-section .bearer-info,
  body .team-section .bearer-info {
    min-height: 132px !important;
    flex: 1 1 auto !important;
    padding: 1.25rem !important;
  }

  .jmtc-carousel-nav,
  .mag-carousel-controls,
  .bearers-arrows-group,
  body .jmtc-carousel-nav,
  body .mag-carousel-controls,
  body .bearers-arrows-group {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    pointer-events: none !important;
    z-index: 90 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bearers-mobile-controls,
  body .bearers-mobile-controls {
    position: static !important;
  }

  .jmtc-carousel-btn,
  .mag-arrow-btn,
  .bearers-arrow-btn,
  .hero-carousel-arrow,
  body .jmtc-carousel-btn,
  body .mag-arrow-btn,
  body .bearers-arrow-btn,
  body .hero-carousel-arrow {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    border: 1px solid rgba(34, 34, 59, 0.18) !important;
    box-shadow: 0 10px 24px rgba(34, 34, 59, 0.18) !important;
  }

  .jmtc-carousel-btn svg,
  .mag-arrow-btn svg,
  .bearers-arrow-btn svg,
  .hero-carousel-arrow svg,
  body .jmtc-carousel-btn svg,
  body .mag-arrow-btn svg,
  body .bearers-arrow-btn svg,
  body .hero-carousel-arrow svg {
    color: #22223B !important;
    stroke: #22223B !important;
  }

  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar {
    position: static !important;
    pointer-events: none !important;
  }

  .events-section #heroEventsPrev,
  .events-section #heroEventsNext,
  body .events-section #heroEventsPrev,
  body .events-section #heroEventsNext {
    position: absolute !important;
    top: 50% !important;
    margin: 0 !important;
    z-index: 95 !important;
  }

  .events-section #heroEventsPrev,
  body .events-section #heroEventsPrev {
    left: 0.25rem !important;
    transform: translate(-10%, -50%) !important;
  }

  .events-section #heroEventsNext,
  body .events-section #heroEventsNext {
    right: 0.25rem !important;
    transform: translate(10%, -50%) !important;
  }

  .jmtc-carousel-btn-prev,
  .mag-arrow-prev,
  #bearersPrevBtn,
  body .jmtc-carousel-btn-prev,
  body .mag-arrow-prev,
  body #bearersPrevBtn {
    margin-right: auto !important;
  }

  .jmtc-carousel-btn-next,
  .mag-arrow-next,
  #bearersNextBtn,
  body .jmtc-carousel-btn-next,
  body .mag-arrow-next,
  body #bearersNextBtn {
    margin-left: auto !important;
  }

  .mag-carousel-viewport,
  body .mag-carousel-viewport {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
  }

  .mag-carousel-viewport::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .jmtc-carousel-viewport,
  .carousel-track-container,
  .hero-events-carousel-viewport,
  .mag-carousel-viewport,
  .bearers-carousel-container,
  body .jmtc-carousel-viewport,
  body .carousel-track-container,
  body .hero-events-carousel-viewport,
  body .mag-carousel-viewport,
  body .bearers-carousel-container {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
  }

  .jmtc-carousel-track > .jmtc-card,
  .carousel-track > .jmtc-card,
  .carousel-track > .choir-event-card,
  .carousel-track > .gallery-card,
  .carousel-track > .gallery-card-new,
  .mag-carousel-track > .mag-content-card,
  .hero-events-carousel-track > .hero-event-card,
  .bearers-grid > .bearer-card,
  body .jmtc-carousel-track > .jmtc-card,
  body .carousel-track > .jmtc-card,
  body .carousel-track > .choir-event-card,
  body .carousel-track > .gallery-card,
  body .carousel-track > .gallery-card-new,
  body .mag-carousel-track > .mag-content-card,
  body .hero-events-carousel-track > .hero-event-card,
  body .bearers-grid > .bearer-card {
    flex: 0 0 calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
    min-width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    scroll-snap-align: center !important;
  }

  .choir-leadership-wrap,
  body .choir-leadership-wrap {
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    margin-left: calc(50% - 50vw + 1rem) !important;
    margin-right: calc(50% - 50vw + 1rem) !important;
  }

  .choir-leadership-wrap > .jmtc-carousel-section,
  body .choir-leadership-wrap > .jmtc-carousel-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile carousel control contract: controls live below cards, never over content. */
@media (max-width: 767px) {
  .community-pill-cta,
  .community-pill-cta span,
  .community-story-chapter .community-pill-cta,
  .community-story-chapter .community-pill-cta span,
  body .community-pill-cta,
  body .community-pill-cta span,
  body .community-story-chapter .community-pill-cta,
  body .community-story-chapter .community-pill-cta span,
  main .community-pill-cta span {
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    text-shadow: none !important;
    filter: none !important;
  }

  .community-pill-cta svg,
  body .community-pill-cta svg,
  .community-story-chapter .community-pill-cta svg,
  body .community-story-chapter .community-pill-cta svg {
    color: #050505 !important;
    stroke: #050505 !important;
    filter: none !important;
  }

  .community-showcase-frame .community-showcase-content span:not(.community-progress-fill),
  body .community-showcase-frame .community-showcase-content span:not(.community-progress-fill) {
    text-shadow: none !important;
  }

  .stay-connected-mag-panel,
  body .stay-connected-mag-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  .stay-connected-mag-panel > .mag-carousel-viewport,
  body .stay-connected-mag-panel > .mag-carousel-viewport,
  .stay-connected-mag-panel > .carousel-track-container,
  body .stay-connected-mag-panel > .carousel-track-container {
    order: 1 !important;
  }

  .stay-connected-mag-panel > .panel-header-row,
  body .stay-connected-mag-panel > .panel-header-row {
    order: 2 !important;
    width: 100% !important;
    margin: 1rem 0 0 !important;
  }

  .gallery-nav-dock,
  body .gallery-nav-dock {
    position: static !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 0.85rem 1rem !important;
    width: min(calc(100vw - 3rem), 342px) !important;
    max-width: min(calc(100vw - 3rem), 342px) !important;
    margin: 1rem auto 0 !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .gallery-nav-cell.cell-center,
  body .gallery-nav-cell.cell-center {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-left {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .gallery-nav-cell.cell-right,
  body .gallery-nav-cell.cell-right {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .gallery-nav-cell.cell-left,
  .gallery-nav-cell.cell-right,
  body .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-right {
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .mag-carousel-controls,
  .jmtc-carousel-nav,
  body .mag-carousel-controls,
  body .jmtc-carousel-nav {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.9rem !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin: 1rem auto 0 !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .events-section #heroEventsPrev,
  .events-section #heroEventsNext,
  body .events-section #heroEventsPrev,
  body .events-section #heroEventsNext {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
  }

  .events-section .hero-carousel-progress,
  body .events-section .hero-carousel-progress {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .bearers-mobile-controls,
  body .bearers-mobile-controls {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 1rem !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin: 1rem auto 0 !important;
  }

  .bearers-arrows-group,
  body .bearers-arrows-group {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  .jmtc-carousel-btn,
  .mag-arrow-btn,
  .gallery-nav-cell.cell-left,
  .gallery-nav-cell.cell-right,
  .bearers-arrow-btn,
  .hero-carousel-arrow,
  body .jmtc-carousel-btn,
  body .mag-arrow-btn,
  body .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-right,
  body .bearers-arrow-btn,
  body .hero-carousel-arrow {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 24px rgba(34, 34, 59, 0.14) !important;
  }
}

/* Absolute last mobile homepage hero pass: these selectors intentionally sit after the
   generic carousel/mobile contracts so the hero header, CTAs, and live chip do not regress. */
@media (max-width: 767px) {
  body.home-page #hero .hero-church-img,
  body.home-page #hero.split-hero-section .hero-church-img,
  body:has(#hero.split-hero-section) #hero .hero-church-img {
    object-fit: cover !important;
    object-position: 54% 35% !important;
    filter: contrast(1.08) saturate(1.08) brightness(1.02) !important;
    image-rendering: auto !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) scale(1.01) !important;
  }

  body.home-page #hero .hero-dark-gradient-overlay,
  body.home-page #hero.split-hero-section .hero-dark-gradient-overlay,
  body:has(#hero.split-hero-section) #hero .hero-dark-gradient-overlay {
    background:
      linear-gradient(180deg, rgba(5, 12, 22, 0.08) 0%, rgba(7, 14, 24, 0.2) 38%, rgba(6, 12, 22, 0.78) 100%),
      radial-gradient(circle at 55% 32%, rgba(255, 255, 255, 0.04) 0%, rgba(5, 12, 22, 0.24) 58%, rgba(5, 12, 22, 0.7) 100%) !important;
  }

  body.home-page .grid-navbar .brand-logo-img,
  body:has(#hero.split-hero-section) .grid-navbar .brand-logo-img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  body.home-page .grid-navbar .brand-name,
  body:has(#hero.split-hero-section) .grid-navbar .brand-name {
    max-width: calc(100vw - 168px) !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(1.2rem, 5.35vw, 1.55rem) !important;
  }

  body.home-page .grid-navbar .theme-toggle-btn,
  body.home-page .grid-navbar .hamburger-toggle,
  body.home-page .grid-navbar .mobile-nav-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .theme-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .hamburger-toggle,
  body:has(#hero.split-hero-section) .grid-navbar .mobile-nav-toggle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-left-content {
    bottom: max(1rem, env(safe-area-inset-bottom)) !important;
    padding-inline: 1.25rem !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-overlay-title {
    font-size: clamp(1.92rem, 8.8vw, 2.45rem) !important;
    line-height: 1.05 !important;
    margin-bottom: 0.95rem !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-group {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    width: min(calc(100vw - 3.5rem), 324px) !important;
    max-width: min(calc(100vw - 3.5rem), 324px) !important;
    margin-inline: auto !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    padding: 0.68rem 1rem !important;
    border-radius: 999px !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    background: linear-gradient(135deg, rgba(255, 246, 220, 0.96), rgba(248, 232, 190, 0.94)) !important;
    border: 1px solid rgba(238, 186, 123, 0.72) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
  }

  body:has(#hero.split-hero-section) #hero .hero-cta-btn span {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.035em !important;
  }

  .live-stream-widget,
  body .live-stream-widget,
  :root:not([data-theme="dark"]) body .live-stream-widget,
  html:not([data-theme="dark"]) .live-stream-widget,
  html:not([data-theme="dark"]) body .live-stream-widget,
  html[data-theme="light"] body .live-stream-widget,
  body[data-theme="light"] .live-stream-widget,
  body:not([data-theme="dark"]) .live-stream-widget {
    left: auto !important;
    right: 0.75rem !important;
    top: calc(68px + 0.75rem) !important;
    bottom: auto !important;
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 999px !important;
  }

  .live-stream-widget .live-stream-text,
  .live-stream-widget .live-stream-arrow,
  body .live-stream-widget .live-stream-text,
  body .live-stream-widget .live-stream-arrow {
    display: none !important;
  }

  .live-stream-widget .live-stream-youtube,
  body .live-stream-widget .live-stream-youtube {
    width: 18px !important;
    height: 18px !important;
    margin-left: 0 !important;
  }

  .live-stream-widget .live-stream-dot,
  body .live-stream-widget .live-stream-dot {
    position: absolute !important;
    top: 8px !important;
    left: 9px !important;
    width: 7px !important;
    height: 7px !important;
  }
}
/* True end-of-file mobile corrections: wins after every earlier carousel block. */
@media (max-width: 767px) {
  body:not(.home-page):has(.parish-hero) main,
  body:not(.home-page):has(.parish-hero) .site-main,
  body:not(.home-page):has(.parish-hero) #main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body:not(.home-page) .parish-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.home-page .stay-connected-section,
  body.home-page .stay-connected-viewport {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
    overflow: hidden !important;
  }

  body.home-page .stay-connected-container,
  body.home-page .stay-connected-carousel-stage,
  body.home-page .stay-connected-mag-panel {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.home-page .stay-connected-mag-panel > .mag-carousel-viewport {
    order: 1 !important;
  }

  body.home-page .stay-connected-mag-panel > .panel-header-row {
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 1rem auto 0 !important;
    padding: 0 1rem !important;
  }

  body.home-page .mag-carousel-controls,
  body.home-page .stay-connected-mag-panel .mag-carousel-controls {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 44px minmax(120px, 1fr) 44px !important;
    align-items: center !important;
    gap: 0.9rem !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    pointer-events: auto !important;
    z-index: 1 !important;
  }

  body.home-page .mag-arrow-btn,
  body.home-page .stay-connected-mag-panel .mag-arrow-btn {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.home-page .mag-mobile-progress {
    display: grid !important;
    grid-template-columns: auto minmax(56px, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
    color: #4A4E69 !important;
    font-family: var(--font-ui), Arial, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
  }

  body.home-page .mag-mobile-track {
    position: relative !important;
    display: block !important;
    height: 3px !important;
    min-width: 56px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: rgba(74, 78, 105, 0.2) !important;
  }

  body.home-page .mag-mobile-fill {
    display: block !important;
    width: 0;
    height: 100% !important;
    border-radius: inherit !important;
    background: #C9ADA7 !important;
    transition: width 0.25s ease !important;
  }

  [data-theme="dark"] body.home-page .mag-mobile-progress,
  body[data-theme="dark"].home-page .mag-mobile-progress {
    color: #F2E9E4 !important;
  }

  [data-theme="dark"] body.home-page .mag-mobile-track,
  body[data-theme="dark"].home-page .mag-mobile-track {
    background: rgba(242, 233, 228, 0.22) !important;
  }
}
@media (max-width: 767px) {
  body.home-page .stay-connected-mag-panel[hidden],
  body.home-page .stay-connected-mag-panel:not(.active-panel) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 767px) {
  body.home-page .bearers-mobile-controls,
  body .bearers-mobile-controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.9rem !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin: 0.85rem auto 0 !important;
  }

  body.home-page .bearers-counter,
  body .bearers-counter {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    line-height: 1 !important;
    color: #4A4E69 !important;
    -webkit-text-fill-color: #4A4E69 !important;
  }

  body.home-page .bearers-arrows-group,
  body .bearers-arrows-group {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.7rem !important;
  }

  body.home-page .bearers-carousel-progress-wrap,
  body .bearers-carousel-progress-wrap {
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin: 0.95rem auto 0 !important;
  }

  body.home-page .stay-connected-mag-tab.active .mag-active-underline,
  body.home-page .stay-connected-mag-tab .mag-active-underline {
    background-color: #D49A4A !important;
  }

  body[data-theme="dark"].home-page .stay-connected-mag-tab.active .mag-active-underline,
  [data-theme="dark"] body.home-page .stay-connected-mag-tab.active .mag-active-underline {
    background-color: #F2CCB8 !important;
  }
}

@media (max-width: 767px) {
  .vicars-section,
  .vicars-section .parish-container,
  .vicars-carousel-container {
    overflow: visible !important;
  }

  .vicars-section .gallery-nav-dock {
    position: static !important;
    display: grid !important;
    grid-template-columns: 44px minmax(110px, 1fr) 44px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 0.9rem !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    height: 48px !important;
    margin: 0.95rem auto 0 !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 5 !important;
  }

  .vicars-section .gallery-nav-cell.cell-left,
  .vicars-section .gallery-nav-cell.cell-center,
  .vicars-section .gallery-nav-cell.cell-right {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    grid-row: 1 !important;
    margin: 0 !important;
  }

  .vicars-section .gallery-nav-cell.cell-left {
    grid-column: 1 !important;
  }

  .vicars-section .gallery-nav-cell.cell-center {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .vicars-section .gallery-nav-cell.cell-right {
    grid-column: 3 !important;
  }

  .vicars-section .gallery-nav-cell.cell-left,
  .vicars-section .gallery-nav-cell.cell-right {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #22223B !important;
    -webkit-text-fill-color: #22223B !important;
    border: 1.5px solid rgba(74, 78, 105, 0.18) !important;
    box-shadow: 0 10px 22px rgba(34, 34, 59, 0.14) !important;
    opacity: 1;
    visibility: visible !important;
  }

  .vicars-section .community-progress-bar-wrap {
    display: grid !important;
    grid-template-columns: auto minmax(60px, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .vicars-section .community-numeral {
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .vicars-section .community-progress-track {
    min-width: 60px !important;
  }

  [data-theme="dark"] .vicars-section .gallery-nav-cell.cell-left,
  [data-theme="dark"] .vicars-section .gallery-nav-cell.cell-right {
    background: #25263A !important;
    color: #F2E9E4 !important;
    -webkit-text-fill-color: #F2E9E4 !important;
    border-color: rgba(201, 173, 167, 0.38) !important;
  }
}

/* Final dark-mode contrast for Upcoming Events cards. */
[data-theme="dark"] .events-section .hero-event-card,
body[data-theme="dark"] .events-section .hero-event-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(201, 173, 167, 0.34) !important;
}

[data-theme="dark"] .events-section .event-date-badge-inline,
body[data-theme="dark"] .events-section .event-date-badge-inline,
[data-theme="dark"] .events-section .event-date-badge-inline *,
body[data-theme="dark"] .events-section .event-date-badge-inline * {
  color: #F2CCB8 !important;
  -webkit-text-fill-color: #F2CCB8 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .events-section .hero-event-date-row,
body[data-theme="dark"] .events-section .hero-event-date-row,
[data-theme="dark"] .events-section .date-row-left,
body[data-theme="dark"] .events-section .date-row-left,
[data-theme="dark"] .events-section .date-row-left span,
body[data-theme="dark"] .events-section .date-row-left span,
[data-theme="dark"] .events-section .date-row-left svg,
body[data-theme="dark"] .events-section .date-row-left svg {
  color: rgba(248, 245, 242, 0.9) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.9) !important;
  stroke: currentColor !important;
}

[data-theme="dark"] .events-section .event-action-link,
body[data-theme="dark"] .events-section .event-action-link,
[data-theme="dark"] .events-section .event-action-link span,
body[data-theme="dark"] .events-section .event-action-link span,
[data-theme="dark"] .events-section .event-action-link svg,
body[data-theme="dark"] .events-section .event-action-link svg {
  color: #F4C06F !important;
  -webkit-text-fill-color: #F4C06F !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

/* Final shared footer contract: flattened, wider, and cleaner across pages. */
.site-footer,
footer.site-footer,
body .site-footer {
  background:
    linear-gradient(180deg, #17172A 0%, #10111E 100%) !important;
  color: #F8F5F2 !important;
  border-top: 1px solid rgba(242, 204, 184, 0.18) !important;
  padding: clamp(3.75rem, 7vw, 5.5rem) 0 1.75rem !important;
}

.site-footer .container,
body .site-footer .container {
  width: min(100% - clamp(1.5rem, 2.5vw, 3rem), 1720px) !important;
  max-width: 1720px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

.site-footer .footer-grid,
body .site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(300px, 1fr) minmax(300px, 1fr) !important;
  gap: clamp(4rem, 8vw, 9rem) !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 clamp(2.25rem, 5vw, 3.75rem) !important;
  border-bottom: 1px solid rgba(242, 233, 228, 0.12) !important;
}

.site-footer .footer-col,
.site-footer .footer-brand-col,
body .site-footer .footer-col,
body .site-footer .footer-brand-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 0.95rem !important;
  min-width: 0 !important;
  width: 280px !important;
  max-width: 280px !important;
  overflow: hidden !important;
}

.site-footer .footer-brand-logo-img,
body .site-footer .footer-brand-logo-img {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px !important;
  margin: 0 0 0.25rem !important;
  object-fit: contain !important;
  filter: none !important;
}

.site-footer .footer-brand-row,
body .site-footer .footer-brand-row,
.site-footer .footer-brand-text,
body .site-footer .footer-brand-text {
  max-width: 100% !important;
  min-width: 0 !important;
}

.site-footer .footer-brand-text h2,
body .site-footer .footer-brand-text h2 {
  max-width: 210px !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-family: var(--font-display), Georgia, serif !important;
  font-size: clamp(0.92rem, 0.95vw, 1.05rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.site-footer .footer-col-title,
body .site-footer .footer-col-title {
  color: #F2CCB8 !important;
  -webkit-text-fill-color: #F2CCB8 !important;
  font-family: var(--font-ui), Arial, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  margin: 0 0 0.65rem !important;
}

.site-footer .footer-info-block,
body .site-footer .footer-info-block {
  display: grid !important;
  gap: 0.55rem !important;
  color: rgba(248, 245, 242, 0.78) !important;
  font-family: var(--font-body), Arial, sans-serif !important;
  font-size: 0.98rem !important;
  line-height: 1.62 !important;
}

.site-footer .footer-info-block p,
.site-footer .service-time,
body .site-footer .footer-info-block p,
body .site-footer .service-time {
  color: rgba(248, 245, 242, 0.78) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.78) !important;
  margin: 0 !important;
}

.site-footer .service-item,
body .site-footer .service-item {
  display: grid !important;
  gap: 0.25rem !important;
  margin: 0 !important;
  padding: 0 0 0.85rem !important;
  border-bottom: 1px solid rgba(248, 245, 242, 0.1) !important;
}

.site-footer .service-item:last-child,
body .site-footer .service-item:last-child {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer .service-name,
body .site-footer .service-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.site-footer .footer-social-links,
body .site-footer .footer-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.8rem !important;
  margin: 0.75rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.site-footer .footer-social-link-item,
body .site-footer .footer-social-link-item {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px !important;
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(242, 204, 184, 0.22) !important;
  text-decoration: none !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.site-footer .footer-social-link-item:hover,
body .site-footer .footer-social-link-item:hover {
  background: rgba(242, 204, 184, 0.14) !important;
  border-color: rgba(242, 204, 184, 0.52) !important;
}

.site-footer .footer-bottom,
body .site-footer .footer-bottom {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding-top: 1.35rem !important;
  border-top: 0 !important;
  text-align: center !important;
}

.site-footer .footer-bottom p,
body .site-footer .footer-bottom p {
  color: rgba(248, 245, 242, 0.58) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.58) !important;
  font-size: 0.86rem !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .site-footer,
  footer.site-footer,
  body .site-footer {
    overflow-x: hidden !important;
    padding: 3rem 0 1.35rem !important;
  }

  .site-footer .footer-grid,
  body .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .site-footer .footer-col,
  .site-footer .footer-brand-col,
  body .site-footer .footer-col,
  body .site-footer .footer-brand-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .site-footer .footer-brand-col,
  body .site-footer .footer-brand-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-footer .footer-brand-text h2,
  body .site-footer .footer-brand-text h2 {
    width: 100% !important;
    max-width: 20rem !important;
    font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .site-footer .container,
  body .site-footer .container {
    width: min(100% - 2rem, 640px) !important;
  }

  .site-footer .footer-info-block,
  body .site-footer .footer-info-block {
    max-width: 100% !important;
    font-size: 0.98rem !important;
  }

  .site-footer .footer-social-links,
  body .site-footer .footer-social-links {
    gap: 0.65rem !important;
  }

  .site-footer .footer-social-link-item,
  body .site-footer .footer-social-link-item {
    min-height: 40px !important;
    padding: 0.5rem 0.85rem !important;
  }
}

@media (max-width: 767px) {
  .live-stream-widget,
  body .live-stream-widget {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }

  .live-stream-widget .live-stream-text,
  .live-stream-widget .live-stream-arrow,
  body .live-stream-widget .live-stream-text,
  body .live-stream-widget .live-stream-arrow {
    display: none !important;
  }
}

/* Final cross-page dark-section readability and table containment. */
[data-theme="dark"] .section-dark,
[data-theme="dark"] section.section-dark,
[data-theme="dark"] div.section-dark,
[data-theme="dark"] .choir-section-dark,
body[data-theme="dark"] .section-dark,
body[data-theme="dark"] .choir-section-dark {
  background: linear-gradient(145deg, #17172A 0%, #22223B 100%) !important;
  color: #F8F5F2 !important;
}

[data-theme="dark"] .section-dark h1,
[data-theme="dark"] .section-dark h2,
[data-theme="dark"] .section-dark h3,
[data-theme="dark"] .section-dark h4,
[data-theme="dark"] .section-dark h5,
[data-theme="dark"] .section-dark h6,
[data-theme="dark"] .section-dark .choir-section-title,
[data-theme="dark"] .section-dark .jmtc-section-title,
[data-theme="dark"] .section-dark .section-title,
[data-theme="dark"] .section-dark .contact-card-title,
[data-theme="dark"] .section-dark .service-name,
[data-theme="dark"] .choir-section-dark h1,
[data-theme="dark"] .choir-section-dark h2,
[data-theme="dark"] .choir-section-dark h3,
[data-theme="dark"] .choir-section-dark h4,
body[data-theme="dark"] .section-dark h1,
body[data-theme="dark"] .section-dark h2,
body[data-theme="dark"] .section-dark h3,
body[data-theme="dark"] .section-dark .choir-section-title,
body[data-theme="dark"] .section-dark .jmtc-section-title,
body[data-theme="dark"] .section-dark .section-title,
body[data-theme="dark"] .choir-section-dark h2,
body[data-theme="dark"] .choir-section-dark h3 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

[data-theme="dark"] .section-dark p,
[data-theme="dark"] .section-dark li,
[data-theme="dark"] .section-dark span:not(.live-stream-dot):not(.badge-day):not(.badge-month),
[data-theme="dark"] .section-dark td,
[data-theme="dark"] .section-dark th,
[data-theme="dark"] .section-dark label,
[data-theme="dark"] .section-dark .choir-section-subtitle,
[data-theme="dark"] .section-dark .jmtc-section-label,
[data-theme="dark"] .section-dark .contact-card-text,
[data-theme="dark"] .section-dark .timing-label,
[data-theme="dark"] .section-dark .timing-val,
[data-theme="dark"] .choir-section-dark p,
[data-theme="dark"] .choir-section-dark li,
[data-theme="dark"] .choir-section-dark span,
[data-theme="dark"] .choir-section-dark td,
body[data-theme="dark"] .section-dark p,
body[data-theme="dark"] .section-dark li,
body[data-theme="dark"] .section-dark span:not(.live-stream-dot):not(.badge-day):not(.badge-month),
body[data-theme="dark"] .section-dark td,
body[data-theme="dark"] .choir-section-dark p,
body[data-theme="dark"] .choir-section-dark span,
body[data-theme="dark"] .choir-section-dark td {
  color: rgba(248, 245, 242, 0.84) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.84) !important;
  text-shadow: none !important;
}

[data-theme="dark"] .choir-timings-card,
body[data-theme="dark"] .choir-timings-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(242, 204, 184, 0.26) !important;
}

[data-theme="dark"] .choir-timings-header,
body[data-theme="dark"] .choir-timings-header {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

[data-theme="dark"] .choir-timings-table td,
[data-theme="dark"] .choir-timings-table td *,
body[data-theme="dark"] .choir-timings-table td,
body[data-theme="dark"] .choir-timings-table td * {
  color: rgba(248, 245, 242, 0.84) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.84) !important;
  stroke: currentColor !important;
}

.section-dark .choir-about-timings-grid,
.section-dark .choir-leadership-wrap,
.choir-section-dark .choir-leadership-wrap,
body .section-dark .choir-about-timings-grid,
body .section-dark .choir-leadership-wrap,
body .choir-section-dark .choir-leadership-wrap {
  width: min(100% - 3rem, 1200px) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}

@media (min-width: 1280px) {
  .section-dark .choir-about-timings-grid,
  .section-dark .choir-leadership-wrap,
  .choir-section-dark .choir-leadership-wrap,
  body .section-dark .choir-about-timings-grid,
  body .section-dark .choir-leadership-wrap,
  body .choir-section-dark .choir-leadership-wrap {
    width: min(100% - 4rem, 1280px) !important;
    max-width: 1280px !important;
  }
}

.choir-leadership-wrap,
.exec-table-wrap,
.office-bearers-table-wrap,
body .choir-leadership-wrap,
body .exec-table-wrap,
body .office-bearers-table-wrap {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.choir-leadership-table,
.exec-table,
.office-bearers-table,
body .choir-leadership-table,
body .exec-table,
body .office-bearers-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* Final dark Stay Connected tab contrast. */
[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab,
[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab .mag-tab-text,
body[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab,
body[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab .mag-tab-text {
  color: rgba(248, 245, 242, 0.68) !important;
  -webkit-text-fill-color: rgba(248, 245, 242, 0.68) !important;
  opacity: 1 !important;
}

[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab.active,
[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab.active .mag-tab-text,
body[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab.active,
body[data-theme="dark"] .stay-connected-section .stay-connected-mag-tab.active .mag-tab-text {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] .stay-connected-section .mag-active-underline,
body[data-theme="dark"] .stay-connected-section .mag-active-underline {
  background: #F2CCB8 !important;
}

/* Final Stay Connected carousel alignment: centered cards, controls below. */
body.home-page .stay-connected-mag-panel .panel-header-row,
body .stay-connected-mag-panel .panel-header-row {
  order: 2 !important;
  justify-content: center !important;
  margin: 1.5rem auto 0 !important;
  width: 100% !important;
}

body.home-page .stay-connected-mag-panel,
body .stay-connected-mag-panel {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.home-page .stay-connected-mag-panel[hidden],
body .stay-connected-mag-panel[hidden] {
  display: none !important;
}

body.home-page .mag-carousel-controls,
body .mag-carousel-controls {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  pointer-events: auto !important;
}

body.home-page .mag-carousel-viewport,
body .mag-carousel-viewport {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  overflow: hidden !important;
}

body.home-page .mag-carousel-track,
body .mag-carousel-track {
  margin-inline: auto !important;
  align-items: stretch !important;
}

body.home-page .mag-carousel-track:has(> .mag-content-card:only-child),
body .mag-carousel-track:has(> .mag-content-card:only-child) {
  justify-content: center !important;
  transform: none !important;
}

body.home-page .stay-connected-mag-panel:has(.mag-content-card:only-child) .panel-header-row,
body .stay-connected-mag-panel:has(.mag-content-card:only-child) .panel-header-row {
  display: none !important;
}

body.home-page .mag-arrow-btn,
body .mag-arrow-btn {
  position: static !important;
  transform: none !important;
}

@media (min-width: 768px) {
  body.home-page #announcementsTrack,
  body #announcementsTrack {
    justify-content: center !important;
  }
}

/* Final contact-card button contrast. */
body .contact-info-card .contact-card-btn,
body .contact-info-card .contact-card-btn span,
body .contact-info-card .contact-card-btn svg,
body .contact-info-card .contact-btn-outlined,
body .contact-info-card .contact-btn-outlined span,
body .contact-info-card .contact-btn-outlined svg {
  color: #25243E !important;
  -webkit-text-fill-color: #25243E !important;
  text-shadow: none !important;
  stroke: currentColor !important;
}

body .contact-info-card .contact-card-btn:hover,
body .contact-info-card .contact-card-btn:hover span,
body .contact-info-card .contact-card-btn:hover svg,
body .contact-info-card .contact-btn-outlined:hover,
body .contact-info-card .contact-btn-outlined:hover span,
body .contact-info-card .contact-btn-outlined:hover svg {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] .contact-info-card .contact-card-btn,
[data-theme="dark"] .contact-info-card .contact-card-btn span,
[data-theme="dark"] .contact-info-card .contact-card-btn svg,
[data-theme="dark"] .contact-info-card .contact-btn-outlined,
[data-theme="dark"] .contact-info-card .contact-btn-outlined span,
[data-theme="dark"] .contact-info-card .contact-btn-outlined svg,
body[data-theme="dark"] .contact-info-card .contact-card-btn,
body[data-theme="dark"] .contact-info-card .contact-card-btn span,
body[data-theme="dark"] .contact-info-card .contact-card-btn svg,
body[data-theme="dark"] .contact-info-card .contact-btn-outlined,
body[data-theme="dark"] .contact-info-card .contact-btn-outlined span,
body[data-theme="dark"] .contact-info-card .contact-btn-outlined svg {
  color: #25243E !important;
  -webkit-text-fill-color: #25243E !important;
  text-shadow: none !important;
}

/* Unified single-card progress layout. */

/* Office-bearer portrait normalization: consistent white frame and head crop. */
body.home-page .team-section .bearer-card,
body .team-section .bearer-card {
  background: #FFFFFF !important;
}

body.home-page .team-section .bearer-info,
body .team-section .bearer-info,
body[data-theme="dark"] .team-section .bearer-info,
[data-theme="dark"] .team-section .bearer-info {
  background: #FFFFFF !important;
  color: #22223B !important;
}

body.home-page .team-section .bearer-name,
body .team-section .bearer-name,
body[data-theme="dark"] .team-section .bearer-name,
[data-theme="dark"] .team-section .bearer-name {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

body.home-page .team-section .bearer-role,
body .team-section .bearer-role,
body[data-theme="dark"] .team-section .bearer-role,
[data-theme="dark"] .team-section .bearer-role {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

body.home-page .team-section .bearer-role-row,
body .team-section .bearer-role-row,
body[data-theme="dark"] .team-section .bearer-role-row,
[data-theme="dark"] .team-section .bearer-role-row {
  border-top-color: rgba(74, 78, 105, 0.12) !important;
}

html body.home-page[data-theme="dark"] .team-section .bearer-card .bearer-info .bearer-name,
html body[data-theme="dark"] .team-section .bearer-card .bearer-info .bearer-name,
html[data-theme="dark"] body.home-page .team-section .bearer-card .bearer-info .bearer-name,
html[data-theme="dark"] body .team-section .bearer-card .bearer-info .bearer-name {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

html body.home-page[data-theme="dark"] .team-section .bearer-card .bearer-info .bearer-role,
html body[data-theme="dark"] .team-section .bearer-card .bearer-info .bearer-role,
html[data-theme="dark"] body.home-page .team-section .bearer-card .bearer-info .bearer-role,
html[data-theme="dark"] body .team-section .bearer-card .bearer-info .bearer-role {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

body.home-page .team-section .bearer-image-wrap,
body .team-section .bearer-image-wrap {
  height: clamp(230px, 19vw, 285px) !important;
  aspect-ratio: 1 / 1.05 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
}

body.home-page .team-section .bearer-image,
body .team-section .bearer-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  transform: none !important;
  background: #FFFFFF !important;
}

body.home-page .team-section .bearer-card:hover .bearer-image,
body .team-section .bearer-card:hover .bearer-image {
  transform: none !important;
}

body.home-page .team-section .bearer-image[src*="vicar_portrait"],
body .team-section .bearer-image[src*="vicar_portrait"] {
  object-position: center 20% !important;
}

body.home-page .team-section .bearer-image[src*="bearer_babu_koshy"],
body .team-section .bearer-image[src*="bearer_babu_koshy"] {
  object-position: center 16% !important;
}

body.home-page .team-section .bearer-image[src*="bearer_lijo_lucose"],
body .team-section .bearer-image[src*="bearer_lijo_lucose"] {
  object-position: center 14% !important;
}

body.home-page .team-section .bearer-image[src*="bearer_mathew_george"],
body .team-section .bearer-image[src*="bearer_mathew_george"] {
  object-position: center 17% !important;
}

body.home-page .team-section .bearer-image[src*="bearer_abraham_varghese"],
body .team-section .bearer-image[src*="bearer_abraham_varghese"] {
  object-position: center 18% !important;
}

@media (max-width: 767px) {
  body.home-page .team-section .bearer-image-wrap,
  body .team-section .bearer-image-wrap {
    height: min(82vw, 360px) !important;
    aspect-ratio: 1 / 1.08 !important;
  }
}

/* Final mobile navigation contract: desktop dropdowns stay out of the drawer. */
@media (max-width: 991px) {
  .grid-navbar .nav-grid-menu,
  body .grid-navbar .nav-grid-menu,
  .grid-navbar .dropdown-panel,
  body .grid-navbar .dropdown-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-menu-drawer,
  body .mobile-menu-drawer {
    overflow-x: hidden !important;
  }

  .mobile-menu-drawer .mobile-accordion-panel,
  body .mobile-menu-drawer .mobile-accordion-panel {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease !important;
  }

  .mobile-menu-drawer .mobile-accordion-item.open > .mobile-accordion-panel,
  body .mobile-menu-drawer .mobile-accordion-item.open > .mobile-accordion-panel {
    max-height: 80vh !important;
    opacity: 1 !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.55rem !important;
  }
}

/* Ministry gallery cards: keep images rectangular and centered in every theme. */
.jmtc-carousel-section[aria-label="Gallery"] .jmtc-card,
body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-card {
  border-radius: 18px !important;
  overflow: hidden !important;
  clip-path: none !important;
}

.jmtc-carousel-section[aria-label="Gallery"] .jmtc-gallery-img-wrap,
body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-gallery-img-wrap {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  clip-path: none !important;
  background: #F8F5F2 !important;
}

.jmtc-carousel-section[aria-label="Gallery"] .jmtc-gallery-img,
body .jmtc-carousel-section[aria-label="Gallery"] .jmtc-gallery-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0 !important;
  clip-path: none !important;
  transform: none !important;
}

/* Final shared mobile navbar contract: same readable brand on every page. */
@media (max-width: 767px) {
  .grid-navbar,
  body .grid-navbar {
    min-height: 72px !important;
    overflow: visible !important;
  }

  .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.75rem !important;
    align-items: center !important;
    padding: 0.7rem 1rem !important;
  }

  .grid-navbar .nav-grid-brand,
  body .grid-navbar .nav-grid-brand {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .grid-navbar .brand-logo,
  body .grid-navbar .brand-logo {
    display: flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 0.6rem !important;
    overflow: visible !important;
  }

  .grid-navbar .brand-logo-img,
  body .grid-navbar .brand-logo-img,
  body.home-page .grid-navbar .brand-logo-img,
  body:has(#hero.split-hero-section) .grid-navbar .brand-logo-img {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    max-width: 44px !important;
  }

  .grid-navbar .brand-name,
  body .grid-navbar .brand-name,
  body.home-page .grid-navbar .brand-name,
  body:has(#hero.split-hero-section) .grid-navbar .brand-name {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: clamp(1.25rem, 5.35vw, 1.52rem) !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .grid-navbar .nav-grid-actions,
  body .grid-navbar .nav-grid-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }

  .grid-navbar .theme-toggle-btn,
  .grid-navbar .hamburger-toggle,
  .grid-navbar .mobile-nav-toggle-btn,
  body .grid-navbar .theme-toggle-btn,
  body .grid-navbar .hamburger-toggle,
  body .grid-navbar .mobile-nav-toggle-btn,
  body.home-page .grid-navbar .theme-toggle-btn,
  body.home-page .grid-navbar .hamburger-toggle,
  body.home-page .grid-navbar .mobile-nav-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .theme-toggle-btn,
  body:has(#hero.split-hero-section) .grid-navbar .hamburger-toggle,
  body:has(#hero.split-hero-section) .grid-navbar .mobile-nav-toggle-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px !important;
  }
}

@media (max-width: 360px) {
  .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container {
    gap: 0.55rem !important;
    padding-inline: 0.75rem !important;
  }

  .grid-navbar .brand-logo-img,
  body .grid-navbar .brand-logo-img,
  body.home-page .grid-navbar .brand-logo-img,
  body:has(#hero.split-hero-section) .grid-navbar .brand-logo-img {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    max-width: 40px !important;
  }

  .grid-navbar .brand-logo,
  body .grid-navbar .brand-logo {
    gap: 0.5rem !important;
  }

  .grid-navbar .brand-name,
  body .grid-navbar .brand-name,
  body.home-page .grid-navbar .brand-name,
  body:has(#hero.split-hero-section) .grid-navbar .brand-name {
    font-size: clamp(1.16rem, 5.15vw, 1.32rem) !important;
  }

  .grid-navbar .theme-toggle-btn,
  .grid-navbar .hamburger-toggle,
  .grid-navbar .mobile-nav-toggle-btn,
  body .grid-navbar .theme-toggle-btn,
  body .grid-navbar .hamburger-toggle,
  body .grid-navbar .mobile-nav-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
}

/* Final mobile gallery contract: no clipped album cards or crushed lightboxes. */
@media (max-width: 767px) {
  .gallery-albums-grid,
  body .gallery-albums-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.35rem !important;
    width: 100% !important;
    padding-inline: 0 !important;
  }

  .gallery-album-card,
  body .gallery-album-card,
  .mag-carousel-track > .mag-content-card,
  body .mag-carousel-track > .mag-content-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .gallery-album-card,
  body .gallery-album-card {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .gallery-album-cover-wrap,
  body .gallery-album-cover-wrap {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    flex: 0 0 auto !important;
  }

  .gallery-album-body,
  body .gallery-album-body {
    padding: 1.35rem !important;
    min-height: 0 !important;
  }

  .gallery-album-title,
  body .gallery-album-title {
    font-size: clamp(1.28rem, 6.2vw, 1.7rem) !important;
    line-height: 1.16 !important;
  }

  .gallery-album-desc,
  body .gallery-album-desc {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }

  .gallery-album-cta,
  body .gallery-album-cta {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.85rem !important;
    padding-top: 0.9rem !important;
    border-top: 1px solid rgba(74, 78, 105, 0.14) !important;
  }

  .lightbox-modal,
  body .lightbox-modal {
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .lightbox-content,
  body .lightbox-content {
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
  }

  .lightbox-img-wrap,
  body .lightbox-img-wrap {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 58dvh !important;
    aspect-ratio: 4 / 3 !important;
    flex: 0 0 auto !important;
    background: #050507 !important;
  }

  .lightbox-img,
  body .lightbox-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  #lightboxThumbsBar,
  body #lightboxThumbsBar {
    justify-content: flex-start !important;
    padding: 0.85rem 1rem !important;
    flex: 0 0 auto !important;
  }

  .lightbox-caption-bar,
  body .lightbox-caption-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    align-items: start !important;
    padding: 1.3rem 1.25rem calc(1.6rem + env(safe-area-inset-bottom)) !important;
  }

  .lightbox-title,
  body .lightbox-title {
    font-size: clamp(1.45rem, 8vw, 2.1rem) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
  }

  #lightboxSubtitle,
  body #lightboxSubtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: rgba(248, 245, 242, 0.76) !important;
  }

  .lightbox-caption-bar > div:last-child,
  body .lightbox-caption-bar > div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  #lbPhotoCounter,
  body #lbPhotoCounter {
    white-space: nowrap !important;
    font-size: 0.95rem !important;
  }

  .lightbox-close,
  body .lightbox-close {
    top: max(0.75rem, env(safe-area-inset-top)) !important;
    right: 0.75rem !important;
    z-index: 3 !important;
  }
}

/* Unified carousel control contract.
   Replaces legacy side-overlay arrows and dot variants with one readable pattern. */
.jmtc-unified-controls,
.hero-events-controls-bar,
.mag-carousel-controls,
.bearers-mobile-controls,
.vicars-section .gallery-nav-dock,
body .jmtc-unified-controls,
body .hero-events-controls-bar,
body .mag-carousel-controls,
body .bearers-mobile-controls,
body .vicars-section .gallery-nav-dock {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 48px minmax(120px, 220px) 48px !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: clamp(0.8rem, 2vw, 1.1rem) !important;
  width: min(100%, 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: clamp(1rem, 2.5vw, 1.45rem) auto 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}

.jmtc-dots-container,
.carousel-dots-indicator,
.jmtc-dots-wrap,
body .jmtc-dots-container,
body .carousel-dots-indicator,
body .jmtc-dots-wrap {
  display: none !important;
}

.jmtc-carousel-nav,
body .jmtc-carousel-nav {
  display: contents !important;
}

.jmtc-carousel-btn,
.hero-carousel-arrow,
.mag-arrow-btn,
.bearers-arrow-btn,
.vicars-section .gallery-nav-btn,
body .jmtc-carousel-btn,
body .hero-carousel-arrow,
body .mag-arrow-btn,
body .bearers-arrow-btn,
body .vicars-section .gallery-nav-btn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(34, 34, 59, 0.18) !important;
  box-shadow: 0 12px 28px rgba(34, 34, 59, 0.15) !important;
}

.jmtc-carousel-btn svg,
.hero-carousel-arrow svg,
.mag-arrow-btn svg,
.bearers-arrow-btn svg,
.vicars-section .gallery-nav-btn svg,
body .jmtc-carousel-btn svg,
body .hero-carousel-arrow svg,
body .mag-arrow-btn svg,
body .bearers-arrow-btn svg,
body .vicars-section .gallery-nav-btn svg {
  color: #22223B !important;
  stroke: #22223B !important;
  opacity: 1 !important;
}

.jmtc-carousel-btn:disabled,
.hero-carousel-arrow:disabled,
.mag-arrow-btn:disabled,
.bearers-arrow-btn:disabled,
.vicars-section .gallery-nav-btn:disabled,
body .jmtc-carousel-btn:disabled,
body .hero-carousel-arrow:disabled,
body .mag-arrow-btn:disabled,
body .bearers-arrow-btn:disabled,
body .vicars-section .gallery-nav-btn:disabled {
  opacity: 0.42 !important;
  visibility: visible !important;
  cursor: not-allowed !important;
}

.jmtc-mobile-progress,
.hero-carousel-progress,
.mag-mobile-progress,
.bearers-counter,
.vicars-section .gallery-progress,
body .jmtc-mobile-progress,
body .hero-carousel-progress,
body .mag-mobile-progress,
body .bearers-counter,
body .vicars-section .gallery-progress {
  display: grid !important;
  grid-template-columns: auto minmax(72px, 1fr) auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  font-family: var(--font-ui), Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  white-space: nowrap !important;
}

.jmtc-mobile-track,
.hero-progress-track,
.mag-mobile-track,
.bearers-progress-track,
.vicars-section .gallery-progress-track,
body .jmtc-mobile-track,
body .hero-progress-track,
body .mag-mobile-track,
body .bearers-progress-track,
body .vicars-section .gallery-progress-track {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 72px !important;
  height: 3px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(74, 78, 105, 0.18) !important;
}

.jmtc-mobile-fill,
.hero-progress-fill-bar,
.mag-mobile-fill,
.bearers-progress-fill,
.vicars-section .gallery-progress-fill,
body .jmtc-mobile-fill,
body .hero-progress-fill-bar,
body .mag-mobile-fill,
body .bearers-progress-fill,
body .vicars-section .gallery-progress-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #C9ADA7 !important;
  transition: width 0.25s ease !important;
}

.bearers-mobile-controls,
body .bearers-mobile-controls {
  grid-template-columns: minmax(92px, 1fr) 104px !important;
}

.bearers-arrows-group,
body .bearers-arrows-group {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.7rem !important;
  width: auto !important;
  margin: 0 !important;
  pointer-events: auto !important;
}

.bearers-carousel-progress-wrap,
body .bearers-carousel-progress-wrap {
  width: min(100%, 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: 1rem auto 0 !important;
}

[data-theme="dark"] .jmtc-mobile-progress,
[data-theme="dark"] .hero-carousel-progress,
[data-theme="dark"] .mag-mobile-progress,
[data-theme="dark"] .bearers-counter,
[data-theme="dark"] .vicars-section .gallery-progress,
body[data-theme="dark"] .jmtc-mobile-progress,
body[data-theme="dark"] .hero-carousel-progress,
body[data-theme="dark"] .mag-mobile-progress,
body[data-theme="dark"] .bearers-counter,
body[data-theme="dark"] .vicars-section .gallery-progress {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

[data-theme="dark"] .jmtc-mobile-track,
[data-theme="dark"] .hero-progress-track,
[data-theme="dark"] .mag-mobile-track,
[data-theme="dark"] .bearers-progress-track,
[data-theme="dark"] .vicars-section .gallery-progress-track,
body[data-theme="dark"] .jmtc-mobile-track,
body[data-theme="dark"] .hero-progress-track,
body[data-theme="dark"] .mag-mobile-track,
body[data-theme="dark"] .bearers-progress-track,
body[data-theme="dark"] .vicars-section .gallery-progress-track {
  background: rgba(242, 233, 228, 0.24) !important;
}

[data-theme="dark"] .events-section .hero-event-card,
body[data-theme="dark"] .events-section .hero-event-card {
  background: rgba(74, 78, 105, 0.72) !important;
  border-color: rgba(242, 233, 228, 0.22) !important;
}

[data-theme="dark"] .events-section .hero-event-card-title,
[data-theme="dark"] .events-section .hero-event-card-desc,
[data-theme="dark"] .events-section .date-row-left,
[data-theme="dark"] .events-section .date-row-left span,
[data-theme="dark"] .events-section .event-action-link,
[data-theme="dark"] .events-section .event-action-link span,
body[data-theme="dark"] .events-section .hero-event-card-title,
body[data-theme="dark"] .events-section .hero-event-card-desc,
body[data-theme="dark"] .events-section .date-row-left,
body[data-theme="dark"] .events-section .date-row-left span,
body[data-theme="dark"] .events-section .event-action-link,
body[data-theme="dark"] .events-section .event-action-link span {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

[data-theme="dark"] .events-section .date-row-left svg,
[data-theme="dark"] .events-section .event-action-link svg,
body[data-theme="dark"] .events-section .date-row-left svg,
body[data-theme="dark"] .events-section .event-action-link svg {
  color: #F8F5F2 !important;
  stroke: #F8F5F2 !important;
}

@media (max-width: 767px) {
  .jmtc-unified-controls,
  .hero-events-controls-bar,
  .mag-carousel-controls,
  .bearers-mobile-controls,
  .vicars-section .gallery-nav-dock,
  body .jmtc-unified-controls,
  body .hero-events-controls-bar,
  body .mag-carousel-controls,
  body .bearers-mobile-controls,
  body .vicars-section .gallery-nav-dock {
    grid-template-columns: 46px minmax(92px, 1fr) 46px !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
    margin-top: 1rem !important;
    gap: 0.75rem !important;
  }

  .jmtc-carousel-btn,
  .hero-carousel-arrow,
  .mag-arrow-btn,
  .bearers-arrow-btn,
  .vicars-section .gallery-nav-btn,
  body .jmtc-carousel-btn,
  body .hero-carousel-arrow,
  body .mag-arrow-btn,
  body .bearers-arrow-btn,
  body .vicars-section .gallery-nav-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }

  .events-section #heroEventsPrev,
  .events-section #heroEventsNext,
  body .events-section #heroEventsPrev,
  body .events-section #heroEventsNext {
    position: static !important;
    inset: auto !important;
    transform: none !important;
  }

  .events-section .hero-events-carousel-viewport,
  body .events-section .hero-events-carousel-viewport {
    padding-bottom: 0 !important;
  }
}

/* Specific variants included in the unified carousel contract. */
.events-section .hero-events-controls-bar,
body .events-section .hero-events-controls-bar,
body.home-page .events-section .hero-events-controls-bar,
body.home-page .bearers-mobile-controls,
body .team-section .bearers-mobile-controls {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: clamp(0.8rem, 2vw, 1.1rem) !important;
  width: min(100%, 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: clamp(1rem, 2.5vw, 1.45rem) auto 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  z-index: 5 !important;
}

.events-section .hero-events-controls-bar,
body .events-section .hero-events-controls-bar,
body.home-page .events-section .hero-events-controls-bar {
  grid-template-columns: 48px minmax(120px, 220px) 48px !important;
}

body.home-page .bearers-mobile-controls,
body.home-page .team-section .bearers-mobile-controls,
body .team-section .bearers-mobile-controls {
  grid-template-columns: minmax(92px, 1fr) 104px !important;
}

.events-section .hero-events-controls-bar .hero-carousel-arrow,
body .events-section .hero-events-controls-bar .hero-carousel-arrow,
body.home-page .events-section .hero-events-controls-bar .hero-carousel-arrow,
body.home-page .bearers-arrow-btn,
body .team-section .bearers-arrow-btn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .events-section .hero-events-controls-bar,
  body .events-section .hero-events-controls-bar,
  body.home-page .events-section .hero-events-controls-bar {
    grid-template-columns: 46px minmax(92px, 1fr) 46px !important;
    width: min(calc(100vw - 2rem), 360px) !important;
    max-width: min(calc(100vw - 2rem), 360px) !important;
  }

  body.home-page .bearers-mobile-controls,
  body.home-page .team-section .bearers-mobile-controls,
  body .team-section .bearers-mobile-controls {
    width: min(calc(100vw - 3rem), 320px) !important;
    max-width: min(calc(100vw - 3rem), 320px) !important;
  }

  .events-section .hero-events-controls-bar .hero-carousel-arrow,
  body .events-section .hero-events-controls-bar .hero-carousel-arrow,
  body.home-page .events-section .hero-events-controls-bar .hero-carousel-arrow,
  body.home-page .bearers-arrow-btn,
  body .team-section .bearers-arrow-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
}

#heroEventsPrev,
#heroEventsNext,
#bearersPrevBtn,
#bearersNextBtn,
body #heroEventsPrev,
body #heroEventsNext,
body #bearersPrevBtn,
body #bearersNextBtn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
}

body.home-page .bearers-arrows-group,
body .team-section .bearers-arrows-group,
body .bearers-arrows-group {
  position: static !important;
  transform: none !important;
  width: 104px !important;
  min-width: 104px !important;
  display: grid !important;
  grid-template-columns: 46px 46px !important;
  justify-content: end !important;
  justify-items: center !important;
  gap: 0.7rem !important;
}

@media (max-width: 767px) {
  #heroEventsPrev,
  #heroEventsNext,
  #bearersPrevBtn,
  #bearersNextBtn,
  body #heroEventsPrev,
  body #heroEventsNext,
  body #bearersPrevBtn,
  body #bearersNextBtn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
}

/* Final carousel navigation pattern: edge arrows + centered numeric progress. */
.gallery-nav-dock,
.hero-events-controls-bar,
.mag-carousel-controls,
.bearers-mobile-controls,
.jmtc-unified-controls,
body .gallery-nav-dock,
body .hero-events-controls-bar,
body .mag-carousel-controls,
body .bearers-mobile-controls,
body .jmtc-unified-controls {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 48px minmax(180px, 1fr) 48px !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: clamp(1rem, 2.4vw, 1.5rem) !important;
  width: min(100%, 980px) !important;
  max-width: min(calc(100vw - 2rem), 980px) !important;
  margin: clamp(1.15rem, 2.8vw, 1.65rem) auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

.stay-connected-mag-panel,
body .stay-connected-mag-panel {
  display: flex !important;
  flex-direction: column !important;
}

.stay-connected-mag-panel > .mag-carousel-viewport,
body .stay-connected-mag-panel > .mag-carousel-viewport {
  order: 1 !important;
}

.stay-connected-mag-panel > .mag-carousel-controls,
body .stay-connected-mag-panel > .mag-carousel-controls {
  order: 2 !important;
}

.stay-connected-social-links,
body .stay-connected-social-links {
  order: 3 !important;
}

.gallery-nav-cell.cell-left,
.gallery-nav-cell.cell-right,
.jmtc-carousel-btn,
.hero-carousel-arrow,
.mag-arrow-btn,
.bearers-arrow-btn,
body .gallery-nav-cell.cell-left,
body .gallery-nav-cell.cell-right,
body .jmtc-carousel-btn,
body .hero-carousel-arrow,
body .mag-arrow-btn,
body .bearers-arrow-btn,
#heroEventsPrev,
#heroEventsNext,
#bearersPrevBtn,
#bearersNextBtn,
body #heroEventsPrev,
body #heroEventsNext,
body #bearersPrevBtn,
body #bearersNextBtn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(34, 34, 59, 0.22) !important;
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  box-shadow: 0 12px 28px rgba(34, 34, 59, 0.14) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.gallery-nav-cell.cell-left svg,
.gallery-nav-cell.cell-right svg,
.jmtc-carousel-btn svg,
.hero-carousel-arrow svg,
.mag-arrow-btn svg,
.bearers-arrow-btn svg,
body .gallery-nav-cell.cell-left svg,
body .gallery-nav-cell.cell-right svg,
body .jmtc-carousel-btn svg,
body .hero-carousel-arrow svg,
body .mag-arrow-btn svg,
body .bearers-arrow-btn svg {
  color: #22223B !important;
  stroke: #22223B !important;
  opacity: 1 !important;
}

.gallery-nav-cell.cell-center,
body .gallery-nav-cell.cell-center {
  width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

.community-progress-bar-wrap,
.hero-carousel-progress,
.mag-mobile-progress,
.bearers-unified-progress,
.jmtc-mobile-progress,
body .community-progress-bar-wrap,
body .hero-carousel-progress,
body .mag-mobile-progress,
body .bearers-unified-progress,
body .jmtc-mobile-progress {
  display: grid !important;
  grid-template-columns: auto minmax(92px, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(0.8rem, 2vw, 1.05rem) !important;
  width: min(100%, 360px) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  font-family: var(--font-ui), Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.community-progress-track,
.hero-progress-track,
.mag-mobile-track,
.bearers-progress-track,
.jmtc-mobile-track,
body .community-progress-track,
body .hero-progress-track,
body .mag-mobile-track,
body .bearers-progress-track,
body .jmtc-mobile-track {
  display: block !important;
  width: 100% !important;
  min-width: 92px !important;
  height: 3px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(74, 78, 105, 0.2) !important;
}

.community-progress-fill,
.hero-progress-fill-bar,
.mag-mobile-fill,
.bearers-progress-fill,
.jmtc-mobile-fill,
body .community-progress-fill,
body .hero-progress-fill-bar,
body .mag-mobile-fill,
body .bearers-progress-fill,
body .jmtc-mobile-fill {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #22223B !important;
}

.community-pill-cta,
.community-pill-cta span,
.community-pill-cta svg,
body .community-pill-cta,
body .community-pill-cta span,
body .community-pill-cta svg,
body.home-page main .community-pill-cta,
body.home-page main .community-pill-cta span,
body.home-page main .community-pill-cta svg {
  color: #11111F !important;
  -webkit-text-fill-color: #11111F !important;
  stroke: #11111F !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

[data-theme="dark"] .gallery-nav-cell.cell-left,
[data-theme="dark"] .gallery-nav-cell.cell-right,
[data-theme="dark"] .jmtc-carousel-btn,
[data-theme="dark"] .hero-carousel-arrow,
[data-theme="dark"] .mag-arrow-btn,
[data-theme="dark"] .bearers-arrow-btn,
body[data-theme="dark"] .gallery-nav-cell.cell-left,
body[data-theme="dark"] .gallery-nav-cell.cell-right,
body[data-theme="dark"] .jmtc-carousel-btn,
body[data-theme="dark"] .hero-carousel-arrow,
body[data-theme="dark"] .mag-arrow-btn,
body[data-theme="dark"] .bearers-arrow-btn {
  background: rgba(248, 245, 242, 0.98) !important;
  border-color: rgba(242, 233, 228, 0.45) !important;
  color: #17172A !important;
  -webkit-text-fill-color: #17172A !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32) !important;
}

[data-theme="dark"] .gallery-nav-cell.cell-left svg,
[data-theme="dark"] .gallery-nav-cell.cell-right svg,
[data-theme="dark"] .jmtc-carousel-btn svg,
[data-theme="dark"] .hero-carousel-arrow svg,
[data-theme="dark"] .mag-arrow-btn svg,
[data-theme="dark"] .bearers-arrow-btn svg,
body[data-theme="dark"] .gallery-nav-cell.cell-left svg,
body[data-theme="dark"] .gallery-nav-cell.cell-right svg,
body[data-theme="dark"] .jmtc-carousel-btn svg,
body[data-theme="dark"] .hero-carousel-arrow svg,
body[data-theme="dark"] .mag-arrow-btn svg,
body[data-theme="dark"] .bearers-arrow-btn svg {
  color: #17172A !important;
  stroke: #17172A !important;
}

[data-theme="dark"] .community-progress-bar-wrap,
[data-theme="dark"] .hero-carousel-progress,
[data-theme="dark"] .mag-mobile-progress,
[data-theme="dark"] .bearers-unified-progress,
[data-theme="dark"] .jmtc-mobile-progress,
body[data-theme="dark"] .community-progress-bar-wrap,
body[data-theme="dark"] .hero-carousel-progress,
body[data-theme="dark"] .mag-mobile-progress,
body[data-theme="dark"] .bearers-unified-progress,
body[data-theme="dark"] .jmtc-mobile-progress {
  color: #F8F5F2 !important;
  -webkit-text-fill-color: #F8F5F2 !important;
}

[data-theme="dark"] .community-progress-track,
[data-theme="dark"] .hero-progress-track,
[data-theme="dark"] .mag-mobile-track,
[data-theme="dark"] .bearers-progress-track,
[data-theme="dark"] .jmtc-mobile-track,
body[data-theme="dark"] .community-progress-track,
body[data-theme="dark"] .hero-progress-track,
body[data-theme="dark"] .mag-mobile-track,
body[data-theme="dark"] .bearers-progress-track,
body[data-theme="dark"] .jmtc-mobile-track {
  background: rgba(248, 245, 242, 0.24) !important;
}

[data-theme="dark"] .community-progress-fill,
[data-theme="dark"] .hero-progress-fill-bar,
[data-theme="dark"] .mag-mobile-fill,
[data-theme="dark"] .bearers-progress-fill,
[data-theme="dark"] .jmtc-mobile-fill,
body[data-theme="dark"] .community-progress-fill,
body[data-theme="dark"] .hero-progress-fill-bar,
body[data-theme="dark"] .mag-mobile-fill,
body[data-theme="dark"] .bearers-progress-fill,
body[data-theme="dark"] .jmtc-mobile-fill {
  background: #F8F5F2 !important;
}

@media (max-width: 767px) {
  .gallery-nav-dock,
  .hero-events-controls-bar,
  .mag-carousel-controls,
  .bearers-mobile-controls,
  .jmtc-unified-controls,
  body .gallery-nav-dock,
  body .hero-events-controls-bar,
  body .mag-carousel-controls,
  body .bearers-mobile-controls,
  body .jmtc-unified-controls {
    grid-template-columns: 46px minmax(120px, 1fr) 46px !important;
    width: min(calc(100vw - 2rem), 420px) !important;
    max-width: min(calc(100vw - 2rem), 420px) !important;
    gap: 0.8rem !important;
  }

  .gallery-nav-cell.cell-left,
  .gallery-nav-cell.cell-right,
  .jmtc-carousel-btn,
  .hero-carousel-arrow,
  .mag-arrow-btn,
  .bearers-arrow-btn,
  body .gallery-nav-cell.cell-left,
  body .gallery-nav-cell.cell-right,
  body .jmtc-carousel-btn,
  body .hero-carousel-arrow,
  body .mag-arrow-btn,
  body .bearers-arrow-btn,
  #heroEventsPrev,
  #heroEventsNext,
  #bearersPrevBtn,
  #bearersNextBtn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 999px !important;
  }
}

/* Exact carousel selector lock: keep every home/mobile carousel in the same row shape. */
body.home-page .team-section .bearers-mobile-controls,
body.home-page .bearers-mobile-controls,
body .team-section .bearers-mobile-controls {
  display: grid !important;
  grid-template-columns: 46px minmax(120px, 1fr) 46px !important;
  width: min(calc(100vw - 2rem), 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: 1rem auto 0 !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 0.8rem !important;
}

#communityPrevBtn,
#communityNextBtn,
#announcementsPrev,
#announcementsNext,
#galleryPrev,
#galleryNext,
#heroEventsPrev,
#heroEventsNext,
#bearersPrevBtn,
#bearersNextBtn,
body #communityPrevBtn,
body #communityNextBtn,
body #announcementsPrev,
body #announcementsNext,
body #galleryPrev,
body #galleryNext,
body #heroEventsPrev,
body #heroEventsNext,
body #bearersPrevBtn,
body #bearersNextBtn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  flex: 0 0 48px !important;
  margin: 0 !important;
}

[data-theme="dark"] .events-section #heroEventsPrev,
[data-theme="dark"] .events-section #heroEventsNext,
[data-theme="dark"] .events-section .hero-carousel-arrow,
body[data-theme="dark"] .events-section #heroEventsPrev,
body[data-theme="dark"] .events-section #heroEventsNext,
body[data-theme="dark"] .events-section .hero-carousel-arrow {
  background: rgba(248, 245, 242, 0.98) !important;
  color: #17172A !important;
  -webkit-text-fill-color: #17172A !important;
  border-color: rgba(242, 233, 228, 0.45) !important;
}

[data-theme="dark"] .events-section .hero-carousel-arrow svg,
body[data-theme="dark"] .events-section .hero-carousel-arrow svg {
  color: #17172A !important;
  stroke: #17172A !important;
}

@media (max-width: 767px) {
  #communityPrevBtn,
  #communityNextBtn,
  #announcementsPrev,
  #announcementsNext,
  #galleryPrev,
  #galleryNext,
  #heroEventsPrev,
  #heroEventsNext,
  #bearersPrevBtn,
  #bearersNextBtn,
  body #communityPrevBtn,
  body #communityNextBtn,
  body #announcementsPrev,
  body #announcementsNext,
  body #galleryPrev,
  body #galleryNext,
  body #heroEventsPrev,
  body #heroEventsNext,
  body #bearersPrevBtn,
  body #bearersNextBtn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    flex: 0 0 46px !important;
  }
}

body.home-page .team-section .bearers-carousel-container #bearersMobileControls,
body.home-page #vicar-team .bearers-carousel-container #bearersMobileControls {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem auto 0 !important;
  justify-content: center !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 0.8rem !important;
}

body.home-page .events-section .hero-events-controls-bar #heroEventsPrev,
body.home-page .events-section .hero-events-controls-bar #heroEventsNext,
body.home-page #quick-access .mag-carousel-controls #announcementsPrev,
body.home-page #quick-access .mag-carousel-controls #announcementsNext,
body.home-page #quick-access .mag-carousel-controls #galleryPrev,
body.home-page #quick-access .mag-carousel-controls #galleryNext,
body.home-page #community .gallery-nav-dock #communityPrevBtn,
body.home-page #community .gallery-nav-dock #communityNextBtn,
body.home-page #vicar-team .bearers-mobile-controls #bearersPrevBtn,
body.home-page #vicar-team .bearers-mobile-controls #bearersNextBtn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  flex: 0 0 46px !important;
  margin: 0 !important;
}


/* =====================================================================
   UNIVERSAL LIGHT MODE CARD TITLE COLOR & CONTRAST OVERHAUL
   FORCES CRISP DARK NAVY (#22223B) FOR ALL CARD TITLES IN LIGHT MODE
   ENFORCES ROUNDED BORDERS (18px) & OVERFLOW HIDDEN ON MOBILE
   ===================================================================== */
:root:not([data-theme="dark"]) .mag-card-title,
:root:not([data-theme="dark"]) .mag-card-title a,
:root:not([data-theme="dark"]) .mag-content-card h3,
:root:not([data-theme="dark"]) .jmtc-card h3,
:root:not([data-theme="dark"]) .jmtc-gallery-title,
:root:not([data-theme="dark"]) .jmtc-gallery-title-link,
:root:not([data-theme="dark"]) .gallery-album-title,
:root:not([data-theme="dark"]) .hero-event-card-title,
:root:not([data-theme="dark"]) .bearer-name,
body:not([data-theme="dark"]) .mag-card-title,
body:not([data-theme="dark"]) .jmtc-gallery-title,
body:not([data-theme="dark"]) .jmtc-gallery-title-link,
body:not([data-theme="dark"]) .mag-content-card .mag-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .jmtc-gallery-title-link:hover,
:root:not([data-theme="dark"]) .mag-card-title:hover,
:root:not([data-theme="dark"]) .mag-card-title a:hover {
  color: #B06830 !important;
  -webkit-text-fill-color: #B06830 !important;
}

@media (max-width: 767px) {
  .mag-content-card,
  .jmtc-card,
  .hero-event-card,
  .gallery-card,
  .bearer-card,
  body .mag-content-card,
  body .jmtc-card {
    border-radius: 18px !important;
    overflow: hidden !important;
  }
}


/* =====================================================================
   UNIVERSAL CARD TITLE COLOR & CAROUSEL ACCENT FIX
   FORCES CRISP DARK NAVY (#22223B) FOR ALL CARD TITLES IN LIGHT MODE
   ===================================================================== */
:root:not([data-theme="dark"]) .mag-card-title,
:root:not([data-theme="dark"]) .mag-card-title a,
:root:not([data-theme="dark"]) .mag-content-card h3,
:root:not([data-theme="dark"]) .mag-content-card .mag-card-title,
:root:not([data-theme="dark"]) .jmtc-card h3,
:root:not([data-theme="dark"]) .jmtc-gallery-title,
:root:not([data-theme="dark"]) .jmtc-gallery-title-link,
:root:not([data-theme="dark"]) .gallery-card-title,
:root:not([data-theme="dark"]) .gallery-album-title,
:root:not([data-theme="dark"]) .hero-event-card-title,
:root:not([data-theme="dark"]) .bearer-name,
body:not([data-theme="dark"]) .mag-card-title,
body:not([data-theme="dark"]) .mag-card-title a,
body:not([data-theme="dark"]) .jmtc-gallery-title,
body:not([data-theme="dark"]) .jmtc-gallery-title-link,
body:not([data-theme="dark"]) .mag-content-card .mag-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

:root:not([data-theme="dark"]) .jmtc-gallery-title-link:hover,
:root:not([data-theme="dark"]) .mag-card-title:hover,
:root:not([data-theme="dark"]) .mag-card-title a:hover {
  color: #B06830 !important;
  -webkit-text-fill-color: #B06830 !important;
}

/* --------------------------------------------------------------------------
   STAY CONNECTED MAGAZINE CARDS - BEAUTIFICATION & MOBILE CORNER FIX (HIGH SPECIFICITY)
   -------------------------------------------------------------------------- */
body.home-page .mag-carousel-track > .mag-content-card,
body.home-page .mag-content-card,
body .mag-carousel-track > .mag-content-card,
body .mag-content-card,
.mag-content-card {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.home-page .mag-card-hero-image-wrap,
body .mag-card-hero-image-wrap,
.mag-card-hero-image-wrap {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  flex: 0 0 200px !important;
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
  overflow: hidden !important;
}

body.home-page .mag-card-body,
body .mag-card-body,
.mag-card-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 1.25rem 1.15rem !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

@media (max-width: 767px) {
  body.home-page .stay-connected-mag-panel > .mag-carousel-viewport,
  body .stay-connected-mag-panel > .mag-carousel-viewport,
  body .mag-carousel-viewport {
    padding-top: 8px !important;
    padding-bottom: 28px !important;
    overflow-y: visible !important;
  }

  body.home-page .mag-carousel-track > .mag-content-card,
  body.home-page .mag-content-card,
  body .mag-carousel-track .mag-content-card,
  body .mag-content-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }

  body.home-page .mag-card-hero-image-wrap,
  body .mag-card-hero-image-wrap {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    flex: 0 0 190px !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
  }

  body.home-page .mag-card-body,
  body .mag-content-card .mag-card-body {
    padding: 1.25rem 1rem !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }
}

/* ── RESPONSIVE NAVBAR OVERFLOW FIX FOR 1080px - 1320px VIEWPORTS ── */
/* ── RESPONSIVE NAVBAR OVERFLOW FIX FOR 1080px - 1380px VIEWPORTS ── */
@media (min-width: 1080px) and (max-width: 1380px) {
  .nav-grid-container {
    grid-template-columns: 210px 1fr 90px !important;
  }
  .nav-menu {
    gap: 0.85rem !important;
  }
  .nav-link {
    padding: 0.5rem 0.6rem !important;
    font-size: 14.5px !important;
    letter-spacing: 0.02em !important;
  }
  .brand-name {
    font-size: 1.15rem !important;
  }
  .nav-grid-cell {
    padding: 1.15rem 0.75rem !important;
  }
  .nav-grid-brand {
    padding-left: 1.15rem !important;
    padding-right: 0.5rem !important;
  }
  .nav-grid-actions {
    padding-left: 0.5rem !important;
    padding-right: 1.15rem !important;
  }
}

/* Global padding optimizations for desktop navbar cells to prevent brand name text clipping */
@media (min-width: 768px) {
  .nav-grid-brand,
  body .nav-grid-brand {
    padding-left: 1.25rem !important;
    padding-right: 0.75rem !important;
  }
  .nav-grid-actions,
  body .nav-grid-actions {
    padding-left: 0.75rem !important;
    padding-right: 1.25rem !important;
  }
}

/* ── OFFICE BEARERS & VICAR CAROUSEL ALIGNMENT AND CONTROLS (DESKTOP & MOBILE) ── */
@media (min-width: 768px) {
  .bearers-grid,
  body .bearers-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Hide standard scrollbar */
    justify-content: center; /* Centered by default via JS toggling */
    gap: 1.5rem !important;
    padding: 10px 0 !important;
  }
  .bearers-grid::-webkit-scrollbar {
    display: none !important;
  }
  .bearers-grid .bearer-card,
  body .bearers-grid .bearer-card {
    flex: 0 0 240px !important;
    width: 240px !important;
    max-width: 240px !important;
    scroll-snap-align: start !important;
  }
}

/* Force 3-column layout matching standard events carousel for office bearers controls */
body.home-page .bearers-mobile-controls,
body.home-page .team-section .bearers-mobile-controls,
body .team-section .bearers-mobile-controls,
.bearers-mobile-controls,
body .bearers-mobile-controls {
  display: grid !important;
  grid-template-columns: 48px minmax(120px, 1fr) 48px !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  width: min(100%, 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: clamp(1rem, 2.5vw, 1.45rem) auto 0 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Styling the dynamic inline progress bar for Office Bearers */
.bearers-unified-progress {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 120px !important;
}

.bearers-current-label,
.bearers-total-label {
  font-family: var(--font-ui) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--color-deep-navy) !important;
}

[data-theme="dark"] .bearers-current-label,
[data-theme="dark"] .bearers-total-label {
  color: var(--color-alabaster) !important;
}

.bearers-progress-track {
  flex: 1 !important;
  height: 4px !important;
  background: rgba(74, 78, 105, 0.15) !important;
  border-radius: 2px !important;
  position: relative !important;
  overflow: hidden !important;
}

[data-theme="dark"] .bearers-progress-track {
  background: rgba(255, 255, 255, 0.15) !important;
}

.bearers-progress-fill-inline {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background: #B06830 !important; /* Premium accent color */
  border-radius: inherit !important;
  width: 20%;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

[data-theme="dark"] .bearers-progress-fill-inline {
  background: #D89169 !important;
}

/* Centered layout for Stay Connected / Magazine carousel controls with arrows on the sides of the progress bar */
body.home-page .stay-connected-mag-panel .mag-carousel-controls,
body .stay-connected-mag-panel .mag-carousel-controls,
.mag-carousel-controls,
body .mag-carousel-controls {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 48px minmax(120px, 220px) 48px !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: clamp(1rem, 2.4vw, 1.5rem) !important;
  width: min(100%, 420px) !important;
  max-width: min(calc(100vw - 2rem), 420px) !important;
  margin: clamp(1.15rem, 2.8vw, 1.65rem) auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
}

/* Ensure the "Learn More" button text is always dark and has no text shadow under both light and dark modes */
.community-pill-cta,
.community-pill-cta span,
.community-pill-cta svg,
body .community-pill-cta,
body .community-pill-cta span,
body .community-pill-cta svg,
[data-theme="dark"] .community-pill-cta,
[data-theme="dark"] .community-pill-cta span,
[data-theme="dark"] body .community-pill-cta,
[data-theme="dark"] body .community-pill-cta span,
body[data-theme="dark"] .community-pill-cta,
body[data-theme="dark"] .community-pill-cta span {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  stroke: #22223B !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.community-pill-cta:hover,
.community-pill-cta:hover span,
.community-pill-cta:hover svg,
body .community-pill-cta:hover,
body .community-pill-cta:hover span,
body .community-pill-cta:hover svg,
[data-theme="dark"] .community-pill-cta:hover,
[data-theme="dark"] .community-pill-cta:hover span,
[data-theme="dark"] body .community-pill-cta:hover,
[data-theme="dark"] body .community-pill-cta:hover span,
body[data-theme="dark"] .community-pill-cta:hover,
body[data-theme="dark"] .community-pill-cta:hover span {
  color: #17172A !important;
  -webkit-text-fill-color: #17172A !important;
  stroke: #17172A !important;
  text-shadow: none !important;
}

/* ── UNIVERSAL LIGHTBOX DESKTOP STYLES (PREMIUM OVERRIDES) ── */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox-modal.open {
  display: flex !important;
}
.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--color-deep-navy, #22223B) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5) !important;
  color: #FFFFFF !important;
  position: relative;
}
.lightbox-img-wrap {
  width: 100%;
  height: 480px;
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
}
.lightbox-caption-bar {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF !important;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: #FFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
}

/* ── RESPONSIVE IFRAME HEIGHT FIX ── */
.video-iframe-wrapper iframe,
body .video-iframe-wrapper iframe {
  height: 100% !important;
}

/* ── MOBILE DARK MODE BRAND NAME CONTRAST FIX ── */
@media (max-width: 991px) {
  [data-theme="dark"] .grid-navbar .brand-name,
  [data-theme="dark"] body .grid-navbar .brand-name,
  [data-theme="dark"] body.home-page .grid-navbar .brand-name,
  [data-theme="dark"] body:has(#hero.split-hero-section) .grid-navbar .brand-name {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  }
}

/* ── FORMER VICARS CAROUSEL MOBILE WIDTH & DARK MODE CONTRAST FIX ── */
@media (max-width: 767px) {
  .vicars-carousel-track .vicar-card,
  body .vicars-carousel-track .vicar-card {
    flex: 0 0 min(calc(100vw - 2rem), 340px) !important;
    width: min(calc(100vw - 2rem), 340px) !important;
    min-width: min(calc(100vw - 2rem), 340px) !important;
    max-width: min(calc(100vw - 2rem), 340px) !important;
  }

  [data-theme="dark"] .vicars-section .gallery-nav-cell.cell-left,
  [data-theme="dark"] .vicars-section .gallery-nav-cell.cell-right {
    background: #24243A !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.20) !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25) !important;
  }
}

/* ── DARK MODE VICAR SIGNATURE CONTRAST FIX ── */
[data-theme="dark"] .vicar-signature-name,
body[data-theme="dark"] .vicar-signature-name {
  color: #FFFFFF !important;
}
[data-theme="dark"] .vicar-signature-role,
body[data-theme="dark"] .vicar-signature-role {
  color: #EEBA7B !important;
}
[data-theme="dark"] .vicar-signature-church,
body[data-theme="dark"] .vicar-signature-church {
  color: #C9ADA7 !important;
}

/* ── CENTERING FOR MINISTRIES CAROUSELS ON MOBILE ── */
@media (max-width: 767px) {
  .jmtc-carousel-viewport,
  .carousel-viewport,
  .vicars-carousel-viewport,
  .mag-carousel-viewport,
  .hero-events-carousel-viewport,
  .carousel-track-container {
    width: min(calc(100vw - 2.5rem), 340px) !important;
    max-width: min(calc(100vw - 2.5rem), 340px) !important;
    margin-inline: auto !important;
    overflow: hidden !important;
  }

  .jmtc-carousel-track,
  .carousel-track,
  .vicars-carousel-track,
  .mag-carousel-track,
  .hero-events-slider,
  #upcomingTrack,
  #galleryTrack {
    gap: 0 !important;
  }

  .jmtc-carousel-track .jmtc-card,
  .jmtc-carousel-track .gallery-card,
  .carousel-track .jmtc-card,
  .carousel-track .gallery-card,
  .vicars-carousel-track .vicar-card,
  .mag-carousel-track .announcement-card,
  .mag-carousel-track .gallery-card,
  .mag-carousel-track .jmtc-card,
  .hero-events-slider .hero-event-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important; /* Reset padding to let card box fill centered viewport */
  }
}

/* ── UNIVERSAL DARK SECTIONS CARD CONTRAST & TYPOGRAPHY FIX ── */
.section-dark .jmtc-card,
.section-dark .gallery-card,
.section-dark .gallery-album-card,
body .section-dark .jmtc-card,
body .section-dark .gallery-card {
  background: #25263A !important;
  background-color: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  color: #F2E9E4 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  border-radius: 18px !important;
}

.section-dark .jmtc-card .jmtc-gallery-title a,
.section-dark .jmtc-card .jmtc-gallery-title,
.section-dark .jmtc-card .jmtc-gallery-title-link,
body .section-dark .jmtc-card .jmtc-gallery-title a,
body .section-dark .jmtc-card .jmtc-gallery-title,
body .section-dark .jmtc-card .jmtc-gallery-title-link {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: none !important;
}

.section-dark .jmtc-card .jmtc-gallery-sub,
body .section-dark .jmtc-card .jmtc-gallery-sub {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
  text-shadow: none !important;
}

.section-dark .jmtc-card *,
.section-dark .gallery-card *,
.section-dark .gallery-album-card *,
body .section-dark .jmtc-card *,
body .section-dark .gallery-card *,
[data-theme="dark"] .jmtc-card *,
[data-theme="dark"] .gallery-card *,
[data-theme="dark"] .gallery-album-card *,
[data-theme="dark"] .mag-content-card *,
body[data-theme="dark"] .jmtc-card *,
body[data-theme="dark"] .gallery-card *,
body[data-theme="dark"] .gallery-album-card *,
body[data-theme="dark"] .mag-content-card * {
  text-shadow: none !important;
}

/* ── STANDARDIZED PREMIUM CARD TYPOGRAPHY SYSTEM ── */
.jmtc-event-title,
.jmtc-gallery-title,
.jmtc-gallery-title-link,
.gallery-card-title,
.gallery-album-title,
.mag-card-title,
.announcement-card-title,
.announcement-card-title a,
.service-card-title,
.info-card-title,
body .jmtc-event-title,
body .jmtc-gallery-title,
body .jmtc-gallery-title-link {
  font-family: var(--font-heading), 'Lora', Georgia, serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

.jmtc-event-desc,
.jmtc-gallery-sub,
.gallery-card-desc,
.gallery-album-desc,
.mag-card-excerpt,
.announcement-card-excerpt,
.announcement-card-summary,
.service-card-desc,
.info-card-desc,
.jmtc-event-meta,
.jmtc-event-meta-item,
body .jmtc-event-desc,
body .jmtc-gallery-sub {
  font-family: var(--font-body), 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
}

/* ── UNIVERSAL SECTION LABELS (GALLERY / KEY INITIATIVES) GOLD COLOR IN DARK MODE ── */
[data-theme="dark"] .jmtc-section-label,
[data-theme="dark"] .section-dark .jmtc-section-label,
body[data-theme="dark"] .jmtc-section-label,
body[data-theme="dark"] .section-dark .jmtc-section-label {
  color: #EEBA7B !important;
  -webkit-text-fill-color: #EEBA7B !important;
  font-family: var(--font-body), 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* ── UNIVERSAL CARD COLOR & CONTRAST STANDARDIZATION ── */
/* Light Mode Defaults */
.jmtc-event-title,
.jmtc-gallery-title,
.jmtc-gallery-title-link,
.gallery-card-title,
.gallery-album-title,
.mag-card-title,
.announcement-card-title,
.announcement-card-title a,
.service-card-title,
.info-card-title {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}

.jmtc-event-desc,
.jmtc-gallery-sub,
.gallery-card-desc,
.gallery-album-desc,
.mag-card-excerpt,
.announcement-card-excerpt,
.announcement-card-summary,
.service-card-desc,
.info-card-desc,
.jmtc-event-meta,
.jmtc-event-meta-item {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

/* Dark Mode & Dark Sections Overrides */
[data-theme="dark"] .jmtc-event-title,
[data-theme="dark"] .jmtc-gallery-title,
[data-theme="dark"] .jmtc-gallery-title-link,
[data-theme="dark"] .gallery-card-title,
[data-theme="dark"] .gallery-album-title,
[data-theme="dark"] .mag-card-title,
[data-theme="dark"] .announcement-card-title,
[data-theme="dark"] .announcement-card-title a,
[data-theme="dark"] .service-card-title,
[data-theme="dark"] .info-card-title,
.section-dark .jmtc-event-title,
.section-dark .jmtc-gallery-title,
.section-dark .jmtc-gallery-title-link,
body[data-theme="dark"] .jmtc-event-title,
body[data-theme="dark"] .jmtc-gallery-title,
body[data-theme="dark"] .jmtc-gallery-title-link {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme="dark"] .jmtc-event-desc,
[data-theme="dark"] .jmtc-gallery-sub,
[data-theme="dark"] .gallery-card-desc,
[data-theme="dark"] .gallery-album-desc,
[data-theme="dark"] .mag-card-excerpt,
[data-theme="dark"] .announcement-card-excerpt,
[data-theme="dark"] .announcement-card-summary,
[data-theme="dark"] .service-card-desc,
[data-theme="dark"] .info-card-desc,
[data-theme="dark"] .jmtc-event-meta,
[data-theme="dark"] .jmtc-event-meta-item,
.section-dark .jmtc-event-desc,
.section-dark .jmtc-gallery-sub,
.section-dark .jmtc-event-meta,
.section-dark .jmtc-event-meta-item,
body[data-theme="dark"] .jmtc-event-desc,
body[data-theme="dark"] .jmtc-gallery-sub {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

/* ── STANDARDIZED COMING SOON PAGES STYLING ── */
.coming-soon-main {
  min-height: 70vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6rem 1.5rem 4rem 1.5rem !important;
  text-align: center !important;
}

.coming-soon-page-card {
  max-width: 650px !important;
  margin: 0 auto !important;
  padding: 3rem 2rem !important;
  background: var(--color-card-bg, #FFFFFF) !important;
  border: 1.5px solid rgba(74, 78, 105, 0.15) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .coming-soon-page-card {
  background: #25263A !important;
  border: 1.5px solid rgba(201, 173, 167, 0.28) !important;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4) !important;
}

.coming-soon-page-badge {
  display: inline-block !important;
  padding: 0.4rem 1.2rem !important;
  background: rgba(201, 173, 167, 0.22) !important;
  border: 1px solid rgba(201, 173, 167, 0.45) !important;
  color: #B06830 !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  margin-bottom: 1.25rem !important;
}

[data-theme="dark"] .coming-soon-page-badge {
  color: #EEBA7B !important;
}

.coming-soon-page-title {
  font-family: var(--font-heading), 'Lora', Georgia, serif !important;
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  color: #22223B !important;
  margin-bottom: 1rem !important;
  line-height: 1.25 !important;
}

[data-theme="dark"] .coming-soon-page-title {
  color: #FFFFFF !important;
}

.coming-soon-page-desc {
  font-family: var(--font-body), 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  color: #4A4E69 !important;
  line-height: 1.65 !important;
  margin-bottom: 2rem !important;
}

[data-theme="dark"] .coming-soon-page-desc {
  color: #F2E9E4 !important;
}

.coming-soon-page-actions {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.coming-soon-primary-btn {
  padding: 0.85rem 1.75rem !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  background-color: #4A4E69 !important;
  color: #FFFFFF !important;
  border: none !important;
}

.coming-soon-primary-btn:hover {
  background-color: #22223B !important;
}

[data-theme="dark"] .coming-soon-primary-btn {
  background-color: #EEBA7B !important;
  color: #22223B !important;
}

[data-theme="dark"] .coming-soon-primary-btn:hover {
  background-color: #FFFFFF !important;
  color: #22223B !important;
}

.coming-soon-secondary-btn {
  padding: 0.85rem 1.75rem !important;
  font-weight: 600 !important;
  border-radius: 30px !important;
  border: 1.5px solid #4A4E69 !important;
  color: #4A4E69 !important;
  background: transparent !important;
}

.coming-soon-secondary-btn:hover {
  background-color: rgba(74, 78, 105, 0.08) !important;
}

[data-theme="dark"] .coming-soon-secondary-btn {
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .coming-soon-secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 767px) {
  .coming-soon-main {
    padding: 4rem 1rem 3rem 1rem !important;
  }

  .coming-soon-page-card {
    padding: 2.25rem 1.25rem !important; /* Smaller padding on mobile to maximize content width */
    width: 100% !important;
  }

  .coming-soon-page-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .coming-soon-primary-btn,
  .coming-soon-secondary-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 1rem !important; /* Slightly smaller horizontal padding on mobile */
    box-sizing: border-box !important;
    text-align: center !important;
  }
}

/* ── PARISH WORSHIP SCHEDULE STYLING ── */
.parish-worship-schedule-wrap {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 2px solid var(--color-border) !important;
  text-align: left !important;
}

.parish-worship-schedule-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--color-text-primary) !important;
  margin-bottom: 1.25rem !important;
  text-align: center !important;
  font-family: var(--font-heading), 'Lora', serif !important;
}

[data-theme="dark"] .parish-worship-schedule-title {
  color: #FFFFFF !important;
}

.parish-worship-schedule-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.parish-worship-schedule-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.95rem !important;
  padding: 0.5rem 0 !important;
}

.parish-worship-schedule-row.border-dashed {
  border-bottom: 1px dashed var(--color-border) !important;
}

.parish-worship-schedule-label {
  color: #4A4E69 !important;
  font-family: var(--font-body), 'Inter', sans-serif !important;
}

[data-theme="dark"] .parish-worship-schedule-label {
  color: #F2E9E4 !important;
}

.parish-worship-schedule-time {
  color: #22223B !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .parish-worship-schedule-time {
  color: #FFFFFF !important;
}

/* ── JMTC CAROUSEL BUTTON STATE SVG CONTRAST OVERRIDES ── */
.jmtc-carousel-btn svg,
body .jmtc-carousel-btn svg {
  transition: stroke 0.2s ease, color 0.2s ease !important;
}

/* Light mode hover state */
.jmtc-carousel-btn:hover:not(:disabled) svg,
body .jmtc-carousel-btn:hover:not(:disabled) svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Dark mode normal state */
[data-theme="dark"] .jmtc-carousel-btn svg,
body[data-theme="dark"] .jmtc-carousel-btn svg {
  color: #F2E9E4 !important;
  stroke: #F2E9E4 !important;
}

/* Dark mode hover state */
[data-theme="dark"] .jmtc-carousel-btn:hover:not(:disabled) svg,
body[data-theme="dark"] .jmtc-carousel-btn:hover:not(:disabled) svg {
  color: #22223B !important;
  stroke: #22223B !important;
}


/* ==========================================================================
   VISUAL POLISHES: HERO BUTTONS, THEME TOGGLES, WATCH LIVE CTAs
   ========================================================================== */

/* 1. Hero Buttons Styling */
.hero-cta-btn--solid,
body .hero-cta-btn--solid {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border: 1.5px solid #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-cta-btn--solid span,
body .hero-cta-btn--solid span {
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
}

.hero-cta-btn--solid svg,
body .hero-cta-btn--solid svg {
  color: #1C2938 !important;
  stroke: #1C2938 !important;
}

.hero-cta-btn--solid:hover,
body .hero-cta-btn--solid:hover {
  background-color: #1C2938 !important;
  color: #FFFFFF !important;
  border-color: #1C2938 !important;
}

.hero-cta-btn--solid:hover span,
body .hero-cta-btn--solid:hover span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.hero-cta-btn--solid:hover svg,
body .hero-cta-btn--solid:hover svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Outline Button */
.hero-cta-btn--outline,
body .hero-cta-btn--outline {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-cta-btn--outline span,
body .hero-cta-btn--outline span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.hero-cta-btn--outline svg,
body .hero-cta-btn--outline svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.hero-cta-btn--outline:hover,
body .hero-cta-btn--outline:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border-color: #FFFFFF !important;
}

.hero-cta-btn--outline:hover span,
body .hero-cta-btn--outline:hover span {
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
}

.hero-cta-btn--outline:hover svg,
body .hero-cta-btn--outline:hover svg {
  color: #1C2938 !important;
  stroke: #1C2938 !important;
}

/* In Dark Mode (Amber Gold Solid) */
[data-theme="dark"] .hero-cta-btn--solid,
body[data-theme="dark"] .hero-cta-btn--solid {
  background-color: #EEBA7B !important;
  color: #1C2938 !important;
  border-color: #EEBA7B !important;
}

[data-theme="dark"] .hero-cta-btn--solid span,
body[data-theme="dark"] .hero-cta-btn--solid span {
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
}

[data-theme="dark"] .hero-cta-btn--solid svg,
body[data-theme="dark"] .hero-cta-btn--solid svg {
  color: #1C2938 !important;
  stroke: #1C2938 !important;
}

[data-theme="dark"] .hero-cta-btn--solid:hover,
body[data-theme="dark"] .hero-cta-btn--solid:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border-color: #FFFFFF !important;
}

[data-theme="dark"] .hero-cta-btn--solid:hover span,
body[data-theme="dark"] .hero-cta-btn--solid:hover span {
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
}

[data-theme="dark"] .hero-cta-btn--solid:hover svg,
body[data-theme="dark"] .hero-cta-btn--solid:hover svg {
  color: #1C2938 !important;
  stroke: #1C2938 !important;
}


/* 2. Theme Segmented Toggle Pill & Watch Live Buttons */
.theme-icon-toggle,
body .theme-icon-toggle {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 9999px !important;
  padding: 4px !important;
  gap: 3px !important;
  transition: all 0.35s ease !important;
}

.grid-navbar.scrolled .theme-icon-toggle,
body .grid-navbar.scrolled .theme-icon-toggle {
  background: rgba(28, 41, 56, 0.08) !important;
  border-color: rgba(28, 41, 56, 0.18) !important;
}

[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle,
[data-theme="dark"] body .grid-navbar.scrolled .theme-icon-toggle,
body[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle {
  background: rgba(139, 160, 164, 0.18) !important;
  border-color: rgba(139, 160, 164, 0.4) !important;
}

.icon-toggle-option,
body .icon-toggle-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
    width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  padding: 0 !important;
}

.icon-toggle-option svg {
  stroke: currentColor !important;
}

.grid-navbar.scrolled .icon-toggle-option,
body .grid-navbar.scrolled .icon-toggle-option {
  color: rgba(28, 41, 56, 0.6) !important;
}

[data-theme="dark"] .grid-navbar.scrolled .icon-toggle-option,
body[data-theme="dark"] .grid-navbar.scrolled .icon-toggle-option {
  color: #8BA0A4 !important;
}

.icon-toggle-option.active,
body .icon-toggle-option.active {
  background: #FFFFFF !important;
  color: #1C2938 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .icon-toggle-option.active,
body[data-theme="dark"] .icon-toggle-option.active {
  background: #EAEAEA !important;
  color: #183E4B !important;
}

.icon-toggle-option:hover:not(.active),
body .icon-toggle-option:hover:not(.active) {
  color: #FFFFFF !important;
}

.grid-navbar.scrolled .icon-toggle-option:hover:not(.active),
body .grid-navbar.scrolled .icon-toggle-option:hover:not(.active) {
  color: #1C2938 !important;
}

[data-theme="dark"] .grid-navbar.scrolled .icon-toggle-option:hover:not(.active),
body[data-theme="dark"] .grid-navbar.scrolled .icon-toggle-option:hover:not(.active) {
  color: #EAEAEA !important;
}

/* Desktop Watch Live Button */
.nav-watch-live-btn,
body .nav-watch-live-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
}

.nav-watch-live-btn svg {
  display: inline-block !important;
  vertical-align: middle !important;
}

.nav-watch-live-btn:hover,
body .nav-watch-live-btn:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.grid-navbar.scrolled .nav-watch-live-btn,
body .grid-navbar.scrolled .nav-watch-live-btn {
  color: #1C2938 !important;
  background-color: rgba(28, 41, 56, 0.06) !important;
  border-color: rgba(28, 41, 56, 0.2) !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-watch-live-btn,
body[data-theme="dark"] .grid-navbar.scrolled .nav-watch-live-btn {
  color: #EAEAEA !important;
  background-color: rgba(234, 234, 234, 0.08) !important;
  border-color: rgba(139, 160, 164, 0.4) !important;
}

.grid-navbar.scrolled .nav-watch-live-btn:hover,
body .grid-navbar.scrolled .nav-watch-live-btn:hover {
  background-color: #1C2938 !important;
  color: #FFFFFF !important;
  border-color: #1C2938 !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-watch-live-btn:hover,
body[data-theme="dark"] .grid-navbar.scrolled .nav-watch-live-btn:hover {
  background-color: #EAEAEA !important;
  color: #183E4B !important;
  border-color: #EAEAEA !important;
}

@media (max-width: 767px) {
  .nav-watch-live-btn,
  body .nav-watch-live-btn {
    display: none !important;
  }
}

/* Mobile Watch Live Link inside Hamburger Drawer */
.mobile-watch-live-wrap {
  width: 100% !important;
  margin-top: 0.5rem !important;
  display: flex !important;
}

.mobile-watch-live-link,
body .mobile-watch-live-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 9999px !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  width: fit-content !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  margin: 0 auto !important;
}

.mobile-watch-live-link svg {
  display: inline-block !important;
  vertical-align: middle !important;
  flex: 0 0 auto !important;
}

.mobile-watch-live-link:hover,
body .mobile-watch-live-link:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .mobile-watch-live-link,
body:not([data-theme="dark"]) .mobile-watch-live-link {
  color: #1F2D3D !important;
  background-color: rgba(31, 45, 61, 0.06) !important;
  border-color: rgba(31, 45, 61, 0.2) !important;
}

[data-theme="light"] .mobile-watch-live-link:hover,
body:not([data-theme="dark"]) .mobile-watch-live-link:hover {
  background-color: #1F2D3D !important;
  color: #FFFFFF !important;
  border-color: #1F2D3D !important;
}

.mobile-menu-divider {
  height: 1px !important;
  background-color: rgba(152, 127, 105, 0.2) !important;
  margin: 0.5rem 0 !important;
}

[data-theme="dark"] .mobile-menu-divider {
  background-color: rgba(234, 234, 234, 0.15) !important;
}

/* High contrast links for Scrolled dark mode navbar link colors */
[data-theme="dark"] .grid-navbar.scrolled .nav-link {
  color: #EAEAEA !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-link:hover {
  background: rgba(234, 234, 234, 0.12) !important;
  color: #FFFFFF !important;
}


/* Premium Serif Typography overrides for Hero Section Title */
.hero-overlay-title,
body .hero-overlay-title {
  text-transform: none !important;
  font-family: var(--font-display, 'Lora', Georgia, serif) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}


/* ==========================================================================
   NETLIFY PHOTO-HERO AND INTEGRATED OVERLAY NAVBAR LAYOUT
   ========================================================================== */

/* 1. Full-Viewport photographic Hero layout */
.hero-full-section {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 0 12vh 6vw !important;
  overflow: hidden !important;
  background-color: #0B1622 !important;
  box-sizing: border-box !important;
}

.hero-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 25% !important;
  z-index: 0 !important;
}

/* Left-Side Concentrated Dark Gradient Overlay */
.hero-dark-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: 
    linear-gradient(180deg, rgba(8, 16, 26, 0.65) 0%, rgba(8, 16, 26, 0.18) 22%, transparent 40%),
    linear-gradient(90deg, 
      rgba(10, 20, 32, 0.95) 0%, 
      rgba(10, 20, 32, 0.88) 22%, 
      rgba(10, 20, 32, 0.55) 45%, 
      rgba(10, 20, 32, 0.15) 68%, 
      transparent 85%
    ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

[data-theme="dark"] .hero-dark-overlay {
  background: 
    linear-gradient(180deg, rgba(12, 18, 28, 0.75) 0%, rgba(12, 18, 28, 0.22) 22%, transparent 40%),
    linear-gradient(90deg, 
      rgba(12, 18, 28, 0.97) 0%, 
      rgba(12, 18, 28, 0.90) 22%, 
      rgba(12, 18, 28, 0.60) 45%, 
      rgba(12, 18, 28, 0.18) 68%, 
      transparent 85%
    ) !important;
}

.hero-content-wrap {
  position: relative !important;
  z-index: 2 !important;
  max-width: 580px !important;
  color: #FFFFFF !important;
  text-align: left !important;
}

.hero-eyebrow {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #C9ADA7 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin-bottom: 0.85rem !important;
}

.hero-eyebrow::after {
  content: '' !important;
  display: inline-block !important;
  width: 32px !important;
  height: 1px !important;
  background-color: rgba(201, 173, 167, 0.6) !important;
}

.hero-main-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem) !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.14 !important;
  margin-bottom: 1.15rem !important;
  letter-spacing: -0.015em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.hero-title-line {
  display: inline-block !important;
  white-space: nowrap !important;
}

.hero-description {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.6 !important;
  margin-bottom: 2.25rem !important;
  max-width: 460px !important;
}

.hero-cta-group {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.hero-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.8rem 1.65rem !important;
  border-radius: var(--radius-pill) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.hero-pill-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.2 !important;
}

.hero-pill-primary {
  background-color: #EAE7E1 !important;
  color: #1C2938 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.hero-pill-primary:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.hero-pill-secondary {
  background-color: rgba(255, 255, 255, 0.10) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.40) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.hero-pill-secondary:hover {
  background-color: #FFFFFF !important;
  color: #1C2938 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .hero-pill-primary {
  background-color: #F4F2EE !important;
  color: #1C2938 !important;
}

/* 2. Integrated Overlay Navigation styles from Netlify */
.grid-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.65) 0%, rgba(8, 16, 26, 0.2) 80%, transparent 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), 
              padding 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

[data-theme="dark"] .grid-navbar {
  background: linear-gradient(180deg, rgba(24, 62, 75, 0.92) 0%, rgba(24, 62, 75, 0.4) 80%, transparent 100%) !important;
  border-bottom-color: rgba(139, 160, 164, 0.3) !important;
}

.grid-navbar.scrolled {
  background: #FFF9E8 !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .grid-navbar.scrolled {
  background: #183E4B !important;
  border-bottom: none !important;
  border-bottom-color: transparent !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.grid-navbar.scrolled .nav-grid-container {
  padding: 0.85rem 3.5rem !important;
}

.grid-navbar.scrolled .brand-name {
  color: #1F2D3D !important;
}

[data-theme="dark"] .grid-navbar.scrolled .brand-name {
  color: #EAEAEA !important;
}

.grid-navbar.scrolled .brand-logo::after {
  background-color: rgba(152, 127, 105, 0.25) !important;
}

[data-theme="dark"] .grid-navbar.scrolled .brand-logo::after {
  background-color: rgba(139, 160, 164, 0.4) !important;
}

.grid-navbar.scrolled .nav-link {
  color: #1F2D3D !important;
  text-shadow: none !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-link {
  color: #EAEAEA !important;
}

.grid-navbar.scrolled .nav-link:hover,
.grid-navbar.scrolled .nav-link.active {
  color: #1F2D3D !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-link:hover,
[data-theme="dark"] .grid-navbar.scrolled .nav-link.active {
  color: #EAEAEA !important;
}

.grid-navbar.scrolled .nav-link.active::after {
  background-color: #E3AD40 !important;
}

[data-theme="dark"] .grid-navbar.scrolled .nav-link.active::after {
  background-color: #D74449 !important;
}

/* 3. Responsive Overrides */
@media (max-width: 1024px) {
  .hero-full-section {
    padding: 0 0 10vh 4vw !important;
  }
}

@media (max-width: 767px) {
  .hero-full-section {
    height: 88svh !important;
    min-height: 85svh !important;
    max-height: 850px !important;
    padding: 5.5rem 1.25rem 2.25rem 1.25rem !important;
    justify-content: flex-end !important;
  }
  .hero-bg-img {
    object-position: 70% 12% !important;
  }
  .hero-dark-overlay {
    background: linear-gradient(180deg, 
      rgba(8, 16, 26, 0.45) 0%, 
      rgba(8, 16, 26, 0.05) 30%, 
      rgba(6, 14, 24, 0.22) 48%, 
      rgba(6, 12, 20, 0.80) 68%, 
      rgba(6, 12, 20, 0.95) 90%, 
      rgba(6, 12, 20, 0.98) 100%
    ) !important;
  }
  [data-theme="dark"] .hero-dark-overlay {
    background: linear-gradient(180deg, 
      rgba(8, 16, 26, 0.55) 0%, 
      rgba(8, 16, 26, 0.10) 30%, 
      rgba(6, 14, 24, 0.30) 48%, 
      rgba(6, 12, 20, 0.85) 68%, 
      rgba(6, 12, 20, 0.97) 90%, 
      rgba(6, 12, 20, 0.99) 100%
    ) !important;
  }
  .hero-content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-eyebrow {
    font-size: 11.5px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 0.65rem !important;
    color: #E3AD40 !important;
    gap: 0.65rem !important;
  }
  .hero-eyebrow::after {
    width: 28px !important;
    height: 1.5px !important;
    background-color: #E3AD40 !important;
  }
  .hero-main-title {
    font-size: clamp(1.75rem, 7.5vw, 1.95rem) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.18 !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
  }
  .hero-title-line {
    display: inline !important;
    white-space: normal !important;
  }
  .hero-description {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 330px !important;
  }
  .hero-cta-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 1.25rem !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    gap: 0.5rem !important;
  }
  .hero-pill-primary {
    background-color: #F2B755 !important;
    color: #1C2938 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  }
  [data-theme="dark"] .hero-pill-primary {
    background-color: #F2B755 !important;
    color: #1C2938 !important;
  }
  .hero-pill-secondary {
    background-color: rgba(10, 20, 32, 0.55) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(242, 183, 85, 0.7) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
  .hero-pill-btn svg {
    width: 15px !important;
    height: 15px !important;
    stroke-width: 2.2 !important;
  }
}


/* ==========================================================================
   NETLIFY INTEGRATED NAVBAR SPACING AND ALIGNMENT OVERRIDES
   ========================================================================== */

.nav-grid-container,
body .nav-grid-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 1.15rem 3.5rem !important;
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.nav-grid-cell,
body .nav-grid-cell {
  display: flex !important;
  align-items: center !important;
}

.nav-grid-brand,
body .nav-grid-brand {
  display: flex !important;
  align-items: center !important;
}

.brand-logo,
body .brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  text-decoration: none !important;
  position: relative !important;
  padding-right: 1.5rem !important;
  background: transparent !important;
  border: none !important;
}

.brand-logo::after,
body .brand-logo::after {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1px !important;
  height: 28px !important;
  background-color: rgba(255, 255, 255, 0.3) !important;
  transition: background-color 0.35s ease !important;
  display: block !important;
}

.brand-logo-img,
body .brand-logo-img {
  height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

.brand-name,
body .brand-name {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: #FFFFFF !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  transition: color 0.35s ease !important;
}

.nav-grid-menu,
body .nav-grid-menu {
  flex-grow: 1 !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 2rem !important;
}

.nav-menu,
body .nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-link,
body .nav-link {
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  position: relative !important;
  padding: 0.35rem 0 !important;
  transition: color 0.35s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  background: transparent !important;
  border: none !important;
}

.nav-link:hover,
body .nav-link:hover,
.nav-link.active,
body .nav-link.active {
  color: #F4F2EE !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
}

.nav-link.active::after,
body .nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #FFFFFF !important;
  transition: background-color 0.35s ease !important;
}

.nav-grid-actions,
body .nav-grid-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
}

/* Make sure dropdown chevron styling aligns well */
.dropdown-chevron {
  transition: transform 0.25s ease !important;
}

.nav-item:hover .dropdown-chevron {
  transform: rotate(180deg) !important;
}

/* Ensure hamburger menu button doesn't look broken */
.hamburger-toggle,
body .hamburger-toggle {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  color: #FFFFFF !important;
  padding: 0.25rem !important;
  transition: color 0.35s ease !important;
  display: none !important;
}

@media (max-width: 1024px) {
  .nav-grid-container,
  body .nav-grid-container {
    padding: 1rem 2rem !important;
  }
}

@media (max-width: 1080px) {
  .nav-grid-menu,
  body .nav-grid-menu {
    display: none !important;
  }
  .hamburger-toggle,
  body .hamburger-toggle {
    display: inline-flex !important;
  }
}


/* ==========================================================================
   HIGH-SPECIFICITY OVERRIDES FOR NETLIFY NAVBAR FLEXBOX LAYOUT
   ========================================================================== */

html body header.grid-navbar .nav-grid-container,
html body .grid-navbar .nav-grid-container,
body.home-page .grid-navbar .nav-grid-container,
body:has(#hero.split-hero-section) .grid-navbar .nav-grid-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 1400px !important;
  min-height: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 1.15rem 3.5rem !important;
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Scrolled navigation container padding */
html body header.grid-navbar.scrolled .nav-grid-container,
html body .grid-navbar.scrolled .nav-grid-container {
  padding: 0.85rem 3.5rem !important;
}

html body header.grid-navbar .nav-grid-cell,
html body .grid-navbar .nav-grid-cell {
  display: flex !important;
  align-items: center !important;
  grid-column: auto !important;
  width: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body header.grid-navbar .nav-grid-brand,
html body .grid-navbar .nav-grid-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-grow: 0 !important;
}

html body header.grid-navbar .nav-grid-menu,
html body .grid-navbar .nav-grid-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-grow: 1 !important;
  padding: 0 2rem !important;
}

html body header.grid-navbar .nav-grid-actions,
html body .grid-navbar .nav-grid-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-grow: 0 !important;
  gap: 1.25rem !important;
}

html body .grid-navbar .nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .grid-navbar .nav-link {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  position: relative !important;
  padding: 0.35rem 0 !important;
  transition: color 0.35s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

html body .grid-navbar .nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #FFFFFF !important;
  transition: background-color 0.35s ease !important;
  border-radius: 0 !important;
}

/* Light theme / scrolled link color overrides */
html body .grid-navbar.scrolled .nav-link {
  color: #1F2D3D !important;
}

html body .grid-navbar.scrolled .nav-link.active::after {
  background-color: #E3AD40 !important;
}

[data-theme="dark"] html body .grid-navbar.scrolled .nav-link.active::after {
  background-color: #D74449 !important;
}

[data-theme="dark"] html body .grid-navbar.scrolled .nav-link {
  color: #EAEAEA !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  html body header.grid-navbar .nav-grid-container,
  html body .grid-navbar .nav-grid-container {
    padding: 1rem 2rem !important;
  }
  html body header.grid-navbar.scrolled .nav-grid-container,
  html body .grid-navbar.scrolled .nav-grid-container {
    padding: 0.85rem 2rem !important;
  }
}

@media (max-width: 767px) {
  html body header.grid-navbar .nav-grid-menu,
  html body .grid-navbar .nav-grid-menu {
    display: none !important;
  }
}


/* Specific layout polishes: hide old toggles and force scrolled warm cream background */
#themeToggleBtn,
.theme-toggle-btn,
button#themeToggleBtn {
  display: none !important;
}

html body header.grid-navbar.scrolled,
html body .grid-navbar.scrolled,
body.home-page header.grid-navbar.scrolled,
body.home-page .grid-navbar.scrolled {
  background-color: #FFF9E8 !important;
  background: #FFF9E8 !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(31, 45, 61, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] html body header.grid-navbar.scrolled,
[data-theme="dark"] html body .grid-navbar.scrolled,
[data-theme="dark"] body.home-page header.grid-navbar.scrolled,
[data-theme="dark"] body.home-page .grid-navbar.scrolled {
  background-color: #183E4B !important;
  background: #183E4B !important;
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}





/* ============================================================
   ★ NUCLEAR NAVBAR OVERRIDE — MUST BE LAST IN FILE ★
   Beats every legacy grid-template-columns rule above.
   ============================================================ */

.nav-grid-container,
.grid-navbar .nav-grid-container,
header .nav-grid-container,
.site-header .nav-grid-container,
html body .nav-grid-container,
html body .grid-navbar .nav-grid-container,
html body header .nav-grid-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: unset !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 2.5rem !important;
  /* kill every grid property */
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid: none !important;
  box-sizing: border-box !important;
}

/* Brand — left, never shrinks */
.nav-grid-container .nav-grid-brand,
html body .nav-grid-container .nav-grid-brand {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  padding: 1.1rem 0 !important;
}

/* Menu — grows to fill center */
.nav-grid-container .nav-grid-menu,
html body .nav-grid-container .nav-grid-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  padding: 0 2rem !important;
  overflow: visible !important;
}

/* Actions — right, never shrinks */
.nav-grid-container .nav-grid-actions,
html body .nav-grid-container .nav-grid-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  gap: 1.25rem !important;
  padding: 1.1rem 0 !important;
}

/* Scrolled: slightly less vertical padding */
.grid-navbar.scrolled .nav-grid-container,
html body .grid-navbar.scrolled .nav-grid-container {
  padding: 0 3.5rem !important;
}

.grid-navbar.scrolled .nav-grid-container .nav-grid-brand,
.grid-navbar.scrolled .nav-grid-container .nav-grid-actions {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

/* Tablet: shrink side padding */
@media (max-width: 1100px) {
  .nav-grid-container,
  html body .nav-grid-container {
    padding: 0 1.5rem !important;
    grid-template-columns: none !important;
  }
}

/* Mobile: hide center menu, show hamburger */
@media (max-width: 800px) {
  .nav-grid-container .nav-grid-menu,
  html body .nav-grid-container .nav-grid-menu {
    display: none !important;
  }
  .hamburger-toggle {
    display: flex !important;
  }
}

/* ============================================================
   COMMUNITY — CHURCH LIFE & MINISTRIES (Netlify-style slider)
   ============================================================ */

.min-section {
  background: #FEF8E7;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
[data-theme='dark'] .min-section { background: #1e1a10; }

.min-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.min-header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.min-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #C08B28;
  text-transform: uppercase;
}
.min-eyebrow-dot { font-size: 0.55rem; color: #C08B28; line-height: 1; }
.min-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #1C2011;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.25;
}
[data-theme='dark'] .min-title { color: #F5EDD5; }
.min-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #5A5A4A;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}
[data-theme='dark'] .min-subtitle { color: #B0A882; }

.min-card {
  display: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,0.09);
  background: #fff;
  min-height: 360px;
}
.min-card--active { display: flex; }
[data-theme='dark'] .min-card { background: #2a2416; }

.min-card-left {
  flex: 0 0 42%;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.min-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #C08B28;
  text-transform: uppercase;
  background: rgba(192,139,40,0.1);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.1rem;
  width: fit-content;
}
.min-card-tag svg { flex-shrink: 0; }
[data-theme='dark'] .min-card-tag { background: rgba(192,139,40,0.18); }

.min-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #1C2011;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}
[data-theme='dark'] .min-card-title { color: #F5EDD5; }

.min-card-rule {
  width: 36px;
  height: 3px;
  background: #C08B28;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.min-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #4A4A3A;
  line-height: 1.7;
  margin: 0 0 1.6rem;
}
[data-theme='dark'] .min-card-desc { color: #A0957A; }

.min-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  background: #C08B28;
  color: #fff;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.22s ease, transform 0.18s ease;
}
.min-card-btn:hover { background: #A37520; transform: translateX(3px); }

.min-card-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.min-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.min-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.min-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.18);
  background: #fff;
  color: #1C2011;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.min-nav-arrow:hover { background: #C08B28; color: #fff; border-color: #C08B28; }
.min-nav-track {
  flex: 1;
  max-width: 160px;
  height: 3px;
  background: rgba(0,0,0,0.12);
  border-radius: 9999px;
  overflow: hidden;
}
[data-theme='dark'] .min-nav-track { background: rgba(255,255,255,0.12); }
.min-nav-fill {
  height: 100%;
  background: #C08B28;
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

@media (max-width: 680px) {
  .min-card--active { flex-direction: column; }
  .min-card-left { flex: none; padding: 1.75rem; }
  .min-card-right {
    flex: none;
    width: 100%;
    height: 240px;
    min-height: 240px;
  }
}

[data-theme='dark'] .min-nav-arrow { background: #2a2416; border-color: rgba(255,255,255,0.2); color: #F5EDD5; }
[data-theme='dark'] .min-nav-arrow:hover { background: #C08B28; border-color: #C08B28; color: #fff; }
.min-nav-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4A4A3A;
  min-width: 20px;
  text-align: center;
}
[data-theme='dark'] .min-nav-num { color: #A0957A; }

/* ── OVERRIDING CARDS PHOTO FORMATTING FIX FOR ALL SLIDES ── */
.min-card {
  align-items: stretch !important;
}
.min-card-right {
  flex: 1 !important;
  position: relative !important;
  overflow: hidden !important;
  align-self: stretch !important;
  min-height: 360px !important;
}
.min-card-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 680px) {
  .min-card-right {
    flex: none !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
  }
}

/* ── STANDARD FIXED HEIGHT FOR SLIDER CARDS (DESKTOP) ── */
@media (min-width: 681px) {
  .min-card {
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
    align-items: stretch !important;
  }
  .min-card-left {
    height: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
  }
  .min-card-right {
    height: 100% !important;
    flex: 1 !important;
    position: relative !important;
    align-self: stretch !important;
  }
  .min-card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* ── ADJUST WRAPPER WIDTH TO MATCH NETLIFY WIDE ASPECT RATIO ── */
.min-wrapper {
  max-width: 1140px !important;
}

/* ── OVERRIDE STAY CONNECTED CAROUSEL ARROWS POSITION & STYLE ── */
@media (min-width: 768px) {
  .stay-connected-container {
    position: relative !important;
  }
  .stay-connected-header-left {
    position: relative !important;
    margin-bottom: 2.75rem !important;
  }
  .panel-header-row {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .mag-carousel-controls {
    position: absolute !important;
    bottom: -8px !important; /* Align perfectly with category navigation tab line */
    right: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    display: flex !important;
    gap: 0.5rem !important;
    z-index: 100 !important;
    pointer-events: auto !important;
  }
  .mag-arrow-btn {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    background-color: #E2E8F0 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #4A5568 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .mag-arrow-btn:hover {
    background-color: #CBD5E0 !important;
    color: #2D3748 !important;
  }
  .mag-arrow-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
  }

  [data-theme='dark'] .mag-arrow-btn {
    background-color: #2D3748 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #A0AEC0 !important;
  }
  [data-theme='dark'] .mag-arrow-btn:hover {
    background-color: #4A5568 !important;
    color: #F7FAFC !important;
  }
}

@media (max-width: 767px) {
  .mag-carousel-controls {
    display: none !important;
  }
}

/* ── REDUCE PADDING ABOVE AND BELOW STAY CONNECTED SECTION ── */
@media (min-width: 768px) {
  .stay-connected-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .stay-connected-viewport {
    padding-top: 3.5rem !important;
    padding-bottom: 3rem !important;
  }
}

/* ── GALLERY FILTER TABS LIGHT & DARK MODE OVERRIDES ── */
.gallery-filter-tabs .filter-tab {
  background: #E2E8F0 !important; /* Light mode inactive tab background */
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #4A5568 !important; /* Light mode text */
  padding: 10px 22px !important;
  border-radius: 99px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
}

.gallery-filter-tabs .filter-tab:hover {
  background: #CBD5E0 !important;
  color: #2D3748 !important;
}

.gallery-filter-tabs .filter-tab.active {
  background: #C08B28 !important; /* Gold/brown active accent color */
  color: #FFFFFF !important;
  border-color: #C08B28 !important;
}

[data-theme='dark'] .gallery-filter-tabs .filter-tab {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E2E8F0 !important;
}

[data-theme='dark'] .gallery-filter-tabs .filter-tab:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}

[data-theme='dark'] .gallery-filter-tabs .filter-tab.active {
  background: #C08B28 !important;
  color: #FFFFFF !important;
  border-color: #C08B28 !important;
}

/* ── LIGHT MODE CARD TEXT COLOR RECOVERY FOR JMTC-CARDS ── */
.jmtc-card .jmtc-gallery-title a,
.jmtc-card .jmtc-gallery-title,
.jmtc-card .jmtc-gallery-title-link {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}
.jmtc-card .jmtc-gallery-sub {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
}

[data-theme='dark'] .jmtc-card .jmtc-gallery-title a,
[data-theme='dark'] .jmtc-card .jmtc-gallery-title,
[data-theme='dark'] .jmtc-card .jmtc-gallery-title-link {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
[data-theme='dark'] .jmtc-card .jmtc-gallery-sub {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

/* ── LIGHT MODE CARD TEXT & ACTION BUTTON RECOVERY FOR ALL MINISTRIES ── */
.jmtc-card .jmtc-gallery-title a,
.jmtc-card .jmtc-gallery-title,
.jmtc-card .jmtc-gallery-title-link,
.jmtc-card .jmtc-event-title,
.jmtc-card .jmtc-event-title a,
.jmtc-card .jmtc-event-title-link {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

.jmtc-card .jmtc-gallery-sub,
.jmtc-card .jmtc-event-meta,
.jmtc-card .jmtc-event-meta-item,
.jmtc-card .jmtc-event-meta-item span {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

.jmtc-card .jmtc-event-btn,
.jmtc-card .jmtc-event-btn span {
  color: #C08B28 !important;
  -webkit-text-fill-color: #C08B28 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
.jmtc-card .jmtc-event-btn:hover {
  color: #A37520 !important;
  -webkit-text-fill-color: #A37520 !important;
}

/* ── DARK MODE CARD TEXT & ACTION BUTTON RESTORATION FOR ALL MINISTRIES ── */
[data-theme='dark'] .jmtc-card .jmtc-gallery-title a,
[data-theme='dark'] .jmtc-card .jmtc-gallery-title,
[data-theme='dark'] .jmtc-card .jmtc-gallery-title-link,
[data-theme='dark'] .jmtc-card .jmtc-event-title,
[data-theme='dark'] .jmtc-card .jmtc-event-title a,
[data-theme='dark'] .jmtc-card .jmtc-event-title-link {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

[data-theme='dark'] .jmtc-card .jmtc-gallery-sub,
[data-theme='dark'] .jmtc-card .jmtc-event-meta,
[data-theme='dark'] .jmtc-card .jmtc-event-meta-item,
[data-theme='dark'] .jmtc-card .jmtc-event-meta-item span {
  color: #F2E9E4 !important;
  -webkit-text-fill-color: #F2E9E4 !important;
}

[data-theme='dark'] .jmtc-card .jmtc-event-btn,
[data-theme='dark'] .jmtc-card .jmtc-event-btn span {
  color: #F2C572 !important;
  -webkit-text-fill-color: #F2C572 !important;
}
[data-theme='dark'] .jmtc-card .jmtc-event-btn:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* ── COMPREHENSIVE OVERRIDES FOR .section-dark CARDS IN LIGHT MODE ── */
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title a,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title-link,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title a,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title-link,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title a,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-title-link,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title a,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-title-link {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
  text-shadow: none !important;
}

body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-sub,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta-item,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta-item span,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-gallery-sub,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta-item,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-meta-item span {
  color: #4A4E69 !important;
  -webkit-text-fill-color: #4A4E69 !important;
  text-shadow: none !important;
}

body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-btn,
body:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-btn span,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-btn,
html:not([data-theme="dark"]) .section-dark .jmtc-card .jmtc-event-btn span {
  color: #C08B28 !important;
  -webkit-text-fill-color: #C08B28 !important;
  text-shadow: none !important;
}

/* ── LIGHT MODE SUBPAGE THEME TOGGLE ACCESSIBILITY RECOVERY ── */
html:not([data-theme="dark"]) body:not(.home-page) .icon-toggle-option,
body:not([data-theme="dark"]):not(.home-page) .icon-toggle-option {
  color: rgba(28, 41, 56, 0.6) !important;
  -webkit-text-fill-color: rgba(28, 41, 56, 0.6) !important;
}

html:not([data-theme="dark"]) body:not(.home-page) .icon-toggle-option:hover:not(.active),
body:not([data-theme="dark"]):not(.home-page) .icon-toggle-option:hover:not(.active) {
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
}

html:not([data-theme="dark"]) body:not(.home-page) .grid-navbar:not(.scrolled) .theme-icon-toggle,
body:not([data-theme="dark"]):not(.home-page) .grid-navbar:not(.scrolled) .theme-icon-toggle {
  background: rgba(28, 41, 56, 0.08) !important;
  border-color: rgba(28, 41, 56, 0.15) !important;
}

/* ============================================================
   ★ PREMIUM MOBILE CAROUSEL & DOT LAYOUT POLISHES ★
   ============================================================ */

/* Carousel Dot Indicators Visual Fix */
.hero-carousel-progress,
.mag-mobile-progress,
.bearers-mobile-controls,
.bearers-counter,
.vicars-section .gallery-progress,
.jmtc-mobile-progress,
.bearers-carousel-progress-wrap,
#bearersMobileControls {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 1.5rem auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.hero-dot,
.mag-dot,
.bearers-dot,
.jmtc-dot {
  min-height: 0 !important;
  min-width: 0 !important;
  height: 8px !important;
  width: 8px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.bearers-dot {
  height: 10px !important;
  width: 10px !important;
}

/* ============================================================
   ★ HAMBURGER CONTRAST & RESPONSIVE COLLAPSE POLISHES ★
   ============================================================ */

@media (max-width: 1080px) {
  .brand-logo::after {
    display: none !important;
  }
}

/* Unscrolled homepage header: white hamburger on transparent background (contrasts with dark image) */
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle,
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Scrolled homepage / other pages header: dark blue hamburger on cream background */
.grid-navbar.scrolled .hamburger-toggle,
.grid-navbar.scrolled .hamburger-toggle svg,
body:not(.home-page) .grid-navbar .hamburger-toggle,
body:not(.home-page) .grid-navbar .hamburger-toggle svg {
  color: #22223B !important;
  stroke: #22223B !important;
}

/* Dark theme overrides */
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle,
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle svg,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* ============================================================
   ★ PREMIUM NETLIFY-STYLE SLIDE-IN SIDEBAR DRAWER ★
   ============================================================ */

body.mobile-nav-open {
  overflow: hidden !important;
}

body.mobile-nav-open::after {
  content: '' !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(18, 18, 22, 0.55) !important;
  z-index: 900 !important; /* Below fixed header (1000) so drawer stays clickable */
  opacity: 1 !important;
  transition: opacity 0.35s ease !important;
  pointer-events: auto !important;
}

/* Drawer container */
.mobile-menu-drawer,
body .mobile-menu-drawer,
.mobile-nav-drawer,
body .mobile-nav-drawer {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(320px, 100vw) !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #FFFFFF !important;
  box-shadow: -8px 0 32px rgba(34, 34, 59, 0.15) !important;
  z-index: 9999 !important; /* Highest priority */
  transform: translateX(100%) !important;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 2.5rem 1.75rem !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  overflow-y: auto !important;
  opacity: 1 !important; /* Always fully opaque container */
}

/* Open state */
.mobile-menu-drawer.open,
.mobile-menu-drawer.active,
.mobile-nav-drawer.open,
.mobile-nav-drawer.active {
  transform: translateX(0) !important;
}

/* Dark mode drawer background */
[data-theme="dark"] .mobile-menu-drawer,
[data-theme="dark"] .mobile-nav-drawer,
body[data-theme="dark"] .mobile-menu-drawer,
body[data-theme="dark"] .mobile-nav-drawer {
  background: #111115 !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45) !important;
}

/* Drawer typography and items layout */
.mobile-menu-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  margin-top: 1.5rem !important;
}

.mobile-menu-list > li > .nav-link,
.mobile-menu-list > li > a,
.mobile-accordion-trigger {
  font-family: var(--font-ui), sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #22223B !important;
  text-decoration: none !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid rgba(34, 34, 59, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

[data-theme="dark"] .mobile-menu-list > li > .nav-link,
[data-theme="dark"] .mobile-menu-list > li > a,
[data-theme="dark"] .mobile-accordion-trigger {
  color: #F8F5F2 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* Sub-links styling */
.mobile-accordion-panel {
  padding-left: 1rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  margin-top: 0.25rem !important;
}

.mobile-sublink {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #4A4E69 !important;
  padding: 0.5rem 0 !important;
}

[data-theme="dark"] .mobile-sublink {
  color: #C9ADA7 !important;
}

/* ============================================================
   ★ MOBILIZATION & TRANSPARENCY CONTRAST OVERRIDES ★
   ============================================================ */

/* 1. Force the mobile navbar to be fixed position, not sticky, and transparent by default */
@media (max-width: 1080px) {
  .grid-navbar,
  body .grid-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 72px !important;
    background: transparent !important; /* start transparent */
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Scrolled header: light mode warm cream background */
  .grid-navbar.scrolled,
  body .grid-navbar.scrolled {
    background: rgba(255, 249, 232, 0.96) !important; /* #FFF9E8 */
    border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
    box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  /* Scrolled header: dark mode background */
  [data-theme="dark"] .grid-navbar.scrolled,
  [data-theme="dark"] body .grid-navbar.scrolled {
    background: rgba(24, 62, 75, 0.96) !important; /* #183E4B */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
  }

  /* Subpages: always have background since they don't have hero images */
  body:not(.home-page) .grid-navbar,
  body:not(.home-page) body .grid-navbar {
    background: #FFF9E8 !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
    box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important;
  }

  [data-theme="dark"] body:not(.home-page) .grid-navbar,
  [data-theme="dark"] body:not(.home-page) body .grid-navbar {
    background: #183E4B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* 2. Color contrast overrides for hamburger toggle and theme toggles */

/* Homepage Unscrolled state (header transparent over dark image): elements are white */
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle,
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle svg,
body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle .icon-toggle-option svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Homepage Scrolled state / Subpages (header cream colored): elements are dark blue */
.grid-navbar.scrolled .hamburger-toggle,
.grid-navbar.scrolled .hamburger-toggle svg,
body:not(.home-page) .grid-navbar .hamburger-toggle,
body:not(.home-page) .grid-navbar .hamburger-toggle svg,
.grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
  color: #22223B !important;
  stroke: #22223B !important;
}
.grid-navbar.scrolled .theme-icon-toggle,
body:not(.home-page) .grid-navbar .theme-icon-toggle {
  background: rgba(34, 34, 59, 0.08) !important;
  border-color: rgba(34, 34, 59, 0.18) !important;
}

/* Scrolled state / Subpages in Dark Mode (header dark blue): elements are white */
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle,
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle svg,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle svg,
[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
[data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle,
[data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Brand logo title color adjustments */
body.home-page .grid-navbar:not(.scrolled) .brand-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
.grid-navbar.scrolled .brand-name,
body:not(.home-page) .grid-navbar .brand-name {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}
[data-theme="dark"] .grid-navbar.scrolled .brand-name,
[data-theme="dark"] body:not(.home-page) .grid-navbar .brand-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Segmented Toggle Option Background Highlight fix */
.theme-icon-toggle .icon-toggle-option.active,
body .theme-icon-toggle .icon-toggle-option.active {
  background: #FFFFFF !important;
}
[data-theme="dark"] .theme-icon-toggle .icon-toggle-option.active,
[data-theme="dark"] body .theme-icon-toggle .icon-toggle-option.active {
  background: #C08B28 !important;
}

/* SVG Color Inheritance Override inside segmented toggle */
.theme-icon-toggle .icon-toggle-option svg,
body .theme-icon-toggle .icon-toggle-option svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

/* ============================================================
   ★ MOBILIZATION & TRANSPARENCY CONTRAST OVERRIDES (FINAL) ★
   ============================================================ */

/* 1. Force the mobile navbar to be fixed position, not sticky, and transparent by default */
@media (max-width: 1080px) {
  html body .grid-navbar,
  body .grid-navbar,
  .grid-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 72px !important;
    background: transparent !important; /* start transparent */
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Scrolled header: light mode warm cream background */
  html body .grid-navbar.scrolled,
  body .grid-navbar.scrolled {
    background: rgba(255, 249, 232, 0.96) !important; /* #FFF9E8 */
    border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
    box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  /* Scrolled header: dark mode background */
  [data-theme="dark"] html body .grid-navbar.scrolled,
  [data-theme="dark"] body .grid-navbar.scrolled {
    background: rgba(24, 62, 75, 0.96) !important; /* #183E4B */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
  }

  /* Subpages: always have background since they don't have hero images */
  body:not(.home-page) .grid-navbar,
  body:not(.home-page) body .grid-navbar,
  html body:not(.home-page) .grid-navbar {
    background: #FFF9E8 !important;
    border-bottom: 1px solid rgba(34, 34, 59, 0.1) !important;
    box-shadow: 0 10px 28px rgba(34, 34, 59, 0.08) !important;
  }

  [data-theme="dark"] body:not(.home-page) .grid-navbar,
  [data-theme="dark"] body:not(.home-page) body .grid-navbar,
  [data-theme="dark"] html body:not(.home-page) .grid-navbar {
    background: #183E4B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* 2. Color contrast overrides for hamburger toggle and theme toggles */

/* Homepage Unscrolled state (header transparent over dark image): elements are white */
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle,
body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle svg,
body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle .icon-toggle-option svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Homepage Scrolled state / Subpages (header cream colored): elements are dark blue */
.grid-navbar.scrolled .hamburger-toggle,
.grid-navbar.scrolled .hamburger-toggle svg,
body:not(.home-page) .grid-navbar .hamburger-toggle,
body:not(.home-page) .grid-navbar .hamburger-toggle svg,
.grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
  color: #22223B !important;
  stroke: #22223B !important;
}
.grid-navbar.scrolled .theme-icon-toggle,
body:not(.home-page) .grid-navbar .theme-icon-toggle {
  background: rgba(34, 34, 59, 0.08) !important;
  border-color: rgba(34, 34, 59, 0.18) !important;
}

/* Scrolled state / Subpages in Dark Mode (header dark blue): elements are white */
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle,
[data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle svg,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle,
[data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle svg,
[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
[data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
[data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle,
[data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Brand logo title color adjustments */
body.home-page .grid-navbar:not(.scrolled) .brand-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
.grid-navbar.scrolled .brand-name,
body:not(.home-page) .grid-navbar .brand-name {
  color: #22223B !important;
  -webkit-text-fill-color: #22223B !important;
}
[data-theme="dark"] .grid-navbar.scrolled .brand-name,
[data-theme="dark"] body:not(.home-page) .grid-navbar .brand-name {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* 3. Hide vertical divider line and show actions on mobile */
@media (max-width: 1080px) {
  /* Force container to show flex items */
  html body .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0.65rem 1.25rem !important;
  }

  /* Force brand log block */
  html body .grid-navbar .nav-grid-brand,
  body .grid-navbar .nav-grid-brand {
    display: block !important;
    flex: 0 1 auto !important;
  }

  /* Hide vertical line on mobile completely */
  html body .grid-navbar .brand-logo::after,
  body .grid-navbar .brand-logo::after,
  .brand-logo::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Force container to show flex items and take full width */
  html body .grid-navbar .nav-grid-container,
  body .grid-navbar .nav-grid-container,
  .grid-navbar .nav-grid-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.5rem 1.25rem !important;
    box-sizing: border-box !important;
    gap: 12px !important;
  }

  /* Force brand logo cell width limits */
  html body .grid-navbar .nav-grid-brand,
  body .grid-navbar .nav-grid-brand,
  .grid-navbar .nav-grid-brand {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 150px) !important; /* reserve space for actions cell */
  }

  /* Force actions block display */
  html body .grid-navbar .nav-grid-actions,
  body .grid-navbar .nav-grid-actions,
  .grid-navbar .nav-grid-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
  }

  /* Force hamburger display and make it a premium circular button */
  html body .grid-navbar .hamburger-toggle,
  body .grid-navbar .hamburger-toggle,
  .hamburger-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 101 !important;
    transition: all 0.25s ease !important;
  }

  /* Force segmented toggle display */
  html body .grid-navbar .theme-icon-toggle,
  body .grid-navbar .theme-icon-toggle,
  .theme-icon-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
        height: 44px !important;
    border-radius: 9999px !important;
    padding: 4px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 101 !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
  }

  /* Mobile Header Actions Contrast Styles (Premium Floating Buttons) */
  /* 1. Unscrolled homepage (transparent background) over light sky/dark trees */
  body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
  }
  body.home-page .grid-navbar:not(.scrolled) .hamburger-toggle svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
  }
  body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle .icon-toggle-option svg {
    color: rgba(255, 255, 255, 0.7) !important;
    stroke: rgba(255, 255, 255, 0.7) !important;
  }
  body.home-page .grid-navbar:not(.scrolled) .theme-icon-toggle .icon-toggle-option.active svg {
    color: #C08B28 !important;
    stroke: #C08B28 !important;
  }

  /* 2. Scrolled homepage / Subpages (Light mode cream background) */
  .grid-navbar.scrolled .hamburger-toggle,
  body:not(.home-page) .grid-navbar .hamburger-toggle {
    background: rgba(34, 34, 59, 0.07) !important;
    border: 1px solid rgba(34, 34, 59, 0.14) !important;
    color: #22223B !important;
  }
  .grid-navbar.scrolled .hamburger-toggle svg,
  body:not(.home-page) .grid-navbar .hamburger-toggle svg {
    color: #22223B !important;
    stroke: #22223B !important;
  }
  .grid-navbar.scrolled .theme-icon-toggle,
  body:not(.home-page) .grid-navbar .theme-icon-toggle {
    background: rgba(34, 34, 59, 0.07) !important;
    border: 1px solid rgba(34, 34, 59, 0.14) !important;
  }
  .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
  body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
    color: rgba(34, 34, 59, 0.6) !important;
    stroke: rgba(34, 34, 59, 0.6) !important;
  }
  .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option.active svg,
  body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option.active svg {
    color: #22223B !important;
    stroke: #22223B !important;
  }

  /* 3. Scrolled homepage / Subpages in Dark Mode (Dark blue background) */
  [data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle,
  [data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
  }
  [data-theme="dark"] .grid-navbar.scrolled .hamburger-toggle svg,
  [data-theme="dark"] body:not(.home-page) .grid-navbar .hamburger-toggle svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
  }
  [data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle,
  [data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  [data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option svg,
  [data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option svg {
    color: rgba(255, 255, 255, 0.6) !important;
    stroke: rgba(255, 255, 255, 0.6) !important;
  }
  [data-theme="dark"] .grid-navbar.scrolled .theme-icon-toggle .icon-toggle-option.active svg,
  [data-theme="dark"] body:not(.home-page) .grid-navbar .theme-icon-toggle .icon-toggle-option.active svg {
    color: #C08B28 !important;
    stroke: #C08B28 !important;
  }
}

/* 4. Force Bearers controls to be a centered flex row, overriding the 3-column grid */
body.home-page #vicar-team .bearers-carousel-container #bearersMobileControls,
body.home-page #vicar-team .bearers-mobile-controls,
html body #vicar-team #bearersMobileControls,
body.home-page .team-section .bearers-carousel-container #bearersMobileControls,
body.home-page #vicar-team .bearers-carousel-container #bearersMobileControls {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 1.5rem auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.home-page #vicar-team .bearers-carousel-container #bearersMobileControls .bearers-dot,
body.home-page #vicar-team .bearers-mobile-controls .bearers-dot,
.bearers-dot {
  min-height: 0 !important;
  min-width: 0 !important;
  height: 10px !important;
  width: 10px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
}

/* 5. Force all gallery/magazine/hero carousel mobile progress containers to display as flex rows */
body.home-page #quick-access .mag-mobile-progress,
body.home-page .mag-mobile-progress,
body .mag-mobile-progress,
html body .mag-mobile-progress,
.mag-mobile-progress,
body.home-page #upcoming-events .hero-carousel-progress,
body.home-page #hero .hero-carousel-progress,
body.home-page .hero-carousel-progress,
body .hero-carousel-progress,
html body .hero-carousel-progress,
.hero-carousel-progress,
body .events-section .hero-carousel-progress,
html body .events-section .hero-carousel-progress,
body.home-page .events-section .hero-carousel-progress,
.events-section .hero-carousel-progress,
body.home-page #jmtc-mag .jmtc-mobile-progress,
body .jmtc-mobile-progress,
html body .jmtc-mobile-progress,
.jmtc-mobile-progress,
body .vicars-section .gallery-progress,
.vicars-section .gallery-progress {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  grid-template-columns: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Force dots styling */
body.home-page .mag-dot,
body .mag-dot,
.mag-dot,
body.home-page .hero-dot,
body .hero-dot,
.hero-dot,
body.home-page .jmtc-dot,
body .jmtc-dot,
.jmtc-dot {
  min-height: 0 !important;
  min-width: 0 !important;
  height: 8px !important;
  width: 8px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}




/* Pastoral Leadership Hierarchical Layout */
.pastoral-hierarchy {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2rem !important;
  margin-top: 2rem !important;
  width: 100% !important;
}

.pastoral-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
    justify-content: center !important;
  gap: 2rem !important;
  width: 100% !important;
}

/* ==========================================================================
   WATCH LIVE PILL (Hamburger Drawer) - FINAL NORMALIZED OVERRIDE
   Re-asserts a clean, compact pill so no other drawer/link rule can stretch
   it, space the icon away from the label, or recolor it (no blue/purple).
   ========================================================================== */
.mobile-menu-drawer .mobile-watch-live-wrap,
body .mobile-menu-drawer .mobile-watch-live-wrap,
.mobile-menu-drawer li.mobile-watch-live-wrap,
nav .mobile-menu-drawer .mobile-watch-live-wrap {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0.5rem 0 0 0 !important;
  padding: 0 !important;
}

.mobile-menu-drawer .mobile-watch-live-link,
body .mobile-menu-drawer .mobile-watch-live-link,
:root:not([data-theme="dark"]) .mobile-menu-drawer .mobile-watch-live-link,
[data-theme="light"] .mobile-menu-drawer .mobile-watch-live-link,
.mobile-menu-drawer a.mobile-watch-live-link,
body .mobile-menu-drawer a.mobile-watch-live-link,
.mobile-menu-drawer span.mobile-watch-live-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  gap: 0.45rem !important;
    width: fit-content !important;
  max-width: 100% !important;
  padding: 0.45rem 1rem !important;
  margin: 0 auto !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(28, 41, 56, 0.2) !important;
  background-color: rgba(28, 41, 56, 0.06) !important;
  color: #1C2938 !important;
  -webkit-text-fill-color: #1C2938 !important;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.mobile-menu-drawer .mobile-watch-live-link svg,
body .mobile-menu-drawer .mobile-watch-live-link svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  color: #FF0000 !important;
}

.mobile-menu-drawer .mobile-watch-live-link:hover,
body .mobile-menu-drawer .mobile-watch-live-link:hover,
.mobile-menu-drawer .mobile-watch-live-link:focus,
body .mobile-menu-drawer .mobile-watch-live-link:focus {
  background-color: rgba(28, 41, 56, 0.1) !important;
  border-color: rgba(28, 41, 56, 0.3) !important;
  color: #0F1A24 !important;
  -webkit-text-fill-color: #0F1A24 !important;
  transform: translateY(-1px) !important;
}

/* Dark drawer: keep the pill legible on the dark drawer surface */
[data-theme="dark"] .mobile-menu-drawer .mobile-watch-live-link,
body[data-theme="dark"] .mobile-menu-drawer .mobile-watch-live-link,
body[data-theme="dark"] .mobile-menu-drawer a.mobile-watch-live-link {
  border-color: rgba(234, 234, 234, 0.3) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #EEEAE4 !important;
  -webkit-text-fill-color: #EEEAE4 !important;
}

[data-theme="dark"] .mobile-menu-drawer .mobile-watch-live-link:hover,
body[data-theme="dark"] .mobile-menu-drawer .mobile-watch-live-link:hover {
  background-color: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(234, 234, 234, 0.45) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}


