/* =============================================================
   ACTIVE IN CHRIST (GO) — Global Stylesheet
   Color Palette: Navy (#1b3060) + Warm Gold (#c8a24a)
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================================= */

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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2c2c2c;
  background: #faf9f6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: #1b3060; text-decoration: none; }
a:hover { color: #c8a24a; }

ul { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --navy:        #1b3060;
  --navy-dark:   #102040;
  --navy-light:  #2a4590;
  --gold:        #c8a24a;
  --gold-light:  #e8c97a;
  --gold-pale:   #f9f1de;
  --white:       #ffffff;
  --bg:          #faf9f6;
  --bg-warm:     #f5f2eb;
  --text:        #2c2c2c;
  --text-muted:  #666;
  --border:      #e0ddd4;
  --shadow:      0 4px 24px rgba(27,48,96,.10);
  --shadow-lg:   0 8px 40px rgba(27,48,96,.16);
  --radius:      6px;
  --radius-lg:   12px;
  --max-w:       1200px;
}

/* ===== SITE ANNOUNCEMENT BANNER ===== */
.site-announcement {
  background: var(--navy-dark);
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: .5px;
}
.site-announcement strong { color: var(--gold-light); }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .logo-img {
  width: 44px;
  height: 44px;
  max-width: 44px;
  min-width: 44px;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--gold-light); letter-spacing: 1.5px; text-transform: uppercase; }

/* Main Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 10px 14px;
  color: rgba(255,255,255,.90);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-link.active { background: rgba(255,255,255,.12); color: var(--gold-light); }

/* Dropdown */
.has-dropdown > .nav-link::after { content: ' ▾'; font-size: 10px; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  border-top: 3px solid var(--gold);
  z-index: 999;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--gold-pale); color: var(--navy); }

/* Sub-dropdown */
.sub-dropdown { position: relative; }
.sub-dropdown > a::after { content: ' ›'; float: right; }
.sub-menu {
  display: none;
  position: absolute;
  top: 0; left: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  border-top: 3px solid var(--gold);
}
.sub-dropdown:hover .sub-menu { display: block; }
.sub-menu a { font-size: 13px; padding: 9px 16px; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: white;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; margin: 4px 0;
  transition: .3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--navy-dark);
  padding: 12px 0;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 10px 24px;
  color: rgba(255,255,255,.85); font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }
.mobile-nav .mobile-indent { padding-left: 40px; font-size: 13px; }
.mobile-nav .mobile-indent-2 { padding-left: 56px; font-size: 12px; color: rgba(255,255,255,.65); }

/* ===== PAGE HERO BANNER ===== */
.page-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(27,48,96,.45) 0%, rgba(27,48,96,.65) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 20px;
  color: white;
}
.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 12px;
}
.page-hero-content p {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,.88);
  max-width: 680px;
  margin: 0 auto;
}

/* Shorter hero for inner pages */
.page-hero.page-hero--sm { height: 280px; }
.page-hero--sm .page-hero-content h1 { font-size: clamp(24px, 4vw, 40px); }

/* ===== MAIN CONTENT ===== */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.site-main.narrow { max-width: 860px; }

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}
.section-divider {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 12px 0 32px;
  border-radius: 2px;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 32px 0;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h2, .card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}
.card-body h2 a, .card-body h3 a { color: var(--navy); }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--gold); }
.card-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
  margin: 8px 0;
}
.card-body .card-ref {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-light);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 8px;
}
.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-link::after { content: ' →'; }
.card-link:hover { color: var(--gold); }

/* ===== SCRIPTURE CALLOUT ===== */
.scripture-callout {
  background: var(--gold-pale);
  border-left: 5px solid var(--gold);
  padding: 24px 28px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 32px 0;
}
.scripture-callout p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--navy);
  font-style: italic;
  line-height: 1.6;
}
.scripture-callout cite {
  display: block;
  margin-top: 10px;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-light);
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ===== FEATURE BANNER (image + text side by side) ===== */
.feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 40px 0;
}
.feature-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.feature-banner-content {
  background: var(--navy);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-banner-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 14px;
}
.feature-banner-content p { color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
.feature-banner-content a.btn { margin-top: 8px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: var(--gold-light); }

/* ===== PROSE CONTENT ===== */
.prose { max-width: 760px; }
.prose h1, .prose h2, .prose h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin: 28px 0 12px;
}
.prose h1 { font-size: clamp(26px, 4vw, 40px); }
.prose h2 { font-size: clamp(20px, 3vw, 28px); border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.prose h3 { font-size: clamp(17px, 2vw, 22px); color: var(--navy-light); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; list-style: disc; }
.prose a { color: var(--navy-light); text-decoration: underline; }
.prose a:hover { color: var(--gold); }
.prose strong { color: var(--navy); }
.prose blockquote {
  border-left: 4px solid var(--gold);
  padding: 12px 20px;
  background: var(--gold-pale);
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--navy);
}

/* ===== RESOURCE LINKS LIST ===== */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.resource-link {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.resource-link:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--navy-dark); transform: translateX(3px); }
.resource-link::before { content: '→ '; color: var(--gold); }

/* ===== AUDIO BIBLE SECTION ===== */
.audio-bible { margin: 32px 0; }
.audio-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.audio-section-title:first-of-type { margin-top: 0; }
.audio-books {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.audio-link {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: .2s;
}
.audio-link:hover { background: var(--gold); color: var(--navy-dark); }

/* ===== BIBLE OUTLINE ===== */
.bible-book { margin-bottom: 24px; }
.bible-book h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 6px;
}
.bible-book h3 a { color: var(--navy); }
.bible-book h3 a:hover { color: var(--gold); }
.bible-book p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.bible-book .author { font-size: 12px; color: var(--navy-light); font-style: italic; }

/* ===== TIMELINE ===== */
.timeline { margin: 32px 0; }
.timeline-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.timeline-entry:last-child { border-bottom: none; }
.timeline-date { color: var(--navy); font-weight: 700; }
.timeline-event a { color: var(--navy-light); }
.timeline-event a:hover { color: var(--gold); }
.timeline-ref { font-size: 12px; color: var(--text-muted); }

/* ===== PSALM 23 SECTION ===== */
.psalm23 {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin: 40px 0;
}
.psalm23 h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-align: center;
}
.psalm23-verse {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  line-height: 1.6;
}
.psalm23-verse:last-child { border-bottom: none; }
.psalm23-text { color: rgba(255,255,255,.90); font-style: italic; }
.psalm23-meaning {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  align-self: center;
  min-width: 120px;
  text-align: right;
}

/* ===== PILLAR BOXES ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.pillar-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.pillar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar-box p { font-size: 14px; color: var(--text-muted); }

/* ===== PRAYER BLOCK ===== */
.prayer-block {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--border);
  margin: 32px 0;
}
.prayer-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 14px;
}
.prayer-block p { font-style: italic; color: var(--text); line-height: 1.8; }

/* ===== VIDEO EMBED ===== */
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-lg); margin: 20px 0; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ===== DAILY DEVOTIONS STRIP ===== */
.devotions-strip {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
}
.devotions-strip img { width: 100%; height: 100%; object-fit: cover; }
.devotions-content {
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.devotions-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 26px;
  margin-bottom: 10px;
}
.devotions-content p { color: rgba(255,255,255,.80); font-size: 15px; margin-bottom: 18px; }

/* ===== STEPS LIST ===== */
.steps { counter-reset: step; margin: 20px 0; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step-text { font-size: 15px; padding-top: 6px; }

/* ===== TABS (for Bible Topics etc) ===== */
.tab-bar {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 8px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--navy); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== ACCORDION ===== */
.accordion { margin: 20px 0; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.acc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--white);
  font-weight: 700;
  color: var(--navy);
  transition: background .2s;
}
.acc-header:hover { background: var(--gold-pale); }
.acc-header::after { content: '+'; font-size: 20px; color: var(--gold); }
.acc-item.open .acc-header::after { content: '−'; }
.acc-body { display: none; padding: 16px 20px; background: var(--bg); border-top: 1px solid var(--border); font-size: 14px; }
.acc-item.open .acc-body { display: block; }

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: var(--bg-warm);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--navy-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 6px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 24px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: var(--gold-light); }
.footer-tagline { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.60); line-height: 1.6; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.40);
}
.footer-verse {
  font-style: italic;
  color: rgba(255,255,255,.50);
  font-size: 12px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--navy);
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: .3s;
  z-index: 900;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }

  .page-hero { height: 300px; }
  .page-hero--sm { height: 200px; }

  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }

  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner img { min-height: 200px; max-height: 250px; }

  .devotions-strip { grid-template-columns: 1fr; }
  .devotions-strip img { max-height: 200px; }

  .psalm23 { padding: 24px 20px; }
  .psalm23-verse { flex-direction: column; gap: 4px; }
  .psalm23-meaning { min-width: auto; text-align: left; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .timeline-entry { grid-template-columns: 90px 1fr; }

  .site-main { padding: 32px 16px 48px; }

  .devotions-strip { border-radius: var(--radius); }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .logo-text { font-size: 15px; }
  .resource-list { grid-template-columns: 1fr; }
  .audio-books { gap: 6px; }
  .audio-link { font-size: 12px; padding: 5px 12px; }
}

/* ===== SCRIPTURE IMAGE CARDS (The Bible page) ===== */
.scripture-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 16px;
}
.scripture-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.scripture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.scripture-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.scripture-card-caption {
  padding: 18px 20px 20px;
  background: var(--navy);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.scripture-card-caption p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.scripture-card-caption cite {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .scripture-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .scripture-card-grid { grid-template-columns: 1fr; }
  .scripture-card img { height: 200px; }
}

/* ===== BIBLE CHART CARDS ===== */
.bible-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 16px;
}
.bible-chart-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.bible-chart-card:hover,
.bible-chart-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  outline: none;
}
.bible-chart-img-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
}
.bible-chart-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity .2s;
}
.bible-chart-card:hover .bible-chart-img-wrap img { opacity: .88; }
.bible-chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(27,48,96,.35);
}
.bible-chart-card:hover .bible-chart-overlay,
.bible-chart-card:focus .bible-chart-overlay { opacity: 1; }
.bible-chart-overlay span {
  background: var(--navy);
  color: white;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.bible-chart-caption {
  padding: 20px 22px 22px;
}
.bible-chart-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}
.bible-chart-caption p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}
.bible-chart-ref {
  font-size: 12px !important;
  font-weight: 700;
  color: var(--navy-light) !important;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: calc(95vh - 60px);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: background .2s;
}
.lightbox-close:hover { background: white; }
.lightbox-caption {
  margin-top: 14px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  text-align: center;
  font-style: italic;
}

@media (max-width: 700px) {
  .bible-charts-grid { grid-template-columns: 1fr; }
  .bible-chart-img-wrap img { height: 200px; }
}
