/* ════════════════════════════════════════════════
   FOURSQUARE GOSPEL CHURCH — CHAPEL OF JOY
   Lekki District Headquarters
   styles.css
   ════════════════════════════════════════════════ */

/* ── 1. RESET & CSS VARIABLES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors — pulled directly from the Foursquare logo */
  --red:        #D8232A;
  --red-dark:   #A81820;
  --red-light:  #F5E6E7;
  --blue:       #1B4F9B;
  --blue-dark:  #133A74;
  --blue-light: #E6EDF8;
  --orange:     #F5941D;
  --orange-light: #FEF3E2;
  --pink:       #C9378E;
  --pink-light: #F8E6F3;

  /* Neutrals */
  --white:      #FFFFFF;
  --off-white:  #F9F7F5;
  --light-gray: #F2F2F2;
  --mid-gray:   #9CA3AF;
  --text-dark:  #1A1A2E;
  --text-mid:   #4B5563;

  /* Layout */
  --section-pad: 90px;
  --container:   1160px;
  --radius:      4px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }

/* ── 2. TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Libre Baskerville', serif;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 700; }
h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h4 { font-size: 20px; font-weight: 700; }

p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ── 3. UTILITY CLASSES ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section-label {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.divider {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 0 0 22px;
}

.divider--center {
  margin: 0 auto 22px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 17px;
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.75);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
}

/* ── 4. SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible     { opacity: 1; transform: translateY(0); }
.fade-up.delay-1     { transition-delay: 0.10s; }
.fade-up.delay-2     { transition-delay: 0.20s; }
.fade-up.delay-3     { transition-delay: 0.30s; }
.fade-up.delay-4     { transition-delay: 0.40s; }
.fade-up.delay-5     { transition-delay: 0.50s; }

/* ══════════════════════════════════════════════
   5. NAVIGATION
══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(26,26,46,0.0);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
/* While the mobile overlay is open, keep the bar (and hamburger) above the dim layer */
body.mobile-menu-open #navbar {
  z-index: 1300;
}

#navbar.scrolled {
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Allow the logo block to shrink so the hamburger is never clipped (e.g. after webfonts load) */
  min-width: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-logo-text {
  line-height: 1.2;
  min-width: 0;
}

.nav-logo-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logo-sub {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-give {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  letter-spacing: 1.5px !important;
}
.nav-give:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
}
.nav-give::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.nav-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
#mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--text-dark);
  /* Below navbar when idle — avoids an invisible full-screen layer sitting above the bar */
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1200;
}

#mobile-menu a {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
  transition: color 0.3s;
}
#mobile-menu a:hover,
#mobile-menu a.give-link { color: var(--red); }

.mobile-close {
  /* Dismiss is the hamburger (morphs to an X); hide duplicate × */
  display: none;
}

/* Announcement banner */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
}
.announcement-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 10px 48px 10px 16px;
  position: relative;
  text-align: center;
}
.announcement-banner-link,
.announcement-banner-text {
  color: var(--white);
  font-weight: 600;
}
.announcement-banner-cta {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-banner-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  padding: 4px 8px;
}
body.has-announcement #navbar {
  top: 44px;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Featured sermon */
#featured-sermon {
  padding: var(--section-pad) 0 0;
  background: var(--off-white);
}
.featured-sermon-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.featured-sermon-thumb {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.featured-sermon-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.featured-sermon-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.featured-sermon-thumb:hover .featured-sermon-play {
  background: rgba(0,0,0,0.35);
}
.featured-sermon-play svg {
  width: 64px;
  height: 64px;
  color: var(--white);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.featured-sermon-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(22px, 3vw, 28px);
  margin: 8px 0 12px;
}
.featured-sermon-meta {
  color: var(--text-mid);
  font-size: 15px;
  margin-bottom: 12px;
}
.featured-sermon-desc {
  margin-bottom: 20px;
  color: var(--text-mid);
}
.featured-sermon-loading {
  text-align: center;
  color: var(--text-mid);
  padding: 24px 0;
}

/* Service times — prominent below hero */
#service-times.service-times--prominent {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
#service-times.service-times--prominent .service-bar-name {
  font-weight: 700;
}
#service-times.service-times--prominent .service-bar-time {
  font-size: clamp(20px, 2.5vw, 26px);
}

/* Ministry contact */
.ministry-contact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.ministry-contact strong {
  color: var(--text-dark);
}

#visit {
  padding: var(--section-pad) 0;
}
.give-bank-note {
  color: var(--text-mid);
  margin-bottom: 24px;
  max-width: 640px;
}

/* Visit page */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.visit-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 28px;
}
.visit-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  margin-bottom: 12px;
}
.visit-card p {
  color: var(--text-mid);
  line-height: 1.7;
}
.visit-cta {
  text-align: center;
  margin-top: 48px;
}

/* Directions on contact */
.contact-directions {
  margin-top: 28px;
  padding: 24px;
  background: var(--off-white);
  border-radius: 8px;
  border-left: 4px solid var(--red);
}
.contact-directions h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  margin-bottom: 12px;
}
.contact-directions p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 10px;
}
.contact-directions p:last-child {
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════
   6. HERO
══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity;
}

.hero-bg-layer.no-fade    { transition: none !important; }

.hero-bg-layer.is-active {
  opacity: 1;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(216,35,42,0.88) 0%,
    rgba(26,26,46,0.78) 55%,
    rgba(27,79,155,0.72) 100%
  );
}

/* Red left-edge accent */
.hero-edge {
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--red), var(--blue));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-verse {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(17px, 2.5vw, 23px);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.90);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 0 0 36px;
  line-height: 1.6;
  max-width: 600px;
}

.hero-ref {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.60);
  margin-top: 8px;
  letter-spacing: 1px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════════════
   7. SERVICE TIMES BAR
══════════════════════════════════════════════ */
#service-times {
  background: var(--text-dark);
  border-top: 4px solid var(--red);
}

.service-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.service-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.service-bar-item:last-child { border-right: none; }
.service-bar-item:hover { background: rgba(255,255,255,0.04); }

.service-bar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(216,35,42,0.15);
  border: 1px solid rgba(216,35,42,0.3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-bar-icon svg { width: 18px; height: 18px; fill: var(--red); }

.service-bar-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}

.service-bar-time {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.service-bar-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  margin-top: 2px;
}

/* Homepage — Sunday strip (brand: dark ground + red accent + hero-style CTA) */
#service-times.service-times--compact {
  background: linear-gradient(168deg, #1e1e32 0%, var(--text-dark) 42%, #141422 100%);
}

.service-times-compact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 22px 24px;
  margin: 14px 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  border-left: 4px solid var(--red);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.service-times-compact-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 280px;
  min-width: 0;
}

.service-times-compact-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(216,35,42,0.45) 0%, rgba(216,35,42,0.12) 100%);
  border: 1px solid rgba(216,35,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}

.service-times-compact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.service-times-compact-copy {
  min-width: 0;
}

.service-times-compact-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.service-times-compact-line {
  margin: 0 0 4px;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}

.service-times-compact-time {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-right: 8px;
}

.service-times-compact-lead {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.95);
}

.service-times-compact-venue {
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
}

.service-times-compact-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.48);
  letter-spacing: 0.03em;
}

.service-times-compact-btn.btn-outline-white {
  flex-shrink: 0;
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 1.5px;
  border-radius: var(--radius);
  border-width: 2px;
}

/* ══════════════════════════════════════════════
   7B. BREADCRUMBS
══════════════════════════════════════════════ */
.breadcrumb-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
  padding: 16px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.breadcrumb li {
  font-size: 13px;
  color: var(--text-mid);
}

.breadcrumb a {
  color: var(--blue);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumb li:not(:last-child)::after {
  content: "→";
  margin-left: 12px;
  color: var(--light-gray);
}

/* ══════════════════════════════════════════════
  7C. PRIVACY POLICY
══════════════════════════════════════════════ */
#privacy-policy {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.policy-wrap {
  max-width: 860px;
}

.policy-wrap h1 {
  margin-bottom: 12px;
}

.policy-updated {
  font-size: 14px;
  margin-bottom: 22px;
}

.policy-wrap h2 {
  margin: 30px 0 10px;
  font-size: clamp(24px, 3vw, 32px);
}

.policy-wrap p {
  margin-bottom: 12px;
}

.policy-wrap ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 10px;
}

.policy-wrap li {
  color: var(--text-mid);
  margin-bottom: 6px;
  line-height: 1.7;
}

.policy-wrap a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-wrap a:hover {
  color: var(--red);
}

/* Form consent notices (shown near Tally forms) */
.form-consent-notice {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mid);
  background: var(--off-white);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}

.form-consent-notice a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent-notice a:hover {
  color: var(--red);
}

.form-consent-notice--counselling {
  border-left-color: var(--red);
  background: var(--red-light);
}

.care-form-card .form-consent-notice {
  margin-top: 16px;
}

/* Cookie notice */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.95);
  border-top: 4px solid var(--red);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

#cookie-notice.is-visible {
  transform: translateY(0);
}

.cookie-notice-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

.cookie-notice-content {
  flex: 1;
  min-width: min(100%, 320px);
}

.cookie-notice-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  line-height: 1.3;
}

.cookie-notice-text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  margin: 0;
  max-width: 52ch;
}

.cookie-notice-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice-text a:hover {
  color: var(--orange);
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-notice-btn {
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.cookie-notice-btn--accept {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(216, 35, 42, 0.35);
}

.cookie-notice-btn--accept:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(216, 35, 42, 0.45);
}

.cookie-notice-btn--settings {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.cookie-notice-btn--settings:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

body.has-cookie-notice {
  padding-bottom: 0;
}

@media (max-width: 720px) {
  #cookie-notice {
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-notice-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cookie-notice-text {
    max-width: none;
  }

  .cookie-notice-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-notice-btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }
}

/* ══════════════════════════════════════════════
  7D. GIVE PAGE
══════════════════════════════════════════════ */
#give-page {
  padding: var(--section-pad) 0 56px;
  background: var(--white);
}

.give-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.give-method-card {
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}

.give-method-card h3 {
  margin-bottom: 10px;
}

.give-method-card p {
  margin-bottom: 22px;
}

.give-method-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.give-transfer-section {
  padding: 56px 0;
  background: var(--off-white);
}

.give-transfer-section--alt {
  background: var(--white);
}

.give-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.give-account-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 22px;
}

.give-account-card--copy {
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.give-account-card--copy:hover {
  border-color: var(--red);
  background: var(--red-light);
  box-shadow: var(--shadow-md);
}

.give-account-card--copy:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.give-account-card--copy.is-copied {
  border-color: #155724;
  background: #edf7ef;
}

.give-account-card h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
}

.give-account-card p {
  margin-bottom: 8px;
}

.give-account-number-value {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.give-account-copy-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.2s;
}

.give-account-card--copy:hover .give-account-copy-hint,
.give-account-card--copy:focus-visible .give-account-copy-hint {
  color: var(--red);
}

.give-account-card--copy.is-copied .give-account-copy-hint {
  color: #155724;
}

.give-account-copy-feedback {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #155724;
}

/* ══════════════════════════════════════════════
   8. ABOUT SECTION
══════════════════════════════════════════════ */
#about {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Image column */
.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-img-overlay {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--red);
  padding: 24px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-img-overlay .year {
  font-family: 'Libre Baskerville', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
}

.about-img-overlay .est-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
}

/* Text column */
.about-text {}

.about-text h2 {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-text > p {
  margin-bottom: 16px;
  font-size: 16px;
}

.pastor-signoff {
  margin: 18px 0 22px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Four-Square Gospel beliefs cards — mirror the logo quadrants */
.beliefs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.belief-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.belief-card.red     { background: var(--red-light);    border-left: 4px solid var(--red); }
.belief-card.blue    { background: var(--blue-light);   border-left: 4px solid var(--blue); }
.belief-card.orange  { background: var(--orange-light); border-left: 4px solid var(--orange); }
.belief-card.pink    { background: var(--pink-light);   border-left: 4px solid var(--pink); }

.belief-card-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.belief-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.belief-card.red    .belief-card-title { color: var(--red-dark); }
.belief-card.blue   .belief-card-title { color: var(--blue-dark); }
.belief-card.orange .belief-card-title { color: #b36010; }
.belief-card.pink   .belief-card-title { color: #8B235F; }

.belief-card-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ══════════════════════════════════════════════
   9. EVENTS & COUNTDOWN
══════════════════════════════════════════════ */
#events {
  padding: var(--section-pad) 0;
  background: var(--white);
}

/* Featured event card */
.event-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--text-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 52px;
  box-shadow: var(--shadow-lg);
}

.event-featured-img {
  position: relative;
  min-height: 360px;
}

.event-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.event-featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius);
}

.event-featured-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.event-tag {
  background: rgba(216,35,42,0.18);
  border: 1px solid rgba(216,35,42,0.35);
  color: #FF8080;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius);
}

.event-featured-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.event-featured-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}

.event-featured-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 10px 16px 8px;
  min-width: 64px;
}

.countdown-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  display: block;
  margin-top: 4px;
}

.countdown-sep {
  font-family: 'Libre Baskerville', serif;
  font-size: 30px;
  color: rgba(255,255,255,0.25);
  line-height: 1;
  padding-top: 12px;
}

/* Regular events grid */
/* ── TO ADD A NEW EVENT: duplicate one .event-card block below ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.event-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.event-card-body {
  padding: 22px 20px;
  border-top: 3px solid var(--red);
}

.event-card-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.event-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.event-card-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-card-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.3s;
}

.event-card-link:hover { color: var(--red); gap: 10px; }
.event-card-link::after { content: '→'; }

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

/* Add to Calendar */
.event-calendar-wrap {
  position: relative;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 12px;
}

.event-calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.event-calendar-btn:hover,
.event-calendar-btn[aria-expanded="true"] {
  color: var(--red);
  border-color: rgba(216,35,42,0.35);
  background: rgba(216,35,42,0.05);
}

.event-calendar-icon {
  flex-shrink: 0;
}

.event-calendar-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.event-featured-content .event-calendar-menu {
  background: #1f1f1f;
  border-color: rgba(255,255,255,0.12);
}

.event-calendar-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.event-featured-content .event-calendar-option {
  color: rgba(255,255,255,0.88);
}

.event-calendar-option:hover,
.event-calendar-option:focus-visible {
  background: rgba(216,35,42,0.08);
  color: var(--red);
  outline: none;
}

.event-featured-content .event-calendar-option:hover,
.event-featured-content .event-calendar-option:focus-visible {
  background: rgba(216,35,42,0.2);
  color: #ff9a9a;
}

.events-cta {
  text-align: center;
  margin-top: 44px;
}

/* ══════════════════════════════════════════════
   11. SERMONS
══════════════════════════════════════════════ */
#sermons {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.sermons-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

#sermons.sermons-section--home {
  background: linear-gradient(180deg, #faf8f6 0%, var(--off-white) 35%, #f6f3f0 100%);
}

.sermons-section--home .sermons-sidebar .divider {
  margin-left: 0;
}

#sermons.sermons-section--home .sermons-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

#sermons.sermons-section--home .sermons-actions-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sermons-section--home .home-sermons-feed-wrap {
  width: 100%;
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(26,26,46,0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--red);
  padding: 28px 26px 32px;
}

.home-sermons-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sermons-section--home .home-sermons-feed-wrap .featured-sermon-card {
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  max-width: none;
  margin: 0;
  align-items: center;
}

.sermons-section--home .home-sermons-feed-wrap .featured-sermon-thumb {
  border-radius: 8px;
}

.home-sermon-teaser-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sermons-section--home .home-sermon-teaser-row .sermon-video-card {
  margin: 0;
  border: 1px solid rgba(26,26,46,0.08);
  border-top: 3px solid var(--red);
}

.sermons-sidebar h2 { margin-bottom: 16px; }

.sermons-sidebar p {
  margin-bottom: 28px;
  font-size: 16px;
}

.sermon-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.sermon-filter-btn {
  padding: 7px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  color: var(--text-mid);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.sermon-filter-btn.active,
.sermon-filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Sermon header actions (YouTube + Spotify) */
.sermons-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-youtube-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.btn-youtube-compact .youtube-logo {
  width: 18px;
  height: 18px;
  color: var(--white);
  flex-shrink: 0;
}

.spotify-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1DB954;
  border-radius: 999px;
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.spotify-pill:hover {
  background: #189c46;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spotify-pill svg {
  flex-shrink: 0;
  display: block;
}

/* Sermon list */
.sermon-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ── TO ADD A NEW SERMON: duplicate one .sermon-item block ── */
.sermon-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border-bottom: none;
  transition: background 0.2s;
  border-radius: var(--radius);
}

.sermon-item:hover { background: rgba(0,0,0,0.02); }

/* YouTube embed container */
.sermon-embed {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.sermon-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.youtube-playlist-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-sm);
}

.youtube-playlist-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sermons-player-caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

/* Sermons page — RSS-fed featured + grid */
#sermons .section-header {
  text-align: center;
  margin-bottom: 0;
}

.sermons-actions--centered {
  justify-content: center;
  margin-top: 8px;
}

.sermons-featured-wrap {
  margin: 48px auto 56px;
  max-width: 1000px;
}

.sermons-featured-wrap .featured-sermon-card {
  margin: 0;
}

.sermons-recent-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  text-align: center;
}

.sermons-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sermon-video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sermon-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sermon-video-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.sermon-video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sermon-video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}

.sermon-video-card-thumb:hover .sermon-video-card-play {
  background: rgba(0, 0, 0, 0.38);
}

.sermon-video-card-play svg {
  width: 48px;
  height: 48px;
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.sermon-video-card-body {
  padding: 16px 18px 20px;
}

.sermon-video-card-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sermon-video-card-date {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 10px;
}

.sermon-video-card-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--red);
}

.sermon-video-card-link:hover {
  text-decoration: underline;
}

.sermons-feed-error {
  text-align: center;
  color: var(--text-mid);
  padding: 24px 0;
  grid-column: 1 / -1;
}

/* Gallery page — intro spacing + social CTA */
.page-gallery .section-header p + p {
  margin-top: 12px;
}

.gallery-cta {
  text-align: center;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--light-gray);
}

.gallery-cta p {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-with-icon .btn-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sermon-play-btn {
  display: none;
}

.sermon-play-btn svg {
  display: none;
}

.sermon-info { flex: 1; min-width: 0; }

.sermon-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sermon-meta {
  font-size: 12px;
  color: var(--mid-gray);
  line-height: 1.4;
}

.sermon-duration {
  font-size: 13px;
  color: var(--mid-gray);
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Source Sans 3', sans-serif;
}

/* ══════════════════════════════════════════════
   12. MINISTRIES
══════════════════════════════════════════════ */
#ministries {
  padding: var(--section-pad) 0;
  background: var(--white);
}

/* ── TO ADD A NEW MINISTRY: duplicate one .ministry-card block ── */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.ministry-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.ministry-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ministry-card-body {
  padding: 20px 16px;
  border-top: 3px solid var(--blue);
}

/* Each ministry has a slightly different top border color */
.ministry-card:nth-child(4n+1) .ministry-card-body { border-color: var(--red); }
.ministry-card:nth-child(4n+2) .ministry-card-body { border-color: var(--blue); }
.ministry-card:nth-child(4n+3) .ministry-card-body { border-color: var(--orange); }
.ministry-card:nth-child(4n+4) .ministry-card-body { border-color: var(--pink); }

.ministry-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.ministry-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.ministry-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.ministry-serve-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ministries-serve-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border-top: 1px solid rgba(26,26,46,0.06);
}

.ministries-serve-section .section-header {
  margin-bottom: 36px;
}

.ministries-serve-cta {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.ministries-serve-cta .care-form-btn {
  width: 100%;
}

/* ══════════════════════════════════════════════
   13. ONLINE GIVING
══════════════════════════════════════════════ */
#giving {
  padding: var(--section-pad) 0;
  background: var(--red);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#giving::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.06);
}

#giving::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.06);
}

.giving-inner { position: relative; z-index: 2; }

.giving-inner .section-label { color: rgba(255,255,255,0.70); }

.giving-inner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.giving-inner > p {
  color: rgba(255,255,255,0.80);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.giving-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.amount-btn {
  padding: 11px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

.giving-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 20px;
  font-style: italic;
}

/* ══════════════════════════════════════════════
   14. CONTACT
══════════════════════════════════════════════ */
#contact {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-form-col h2 { margin-bottom: 10px; }
.contact-form-col > p { margin-bottom: 32px; font-size: 16px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  background: var(--white);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 1.5px;
}

/* Contact info column */
.contact-info-col h3 {
  font-size: 26px;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; fill: var(--white); }

.contact-detail-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.contact-detail-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-detail-text a:hover { color: var(--red); }

/* Map embed area */
.map-wrapper {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--light-gray);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 220px;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.map-placeholder svg { width: 36px; height: 36px; fill: var(--mid-gray); }

.map-placeholder-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.map-placeholder-sub {
  font-size: 12px;
  color: var(--mid-gray);
}

/* ══════════════════════════════════════════════
   15. FOOTER
══════════════════════════════════════════════ */
#footer {
  background: var(--text-dark);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Brand column */
.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius);
}

.footer-logo-name {
  font-family: 'Libre Baskerville', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  max-width: 200px;
}

.footer-tagline {
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
  margin-bottom: 22px;
  border-left: 3px solid var(--red);
  padding-left: 12px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}
.social-btn svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.55); transition: fill 0.3s; }
.social-btn:hover { background: var(--red); border-color: var(--red); }
.social-btn:hover svg { fill: var(--white); }

/* Footer nav columns */
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
}

.footer-links li a::before {
  content: '';
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-links li a:hover { color: var(--white); gap: 12px; }
.footer-links li a:hover::before { opacity: 1; }

/* Footer bottom */
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
}

.footer-verse {
  font-family: 'Libre Baskerville', serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(216,35,42,0.45);
  text-align: right;
  max-width: 420px;
}

/* ══════════════════════════════════════════════
   16. GALLERY
══════════════════════════════════════════════ */
#gallery {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

#gallery.gallery-section--teaser {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 45%, var(--off-white) 100%);
}

.gallery-section--teaser .gallery-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-section--teaser .gallery-item {
  margin-bottom: 0;
  border-radius: 8px;
  border: 1px solid rgba(26,26,46,0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-section--teaser .gallery-item:hover,
.gallery-section--teaser .gallery-item:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-section--teaser .gallery-item img {
  height: 210px;
}

.gallery-teaser-cta {
  text-align: center;
  margin-top: 48px;
}

/* Filter buttons */
.gallery-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 8px 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid var(--light-gray);
  background: var(--white);
  color: var(--text-mid);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Masonry grid using CSS columns */
.gallery-masonry {
  columns: 3;
  column-gap: 16px;
}

/* Each item breaks inside the column flow */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

/* Tall variant for portrait photos */
.gallery-item--tall img {
  height: 340px;
}

/* Overlay — slides up on hover */
.gallery-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.88) 0%, rgba(26,26,46,0.0) 100%);
  padding: 28px 16px 16px;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus .gallery-item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.04);
}

/* Focus ring for keyboard nav */
.gallery-item:focus {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.gallery-item-caption {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.gallery-item-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  background: rgba(216,35,42,0.35);
  border: 1px solid rgba(216,35,42,0.45);
  padding: 3px 9px;
  border-radius: var(--radius);
}

/* Hidden state for filtered items */
.gallery-item.gallery-hidden {
  display: none;
}

/* ── LIGHTBOX MODAL ── */
#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,18,0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

#gallery-lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 4px 0;
  gap: 12px;
}

.lightbox-caption {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  flex: 1;
}

.lightbox-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  text-transform: uppercase;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-arrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}

.lightbox-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-arrow svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

/* ══════════════════════════════════════════════
  16B. CARE FORMS + TALLY POPUP
══════════════════════════════════════════════ */
#care-forms {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.care-connection-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
  border-top: 1px solid rgba(26,26,46,0.06);
}

.care-connection-section .section-header {
  margin-bottom: 48px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.care-forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.care-forms-grid--home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.care-forms-grid--contact-extra {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.care-forms-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
  margin: 0 auto;
}

.care-forms-grid--single .care-form-card {
  border-top: 3px solid var(--red);
}

.care-forms-grid--contact-extra .care-form-card {
  border-top: 3px solid var(--red);
}

.care-forms-footnote {
  margin-top: 32px;
  padding: 18px 22px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.care-forms-footnote a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(27,79,155,0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.care-forms-footnote a:hover {
  color: var(--red);
  border-bottom-color: rgba(216,35,42,0.35);
}

#care-forms .care-forms-grid--home .care-form-card {
  border-top: 3px solid var(--red);
}

.care-form-card {
  background: var(--white);
  border: 1px solid rgba(26,26,46,0.10);
  border-radius: 10px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 20px rgba(16,16,28,0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.care-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.care-form-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}

.care-form-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.care-form-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 33px;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  color: #0d0d0d;
}

.care-form-card p {
  font-size: 15px;
  line-height: 1.55;
  color: #202020;
  flex: 1;
}

.care-form-btn {
  width: 100%;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: clamp(12px, 1.02vw, 14px);
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.care-form-btn::after {
  content: '→';
  font-size: 0.98em;
}

#tally-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(10,10,18,0.85);
  padding: 24px;
  align-items: center;
  justify-content: center;
}

#tally-modal.open {
  display: flex;
}

.tally-modal-panel {
  width: min(960px, 100%);
  height: min(84vh, 780px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tally-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--off-white);
  color: var(--text-dark);
  font-size: 30px;
  line-height: 1;
}

#tally-modal-title {
  font-size: 24px;
  padding: 18px 54px 8px 20px;
}

.tally-modal-note {
  margin: 0 20px 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 3px;
}

.tally-modal-note a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#tally-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════════
   17. RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ministries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .care-forms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root { --section-pad: 64px; }
  .featured-sermon-card { grid-template-columns: 1fr; }
  .sermons-videos-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; }
  .about-grid,
  .sermons-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  #sermons.sermons-section--home .home-sermons-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  #sermons.sermons-section--home .home-sermons-feed-wrap {
    order: -1;
    padding: 20px 18px 24px;
    border-left: none;
    border-top: 4px solid var(--red);
    border-radius: 8px;
  }
  .sermons-section--home .home-sermons-feed-wrap .featured-sermon-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sermons-section--home .home-sermon-teaser-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  #sermons.sermons-section--home .sermons-actions {
    align-items: stretch;
    gap: 12px;
  }
  #sermons.sermons-section--home .sermons-actions-platforms {
    justify-content: center;
    gap: 10px;
  }
  #sermons.sermons-section--home .sermons-actions-all {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .sermons-section--home .home-sermons-feed-wrap .featured-sermon-play svg {
    width: 52px;
    height: 52px;
  }
  .sermons-section--home .home-sermons-feed-wrap .featured-sermon-body {
    text-align: center;
  }
  .sermons-section--home .home-sermons-feed-wrap .featured-sermon-body .btn-red {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  #sermons.sermons-section--home .sermons-sidebar {
    text-align: center;
  }
  #sermons.sermons-section--home .sermons-sidebar .divider {
    margin-left: auto;
    margin-right: auto;
  }
  .about-img-wrap { max-width: 580px; }
  .service-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .event-featured { grid-template-columns: 1fr; }
  .ministries-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 2; }
  .gallery-section--teaser .gallery-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tally-modal-panel { height: min(88vh, 760px); }
  .give-methods-grid,
  .give-accounts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .service-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .service-bar-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .beliefs-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .ministries-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-verse { text-align: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .youtube-playlist-wrap { height: 420px; }
  .service-times-compact-inner {
    flex-direction: column;
    align-items: stretch;
    margin: 10px 0;
    padding: 20px 18px;
  }
  .service-times-compact-btn.btn-outline-white { align-self: stretch; text-align: center; }
  .care-forms-grid { grid-template-columns: 1fr; }
  .care-form-card h3 { font-size: clamp(22px, 6vw, 28px); }
  .care-form-btn { font-size: clamp(12px, 3.4vw, 14px); }
  #tally-modal { padding: 12px; }
  #tally-modal-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .service-bar-grid { grid-template-columns: 1fr; }
  .ministries-grid { grid-template-columns: 1fr; }
  .about-img-overlay { display: none; }
  .nav-logo-text { display: none; }
  .countdown-num { font-size: 28px; }
  .gallery-masonry { columns: 1; }
  .gallery-section--teaser .gallery-teaser-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-arrow { display: none; }
  .youtube-playlist-wrap { height: 360px; }
  .sermons-videos-grid { grid-template-columns: 1fr; }
}
