/* ==========================================================================
   رحلة مع يسوع – من الهيكل إلى القيامة
   Interactive Bible Journey for Grade 4 Children | Luke 20–24
   Main Stylesheet (RTL First, Responsive, Warm Biblical Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --font-primary: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-reading: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;

  /* Color Palette: Warm Jerusalem Stone, Sunrise Gold, Terracotta, Olive */
  --c-sand-light: #fdfaf3;
  --c-sand: #f5eedc;
  --c-sand-border: #e3d5be;
  --c-stone-wall: #d4c0a5;
  --c-stone-dark: #6e5538;
  --c-gold: #d99a26;
  --c-gold-hover: #b87f18;
  --c-gold-light: #fff5e0;
  --c-gold-glow: rgba(217, 154, 38, 0.35);
  
  --c-terracotta: #b85437;
  --c-terracotta-dark: #8c361e;
  --c-olive: #476a42;
  --c-olive-light: #eaf3e8;
  --c-sky-blue: #2c6e91;
  --c-sky-light: #e6f3fa;
  --c-purple-royal: #5c3566;
  --c-purple-light: #f5eef8;

  --c-text-dark: #2a1f17;
  --c-text-muted: #6b5a4b;
  --c-text-light: #ffffff;

  --c-success: #288048;
  --c-success-bg: #e8f7ed;
  --c-error: #c0392b;
  --c-error-bg: #fdeeee;

  --shadow-sm: 0 2px 8px rgba(42, 31, 23, 0.08);
  --shadow-md: 0 6px 18px rgba(42, 31, 23, 0.12);
  --shadow-lg: 0 12px 30px rgba(42, 31, 23, 0.16);
  --shadow-gold: 0 8px 24px rgba(217, 154, 38, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 200ms ease;
  --transition-normal: 350ms ease;
  --transition-slow: 600ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--c-sand-light);
  color: var(--c-text-dark);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 154, 38, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(184, 84, 55, 0.05) 0%, transparent 40%);
  min-height: 100vh;
}

body.lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

p, h1, h2, h3, h4, h5, h6, span, button, a, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   Modern Warm Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 9px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--c-sand-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--c-stone-wall);
  border-radius: var(--radius-full);
  border: 2px solid var(--c-sand-light);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-gold);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--c-stone-wall) var(--c-sand-light);
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--c-text-dark);
  line-height: 1.3;
}

p, span, li {
  font-family: var(--font-reading);
}

/* App Header / Navigation Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  width: 100%;
  max-width: 100%;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(184, 84, 55, 0.3);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-stone-dark);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--c-gold-hover);
  font-weight: 600;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-btn {
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text-dark);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--c-sand);
  color: var(--c-gold-hover);
}

.nav-btn.active {
  background: var(--c-gold-light);
  color: var(--c-gold-hover);
  box-shadow: 0 2px 6px rgba(217, 154, 38, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.badge-progress {
  background: var(--c-gold-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-gold);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.icon-btn {
  background: var(--c-sand);
  border: 1px solid var(--c-sand-border);
  color: var(--c-stone-dark);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--c-gold-light);
  color: var(--c-gold-hover);
  border-color: var(--c-gold);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-only-nav-item {
  display: none;
}

/* Main Container */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  min-height: calc(100vh - 160px);
}

/* Sections visibility */
.app-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.app-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   1. Welcome Page (Hero Section)
   ========================================================================== */
.welcome-hero {
  position: relative;
  background: linear-gradient(180deg, #fff7e6 0%, #f7eed8 60%, #eedfc1 100%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta), var(--c-olive), var(--c-gold));
}

.hero-sun-glow {
  position: absolute;
  top: -80px;
  right: 50%;
  transform: translateX(50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(255, 238, 187, 0.1) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulseSun 6s ease-in-out infinite alternate;
}

@keyframes pulseSun {
  from { transform: translateX(50%) scale(1); opacity: 0.7; }
  to { transform: translateX(50%) scale(1.15); opacity: 1; }
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--c-gold);
  color: var(--c-stone-dark);
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-stone-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-title .highlight {
  color: var(--c-terracotta);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--c-text-muted);
  max-width: 780px;
  margin: 0 auto 2.2rem;
  line-height: 1.8;
}

.hero-visual-card {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  background: #2a1f17;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.hero-visual-card:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(42, 31, 23, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
  color: white;
  text-align: right;
}

.hero-image-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.hero-image-overlay p {
  color: #f0e6d6;
  font-size: 0.95rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 1rem 2.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 6px 20px rgba(184, 84, 55, 0.4);
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(184, 84, 55, 0.5);
  background: linear-gradient(135deg, var(--c-gold-hover), var(--c-terracotta-dark));
}

.btn-secondary {
  background: white;
  color: var(--c-stone-dark);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--c-stone-wall);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--c-sand);
  border-color: var(--c-gold);
  color: var(--c-gold-hover);
  transform: translateY(-2px);
}

/* Quick Features Row */
.quick-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.feature-pill {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--c-sand-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.feature-pill:hover {
  transform: translateY(-3px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--c-gold-light);
  color: var(--c-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-pill h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.feature-pill p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* ==========================================================================
   2. Main Timeline (خريطة الرحلة)
   ========================================================================== */
.timeline-section {
  position: relative;
  padding: 1rem 0 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  background: var(--c-gold-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-gold);
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--c-stone-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.timeline-progress-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: white;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-sand-border);
  box-shadow: var(--shadow-sm);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: var(--c-sand);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta));
  border-radius: var(--radius-full);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline Cards Path */
.timeline-path {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Vertical glowing road indicator on desktop */
.timeline-path::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 40px;
  right: 50%;
  transform: translateX(50%);
  width: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--c-gold) 0,
    var(--c-gold) 14px,
    transparent 14px,
    transparent 28px
  );
  opacity: 0.5;
  z-index: 1;
}

.timeline-station-card {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.timeline-station-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-gold);
}

.timeline-station-card.completed {
  border-color: var(--c-success);
}

.timeline-station-card.completed .station-number-badge {
  background: var(--c-success);
  color: white;
}

.station-media {
  position: relative;
  height: 100%;
  min-height: 220px;
  background: #2a1f17;
  overflow: hidden;
}

.station-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.timeline-station-card:hover .station-media img {
  transform: scale(1.06);
}

.station-number-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-gold);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 2px solid white;
}

.station-status-pill {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
}

.station-content-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.station-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.station-chapter-tag {
  background: var(--c-sand);
  color: var(--c-terracotta);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
}

.station-location {
  color: var(--c-text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.station-title {
  font-size: 1.5rem;
  color: var(--c-stone-dark);
  margin-bottom: 0.75rem;
}

.station-description {
  font-size: 1rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.station-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-station-enter {
  background: var(--c-gold);
  color: white;
  border: none;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px var(--c-gold-glow);
}

.btn-station-enter:hover {
  background: var(--c-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--c-gold-glow);
}

.station-story-count {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  font-weight: 600;
}

/* ==========================================================================
   3. Station Detail View (داخل المحطة)
   ========================================================================== */
.station-detail-view {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.station-hero-banner {
  position: relative;
  min-height: 280px;
  background: #2a1f17;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2rem;
  color: white;
}

.banner-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(42, 31, 23, 0.95) 0%, rgba(42, 31, 23, 0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.banner-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.btn-crumb {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-crumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.banner-title {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.banner-subtitle {
  font-size: 1.1rem;
  color: var(--c-sand);
  max-width: 800px;
}

/* Stories Navigation Tabs */
.stories-nav-wrapper {
  position: relative;
  background: var(--c-sand-light);
  border-bottom: 2px solid var(--c-sand-border);
}

.stories-nav-bar {
  background: var(--c-sand-light);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.stories-nav-bar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.story-tab-btn {
  background: white;
  border: 1.5px solid var(--c-sand-border);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-stone-dark);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(42, 31, 23, 0.05);
  flex-shrink: 0;
}

.story-tab-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold-hover);
  background: var(--c-gold-light);
  transform: translateY(-1px);
}

.story-tab-btn.active {
  background: linear-gradient(135deg, var(--c-gold), #be841b);
  color: white;
  border-color: var(--c-gold);
  box-shadow: 0 3px 10px var(--c-gold-glow);
  transform: translateY(-1px);
}

/* Story Content Container */
.story-detail-body {
  padding: 2.5rem 2rem;
}

.story-section-card {
  display: none;
}

.story-section-card.active {
  display: block;
  animation: fadeIn 400ms ease;
}

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

.story-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--c-sand-border);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.story-meta-header h3 {
  font-size: 1.6rem;
  color: var(--c-stone-dark);
}

.story-ref-tag {
  background: var(--c-gold-light);
  color: var(--c-terracotta);
  border: 1px solid var(--c-gold);
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

/* Bible Verse Card */
.bible-verse-card {
  position: relative;
  background: linear-gradient(135deg, #fffcf5 0%, #fff7e6 100%);
  border-right: 6px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 2.2rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 4px 16px rgba(217, 154, 38, 0.12);
  border-top: 1px solid var(--c-sand-border);
  border-bottom: 1px solid var(--c-sand-border);
  border-left: 1px solid var(--c-sand-border);
}

.verse-quote-icon {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 2.8rem;
  color: rgba(217, 154, 38, 0.25);
  line-height: 1;
}

.verse-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--c-stone-dark);
  line-height: 2.1;
  margin-bottom: 0.8rem;
  font-family: var(--font-primary);
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.verse-citation {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(217, 154, 38, 0.3);
}

/* Story Narrative Layout */
.story-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.story-narrative-grid.no-spotlight {
  grid-template-columns: 1fr;
}

.narrative-text {
  font-size: 1.2rem;
  line-height: 2.1;
  color: var(--c-text-dark);
}

.narrative-text p {
  margin-bottom: 1.3rem;
}

/* Child Insight Box */
.child-insight-box {
  background: linear-gradient(135deg, #eef7ed 0%, #e2f1e0 100%);
  border: 2px solid var(--c-olive);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.child-insight-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-olive);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(71, 106, 66, 0.3);
}

.child-insight-box h4 {
  color: var(--c-olive);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.child-insight-box p {
  font-size: 1.1rem;
  color: #1a3c18;
  line-height: 1.8;
}

/* Character / Scene Sidebar Spotlight */
.story-spotlight-card {
  background: var(--c-sand-light);
  border: 1px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

/* Image Zoom and Clickable Enhancements */
.spotlight-image-holder {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  background: #2a1f17;
  position: relative;
  cursor: zoom-in;
}

.spotlight-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-image-holder:hover img {
  transform: scale(1.06);
}

.zoom-badge-pill {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(30, 20, 15, 0.85);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 250ms ease;
  z-index: 2;
}

.spotlight-image-holder:hover .zoom-badge-pill,
.station-media:hover .zoom-badge-pill,
.hero-image-wrapper:hover .zoom-badge-pill,
.codex-img-wrapper:hover .zoom-badge-pill {
  opacity: 1;
  transform: translateY(0);
}

.station-media {
  cursor: zoom-in;
}

.station-media img {
  object-position: center 20%;
}

.hero-image-wrapper {
  cursor: zoom-in;
}

.hero-image-wrapper img {
  object-position: center 30%;
}

.codex-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  cursor: zoom-in;
  transition: transform 350ms ease;
}

.codex-card:hover .codex-img {
  transform: scale(1.05);
}

.codex-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #2a1f17;
}

/* Thematic Placeholder Card when story has no direct character/scene photo */
.spotlight-placeholder-card {
  background: linear-gradient(135deg, #fdf8ee 0%, #f6ecda 100%);
  border: 2px dashed var(--c-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.placeholder-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-gold-light);
  color: var(--c-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  border: 1px solid var(--c-gold);
  box-shadow: 0 4px 12px var(--c-gold-glow);
}

.spotlight-placeholder-card h4 {
  font-size: 1.15rem;
  color: var(--c-stone-dark);
  margin-bottom: 0.5rem;
}

.spotlight-placeholder-card p {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   8. Fullscreen Image Lightbox Viewer
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(18, 12, 8, 0.94);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lightboxFadeIn 250ms ease;
  touch-action: none;
}

.lightbox-overlay.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-btn-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3020;
}

.lightbox-btn-close:hover {
  background: var(--c-terracotta);
  border-color: var(--c-terracotta);
  transform: rotate(90deg);
}

.lightbox-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3020;
}

.lightbox-btn-nav:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  transform: translateY(-50%) scale(1.1);
}

/* In RTL: prev is right, next is left */
.lightbox-btn-nav.prev {
  right: 1.5rem;
}

.lightbox-btn-nav.next {
  left: 1.5rem;
}

.lightbox-content-wrapper {
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3010;
}

.lightbox-image-box {
  position: relative;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(217, 154, 38, 0.5);
  transition: transform 300ms ease;
  user-select: none;
}

.lightbox-caption-bar {
  background: rgba(38, 27, 20, 0.94);
  border: 1px solid rgba(217, 154, 38, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.6rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  color: white;
  max-width: 820px;
  width: 100%;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-caption-text {
  flex: 1;
}

.lightbox-caption-text h4 {
  color: var(--c-gold-light);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.lightbox-caption-text p {
  color: var(--c-sand-light);
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-line;
  margin: 0;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--c-gold-light);
}

.lightbox-fallback {
  width: 440px;
  max-width: 85vw;
  height: 260px;
  background: #2f2218;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-sand);
  gap: 1rem;
  font-size: 1.15rem;
  border: 2px dashed var(--c-gold);
}

.spotlight-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.spotlight-info p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* Story Cards Grid (e.g. Parable or Emmaus Steps) */
.story-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.step-card {
  background: white;
  border: 1px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.step-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-gold);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.step-card h5 {
  font-size: 1.05rem;
  color: var(--c-stone-dark);
  margin-bottom: 0.4rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* Interactive Activities inside Station */
.inline-activity-box {
  background: linear-gradient(135deg, #f7f3e8 0%, #faeed2 100%);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.activity-icon {
  font-size: 1.8rem;
  color: var(--c-gold);
}

.activity-header h4 {
  font-size: 1.35rem;
  color: var(--c-stone-dark);
}

.activity-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.activity-option-btn {
  background: white;
  border: 2px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  text-align: right;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.activity-option-btn:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-light);
}

.activity-option-btn.correct {
  border-color: var(--c-success);
  background: var(--c-success-bg);
  color: var(--c-success);
}

.activity-option-btn.wrong {
  border-color: var(--c-error);
  background: var(--c-error-bg);
  color: var(--c-error);
}

.activity-feedback-message {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: none;
}

.activity-feedback-message.show {
  display: block;
  animation: fadeIn 300ms ease;
}

/* Event Ordering Activity in Station 3 */
.ordering-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.order-item-card {
  background: white;
  border: 2px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: grab;
  transition: var(--transition-fast);
}

.order-item-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}

.order-item-card.dragging {
  opacity: 0.5;
  border-color: var(--c-gold);
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.order-pos-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-sand);
  color: var(--c-stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.order-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text-dark);
}

.order-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-move {
  background: var(--c-sand);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-stone-dark);
  transition: var(--transition-fast);
}

.btn-move:hover {
  background: var(--c-gold);
  color: white;
}

/* What We Learned Box */
.what-learned-box {
  background: linear-gradient(135deg, #fffcf5 0%, #f7eed8 100%);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

.what-learned-box h3 {
  font-size: 1.6rem;
  color: var(--c-stone-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.learned-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.learned-points-list li {
  font-size: 1.1rem;
  color: var(--c-text-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.learned-points-list li i {
  color: var(--c-success);
  margin-top: 0.35rem;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.station-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--c-stone-wall);
}

/* ==========================================================================
   4. Classroom Quiz (الاختبار الأول – 15 سؤالًا)
   ========================================================================== */
.quiz-container {
  max-width: 860px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
}

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.quiz-badge {
  background: var(--c-gold-light);
  color: var(--c-gold-hover);
  border: 1px solid var(--c-gold);
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
}

.quiz-score-live {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-stone-dark);
}

.quiz-progress-track {
  width: 100%;
  height: 12px;
  background: var(--c-sand);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 6.66%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta));
  transition: width 400ms ease;
}

.quiz-card {
  margin-bottom: 2rem;
}

.quiz-station-label {
  color: var(--c-terracotta);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.quiz-question-text {
  font-size: 1.45rem;
  color: var(--c-stone-dark);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-choice-btn {
  background: white;
  border: 2px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  text-align: right;
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.quiz-choice-btn:hover:not(:disabled) {
  border-color: var(--c-gold);
  background: var(--c-gold-light);
  transform: translateY(-2px);
}

.choice-letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-sand);
  color: var(--c-stone-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-choice-btn.correct {
  border-color: var(--c-success);
  background: var(--c-success-bg);
  color: var(--c-success);
}

.quiz-choice-btn.correct .choice-letter {
  background: var(--c-success);
  color: white;
}

.quiz-choice-btn.wrong {
  border-color: var(--c-error);
  background: var(--c-error-bg);
  color: var(--c-error);
}

.quiz-choice-btn.wrong .choice-letter {
  background: var(--c-error);
  color: white;
}

.quiz-explanation-box {
  background: var(--c-sand-light);
  border: 1px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
  display: none;
}

.quiz-explanation-box.show {
  display: block;
  animation: fadeIn 350ms ease;
}

.quiz-actions-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Quiz Final Results Screen */
.quiz-results-screen {
  text-align: center;
  padding: 2rem 1rem;
}

.results-badge-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.results-title {
  font-size: 2.2rem;
  color: var(--c-stone-dark);
  margin-bottom: 0.5rem;
}

.score-display-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  box-shadow: 0 8px 24px rgba(184, 84, 55, 0.35);
}

.score-big {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.score-total {
  font-size: 1.1rem;
  opacity: 0.9;
}

.results-message {
  font-size: 1.2rem;
  color: var(--c-text-dark);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ==========================================================================
   5. Homework Page (الواجب المنزلي – 10 أسئلة)
   ========================================================================== */
.homework-container {
  max-width: 960px;
  margin: 0 auto;
}

.homework-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hw-tab-btn {
  background: white;
  border: 2px solid var(--c-sand-border);
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-stone-dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hw-tab-btn:hover {
  border-color: var(--c-gold);
}

.hw-tab-btn.active {
  background: var(--c-gold);
  color: white;
  border-color: var(--c-gold);
  box-shadow: 0 4px 14px var(--c-gold-glow);
}

.hw-panel {
  display: none;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
}

.hw-panel.active {
  display: block;
  animation: fadeIn 400ms ease;
}

.hw-notice-box {
  background: var(--c-gold-light);
  border-right: 4px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-stone-dark);
}

.written-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.written-q-card {
  background: var(--c-sand-light);
  border: 1px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  transition: var(--transition-fast);
}

.written-q-card:hover {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-sm);
}

.written-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.written-station-badge {
  background: white;
  color: var(--c-terracotta);
  border: 1px solid var(--c-sand-border);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
}

.written-q-prompt {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-stone-dark);
  line-height: 1.6;
}

.written-q-lines {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px dashed var(--c-stone-wall);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   6. Hymn & Celebration Page (صفحة الترنيمة)
   ========================================================================== */
.hymn-celebration-hero {
  background: linear-gradient(180deg, #fff9e6 0%, #fff0cc 50%, #ffe099 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-gold);
  box-shadow: var(--shadow-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hymn-celebration-hero::before {
  content: '✝';
  position: absolute;
  top: 10px;
  right: 50%;
  transform: translateX(50%);
  font-size: 6rem;
  color: rgba(217, 154, 38, 0.15);
  pointer-events: none;
}

.proclamation-badge {
  display: inline-block;
  background: white;
  color: var(--c-terracotta);
  border: 2px solid var(--c-terracotta);
  font-size: 1.35rem;
  font-weight: 900;
  padding: 0.6rem 2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(184, 84, 55, 0.25);
}

.hymn-celebration-hero h2 {
  font-size: 2.8rem;
  color: var(--c-stone-dark);
  margin-bottom: 1rem;
}

.hymn-celebration-hero p {
  font-size: 1.3rem;
  color: var(--c-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Hymn Videos Section (فيديوهات وترانيم القيامة الخمسة)
   ========================================================================== */
.hymn-videos-section {
  max-width: 1100px;
  margin: 2.5rem auto 3rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: right;
  width: 100%;
  box-sizing: border-box;
}

.hymn-videos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta), var(--c-olive));
}

.hymn-videos-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hymn-videos-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--c-stone-dark);
  margin: 0.6rem 0 0.4rem;
}

.hymn-videos-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Category Tabs */
.hymn-video-tabs {
  display: inline-flex;
  background: var(--c-sand-light);
  border: 1.5px solid var(--c-sand-border);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.4rem;
  margin: 0 auto;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hymn-video-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-stone-dark);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.hymn-video-tab-btn:hover {
  color: var(--c-gold-hover);
  background: rgba(217, 154, 38, 0.1);
}

.hymn-video-tab-btn.active {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  box-shadow: 0 4px 12px rgba(184, 84, 55, 0.3);
}

/* Video Cards Grid */
.hymn-videos-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.8rem;
  margin-top: 1.8rem;
  animation: fadeInVideos 350ms ease forwards;
}

.hymn-videos-grid.active {
  display: grid;
}

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

/* Individual Video Card */
.video-card {
  background: var(--c-sand-light);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-sand-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

.video-card.playing {
  border-color: var(--c-terracotta);
  box-shadow: 0 8px 24px rgba(184, 84, 55, 0.25);
}

/* Media Box */
.video-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #19120b;
  overflow: hidden;
}

.app-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Custom Play Overlay */
.video-custom-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 250ms ease;
  pointer-events: auto;
}

.video-card.playing .video-custom-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-play-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast), background var(--transition-fast);
  padding-right: 3px;
}

.video-custom-overlay:hover .video-play-trigger {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--c-gold-hover), var(--c-terracotta-dark));
}

.video-duration-tag {
  position: absolute;
  bottom: 0.65rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
}

/* Video Card Body */
.video-card-body {
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
  gap: 0.55rem;
}

.video-badge-pill {
  align-self: flex-start;
  background: var(--c-gold-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-gold);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--c-stone-dark);
  line-height: 1.35;
  margin: 0;
}

.video-card-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.btn-play-card-action {
  background: white;
  color: var(--c-stone-dark);
  border: 1.5px solid var(--c-sand-border);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
}

.btn-play-card-action:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold);
  color: var(--c-gold-hover);
}

.video-card.playing .btn-play-card-action {
  background: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: white;
}

.hymn-player-box {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid var(--c-sand-border);
  box-shadow: var(--shadow-md);
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.btn-play-hymn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(184, 84, 55, 0.4);
  transition: var(--transition-fast);
}

.btn-play-hymn:hover {
  transform: scale(1.08);
}

.hymn-lyrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.lyrics-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--c-sand-border);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.lyrics-card h3 {
  color: var(--c-terracotta);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px dashed var(--c-sand-border);
  padding-bottom: 0.8rem;
}

.lyrics-verses {
  font-size: 1.15rem;
  line-height: 2.2;
  color: var(--c-text-dark);
  font-family: var(--font-primary);
}

/* ==========================================================================
   7. Character Codex Modal (دليل الشخصيات والمشاهد)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 23, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 300ms ease;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid var(--c-sand-border);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-sand-border);
  padding-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.6rem;
  color: var(--c-stone-dark);
}

.btn-close-modal {
  background: var(--c-sand);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--c-stone-dark);
  transition: var(--transition-fast);
}

.btn-close-modal:hover {
  background: var(--c-gold);
  color: white;
}

/* ==========================================================================
   Characters & Scenes Gallery Modal (دليل الشخصيات والمشاهد المعتمدة)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(26, 18, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInModal 250ms ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  border: 2px solid var(--c-sand-border);
  box-shadow: 0 16px 45px rgba(42, 31, 23, 0.25);
  padding: 2.2rem 2.4rem;
  position: relative;
  text-align: right;
  box-sizing: border-box;
}

.modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta), var(--c-olive));
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  border-bottom: 1.5px solid var(--c-sand-border);
  padding-bottom: 1rem;
}

.modal-header h3 {
  font-size: 1.7rem;
  color: var(--c-stone-dark);
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.btn-close-modal {
  background: var(--c-sand);
  border: 1px solid var(--c-sand-border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--c-stone-dark);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-close-modal:hover {
  background: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: white;
  transform: rotate(90deg);
}

.codex-intro-desc {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Category Filter Tabs inside Codex */
.codex-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--c-sand-border);
  padding-bottom: 1.2rem;
}

.codex-tab-btn {
  background: var(--c-sand-light);
  border: 1.5px solid var(--c-sand-border);
  color: var(--c-stone-dark);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.codex-tab-btn:hover {
  background: var(--c-sand);
  color: var(--c-gold-hover);
  border-color: var(--c-gold);
}

.codex-tab-btn.active {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 154, 38, 0.3);
}

.codex-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-terracotta);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Gallery Grid */
.codex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

/* Individual Card */
.codex-card {
  background: white;
  border: 1.5px solid var(--c-sand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.codex-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--shadow-md);
}

/* Image Box */
.codex-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #231a13;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.codex-card.scene-card .codex-img-wrapper {
  aspect-ratio: 16 / 10;
}

.codex-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms ease;
  user-select: none;
}

.codex-card.scene-card .codex-img {
  object-fit: cover;
  object-position: center;
}

.codex-card:hover .codex-img {
  transform: scale(1.05);
}

/* Badges on Image */
.codex-station-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(26, 18, 12, 0.85);
  color: var(--c-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(217, 154, 38, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.codex-zoom-badge {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
  z-index: 2;
}

.codex-card:hover .codex-zoom-badge {
  background: var(--c-terracotta);
}

/* Card Body */
.codex-body {
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
  gap: 0.5rem;
}

.codex-body h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-stone-dark);
  margin: 0;
  line-height: 1.35;
}

.codex-role-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-gold-hover);
  display: inline-block;
  line-height: 1.4;
}

.codex-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin: 0.2rem 0;
  flex: 1;
}

.btn-codex-explore {
  background: var(--c-sand-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-sand-border);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  margin-top: 0.4rem;
  width: 100%;
}

.codex-card:hover .btn-codex-explore {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(217, 154, 38, 0.3);
}

/* Fallback card placeholder */
.codex-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-gold-light);
  gap: 0.5rem;
  font-size: 0.88rem;
  padding: 1rem;
  text-align: center;
  background: #2b1f16;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* Footer */
.app-footer {
  background: var(--c-sand);
  border-top: 2px solid var(--c-sand-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--c-stone-dark);
  margin-top: 4rem;
}

.app-footer p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-bible-verse {
  font-weight: 700;
  color: var(--c-terracotta);
  font-size: 1.05rem;
}

/* ==========================================================================
   Station Bible CTA Banner (دعوة لقراءة الإصحاح في نهاية كل محطة)
   ========================================================================== */
.station-bible-cta-banner {
  background: linear-gradient(135deg, #fff9ea 0%, #fef3d6 50%, #f9e3b4 100%);
  border: 2px solid var(--c-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 6px 20px rgba(217, 154, 38, 0.18);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.station-bible-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-terracotta));
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  flex: 1;
}

.cta-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(217, 154, 38, 0.35);
  flex-shrink: 0;
}

.cta-banner-text {
  min-width: 0;
}

.cta-banner-text h4 {
  font-size: 1.25rem;
  color: var(--c-stone-dark);
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.cta-banner-text p {
  font-size: 0.98rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}

.btn-station-bible-read {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border: none;
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(217, 154, 38, 0.3);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-station-bible-read:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 84, 55, 0.4);
  background: linear-gradient(135deg, var(--c-gold-hover), var(--c-terracotta-dark));
}

.btn-station-bible-read:active {
  transform: translateY(0);
}

/* ==========================================================================
   Full Bible Reader Experience (قراءة إنجيل لوقا 20–24)
   ========================================================================== */
.bible-reading-view {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Floating reading progress bar at top of reading view */
.bible-reading-progress-bar {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(253, 250, 243, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-sand-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-progress-track {
  flex: 1;
  height: 8px;
  background: var(--c-sand);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bible-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta));
  border-radius: var(--radius-full);
  transition: width 150ms ease;
}

.bible-progress-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-stone-dark);
  white-space: nowrap;
}

/* Header card */
.bible-header-card {
  background: white;
  border: 2px solid var(--c-sand-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-terracotta), var(--c-olive));
}

.bible-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}

.bible-crumb-current {
  font-weight: 700;
  color: var(--c-stone-dark);
}

.bible-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.bible-title-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--c-gold-light), #fbf3df);
  border: 1.5px solid var(--c-gold);
  color: var(--c-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.bible-badge-book {
  display: inline-block;
  background: var(--c-gold-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-gold);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.bible-chapter-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--c-stone-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.bible-chapter-subtitle {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* Chapter tabs */
.bible-chapter-tabs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 1.2rem;
  border-top: 1px dashed var(--c-sand-border);
  border-bottom: 1px dashed var(--c-sand-border);
  scrollbar-width: none;
}

.bible-chapter-tabs::-webkit-scrollbar {
  display: none;
}

.bible-chapter-pill {
  background: var(--c-sand-light);
  border: 1.5px solid var(--c-sand-border);
  color: var(--c-stone-dark);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.bible-chapter-pill:hover {
  background: var(--c-sand);
  border-color: var(--c-gold);
  color: var(--c-gold-hover);
}

.bible-chapter-pill.active {
  background: linear-gradient(135deg, var(--c-gold), var(--c-terracotta));
  color: white;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(217, 154, 38, 0.3);
}

/* Meta Bar */
.bible-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.bible-translation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--c-stone-dark);
}

.bible-official-link {
  color: var(--c-sky-blue);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.bible-official-link:hover {
  color: var(--c-terracotta);
  text-decoration: underline;
}

/* Verses Stream */
.bible-verses-scroll-area {
  background: white;
  border: 2px solid var(--c-sand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.2rem 2.4rem;
  margin-bottom: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-verses-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bible-verse-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.bible-verse-row:hover {
  background: #fdfaf3;
}

.bible-verse-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--c-gold-light);
  color: var(--c-stone-dark);
  border: 1px solid var(--c-gold);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.bible-verse-body {
  font-family: var(--font-reading);
  font-size: 1.18rem;
  line-height: 2.1;
  color: var(--c-text-dark);
  margin: 0;
  flex: 1;
}

/* Footer Nav */
.bible-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-nav-prev-next {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bible-copyright-notice {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  padding: 1rem 1.5rem;
  background: var(--c-sand);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-sand-border);
  margin-top: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile-First Adapters
   ========================================================================== */

/* Animation for mobile menu dropdown */
@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 1: Tablet Landscape & Small Desktop (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-container {
    padding: 0.75rem 1.25rem;
  }
  .main-content {
    padding: 1.25rem 1rem 3.5rem;
  }
  .welcome-hero {
    padding: 2.8rem 1.5rem;
  }
  .story-detail-body {
    padding: 2rem 1.5rem;
  }
  .timeline-station-card {
    grid-template-columns: 240px 1fr;
  }
  .quick-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hymn-lyrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 2: Tablet Portrait & Large Mobile (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    padding: 0.5rem 0.85rem;
    gap: 0.5rem;
  }
  .brand-wrapper {
    gap: 0.6rem;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
  .brand-text h1 {
    font-size: 1.05rem;
  }
  .brand-text span {
    display: none;
  }
  
  .header-actions {
    gap: 0.45rem;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(253, 250, 243, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--c-sand-border);
    flex-direction: column;
    padding: 0.85rem;
    gap: 0.4rem;
    box-shadow: 0 10px 25px rgba(42, 31, 23, 0.15);
    z-index: 999;
  }
  .nav-links.mobile-open {
    display: flex;
    animation: slideDownMenu 250ms ease forwards;
  }
  .mobile-only-nav-item {
    display: block;
    width: 100%;
  }
  .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .badge-progress {
    padding: 0.25rem 0.6rem;
    font-size: 0.82rem;
  }
  .badge-progress .badge-txt {
    display: none;
  }

  /* Main Content */
  .main-content {
    padding: 1rem 0.75rem 3rem;
  }

  /* Welcome Section */
  .welcome-hero {
    padding: 2rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
  .hero-sun-glow {
    max-width: 90vw;
    height: auto;
  }
  .hero-badge-tag {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    max-width: 100%;
    text-align: center;
    justify-content: center;
    line-height: 1.4;
  }
  .hero-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
    margin-bottom: 0.75rem;
  }
  .hero-subtitle {
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }
  .hero-visual-card {
    border-radius: var(--radius-md);
    margin-bottom: 1.8rem;
  }
  .hero-image-wrapper {
    height: clamp(170px, 45vw, 260px);
  }
  .hero-image-overlay {
    padding: 0.8rem 1rem;
  }
  .hero-image-overlay h3 {
    font-size: 1.15rem;
  }
  .hero-image-overlay p {
    font-size: 0.82rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    align-items: stretch;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 1.05rem;
    box-sizing: border-box;
  }
  .quick-features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.8rem;
  }

  /* Timeline */
  .timeline-section {
    padding: 0.5rem 0 2rem;
  }
  .section-header {
    margin-bottom: 1.8rem;
  }
  .section-header h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem);
  }
  .section-header p {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
  }
  .timeline-progress-container {
    padding: 0.85rem 1rem;
    margin-bottom: 1.8rem;
    border-radius: var(--radius-md);
  }
  .timeline-path::before {
    display: none;
  }
  .timeline-path {
    gap: 1.5rem;
  }
  .timeline-station-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }
  .station-media {
    height: clamp(160px, 45vw, 220px);
    min-height: 150px;
  }
  .station-number-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    top: 0.6rem;
    right: 0.6rem;
  }
  .station-status-pill {
    bottom: 0.6rem;
    right: 0.6rem;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }
  .station-content-body {
    padding: 1.2rem 1rem;
    gap: 0.85rem;
  }
  .station-title {
    font-size: clamp(1.2rem, 3.8vw, 1.45rem);
    margin-bottom: 0.4rem;
  }
  .station-description {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    line-height: 1.65;
    margin-bottom: 1rem;
  }
  .station-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .btn-station-enter {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
  }

  /* Station Detail View */
  .station-detail-view {
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
  }
  .station-hero-banner {
    min-height: 180px;
    padding: 1.25rem 1rem;
  }
  .banner-title {
    font-size: clamp(1.3rem, 5vw, 1.9rem);
    margin-bottom: 0.35rem;
  }
  .banner-subtitle {
    font-size: clamp(0.85rem, 3vw, 1.05rem);
  }
  .stories-nav-bar {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  .story-tab-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    gap: 0.4rem;
  }
  .story-detail-body {
    padding: 1.25rem 0.85rem;
  }
  .story-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  .story-meta-header h3 {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }
  .bible-verse-card {
    padding: 1rem 0.95rem;
    border-right-width: 5px;
    margin-bottom: 1.5rem;
  }
  .verse-quote-icon {
    font-size: 1.8rem;
    top: 0.5rem;
    left: 0.6rem;
    opacity: 0.2;
    pointer-events: none;
  }
  .verse-text {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
    line-height: 1.9;
    margin-bottom: 0.6rem;
  }
  .verse-citation {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }
  .story-narrative-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .story-spotlight-card {
    order: -1;
    width: 100%;
    padding: 0.85rem;
  }
  .spotlight-image-holder {
    height: clamp(170px, 45vw, 240px);
  }
  .narrative-text {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    line-height: 1.9;
  }
  .narrative-text p {
    margin-bottom: 1rem;
  }
  .child-insight-box {
    padding: 1rem 0.9rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1.5rem;
  }
  .child-insight-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .child-insight-box h4 {
    font-size: 1.05rem;
  }
  .child-insight-box p {
    font-size: 0.92rem;
    line-height: 1.7;
  }
  .inline-activity-box {
    padding: 1rem 0.85rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
  }
  .activity-header h4 {
    font-size: clamp(0.98rem, 3.2vw, 1.25rem);
  }
  .activity-options {
    gap: 0.7rem;
  }
  .activity-option-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.92rem;
    gap: 0.6rem;
    width: 100%;
  }
  .activity-option-btn .choice-letter {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  .activity-feedback-message {
    padding: 0.75rem 0.9rem;
    font-size: 0.92rem;
  }
  .order-item-card {
    padding: 0.75rem 0.85rem;
    gap: 0.6rem;
    flex-direction: column;
    align-items: stretch;
  }
  .order-controls {
    justify-content: flex-end;
  }
  .what-learned-box {
    padding: 1.2rem 1rem;
    margin-top: 2rem;
    border-radius: var(--radius-md);
  }
  .what-learned-box h3 {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
  }
  .learned-points-list li {
    font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  }
  .station-nav-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .station-nav-footer button {
    width: 100%;
    justify-content: center;
  }
  .station-nav-footer > div {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  /* Quiz View */
  .quiz-container {
    padding: 1.4rem 1rem;
    border-radius: var(--radius-md);
  }
  .quiz-question-text {
    font-size: clamp(1.1rem, 3.8vw, 1.4rem);
    line-height: 1.55;
    margin-bottom: 1.4rem;
  }
  .quiz-choice-btn {
    padding: 0.85rem 0.9rem;
    font-size: 0.98rem;
    gap: 0.75rem;
  }
  .quiz-choice-btn .choice-letter {
    width: 32px;
    height: 32px;
    font-size: 0.92rem;
  }
  .quiz-explanation-box {
    padding: 0.85rem 0.95rem;
    font-size: 0.92rem;
  }
  .quiz-actions-footer {
    width: 100%;
  }
  .quiz-actions-footer .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Homework View */
  .homework-tabs-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  .hw-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
  }
  .hw-panel {
    padding: 1.25rem 0.9rem;
    border-radius: var(--radius-md);
  }
  .written-q-card {
    padding: 1rem 0.85rem;
  }
  .written-q-header {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .written-q-prompt {
    font-size: clamp(1rem, 3.2vw, 1.2rem);
  }

  /* Hymn View */
  .hymn-celebration-hero {
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
  }
  .hymn-celebration-hero h2 {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
  }
  .hymn-celebration-hero p {
    font-size: clamp(0.92rem, 3vw, 1.15rem);
  }
  .proclamation-badge {
    font-size: clamp(0.95rem, 3vw, 1.25rem);
    padding: 0.45rem 1.2rem;
  }
  .hymn-lyrics-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .lyrics-card {
    padding: 1.25rem 1rem;
  }
  .lyrics-verses {
    font-size: clamp(0.95rem, 3.2vw, 1.1rem);
    line-height: 2;
  }

  /* Hymn Videos Section (768px) */
  .hymn-videos-section {
    padding: 1.4rem 0.9rem;
    margin: 1.8rem auto 2.2rem;
  }
  .hymn-videos-main-title {
    font-size: 1.45rem;
  }
  .hymn-videos-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hymn-video-tabs {
    width: 100%;
    border-radius: var(--radius-md);
  }
  .hymn-video-tab-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
  }

  /* Modals & Lightbox */
  .modal-card {
    padding: 1.2rem 0.9rem;
    width: 95vw;
  }
  .codex-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .codex-img {
    height: 180px;
  }
  .lightbox-btn-close {
    top: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-btn-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .lightbox-btn-nav.prev {
    right: 0.5rem;
  }
  .lightbox-btn-nav.next {
    left: 0.5rem;
  }
  .lightbox-caption-bar {
    padding: 0.6rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    border-radius: var(--radius-md);
    max-width: 92vw;
  }

  /* Station Bible CTA Banner */
  .station-bible-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.4rem 1.1rem;
    gap: 1.1rem;
  }
  .cta-banner-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }
  .btn-station-bible-read {
    width: 100%;
    justify-content: center;
  }

  /* Bible Reading View */
  .bible-reading-progress-bar {
    top: 60px;
    padding: 0.4rem 0.85rem;
  }
  .bible-header-card {
    padding: 1.35rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
  .bible-title-row {
    gap: 0.85rem;
  }
  .bible-title-icon-box {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
  .bible-chapter-title {
    font-size: 1.4rem;
  }
  .bible-chapter-subtitle {
    font-size: 0.95rem;
  }
  .bible-verses-scroll-area {
    padding: 1.35rem 0.9rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
  .bible-verse-row {
    gap: 0.75rem;
    padding: 0.55rem 0.4rem;
  }
  .bible-verse-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .bible-verse-body {
    font-size: 1.08rem;
    line-height: 1.95;
  }
  .bible-footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .bible-nav-prev-next {
    width: 100%;
    justify-content: space-between;
  }
  .bible-nav-prev-next .btn-secondary {
    flex: 1;
    justify-content: center;
  }
  #btnBibleReturnFooter {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .app-footer {
    padding: 2rem 1rem;
    margin-top: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 3: Standard Mobile (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .header-container {
    padding: 0.4rem 0.6rem;
    gap: 0.35rem;
  }
  .brand-wrapper {
    gap: 0.45rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  .brand-text h1 {
    font-size: 0.92rem;
  }
  
  #btnOpenCodex {
    display: none; /* Accessible in the mobile drawer via btnOpenCodexMenu */
  }

  .main-content {
    padding: 0.75rem 0.5rem 2.5rem;
  }

  .welcome-hero {
    padding: 1.25rem 0.75rem;
  }
  .hero-image-wrapper {
    height: clamp(140px, 45vw, 200px);
  }
  
  .station-detail-body {
    padding: 1rem 0.5rem;
  }
  .bible-verse-card {
    padding: 0.85rem 0.65rem;
    border-right-width: 4px;
  }
  .verse-text {
    font-size: clamp(0.95rem, 4vw, 1.2rem);
    line-height: 1.8;
  }
  .narrative-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .quiz-container {
    padding: 1rem 0.65rem;
  }
  .quiz-choice-btn {
    padding: 0.7rem 0.75rem;
    font-size: 0.9rem;
    gap: 0.55rem;
  }
  .choice-letter {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .hw-panel {
    padding: 1rem 0.65rem;
  }
  .written-q-card {
    padding: 0.85rem 0.65rem;
  }

  /* Station Bible CTA Banner (480px) */
  .station-bible-cta-banner {
    padding: 1.1rem 0.8rem;
    gap: 0.85rem;
  }
  .cta-banner-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
  .cta-banner-text h4 {
    font-size: 1.1rem;
  }
  .cta-banner-text p {
    font-size: 0.88rem;
  }
  .btn-station-bible-read {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  /* Bible Reading View (480px) */
  .bible-chapter-pill {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  .bible-verse-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  /* Hymn Videos (480px) */
  .hymn-videos-section {
    padding: 1rem 0.65rem;
  }
  .hymn-videos-main-title {
    font-size: 1.25rem;
  }
  .video-card-body {
    padding: 0.9rem 0.75rem;
  }
  .video-card-title {
    font-size: 1rem;
  }
  .video-card-desc {
    font-size: 0.82rem;
  }

  /* Codex Modal & Gallery Cards (480px) */
  .modal-overlay {
    padding: 0.65rem;
  }
  .modal-card {
    padding: 1.25rem 0.9rem;
    max-height: 94vh;
  }
  .modal-header h3 {
    font-size: 1.15rem;
  }
  .codex-intro-desc {
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
  }
  .codex-filter-tabs {
    flex-direction: column;
    gap: 0.45rem;
  }
  .codex-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
  }
  .codex-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .codex-body {
    padding: 0.95rem 0.85rem;
  }
  .codex-body h4 {
    font-size: 1.05rem;
  }
  .codex-desc {
    font-size: 0.84rem;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 4: Small Mobile (<= 360px - e.g. 320px screen from screenshot)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .header-container {
    padding: 0.35rem 0.45rem;
    gap: 0.25rem;
  }
  .brand-wrapper {
    gap: 0.35rem;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  .brand-text h1 {
    font-size: 0.85rem;
  }
  .icon-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .badge-progress {
    padding: 0.18rem 0.4rem;
    font-size: 0.72rem;
  }

  .main-content {
    padding: 0.5rem 0.35rem 2rem;
  }

  .welcome-hero {
    padding: 0.95rem 0.5rem;
  }
  .hero-badge-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.55rem;
  }
  .hero-title {
    font-size: 1.25rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .btn-primary, .btn-secondary {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .station-content-body {
    padding: 0.85rem 0.55rem;
  }
  .station-title {
    font-size: 1.1rem;
  }
  .station-description {
    font-size: 0.82rem;
  }

  .story-detail-body {
    padding: 0.85rem 0.4rem;
  }
  .bible-verse-card {
    padding: 0.75rem 0.55rem;
    border-right-width: 3px;
  }
  .verse-text {
    font-size: 0.92rem;
    line-height: 1.75;
  }
  .verse-citation {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }
  .narrative-text {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .child-insight-box {
    padding: 0.75rem 0.55rem;
  }
  .child-insight-box h4 {
    font-size: 0.92rem;
  }
  .child-insight-box p {
    font-size: 0.82rem;
  }

  .inline-activity-box {
    padding: 0.75rem 0.55rem;
  }
  .activity-option-btn {
    padding: 0.6rem 0.65rem;
    font-size: 0.84rem;
    gap: 0.45rem;
  }
  .activity-option-btn .choice-letter {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }

  .quiz-container {
    padding: 0.85rem 0.5rem;
  }
  .quiz-question-text {
    font-size: 1rem;
  }
  .quiz-choice-btn {
    padding: 0.65rem 0.65rem;
    font-size: 0.86rem;
  }
  .choice-letter {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .score-display-circle {
    width: 96px;
    height: 96px;
  }
  .score-big {
    font-size: 2rem;
  }

  .hw-panel {
    padding: 0.85rem 0.5rem;
  }
  .written-q-card {
    padding: 0.75rem 0.55rem;
  }
  .written-q-prompt {
    font-size: 0.92rem;
  }

  /* Station Bible CTA Banner (360px) */
  .station-bible-cta-banner {
    padding: 0.85rem 0.55rem;
    border-radius: var(--radius-md);
  }
  .cta-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .cta-banner-text h4 {
    font-size: 0.98rem;
  }
  .cta-banner-text p {
    font-size: 0.82rem;
  }
  .btn-station-bible-read {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
  }

  /* Bible Reading View (360px) */
  .bible-reading-progress-bar {
    top: 50px;
    padding: 0.35rem 0.55rem;
  }
  .bible-header-card {
    padding: 0.85rem 0.55rem;
  }
  .bible-chapter-title {
    font-size: 1.15rem;
  }
  .bible-chapter-subtitle {
    font-size: 0.82rem;
  }
  .bible-verses-scroll-area {
    padding: 0.85rem 0.45rem;
  }
  .bible-verse-row {
    gap: 0.5rem;
    padding: 0.45rem 0.25rem;
  }
  .bible-verse-num {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }
  .bible-verse-body {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  /* Hymn Videos (360px) */
  .hymn-videos-section {
    padding: 0.75rem 0.45rem;
  }
  .video-play-trigger {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .video-duration-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
  }

  /* Codex Modal & Lightbox (360px) */
  .modal-overlay {
    padding: 0.35rem;
  }
  .modal-card {
    padding: 0.95rem 0.65rem;
    border-radius: var(--radius-sm);
  }
  .modal-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
  }
  .modal-header h3 {
    font-size: 0.98rem;
  }
  .codex-intro-desc {
    font-size: 0.82rem;
  }
  .codex-tab-btn {
    font-size: 0.82rem;
    padding: 0.45rem 0.65rem;
  }
  .codex-station-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }
  .codex-zoom-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
  }
  .btn-codex-explore {
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 5: Extreme Narrow Screens (<= 280px down to 120px)
   Graceful degradation for ultra-thin viewports
   -------------------------------------------------------------------------- */
@media (max-width: 280px) {
  .header-container {
    padding: 0.25rem 0.35rem;
    gap: 0.2rem;
  }
  .brand-text h1 {
    font-size: 0.78rem;
  }
  .badge-progress {
    display: none;
  }
  .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .main-content {
    padding: 0.35rem 0.2rem 1.5rem;
  }
  .welcome-hero {
    padding: 0.75rem 0.35rem;
  }
  .hero-title {
    font-size: 1.1rem;
  }
  .btn-primary, .btn-secondary {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }
  .story-detail-body {
    padding: 0.6rem 0.25rem;
  }
  .bible-verse-card {
    padding: 0.6rem 0.4rem;
  }
  .verse-text {
    font-size: 0.85rem;
  }
  .narrative-text {
    font-size: 0.82rem;
  }
  .quiz-container {
    padding: 0.6rem 0.3rem;
  }
  .hw-panel {
    padding: 0.6rem 0.3rem;
  }

  /* Station Bible CTA Banner (280px) */
  .station-bible-cta-banner {
    padding: 0.6rem 0.35rem;
  }
  .cta-banner-icon {
    display: none;
  }

  /* Bible Reading View (280px) */
  .bible-header-card {
    padding: 0.6rem 0.35rem;
  }
  .bible-title-icon-box {
    display: none;
  }
  .bible-verses-scroll-area {
    padding: 0.6rem 0.35rem;
  }
  .bible-verse-num {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }
  .bible-verse-body {
    font-size: 0.85rem;
    line-height: 1.7;
  }
}

/* --------------------------------------------------------------------------
   Breakpoint 6: Ultra-Extreme Viewport (<= 140px)
   -------------------------------------------------------------------------- */
@media (max-width: 140px) {
  .brand-text {
    display: none; /* Show only brand icon on 120px */
  }
  .header-actions {
    gap: 0.2rem;
  }
  .main-content {
    padding: 0.2rem 0.1rem 1rem;
  }
}

