/* ==========================================================================
   Church Website — 1:1 Figma Design + Full Mobile Responsive System
   Figma Canvas: 1440 x 6183 (Frame 1:276)
   Palette:
     --bg-cream: #f5f3ed
     --text-dark: #111111
     --text-muted: #e8e2d4
     --tab-inactive: #e0e0e0
   Typography:
     - Poppins (Navigation)
     - Playfair Display SC (Headings, buttons, uppercase accents)
     - Playfair Display (Body, editorial text)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Playfair+Display+SC:wght@400;700;900&family=Poppins:wght@400;500;600&display=swap');

:root {
  --bg-cream: #f5f3ed;
  --text-dark: #111111;
  --text-muted: #e8e2d4;
  --tab-inactive: #e0e0e0;
  --max-width: 1440px;
}

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

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

body {
  font-family: 'Playfair Display', Georgia, serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   Utility / Reusable Elements
   ========================================================================== */
.divider {
  width: 266px;
  height: 4px;
  background: var(--text-dark);
  border-radius: 12px;
  margin: 20px auto 0;
}

.divider-left {
  margin-left: 0;
}

.divider-light {
  background: var(--bg-cream);
  width: min(472px, 80%);
  margin: 24px auto 0;
}

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

/* Buttons */
.btn-outline {
  display: inline-block;
  font-family: 'Playfair Display SC', serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
  border-radius: 12px;
  padding: 18px 56px;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--bg-cream);
  transform: translateY(-2px);
}

.btn-outline-light {
  color: var(--bg-cream);
  border-color: var(--bg-cream);
  font-size: 32px;
}

.btn-outline-light:hover {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.btn-filled {
  display: inline-block;
  font-family: 'Playfair Display SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--bg-cream);
  background: var(--text-dark);
  border: 1px solid var(--text-dark);
  border-radius: 10px;
  padding: 16px 50px;
  text-align: center;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-filled:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Social Bar
   ========================================================================== */
.site-header {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 80px 0;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-bar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon svg {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover svg {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Hamburger toggle for mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-nav {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 80px 48px;
}

.nav-list {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  position: relative;
  transition: font-weight 0.15s ease, opacity 0.15s ease;
}

.nav-link.nav-active {
  font-weight: 600;
}

.nav-link:hover {
  font-weight: 600;
  opacity: 0.85;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1262px;
  margin: 0 auto 60px;
  padding: 0 24px;
  gap: 60px;
  min-height: 520px;
}

.hero-images {
  position: relative;
  width: 500px;
  min-width: 500px;
  height: 550px;
  flex-shrink: 0;
}

.hero-img-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 488px;
  overflow: hidden;
  border-radius: 6px;
}

.hero-img-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.25);
}

.hero-img-front {
  position: absolute;
  top: 56px;
  left: 56px;
  width: 440px;
  height: 488px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.hero-img-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-text {
  padding-top: 0;
  text-align: center;
  width: 496px;
  max-width: 496px;
  flex-shrink: 0;
}

.hero-text h1 {
  font-family: 'Playfair Display SC', serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 96px;
  letter-spacing: 0;
  color: var(--text-dark);
  text-transform: uppercase;
}

.hero-text .divider {
  margin: 40px auto 0;
}

.hero-text .btn-outline {
  margin-top: 0;
}

/* ==========================================================================
   Ornate Decorative Image Band
   ========================================================================== */
.ornate-band {
  background: var(--text-dark);
  max-width: 1280px;
  margin: 0 auto 80px;
  height: 610px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  position: relative;
  overflow: hidden;
  padding: 0 40px;
}

.ornate-frame {
  width: 392px;
  height: 352px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(245, 243, 237, 0.2);
  transition: transform 0.3s ease;
}

.ornate-frame:hover {
  transform: scale(1.02);
}

.ornate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Explore Section
   ========================================================================== */
.explore {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

.explore h2 {
  font-family: 'Playfair Display SC', serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 96px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.explore .divider {
  width: 312px;
  margin-top: 12px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  width: 100%;
}

.tab {
  flex: 1;
  font-family: 'Playfair Display SC', serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 20px 20px;
  text-align: center;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tab.active {
  background: var(--text-dark);
  color: var(--bg-cream);
  border: 1px solid var(--text-dark);
}

.tab:not(.active) {
  background: var(--tab-inactive);
  color: var(--text-dark);
  border: 1px solid var(--text-dark);
}

.tab:not(.active):hover {
  background: #d4d4d4;
}

/* Gallery Grid — exact Figma dimensions + dynamic content */
.gallery-grid {
  display: grid;
  grid-template-columns: 325px 492px 413px;
  grid-template-rows: auto auto;
  gap: 36px 25px;
  width: 100%;
  max-width: 1280px;
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-item:not(.tall-span) .gallery-card {
  height: 330px;
}

.gallery-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--text-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Pastor Information (Name & Role) */
.pastor-info {
  margin-top: 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pastor-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark, #111111);
  letter-spacing: -0.01em;
  margin: 0;
}

.pastor-role {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Item 1: top-left (Bishop Timothy portrait) */
.item-1 .gallery-card {
  background: #0a0a0a;
}

.item-1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Item 2: top-center - Pastor Uche (fills container) */
.item-2 .gallery-card {
  background: #0a0a0a;
}

.item-2 img,
.item-2 .gallery-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Item 3: top-right tall span - Pastor Steve (fills container) */
.tall-span {
  grid-row: 1 / 3;
  grid-column: 3;
  display: flex;
  flex-direction: column;
}

.tall-span .gallery-card {
  background: #0a0a0a;
  flex: 1;
  min-height: 400px;
}

.tall-span img,
.item-3 img,
.tall-span .gallery-card img,
.item-3 .gallery-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 15% !important;
}

/* Item 4: bottom-left — portrait-ready */
.item-4 .gallery-card {
  background: #0a0a0a;
}

.item-4 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Item 5: bottom-center — portrait-ready */
.item-5 .gallery-card {
  background: #0a0a0a;
}

.item-5 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.about h2 {
  font-family: 'Playfair Display SC', serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 96px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.about .divider {
  width: 354px;
  margin-top: 12px;
}

.about-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 48px;
}

.about-text {
  max-width: 416px;
  padding-top: 28px;
}

.about-body {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 37.3px;
  color: var(--text-dark);
  margin-bottom: 62px;
}

.about-images {
  position: relative;
  width: 580px;
  min-width: 580px;
  height: 580px;
  flex-shrink: 0;
}

.about-img-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  overflow: hidden;
  border-radius: 6px;
}

.about-img-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.25);
}

.about-img-front {
  position: absolute;
  top: 64px;
  left: 0;
  width: 500px;
  height: 500px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.about-img-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ==========================================================================
   Book / Free Copy Section
   ========================================================================== */
.book-section {
  background: var(--text-dark);
  text-align: center;
  padding: 100px 20px 120px;
  position: relative;
  width: 100%;
}

.book-image {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.book-image img {
  width: 780px;
  max-width: 92%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-image img:hover {
  transform: translateY(-4px);
}

.book-promo h2 {
  font-family: 'Playfair Display SC', serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 85px;
  color: var(--bg-cream);
  text-transform: uppercase;
  max-width: 827px;
  margin: 0 auto;
  padding: 0 16px;
}

.book-promo .divider-light {
  margin-top: 24px;
  margin-bottom: 36px;
}

.theme-scripture {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 34px;
  color: rgba(245, 243, 237, 0.75);
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.theme-scripture span {
  font-style: normal;
  font-weight: 700;
  color: var(--bg-cream);
}

.theme-proclamation {
  font-family: 'Playfair Display SC', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #e6c88b;
  text-transform: uppercase;
  margin-top: 18px;
  text-shadow: 0 2px 14px rgba(230, 200, 139, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  background: var(--bg-cream);
}

/* Large social icons row */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 80px 20px 60px;
}

.social-icon-footer svg {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon-footer:hover svg {
  transform: translateY(-3px);
  opacity: 0.85;
}

/* Dark footer bar */
.footer-dark {
  background: var(--text-dark);
  padding: 80px 80px;
  width: 100%;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.contact-block h4 {
  font-family: 'Playfair Display SC', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--bg-cream);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-block p {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 32px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- 1. Large Tablets & Small Laptops (1025px – 1280px) --- */
@media (max-width: 1280px) {
  .site-header {
    padding: 28px 40px 0;
  }
  
  .main-nav {
    padding: 20px 40px 36px;
  }
  
  .nav-list {
    gap: 40px;
  }
  
  .hero {
    gap: 40px;
    padding: 0 40px;
  }
  
  .hero-images {
    width: 540px;
    min-width: 540px;
    height: 540px;
  }
  
  .hero-img-back,
  .hero-img-front {
    width: 470px;
    height: 470px;
  }
  
  .hero-img-front {
    top: 70px;
    left: 70px;
  }
  
  .hero-text {
    padding-top: 80px;
  }
  
  .hero-text h1 {
    font-size: 56px;
    line-height: 72px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1.4fr 1.2fr;
    gap: 16px;
  }
  
  .gallery-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  
  .about {
    padding: 0 40px 80px;
  }
  
  .about-content {
    gap: 40px;
  }
  
  .about-images {
    width: 540px;
    min-width: 540px;
    height: 540px;
  }
  
  .about-img-back,
  .about-img-front {
    width: 470px;
    height: 470px;
  }
  
  .about-img-front {
    top: 70px;
  }
  
  .footer-dark {
    padding: 60px 40px;
  }
  
  .footer-grid {
    grid-template-columns: 380px 1fr 1fr;
    gap: 40px;
  }
}

/* --- 2. Medium Tablets (769px – 1024px) --- */
@media (max-width: 1024px) {
  .site-header {
    padding: 24px 32px 0;
  }
  
  .main-nav {
    padding: 16px 32px 32px;
  }
  
  .nav-list {
    gap: 28px;
  }
  
  .nav-link {
    font-size: 18px;
  }
  
  /* Hero */
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
    padding: 0 32px;
    margin-bottom: 60px;
  }
  
  .hero-images {
    width: 100%;
    max-width: 520px;
    min-width: unset;
    height: 520px;
    margin: 0 auto;
  }
  
  .hero-img-back,
  .hero-img-front {
    width: 85%;
    height: 85%;
  }
  
  .hero-img-front {
    top: 15%;
    left: 15%;
  }
  
  .hero-text {
    padding-top: 0;
    width: 100%;
    max-width: 600px;
  }
  
  .hero-text h1 {
    font-size: 52px;
    line-height: 68px;
  }
  
  .hero-text .divider {
    margin: 28px auto 36px;
  }
  
  .btn-outline {
    font-size: 24px;
    padding: 14px 44px;
  }
  
  /* Ornate Band */
  .ornate-band {
    height: auto;
    padding: 48px 24px;
    gap: 40px;
    margin: 0 24px 60px;
  }
  
  .ornate-frame {
    width: 320px;
    height: 280px;
  }
  
  /* Explore */
  .explore {
    padding: 0 24px 60px;
  }
  
  .explore h2 {
    font-size: 52px;
    line-height: 68px;
  }
  
  .tab {
    font-size: 15px;
    padding: 14px 10px;
    letter-spacing: 0.5px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  
  .gallery-card {
    height: 320px;
    padding: 14px;
  }
  
  
  
  .tall-span {
    grid-column: span 2;
    grid-row: auto;
    height: auto;
  }
  
  /* About Us */
  .about {
    padding: 0 24px 80px;
  }
  
  .about h2 {
    font-size: 52px;
    line-height: 68px;
  }
  
  .about-content {
    flex-direction: column-reverse;
    align-items: center;
    gap: 48px;
  }
  
  .about-images {
    width: 100%;
    max-width: 520px;
    min-width: unset;
    height: 520px;
    margin: 0 auto;
  }
  
  .about-img-back,
  .about-img-front {
    width: 85%;
    height: 85%;
  }
  
  .about-img-front {
    top: 15%;
  }
  
  .about-text {
    max-width: 600px;
    text-align: center;
    padding-top: 0;
  }
  
  .about-body {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 36px;
  }
  
  /* Book Promo */
  .book-promo h2 {
    font-size: 48px;
    line-height: 64px;
  }
  
  .btn-outline-light {
    font-size: 24px;
    padding: 14px 40px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .newsletter-col {
    grid-column: span 2;
  }
}

/* --- 3. Mobile Devices (<= 768px) --- */
@media (max-width: 768px) {
  /* Header with Mobile Nav */
  .site-header {
    padding: 20px 20px 0;
  }
  
  .header-inner {
    justify-content: space-between;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .social-bar {
    gap: 12px;
  }
  
  .social-icon svg {
    width: 32px;
    height: 32px;
  }
  
  /* Mobile Slide Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(245, 243, 237, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 100px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }
  
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  
  .nav-link {
    font-size: 28px;
    font-weight: 500;
  }
  
  /* Hero */
  .hero {
    padding: 20px 20px 0;
    gap: 36px;
    margin-bottom: 48px;
  }
  
  .hero-images {
    width: 100%;
    max-width: 340px;
    height: 380px;
  }

  .hero-img-back img,
  .hero-img-front img {
    object-fit: contain;
  }
  
  .hero-text h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.25;
  }
  
  .hero-text .divider {
    width: 180px;
    margin: 20px auto 28px;
  }
  
  .btn-outline {
    font-size: 20px;
    padding: 12px 36px;
    border-radius: 8px;
  }
  
  /* Ornate Band */
  .ornate-band {
    flex-direction: column;
    height: auto;
    padding: 36px 16px;
    gap: 24px;
    margin: 0 16px 48px;
    border-radius: 4px;
  }
  
  .ornate-frame {
    width: 100%;
    max-width: 300px;
    height: 220px;
  }
  
  /* Explore */
  .explore {
    padding: 0 20px 48px;
  }
  
  .explore h2 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.2;
  }
  
  .explore .divider {
    width: 180px;
  }
  
  .section-header-wrap {
    margin-bottom: 32px;
  }
  
  /* Gallery Grid on Mobile (1-column fluid cards) */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }
  
  .gallery-card,
  .gallery-item:not(.tall-span) .gallery-card,
  .tall-span .gallery-card {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0;
    flex: none !important;
    background: #0a0a0a;
  }
  
  
  
  .tall-span {
    grid-column: span 1;
    grid-row: auto;
    height: auto;
  }

  /* Filter Tabs on Mobile */
  .filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 28px;
  }
  
  .tab {
    width: 100%;
    font-size: 13px;
    padding: 13px 6px;
    text-align: center;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.3px;
  }
  
  /* Gallery Grid on Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tall-span {
    grid-column: auto;
    height: auto;
  }
  
  .gallery-card,
  .gallery-item:not(.tall-span) .gallery-card,
  .tall-span .gallery-card {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
  
  /* About Us */
  .about {
    padding: 0 20px 60px;
  }
  
  .about h2 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.2;
  }
  
  .about .divider {
    width: 180px;
  }
  
  .about-content {
    margin-top: 32px;
    gap: 36px;
  }
  
  .about-images {
    max-width: 340px;
    height: 340px;
  }
  
  .about-body {
    font-size: 18px;
    line-height: 27px;
    margin-bottom: 28px;
  }
  
  .btn-filled {
    font-size: 18px;
    padding: 12px 36px;
    border-radius: 8px;
  }
  
  /* Book Promo */
  .book-section {
    padding: 60px 20px 80px;
  }
  
  .book-image {
    margin-bottom: 36px;
  }
  
  .book-promo h2 {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.3;
  }
  
  .book-promo .divider-light {
    margin: 20px auto 36px;
  }
  
  .btn-outline-light {
    font-size: 18px;
    padding: 12px 28px;
    border-radius: 8px;
  }
  
  /* Footer */
  .footer-logos {
    padding: 48px 16px 36px;
    gap: 20px;
  }
  
  .social-icon-footer svg {
    width: 56px;
    height: 56px;
  }
  
  .footer-dark {
    padding: 48px 20px;
  }
  
  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .contact-block h4 {
    font-size: 26px;
  }
  
  .contact-block p {
    font-size: 18px;
    line-height: 26px;
  }
}

/* --- 4. Extra Small Phones (<= 380px) --- */
@media (max-width: 380px) {
  .hero-images,
  .about-images {
    max-width: 280px;
    height: 280px;
  }
  
  .hero-text h1,
  .about h2,
  .explore h2 {
    font-size: 28px;
  }
  
  .btn-outline,
  .btn-filled,
  .btn-outline-light {
    font-size: 16px;
    padding: 10px 24px;
  }
  
  .tab {
    font-size: 14px;
    padding: 12px 14px;
  }
}


/* ==========================================================================
   Mandate / About Us Modal System
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay:not([hidden]) {
  display: flex;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  background: var(--bg-cream, #f5f3ed);
  border: 2px solid var(--text-dark, #111111);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  background: var(--bg-cream);
  position: relative;
}

.modal-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 4px;
}

.modal-header h2 {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text-dark, #111111);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.modal-subtag {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #666666;
  text-transform: uppercase;
  margin-top: 4px;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--text-dark, #111111);
  color: var(--text-dark, #111111);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.modal-close:hover {
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
}

.modal-body {
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.15);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.modal-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.modal-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
  border-radius: 2px;
  margin-bottom: 12px;
}

.modal-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark, #111111);
  margin-bottom: 10px;
  line-height: 1.3;
}

.modal-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-style: normal;
  line-height: 1.65;
  color: #444444;
  border-left: none;
  padding-left: 0;
  margin-top: 8px;
}

.modal-card-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
}

.modal-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-banner-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg-cream, #f5f3ed);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark, #111111);
}

.modal-footer {
  padding: 18px 32px;
  background: var(--bg-cream);
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  display: flex;
  justify-content: flex-end;
}

.modal-dismiss-btn {
  padding: 10px 28px;
  font-size: 15px;
  cursor: pointer;
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px;
  }

  .modal-container {
    max-height: 92vh;
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .modal-body {
    padding: 20px;
    gap: 16px;
  }

  .modal-card {
    padding: 18px;
  }

  .modal-grid-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-footer {
    padding: 14px 20px;
  }
}


/* Tab Panels */
.tab-panel {
  display: none;
  width: 100%;
  animation: fadeInPanel 0.35s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.events-grid .gallery-card img,
.livestreams-grid .gallery-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}


/* ==========================================================================
   Event Carousel & Swipe Reel
   ========================================================================== */
.event-gallery-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.event-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.event-pill-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
  border-radius: 2px;
  margin-bottom: 8px;
}

.event-title {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-dark, #111111);
  margin: 0 0 6px;
  line-height: 1.2;
}

.event-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #666666;
  margin: 0;
}

.event-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #111111);
  min-width: 44px;
  text-align: center;
  letter-spacing: 0.05em;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-cream, #f5f3ed);
  border: 1px solid var(--text-dark, #111111);
  color: var(--text-dark, #111111);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
}

/* .carousel-arrow:disabled removed */

/* The Carousel Track */
.event-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.event-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 2px 20px;
  scrollbar-width: none;
  cursor: grab;
}

.event-carousel-track::-webkit-scrollbar {
  display: none;
}

.event-carousel-track.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.event-slide {
  flex: 0 0 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.event-slide-card {
  position: relative;
  width: 100%;
  height: 460px;
  border: 1px solid var(--text-dark, #111111);
  background: #0a0a0a;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.event-slide-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block;
}

.event-slide-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-slide-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark, #111111);
  line-height: 1.3;
  margin: 0;
}

.event-slide-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Dots */
.event-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-dark, #111111);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-dot.active {
  background: var(--text-dark, #111111);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .event-slide {
    flex: 0 0 85vw;
    max-width: 340px;
  }

  .event-slide-card {
    height: 420px;
  }

  .event-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .event-carousel-controls {
    width: 100%;
    justify-content: space-between;
  }
}


/* Event Switcher Pills */
.event-nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  padding-bottom: 18px;
}

.event-nav-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777777;
}

.event-selector-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  background: transparent;
  color: var(--text-dark, #111111);
  border: 1px solid var(--text-dark, #111111);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.event-pill:hover {
  background: #e8e2d4;
}

.event-pill.active {
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
}

.event-pill .pill-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.08);
  color: inherit;
}

.event-pill.active .pill-badge {
  background: rgba(245, 243, 237, 0.2);
}

.event-group {
  display: none;
  animation: fadeInPanel 0.35s ease forwards;
}

.event-group.active {
  display: block;
}

/* ==========================================================================
   Service Times Panel Styles
   ========================================================================== */
.schedule-section-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.schedule-header-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.schedule-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.schedule-main-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--text-dark, #111111);
  margin-bottom: 10px;
}

.schedule-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #555555;
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.schedule-sanctuary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid var(--text-dark, #111111);
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #222222;
}

.schedule-sanctuary-pill svg {
  color: #8a6a24;
  flex-shrink: 0;
}

.schedule-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.schedule-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--text-dark, #111111);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.schedule-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #111111;
}

.schedule-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.schedule-card:hover .schedule-card-image img {
  transform: scale(1.04);
}

.schedule-day-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--text-dark, #111111);
  color: #f5f3ed;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.schedule-day-pill.night-pill {
  background: #4a148c;
  color: #ffffff;
}

.schedule-card-content {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.schedule-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8a6a24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.schedule-time-row svg {
  flex-shrink: 0;
}

.schedule-service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark, #111111);
  margin-bottom: 12px;
  line-height: 1.3;
}

.schedule-service-desc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
  margin-bottom: 20px;
  flex: 1;
}

.schedule-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-cream, #f5f3ed);
  border: 1px solid rgba(17, 17, 17, 0.15);
  color: #333333;
  padding: 4px 10px;
  border-radius: 4px;
}

.schedule-welcome-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #111111;
  color: #f5f3ed;
  padding: 28px 36px;
  border-radius: 4px;
  margin-top: 10px;
}

.welcome-box-icon {
  color: #d4af37;
  flex-shrink: 0;
  padding-top: 2px;
}

.welcome-box-text h4 {
  font-family: 'Playfair Display SC', serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5f3ed;
  margin-bottom: 8px;
}

.welcome-box-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #dddddd;
}

.welcome-box-text a {
  color: #d4af37;
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   Giving Panel Styles
   ========================================================================== */
.giving-section-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.giving-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.giving-main-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--text-dark, #111111);
  margin-bottom: 10px;
}

.giving-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #555555;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.giving-scripture-box {
  position: relative;
  max-width: 860px;
  margin: 0 auto 40px;
  background: #ffffff;
  border: 1px solid var(--text-dark, #111111);
  padding: 24px 36px;
  border-radius: 0;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.scripture-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  color: #8a6a24;
  line-height: 1;
  margin-bottom: -10px;
}

.scripture-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: #222222;
  margin-bottom: 10px;
}

.scripture-ref {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a6a24;
  display: block;
}

/* Single Church Account Card Wrapper */
.giving-single-card-wrap {
  max-width: 580px;
  margin: 0 auto 40px;
}

.giving-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--text-dark, #111111);
  border-radius: 0;
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.giving-card.single-card {
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.giving-card.single-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.giving-card-header {
  margin-bottom: 8px;
}

.giving-pill-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--text-dark, #111111);
  border: 1px solid var(--text-dark, #111111);
  color: #f5f3ed;
  padding: 6px 14px;
  border-radius: 0;
  margin-bottom: 16px;
}

.giving-account-purpose {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark, #111111);
  margin-bottom: 10px;
  line-height: 1.25;
}

.giving-account-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.giving-details-box {
  background: var(--bg-cream, #f5f3ed);
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
}

.giving-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.15);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.giving-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: #666666;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark, #111111);
  text-align: right;
}

.giving-detail-item.account-num-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
}

.detail-account-number {
  font-family: 'Poppins', monospace, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark, #111111);
  letter-spacing: 3px;
  display: block;
}

.btn-copy-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--text-dark, #111111);
  color: #f5f3ed;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 22px;
  border-radius: 0;
  border: 1px solid var(--text-dark, #111111);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-account:hover {
  background: #333333;
  transform: translateY(-1px);
}

.btn-copy-account.copied {
  background: #1b5e20 !important;
  border-color: #1b5e20 !important;
  color: #ffffff !important;
}

.btn-copy-account svg {
  flex-shrink: 0;
}

.giving-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(17, 17, 17, 0.03);
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 0;
  padding: 20px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #444444;
}

.notice-icon {
  color: #8a6a24;
  flex-shrink: 0;
  padding-top: 2px;
}

.giving-notice-box a {
  color: var(--text-dark, #111111);
  font-weight: 600;
  text-decoration: underline;
}

/* Toast feedback */
.giving-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #111111;
  color: #f5f3ed;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  border: 1px solid rgba(245, 243, 237, 0.2);
}

.giving-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Overrides for Schedule and Giving */
@media (max-width: 1024px) {
  .schedule-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .giving-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .schedule-main-heading,
  .giving-main-heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .schedule-main-heading,
  .giving-main-heading {
    font-size: 26px;
  }
  
  .schedule-subheading,
  .giving-subheading {
    font-size: 14px;
  }

  .schedule-sanctuary-pill {
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 0;
    flex-direction: column;
    text-align: center;
  }

  .schedule-card-image {
    height: 180px;
  }

  .schedule-card-content {
    padding: 18px 20px 22px;
  }

  .schedule-service-title {
    font-size: 20px;
  }

  .schedule-welcome-box {
    flex-direction: column;
    padding: 20px 22px;
    gap: 12px;
  }

  .giving-scripture-box {
    padding: 18px 20px;
  }

  .scripture-text {
    font-size: 15px;
  }

  .giving-notice-box {
    flex-direction: column;
    padding: 16px 18px;
    gap: 10px;
  }
}

/* ==========================================================================
   Scriptural Promises Section
   ========================================================================== */
.scriptures-section {
  width: 100%;
  background: var(--bg-cream, #f5f3ed);
  padding: 100px 24px 110px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  position: relative;
}

.scriptures-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.scriptures-header {
  text-align: center;
  margin-bottom: 50px;
}

.scriptures-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--text-dark, #111111);
  color: var(--bg-cream, #f5f3ed);
  padding: 6px 16px;
  border-radius: 0;
  margin-bottom: 16px;
}

.scriptures-heading {
  font-family: 'Playfair Display SC', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-dark, #111111);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scriptures-header .divider {
  margin: 18px auto 20px;
}

.scriptures-subheading {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #555555;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.scripture-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--text-dark, #111111);
  border-radius: 0;
  padding: 36px 30px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.scripture-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.scripture-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.scripture-card-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: var(--bg-cream, #f5f3ed);
  border: 1px solid rgba(17, 17, 17, 0.2);
  color: #333333;
  padding: 4px 10px;
  border-radius: 0;
}

.scripture-card-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: #8a6a24;
  margin-bottom: -16px;
}

.scripture-card-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: #222222;
  margin: 0 0 24px;
  flex: 1;
}

.scripture-card-footer {
  border-top: 1px dashed rgba(17, 17, 17, 0.15);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.scripture-card-ref {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #8a6a24;
  letter-spacing: 0.5px;
}

.scripture-card-context {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive for scriptures */
@media (max-width: 1024px) {
  .scriptures-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .scriptures-section {
    padding: 70px 18px 80px;
  }

  .scriptures-heading {
    font-size: 26px;
  }

  .scriptures-subheading {
    font-size: 14px;
  }

  .scripture-card {
    padding: 28px 22px 24px;
  }

  .scripture-card-text {
    font-size: 15px;
  }
}

/* ==========================================================================
   Scroll-Reveal Micro-Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards inside revealed sections */
.reveal.is-revealed .gallery-item,
.reveal.is-revealed .schedule-card,
.reveal.is-revealed .giving-card,
.reveal.is-revealed .scripture-card {
  animation: cardFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.is-revealed .gallery-item:nth-child(1),
.reveal.is-revealed .schedule-card:nth-child(1),
.reveal.is-revealed .scripture-card:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal.is-revealed .gallery-item:nth-child(2),
.reveal.is-revealed .schedule-card:nth-child(2),
.reveal.is-revealed .scripture-card:nth-child(2) {
  animation-delay: 0.2s;
}

.reveal.is-revealed .gallery-item:nth-child(3),
.reveal.is-revealed .schedule-card:nth-child(3),
.reveal.is-revealed .scripture-card:nth-child(3) {
  animation-delay: 0.3s;
}

.reveal.is-revealed .gallery-item:nth-child(4),
.reveal.is-revealed .schedule-card:nth-child(4) {
  animation-delay: 0.4s;
}

.reveal.is-revealed .gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Smooth Tab Transitions (Explore Section)
   ========================================================================== */
.tab-panel.active {
  animation: panelSlideFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelSlideFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab panel switch cascade */
.tab-panel.active .schedule-card:nth-child(1) { animation: cardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.tab-panel.active .schedule-card:nth-child(2) { animation: cardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.tab-panel.active .schedule-card:nth-child(3) { animation: cardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.tab-panel.active .schedule-card:nth-child(4) { animation: cardFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both; }
.tab-panel.active .giving-card.single-card { animation: cardFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }

/* ==========================================================================
   Hero Interactive Parallax & Micro-Motion
   ========================================================================== */
.hero-images {
  perspective: 1200px;
}

.hero-img-back,
.hero-img-front {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-revealed,
  .tab-panel.active,
  .gallery-item,
  .schedule-card,
  .scripture-card,
  .giving-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

