/* =====================================================
   KINGDOM FREEDOM CHURCH — Design System
   iOS 26 Liquid Glass Aesthetic
   Colors: Burgundy (#6B1D2A) & White
   ===================================================== */

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

/* === CSS Custom Properties === */
:root {
  /* Primary Colors */
  --burgundy: #6B1D2A;
  --burgundy-dark: #4A1019;
  --burgundy-light: #8C2E3D;
  --burgundy-glow: rgba(107, 29, 42, 0.4);
  --burgundy-subtle: rgba(107, 29, 42, 0.08);

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F6F7;
  --cream: #FDF5F6;
  --gray-50: #FAF9F9;
  --gray-100: #F3F0F1;
  --gray-200: #E8E3E5;
  --gray-300: #D4CDD0;
  --gray-400: #B0A5A9;
  --gray-500: #8A7D82;
  --gray-600: #655B5F;
  --gray-700: #463E41;
  --gray-800: #2D2729;
  --gray-900: #1A1617;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(107, 29, 42, 0.12);
  --glass-shadow-elevated: 0 16px 48px rgba(107, 29, 42, 0.18);
  --glass-blur: blur(24px);
  --glass-blur-heavy: blur(40px);

  /* Dark Glass */
  --glass-dark-bg: rgba(26, 22, 23, 0.78);
  --glass-dark-border: rgba(255, 255, 255, 0.12);
  --glass-dark-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius (iOS 26 style — generous) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 500ms;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-navbar: 500;
  --z-modal: 1000;
  --z-toast: 1500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--off-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background gradient */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(107, 29, 42, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(107, 29, 42, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.heading-display {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.heading-section {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.text-caption {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
}

/* === Liquid Glass Card === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-elevated);
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
}

.glass-card-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-dark-shadow);
  color: var(--white);
}

/* === Navigation Bar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-lg);
  box-shadow: var(--glass-shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--burgundy);
  white-space: nowrap;
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar-brand span {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--burgundy);
  background: var(--burgundy-subtle);
}

.nav-link.active {
  color: var(--white);
  background: var(--burgundy);
  font-weight: 600;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 23, 0.5);
  backdrop-filter: blur(8px);
  z-index: var(--z-navbar);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.nav-mobile-overlay.show {
  opacity: 1;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: var(--space-md);
  right: var(--space-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-elevated);
  padding: var(--space-md);
  z-index: calc(var(--z-navbar) + 1);
  transform: translateY(-10px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
}

.nav-mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile-menu .nav-link {
  display: block;
  padding: var(--space-md);
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--burgundy-dark) 0%, var(--burgundy) 40%, var(--burgundy-light) 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/kids_background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  mix-blend-mode: luminosity;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--off-white), transparent);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(255, 200, 200, 0.08);
  top: 60%;
  right: 10%;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  bottom: 20%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: rgba(255, 200, 200, 0.9);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.3s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.5s both;
}

.scroll-pill {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(16px); opacity: 0.3; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-spring);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.btn-primary {
  background: var(--white);
  color: var(--burgundy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-burgundy {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 16px var(--burgundy-glow);
}

.btn-burgundy:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px var(--burgundy-glow);
}

.btn-burgundy:active {
  transform: translateY(0) scale(0.98);
}

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

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* === Sections === */
.section {
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  z-index: var(--z-base);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-header .text-caption {
  margin-bottom: var(--space-sm);
}

.section-header .heading-section {
  margin-bottom: var(--space-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* === Feature Cards Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  text-align: left;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--white);
  box-shadow: 0 4px 12px var(--burgundy-glow);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Quote of the Day === */
.quote-section {
  padding: var(--space-3xl) var(--space-lg);
}

.quote-card {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl);
  text-align: center;
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
  border-radius: var(--radius-xl);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-family: var(--font-serif);
  font-size: 12rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  pointer-events: none;
}

.quote-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.quote-card cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  display: block;
  position: relative;
  z-index: 1;
}

/* === Events Section === */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  align-items: flex-start;
}

.event-date-badge {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px var(--burgundy-glow);
}

.event-date-badge .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.event-date-badge .day {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.event-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.event-info .event-time {
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-info .event-time svg {
  width: 14px;
  height: 14px;
}

.event-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* === Bible Reader === */
.bible-container {
  max-width: 900px;
  margin: 0 auto;
}

.bible-reader {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  animation: pageIn 0.4s var(--ease-smooth);
}

/* Search Bar */
.bible-search-wrapper {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--space-md);
}

.bible-search-input {
  flex: 1;
  padding: 12px var(--space-lg);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-800);
  outline: none;
}

.bible-search-input::placeholder {
  color: var(--gray-400);
}

.bible-search-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-spring);
  box-shadow: 0 4px 12px var(--burgundy-glow);
}

.bible-search-btn:hover {
  background: var(--burgundy-light);
  transform: scale(1.05);
  box-shadow: 0 6px 18px var(--burgundy-glow);
}

.bible-search-btn:active {
  transform: scale(0.95);
}

/* Testament sections */
.bible-section {
  margin-bottom: var(--space-xl);
}

.bible-section-header {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--burgundy-subtle);
}

.section-count {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

/* Book Grid & buttons */
.bible-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.bible-book-btn {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.bible-book-btn .book-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: color var(--duration-fast);
}

.bible-book-btn .book-chapters {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--duration-fast);
}

.bible-book-btn:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.bible-book-btn:hover .book-name,
.bible-book-btn:hover .book-chapters {
  color: var(--white);
}

/* Back Button */
.bible-back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--burgundy);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-sm);
}

.bible-back-btn:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Chapter selection headers */
.bible-chapter-header,
.bible-verse-header,
.bible-search-result-header {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  text-align: center;
}

.chapter-book-name,
.verse-title,
.search-result-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.chapter-subtitle,
.verse-reference,
.search-result-translation {
  font-size: 0.95rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Chapter grid & buttons */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.bible-chapter-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.bible-chapter-btn:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Verses */
.bible-verse-body {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  line-height: 1.8;
}

.verse-text {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  text-align: left;
}

.verse-text:last-child {
  margin-bottom: 0;
}

.verse-text .verse-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--burgundy);
  vertical-align: super;
  margin-right: 8px;
  background: var(--burgundy-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Chapter navigation (Prev/Next) */
.bible-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.chapter-nav-btn {
  flex: 1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--burgundy);
  text-align: center;
  cursor: pointer;
}

.chapter-nav-btn:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

/* Loader */
.bible-loading {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.bible-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-md);
}

.bible-loading-text {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Error */
.bible-error {
  padding: var(--space-2xl);
  text-align: center;
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: var(--space-xl) auto;
}

.bible-error-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.bible-error-text {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.bible-retry-btn {
  padding: 12px 24px;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-pill);
  box-shadow: var(--burgundy-glow);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.bible-retry-btn:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px);
}

/* === Admin Panel === */
.admin-login-wrap {
  max-width: 420px;
  margin: 120px auto 0;
  padding: var(--space-lg);
}

.admin-login-card {
  padding: var(--space-2xl);
  text-align: center;
}

.admin-login-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.admin-login-card p {
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.admin-login-card .lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--white);
  box-shadow: 0 8px 24px var(--burgundy-glow);
}

.admin-login-card .lock-icon svg {
  width: 28px;
  height: 28px;
}

.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  outline: none;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.form-input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-subtle);
}

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

/* Admin Dashboard */
.admin-dashboard {
  max-width: 900px;
  margin: 100px auto 0;
  padding: var(--space-lg);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.admin-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.admin-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: var(--space-xs);
}

.admin-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.admin-tab.active {
  background: var(--burgundy);
  color: var(--white);
}

.admin-tab:hover:not(.active) {
  color: var(--burgundy);
  background: var(--burgundy-subtle);
}

.admin-form-card {
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.admin-form-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-item-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
}

.admin-item-card:hover {
  transform: none;
}

.admin-item-content {
  flex: 1;
}

.admin-item-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.admin-item-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.admin-item-content .item-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 6px;
}

.admin-item-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.btn-icon-danger {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.btn-icon-danger:hover {
  background: #dc3545;
  color: white;
}

.btn-icon-edit {
  color: var(--burgundy);
  background: var(--burgundy-subtle);
}

.btn-icon-edit:hover {
  background: var(--burgundy);
  color: white;
}

/* === Service Times === */
.service-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  padding: var(--space-xl);
  text-align: center;
}

.service-card .service-day {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgundy);
  margin-bottom: var(--space-sm);
}

.service-card .service-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-card .service-time-text {
  font-size: 1rem;
  color: var(--gray-500);
}

/* === Footer === */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  position: relative;
  z-index: var(--z-base);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color var(--duration-fast);
  cursor: pointer;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === Loading Spinner === */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: var(--space-xl) auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

/* === Toast Notifications === */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-elevated);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  animation: toastIn 0.4s var(--ease-spring) both;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 380px;
}

.toast-success {
  border-left: 4px solid #22c55e;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-info {
  border-left: 4px solid var(--burgundy);
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-exit {
  animation: toastOut 0.3s var(--ease-smooth) forwards;
}

@keyframes toastOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* === Page Transitions === */
.page {
  display: none;
  animation: pageIn 0.5s var(--ease-smooth) both;
}

.page.active {
  display: block;
}

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

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

/* === Intersection Observer Animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--ease-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-image-wrap svg {
  width: 120px;
  height: 120px;
  color: rgba(255,255,255,0.3);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--gray-500);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.value-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--burgundy-subtle);
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 600;
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--gray-400);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.empty-state p {
  font-size: 1rem;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 23, 0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-spring);
  box-shadow: var(--glass-shadow-elevated);
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.modal-close:hover {
  background: var(--gray-200);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-overlay,
  .nav-mobile-menu {
    display: block;
  }

  .navbar-inner {
    padding: var(--space-sm) var(--space-md);
  }

  .hero {
    padding: var(--space-3xl) var(--space-md);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-values {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-times-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-item-card {
    flex-direction: column;
  }

  .admin-item-actions {
    align-self: flex-end;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .chapter-grid {
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  }

  .section {
    padding: var(--space-3xl) var(--space-md);
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar-brand span {
    font-size: 0.9rem;
  }

  .quote-card {
    padding: var(--space-xl);
  }

  .admin-login-wrap {
    margin-top: 100px;
    padding: var(--space-md);
  }

  .bible-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .bible-search-wrap {
    min-width: unset;
  }
}

@media (min-width: 769px) {
  .nav-mobile-overlay,
  .nav-mobile-menu {
    display: none !important;
  }
}

/* =====================================================
  BELIEVERS GUIDE & SALVATION GUIDE PAGES STYLING
  ===================================================== */

.guide-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.guide-tabs {
  display: flex;
  background: var(--gray-100);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  transition: all var(--duration-fast) var(--ease-spring);
  white-space: nowrap;
}

.guide-tab:hover {
  color: var(--burgundy);
  background: rgba(107, 29, 42, 0.04);
}

.guide-tab.active {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 12px var(--burgundy-glow);
}

.guide-tab-content {
  display: none;
  animation: fadeIn var(--duration-normal) var(--ease-smooth);
}

.guide-tab-content.active {
  display: block;
}

/* Stepping Stones Stepper Layout */
.milestones-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.milestones-steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.milestone-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  text-align: left;
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-smooth);
  border: 1px solid transparent;
}

.milestone-btn:hover {
  background: var(--gray-100);
  color: var(--burgundy);
}

.milestone-btn .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gray-200);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-700);
  flex-shrink: 0;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.milestone-btn.active {
  background: var(--burgundy-subtle);
  color: var(--burgundy);
  border-color: rgba(107, 29, 42, 0.15);
  font-weight: 600;
}

.milestone-btn.active .step-num {
  background: var(--burgundy);
  color: var(--white);
}

.milestone-details-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  min-height: 480px;
}

.milestone-step-detail {
  display: none;
  animation: fadeIn var(--duration-normal) var(--ease-smooth);
}

.milestone-step-detail.active {
  display: block;
}

.badge-step {
  display: inline-block;
  padding: 4px 12px;
  background: var(--burgundy-subtle);
  color: var(--burgundy);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.milestone-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  font-family: var(--font-serif);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.card-highlight {
  background: var(--off-white);
  border-left: 4px solid var(--burgundy);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.card-highlight h4 {
  color: var(--burgundy-dark);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.card-highlight ul {
  padding-left: var(--space-lg);
}

.card-highlight li {
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bible-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--burgundy-dark);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: var(--cream);
  border-radius: var(--radius-sm);
  position: relative;
  text-align: center;
}

.bible-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

.timeline-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.inner-card {
  padding: var(--space-lg);
  box-shadow: none;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
}

/* Questionnaire Reflection Form Styling */
.form-section-title {
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: var(--space-xl) 0 var(--space-md) 0;
  border-bottom: 2px solid var(--burgundy-subtle);
  padding-bottom: 6px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.actions-grid button {
  min-width: 200px;
}

/* Practical Details Lists */
.practical-list li {
  line-height: 1.7;
}

/* Admin Dashboard Submissions */
.admin-submission-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--glass-shadow);
  transition: all var(--duration-fast) var(--ease-smooth);
  animation: fadeIn var(--duration-normal) var(--ease-smooth);
}

.admin-submission-card:hover {
  box-shadow: var(--glass-shadow-elevated);
  border-color: var(--burgundy-light);
}

.submission-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.submission-meta h4 {
  font-size: 1.1rem;
  color: var(--burgundy);
}

.submission-meta span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.submission-qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.qa-item {
  background: var(--gray-50);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gray-300);
}

.qa-item .question-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.qa-item .answer-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .milestones-layout {
    grid-template-columns: 1fr;
  }
  
  .milestones-steps-list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--space-sm);
  }
  
  .milestones-steps-list::-webkit-scrollbar {
    display: none;
  }
  
  .milestone-btn {
    padding: var(--space-sm) var(--space-md);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xs);
  }
  
  .milestone-btn .step-lbl {
    display: none; /* Hide label, just show number in tabs on mobile */
  }
  
  .milestone-btn .step-num {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .milestone-details-panel {
    padding: var(--space-lg);
    min-height: auto;
  }
  
  .form-row-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* Print Styles for study guide */
@media print {
  body * {
    visibility: hidden;
  }
  #page-faith-guide, #page-faith-guide * {
    visibility: visible;
  }
  #page-faith-guide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding-top: 0 !important;
  }
  .guide-tabs-container, .actions-grid, .badge-step, button {
    display: none !important;
  }
  .guide-tab-content {
    display: none !important;
  }
  #guide-tab-reflection {
    display: block !important;
  }
  .form-textarea {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    min-height: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .form-input {
    border: none !important;
    border-bottom: 1px solid #000 !important;
    background: transparent !important;
  }
}

/* ===================================================
   SERMONS
   =================================================== */

/* --- Sermons Controls / Search --- */
.sermons-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.sermon-search-wrap {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.sermon-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  pointer-events: none;
}

.sermon-search-input {
  padding-left: 46px !important;
  width: 100%;
}

/* --- Sermon Grid (Public Page) --- */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

/* --- Sermon Preview Grid (Home) --- */
.sermons-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* --- Sermon Card --- */
.sermon-card {
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-lg);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth);
  outline: none;
}

.sermon-card:hover,
.sermon-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--glass-shadow-elevated);
}

.sermon-card:focus-visible {
  box-shadow: 0 0 0 3px var(--burgundy), var(--glass-shadow-elevated);
}

/* Thumbnail / Play Overlay */
.sermon-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  overflow: hidden;
}

.sermon-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-smooth),
              filter var(--duration-normal) var(--ease-smooth);
}

.sermon-card:hover .sermon-thumb {
  transform: scale(1.05);
  filter: brightness(0.7);
}

.sermon-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy-light) 100%);
}

.sermon-thumb-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.3);
}

/* Play Button Overlay */
.sermon-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background var(--duration-normal) var(--ease-smooth);
}

.sermon-card:hover .sermon-play-overlay {
  background: rgba(0,0,0,0.25);
}

.sermon-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transform: scale(0.85);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-spring),
              opacity var(--duration-normal) var(--ease-smooth);
}

.sermon-card:hover .sermon-play-btn,
.sermon-card:focus-visible .sermon-play-btn {
  transform: scale(1);
  opacity: 1;
}

.sermon-play-btn svg {
  width: 22px;
  height: 22px;
  color: var(--burgundy);
  margin-left: 3px; /* optical center for play icon */
}

/* Series Badge */
.sermon-series-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(107,29,42,0.4);
}

/* Sermon Card Body */
.sermon-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.sermon-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.sermon-card-preacher,
.sermon-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.sermon-card-preacher {
  color: var(--burgundy);
  font-weight: 600;
}

.sermon-card-preacher svg,
.sermon-card-date svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.sermon-card-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

/* Compact card (home preview) */
.sermon-card-compact .sermon-card-body {
  padding: var(--space-md);
}

.sermon-card-compact .sermon-card-title {
  font-size: 0.98rem;
}

/* --- Sermon Video Modal --- */
.sermon-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 9, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.sermon-video-modal.show {
  opacity: 1;
  pointer-events: all;
}

.sermon-video-modal-inner {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-elevated), 0 40px 80px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-spring);
  position: relative;
}

.sermon-video-modal.show .sermon-video-modal-inner {
  transform: scale(1) translateY(0);
}

.sermon-video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(107, 29, 42, 0.12);
  border: 1px solid rgba(107, 29, 42, 0.2);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-spring);
}

.sermon-video-close:hover {
  background: var(--burgundy);
  color: #fff;
  transform: scale(1.08);
}

.sermon-video-close svg {
  width: 16px;
  height: 16px;
}

.sermon-video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.sermon-video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.sermon-video-info {
  padding: var(--space-lg) var(--space-xl);
}

.sermon-modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.sermon-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: var(--space-sm);
}

.sermon-modal-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--burgundy);
}

.sermon-modal-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Admin Sermon Card --- */
.admin-sermon-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.admin-sermon-thumb {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sermons-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .sermons-preview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sermon-video-modal {
    padding: var(--space-md) var(--space-sm);
    align-items: flex-end;
  }

  .sermon-video-modal-inner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: 100%;
  }

  .sermon-video-info {
    padding: var(--space-md);
  }

  .sermon-modal-title {
    font-size: 1.1rem;
  }

  .admin-sermon-card {
    flex-direction: column;
  }

  .admin-sermon-thumb {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sermon-play-btn {
    width: 48px;
    height: 48px;
  }

  .sermon-play-btn svg {
    width: 18px;
    height: 18px;
  }
}


/* ===================================================
   GOSPEL PAGE
   =================================================== */

/* --- Gospel Page Hero --- */
.gospel-page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--burgundy-dark) 0%, var(--burgundy) 60%, var(--burgundy-light) 100%);
  overflow: hidden;
  padding: 140px var(--space-lg) var(--space-4xl);
  text-align: center;
}

.gospel-page-hero .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gospel-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.gospel-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: var(--space-md) 0 var(--space-lg);
}

.gospel-page-title em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.gospel-page-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto var(--space-xl);
}

.gospel-page-verse {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --- Gospel Steps --- */
.gospel-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.gospel-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gospel-step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px var(--burgundy-glow);
  position: sticky;
  top: 100px;
}

.gospel-step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-md);
}

.gospel-step-content > p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* Gospel Scripture Blockquote */
.gospel-scripture {
  background: var(--burgundy-subtle);
  border-left: 4px solid var(--burgundy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md) var(--space-lg);
  font-style: italic;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

.gospel-scripture cite {
  display: block;
  margin-top: var(--space-sm);
  font-style: normal;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 0.9rem;
}

/* --- Gospel CTA Banner (Home) --- */
.gospel-cta-banner {
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.gospel-cta-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.gospel-cta-cross {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  color: rgba(255,255,255,0.5);
}

.gospel-cta-cross svg {
  width: 100%;
  height: 100%;
}

.gospel-cta-text {
  flex: 1;
}

.gospel-cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.gospel-cta-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.gospel-cta-btn {
  flex-shrink: 0;
  background: #fff !important;
  color: var(--burgundy) !important;
  border-color: #fff !important;
  white-space: nowrap;
}

.gospel-cta-btn:hover {
  background: rgba(255,255,255,0.9) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25) !important;
}

/* --- Gospel Prayer Section --- */
.gospel-prayer-section {
  background: var(--cream);
}

.gospel-prayer-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-elevated);
  padding: var(--space-3xl);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gospel-prayer-header {
  margin-bottom: var(--space-2xl);
}

.gospel-prayer-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--burgundy-glow);
  color: #fff;
}

.gospel-prayer-icon svg {
  width: 36px;
  height: 36px;
}

.gospel-prayer-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}

.gospel-prayer-header p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.gospel-prayer-text {
  background: var(--burgundy-subtle);
  border: 1px solid rgba(107,29,42,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  text-align: left;
  margin-bottom: var(--space-2xl);
}

.gospel-prayer-text p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.gospel-prayer-text p:last-child {
  margin-bottom: 0;
}

.gospel-prayer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.gospel-pray-btn {
  min-width: 260px;
}

.gospel-pray-note {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-style: italic;
}

/* --- Gospel Welcome Card --- */
.gospel-welcome-card {
  background: linear-gradient(135deg, var(--burgundy-subtle) 0%, rgba(255,255,255,0) 100%);
  border: 2px solid rgba(107,29,42,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-top: var(--space-xl);
  text-align: center;
}

.gospel-welcome-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: bounceIn 0.6s var(--ease-spring) both;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.gospel-welcome-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: var(--space-md);
}

.gospel-welcome-card > p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.gospel-next-steps {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) auto;
  text-align: left;
  max-width: 520px;
}

.gospel-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.gospel-next-steps li:last-child {
  margin-bottom: 0;
}

.gospel-step-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.gospel-next-steps li div {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* --- Responsive Gospel --- */
@media (max-width: 768px) {
  .gospel-step {
    grid-template-columns: 52px 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .gospel-step-number {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
    position: static;
  }

  .gospel-prayer-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .gospel-prayer-text {
    padding: var(--space-lg) var(--space-md);
  }

  .gospel-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .gospel-cta-cross {
    display: none;
  }

  .gospel-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gospel-step-content h3 {
    font-size: 1.3rem;
  }

  .gospel-page-hero {
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    min-height: auto;
  }
}


