/* ═══════════════════════════════════════════════════════════════════
   Our Church – Premium Responsive Template Stylesheet
   Faithful reproduction of the requested sky blue, deep blue & white template
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom Design Tokens ────────────────────────────────────────── */
:root {
  --primary-blue:   #0d233a;     /* Deep rich blue */
  --dark-blue:      #081626;     /* Deepest navy blue */
  --sky-blue:       #00b4d8;     /* Sky blue active/highlights */
  --sky-light:      #e0f2fe;     /* Very soft sky blue backdrop */
  --sky-soft:       #f0f9ff;     /* Light sky blue section */
  --orange:         #00b4d8;     /* Vibrant action sky blue (mapped for compatibility) */
  --orange-hover:   #008eb3;     /* Darker sky blue for hover state */
  --green:          #00b4d8;     /* Donate sky-blue button */
  --green-hover:    #008eb3;
  
  --text-dark:      #1e293b;     /* Slate-800 body text */
  --text-muted:     #64748b;     /* Slate-500 secondary text */
  --white:          #ffffff;
  --off-white:      #f8fafc;
  
  --radius-lg:      30px;
  --radius-md:      16px;
  --radius-sm:      8px;
  
  --shadow-sm:      0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md:      0 10px 30px -3px rgba(13, 35, 58, 0.08), 0 4px 6px -2px rgba(13, 35, 58, 0.03);
  --shadow-lg:      0 20px 40px -4px rgba(13, 35, 58, 0.15);
  
  --font-sans:      'Plus Jakarta Sans', system-ui, sans-serif;
  --font-serif:     'Playfair Display', Georgia, serif;
}

/* ── General Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ── Layout & Typography Utilities ──────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.grid-2-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.align-center {
  align-items: center;
}
.text-center {
  text-align: center;
}
.max-w-600 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.font-italic {
  font-style: italic;
  font-family: var(--font-serif);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Section Common Elements */
.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky-blue);
  background-color: var(--sky-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-blue);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--sky-blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.35);
}
.btn-primary:hover {
  background-color: var(--orange-hover);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.45);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.btn-orange {
  background-color: var(--orange);
  color: var(--white);
}
.btn-orange:hover {
  background-color: var(--orange-hover);
}

.btn-green {
  background-color: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background-color: var(--green-hover);
}

.btn-outline {
  border: 1.5px solid rgba(13, 35, 58, 0.15);
  color: var(--primary-blue);
  background: transparent;
}
.btn-outline:hover {
  background-color: rgba(13, 35, 58, 0.05);
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.75rem;
}

.w-full {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(13, 35, 58, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
  background-color: var(--primary-blue);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.logo-img {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  display: block;
  object-fit: contain;
  background-color: var(--white);
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.logo-icon {
  color: var(--sky-blue);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sky-blue);
  letter-spacing: 0.08em;
  margin-top: 3px;
  text-transform: uppercase;
}

/* Navigation Links */
.main-nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: var(--sky-blue);
}

/* Live pulse */
.btn-live-pulse {
  background-color: var(--orange);
  color: var(--white);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  max-width: 180px;
}
.btn-live-pulse.live-btn--hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  margin: 0;
  border: none;
  pointer-events: none;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}
.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO & STREAMING CARD
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 85vh;
  padding-top: 140px;
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg,
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--dark-blue) 0%, rgba(13, 35, 58, 0.85) 60%, rgba(13, 35, 58, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 650px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero-actions-row {
  display: flex;
  gap: 16px;
}

/* Livestream Bar Section */
.livestream-section {
  background-color: var(--sky-soft);
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
}
.livestream-bar {
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(0, 180, 216, 0.08);
}

.live-media {
  position: relative;
  width: 140px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.live-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #ef4444;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.live-badge:not(.badge--scheduled) {
  background-color: #ef4444;
  animation: pulse-red 2s infinite;
}
.live-badge.badge--scheduled {
  background-color: var(--text-muted);
}
.livestream-bar.live-bar--scheduled {
  border-left: 4px solid var(--sky-blue);
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.live-info {
  flex: 1;
}
.live-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 4px;
}
.live-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.live-action {
  display: flex;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   SERVING COMMUNITY
   ═══════════════════════════════════════════════════════════════════ */
.serving-section {
  padding: 100px 0;
  background-color: var(--off-white);
}

.serving-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pillar-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--sky-light);
  color: var(--sky-blue);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.pillar-title {
  font-size: 1.15rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 8px;
}
.pillar-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   SERMONS / BLOGS
   ═══════════════════════════════════════════════════════════════════ */
.sermons-section {
  padding: 100px 0;
  background-color: var(--white);
}

.sermon-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}
.sermon-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 35, 58, 0.05);
  display: flex;
  flex-direction: column;
}
.sermon-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.sermon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sermon-card:hover .sermon-img {
  transform: scale(1.05);
}
.sermon-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.sermon-date {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sky-blue);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.sermon-card-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.3;
}
.sermon-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}
.read-more-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
}
.read-more-link:hover {
  color: var(--orange-hover);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   GET CONNECTED / EVENTS
   ═══════════════════════════════════════════════════════════════════ */
.join-section {
  padding: 100px 0;
  background-color: var(--sky-soft);
}

.join-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-grid {
  display: grid;
  gap: 24px;
}
.event-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  height: 150px;
}
.event-img-wrap {
  position: relative;
  width: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-date-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
}
.event-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.event-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.event-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.event-card-title {
  font-size: 1.1rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.3;
}
.event-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   DONATIONS
   ═══════════════════════════════════════════════════════════════════ */
.donations-section {
  padding: 100px 0;
  background-color: var(--white);
}

.donations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
}
.donation-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(13, 35, 58, 0.05);
  display: flex;
  flex-direction: column;
}
.donation-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.donation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.donation-body {
  padding: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.donation-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.donation-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background-color: var(--sky-light);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar {
  height: 100%;
  background-color: var(--orange);
  border-radius: 999px;
}

.donation-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Share row */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}
.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.btn-share {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--off-white);
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.btn-share:hover {
  background-color: var(--sky-light);
  color: var(--sky-blue);
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.donation-modal.open {
  display: flex;
}
.donation-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 22, 38, 0.72);
  backdrop-filter: blur(8px);
}
.donation-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.donation-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background-color: var(--off-white);
  color: var(--primary-blue);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.donation-modal-title {
  font-family: var(--font-serif);
  color: var(--primary-blue);
  font-size: 1.9rem;
  margin: 10px 0 8px;
}
.donation-modal-desc,
.donation-form-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.payment-method-card {
  border: 1.5px solid rgba(13, 35, 58, 0.1);
  background-color: var(--off-white);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-method-card strong {
  display: block;
  color: var(--primary-blue);
  margin-bottom: 6px;
}
.payment-method-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.payment-method-card.active {
  border-color: var(--orange);
  background-color: rgba(249, 115, 22, 0.08);
}
.donation-form,
.donation-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donation-form {
  gap: 14px;
}
.form-row-public {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.donation-form label {
  color: var(--primary-blue);
  font-size: 0.82rem;
  font-weight: 800;
}
.donation-form input,
.donation-form textarea {
  width: 100%;
  border: 1.5px solid rgba(13, 35, 58, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  color: var(--primary-blue);
  background-color: var(--white);
}
.donation-form textarea {
  resize: vertical;
}
.donation-proof-preview-container {
  margin-top: 8px;
  padding: 10px;
  background-color: var(--off-white);
  border: 1.5px dashed rgba(13, 35, 58, 0.15);
  border-radius: var(--radius-sm);
  display: none;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}
.donation-proof-preview-img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIAL SECTION
   ═══════════════════════════════════════════════════════════════════ */
.testimonial-section {
  padding: 100px 0;
  background-color: var(--primary-blue);
  color: var(--white);
}

.testimonial-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
}
.testimonial-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.quote-orange-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: var(--orange);
  display: grid;
  place-items: center;
}
.quote-char {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  margin-top: 16px;
}

.testimonial-copy {
  padding-left: 20px;
}
.testimonial-blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 28px;
}
.pastor-meta {
  display: flex;
  flex-direction: column;
}
.pastor-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  font-style: normal;
}
.pastor-title {
  font-size: 0.85rem;
  color: var(--sky-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   WHAT WE BELIEVE
   ═══════════════════════════════════════════════════════════════════ */
.beliefs-section {
  padding: 100px 0;
  background-color: var(--off-white);
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}
.belief-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.belief-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.belief-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.belief-overlay-text {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 35, 58, 0.4);
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
}
.belief-body {
  padding: 32px;
  text-align: left;
}
.belief-title {
  font-size: 1.2rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 12px;
}
.belief-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.beliefs-cta {
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════════════════
   VALUES SECTION
   ═══════════════════════════════════════════════════════════════════ */
.values-section {
  padding: 100px 0;
  background-color: var(--white);
}

.values-visual {
  position: relative;
}
.values-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 0 auto;
}
.values-img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.values-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.values-badge-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sky-blue);
}
.values-badge-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.values-copy {
  padding-left: 20px;
}
.pastor-signature-wrap {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 20px;
}
.signature-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  font-style: italic;
}
.signature-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   MAP & CONTACT CARD
   ═══════════════════════════════════════════════════════════════════ */
.map-section {
  position: relative;
  height: 450px;
  background-color: var(--off-white);
}
.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 450px;
}

.address-card-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
  z-index: 5;
}
.address-card {
  pointer-events: auto;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 380px;
  margin-left: auto;   /* Float to the right side of the container as in design */
  border: 1px solid rgba(13, 35, 58, 0.05);
}
.address-title {
  font-size: 1.25rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 12px;
}
.address-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.footer-logo-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  display: block;
  object-fit: contain;
  background-color: var(--white);
  padding: 5px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.footer-logo svg {
  color: var(--sky-blue);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact-info p {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-col-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--sky-blue);
}

.footer-links-list {
  list-style: none;
}
.footer-links-list li {
  margin-bottom: 12px;
}
.footer-links-list a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-links-list a:hover {
  color: var(--sky-blue);
  padding-left: 4px;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--sky-blue);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Footer bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright-text {
  font-size: 0.8rem;
}
.back-to-top-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky-blue);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE MEDIA QUERIES
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-2-equal {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .testimonial-copy, .values-copy {
    padding-left: 0;
    text-align: center;
  }
  .values-img-wrap, .testimonial-photo-wrap {
    max-width: 100%;
  }
  
  .sermon-cards-grid, .beliefs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .beliefs-grid .belief-card:last-child {
    grid-column: span 2;
  }
  .donations-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-grid .footer-col:last-child {
    grid-column: span 3;
  }
  .address-card {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .payment-methods-grid,
  .form-row-public {
    grid-template-columns: 1fr;
  }
  .donation-modal-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
  }
  .hamburger {
    display: flex;
  }
  
  /* Mobile Navigation panel */
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1.5px solid var(--sky-blue);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .header-actions {
    display: none; /* Hide Live pulse in header for small screens, it floats on Hero anyway */
  }
  
  /* Hero */
  .hero {
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 100px;
  }
  .hero-actions-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .livestream-section {
    padding: 30px 0;
  }
  .livestream-bar {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .live-media {
    width: 100%;
    height: 160px;
  }
  .live-action {
    flex-direction: column;
    width: 100%;
  }
  
  /* Serving Community */
  .serving-section {
    padding: 80px 0;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  /* Sermons & Beliefs */
  .sermon-cards-grid, .beliefs-grid {
    grid-template-columns: 1fr;
  }
  .beliefs-grid .belief-card:last-child {
    grid-column: span 1;
  }
  
  /* Join section / Events */
  .event-card {
    flex-direction: column;
    height: auto;
  }
  .event-img-wrap {
    width: 100%;
    height: 180px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid .footer-col:last-child {
    grid-column: span 1;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===================================================================
   CUSTOM MODAL ALERT STYLES
   =================================================================== */
.custom-alert-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.custom-alert-modal.open {
  opacity: 1;
  visibility: visible;
}
.custom-alert-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 22, 38, 0.65);
  backdrop-filter: blur(8px);
}
.custom-alert-card {
  position: relative;
  width: min(440px, 100%);
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.custom-alert-modal.open .custom-alert-card {
  transform: scale(1);
}
.custom-alert-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.custom-alert-icon.success {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.custom-alert-icon.error {
  background-color: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.custom-alert-icon.info {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.custom-alert-message {
  font-size: 1rem;
  color: var(--primary-blue);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.custom-alert-close-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.custom-alert-close-btn.success {
  background-color: #16a34a;
  color: var(--white);
}
.custom-alert-close-btn.success:hover {
  background-color: #15803d;
}
.custom-alert-close-btn.error {
  background-color: #dc2626;
  color: var(--white);
}
.custom-alert-close-btn.error:hover {
  background-color: #b91c1c;
}
.custom-alert-close-btn.info {
  background-color: var(--primary-blue);
  color: var(--white);
}
.custom-alert-close-btn.info:hover {
  background-color: #0b1c2f;
}
