/**
 * Web Bible - Main Stylesheet
 * Mobile-first, peaceful Christian design
 * Uses Bootstrap 5 + Tailwind-style utilities + custom design system
 */

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-primary-dark: #152a47;
  --color-accent: #c9a227;
  --color-accent-light: #e4bc4a;
  --color-accent-soft: rgba(201, 162, 39, 0.15);
  --color-beige: #f5f0e8;
  --color-cream: #faf8f5;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --color-border: #e2e8f0;
  --bible-parallel-row-line: rgba(30, 58, 95, 0.35);
  --bible-parallel-col-line: rgba(30, 58, 95, 0.28);
  --color-footer-bg: linear-gradient(180deg, #1a3352 0%, #152a47 100%);
  --color-header-bg: linear-gradient(135deg, #1e3a5f 0%, #152a47 100%);
  --color-header-text: rgba(255, 255, 255, 0.95);
  --color-header-text-muted: rgba(255, 255, 255, 0.75);
  --color-header-border: rgba(255, 255, 255, 0.1);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-serif: "Lora", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-telugu: "Noto Sans Telugu", "Source Sans 3", "Gidugu", "Mallanna", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography - large readable scripture (Lora for warmth and clarity) */
.scripture-text {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.75;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.verse-of-day .scripture-text {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

/* Bible chapter reading - large readable layout */
.scripture-reading-block {
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}
.scripture-reading-block .verse-line {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.8;
}
.verse-num {
  font-weight: 600;
  min-width: 2em;
  display: inline-block;
}
.verse-detail-block .scripture-text {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

/* Announcement bar */
.announcement-bar {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.announcement-bar a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* ========== Header (dark, modern) ========== */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-header .header-inner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-header .navbar {
  padding: 0;
  min-height: var(--header-height);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  color: var(--color-header-text) !important;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s, color 0.2s;
}

.brand-link:hover {
  opacity: 1;
  color: var(--color-accent-light) !important;
}

.brand-icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.95;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-main .nav-link {
  color: var(--color-header-text-muted) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-main .nav-link:hover {
  color: var(--color-header-text) !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-main .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
}

.nav-main .dropdown-toggle::after {
  border-top-color: var(--color-header-text-muted);
}

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

.btn-header {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--color-header-text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-header.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-header.btn-lang:hover,
.btn-header.btn-ghost:hover {
  color: var(--color-header-text);
  background: rgba(255, 255, 255, 0.1);
}

.btn-header.btn-outline {
  border: 1px solid var(--color-header-border);
  color: var(--color-header-text-muted);
}

.btn-header.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-header-text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-header.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary-dark) !important;
}

.btn-header.btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark) !important;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-header-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.header-search .form-control {
  border: none;
  background: transparent;
  width: 120px;
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  color: var(--color-header-text);
}

.header-search .form-control::placeholder {
  color: var(--color-header-text-muted);
}

.header-search .form-control:focus {
  box-shadow: none;
  outline: none;
}

.header-search .btn-search {
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: none;
  color: var(--color-header-text-muted);
  font-size: 1rem;
}

.header-search .btn-search:hover {
  color: var(--color-accent-light);
  background: transparent;
}

.header-dropdown .dropdown-menu {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 0.25rem;
  background: #fff;
}

.header-dropdown .dropdown-item {
  color: var(--color-text);
}

.header-dropdown .dropdown-item:hover {
  background: var(--color-beige);
  color: var(--color-primary);
}

.header-toggler {
  border-color: var(--color-header-border);
  padding: 0.35rem 0.5rem;
}

.header-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.header-toggler:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.notification-dropdown {
  min-width: 280px;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
}

.notification-dropdown .dropdown-item.notification-unread {
  background: rgba(30, 58, 95, 0.06);
}

.notification-dropdown .dropdown-item:hover {
  background: var(--color-beige);
}

.list-group-item.notification-unread {
  background: rgba(30, 58, 95, 0.06);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(21, 42, 71, 0.98);
    margin: 0 -0.75rem -1px;
    padding: 1rem 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--color-header-border);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  .header-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-header-border);
    width: 100%;
  }
  .header-search {
    flex: 1;
    min-width: 0;
  }
  .header-search .form-control {
    width: 100%;
  }
}

/* Buttons */
.btn-primary-custom {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary-custom:hover {
  background: var(--color-primary-light);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-accent:hover {
  background: var(--color-accent-light);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline-custom:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Cards - elegant, soft shadow */
.card-custom {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
}

.card-custom .card-body {
  padding: 1.5rem;
}

.verse-card {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-section h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero-section .lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Section titles */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* Daily Bible Experience — modal only (no launch bar) */
.modal-content.wb-daily-experience-modal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
  border-left: 4px solid var(--color-accent);
}
.wb-daily-experience-modal-title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-weight: 700;
  color: var(--color-primary);
}
.wb-daily-experience-modal .modal-header {
  padding: 1.1rem 1.25rem 0.5rem;
}
.wb-daily-experience-modal .modal-body {
  padding: 0 1.25rem 1.35rem;
}
.wb-daily-experience-inner {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.wb-daily-experience-quote {
  font-size: 1.05rem;
  line-height: 1.55;
  font-family: "Lora", Georgia, serif;
}
.wb-daily-experience-two-lines,
.wb-daily-experience-prayer-text {
  line-height: 1.55;
  color: var(--color-text);
  font-family: "Lora", Georgia, serif;
}
.wb-daily-experience-prayer-text {
  font-style: italic;
  color: var(--color-text-muted);
}
.wb-daily-experience-modal .wb-daily-blessed-btn.is-blessed {
  opacity: 0.92;
}
/* Modal is moved to body — sit above sticky header (1000) and reader FAB (1030) */
#wbDailyExperienceModal.modal {
  z-index: 1100;
}
/* Dark reader: theme copied onto #wbDailyExperienceModal[data-wb-theme="dark"] via JS */
#wbDailyExperienceModal[data-wb-theme="dark"] .modal-content.wb-daily-experience-modal {
  background: rgba(30, 32, 38, 0.98);
  color: rgba(255, 255, 255, 0.92);
  border-left-color: var(--color-accent);
}
#wbDailyExperienceModal[data-wb-theme="dark"] .wb-daily-experience-modal-title {
  color: #e8ecf4;
}
#wbDailyExperienceModal[data-wb-theme="dark"] .wb-daily-experience-quote,
#wbDailyExperienceModal[data-wb-theme="dark"] .wb-daily-experience-two-lines {
  color: rgba(255, 255, 255, 0.92);
}
#wbDailyExperienceModal[data-wb-theme="dark"] .wb-daily-experience-prayer-text {
  color: rgba(255, 255, 255, 0.75);
}
#wbDailyExperienceModal[data-wb-theme="dark"] .wb-daily-experience-modal .btn-close {
  filter: invert(1) grayscale(100%);
  opacity: 0.7;
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 4rem;
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.92);
}

.footer-top {
  padding: 3rem 0 2.5rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.88;
  margin-bottom: 1.25rem;
}

.btn-footer-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: var(--color-accent-light);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-footer-cta:hover {
  background: #fff;
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent-light);
  padding-left: 2px;
}

.footer-newsletter-desc {
  font-size: 0.9375rem;
  opacity: 0.88;
  margin-bottom: 1rem;
}

.footer-newsletter-inner {
  display: flex;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-newsletter-input {
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.9375rem;
  flex: 1;
  min-width: 0;
}

.footer-newsletter-input:focus {
  box-shadow: none;
  outline: none;
  border-color: transparent;
}

.footer-newsletter-btn {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: none;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.footer-newsletter-btn:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--color-accent-light);
}

/* ========== Bible home page ========== */
.bible-home {
  min-height: 65vh;
  background: linear-gradient(165deg, #f0f4f8 0%, #e8eef6 35%, #faf8f5 70%, #fff 100%);
  --wb-reader-font-scale: 0.92;
  --wb-reader-line: 1.72;
}

.bible-home[data-wb-theme='dark'] {
  background: linear-gradient(165deg, #141c28 0%, #0f1620 50%, #121a24 100%);
  --color-text: #e8ecf1;
  --color-text-muted: #9aa5b5;
  --color-border: #2d3a4d;
  --color-primary: #a8c4e8;
  --color-primary-light: #c5d8f5;
}

.bible-home[data-wb-theme='dark'] .bible-selector-card,
.bible-home[data-wb-theme='dark'] .bible-reading-card {
  background: linear-gradient(145deg, #1e2836 0%, #1a222e 100%);
  border-color: rgba(45, 58, 77, 0.85);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.45);
}

.bible-home[data-wb-theme='dark'] .bible-select {
  background: #243044;
  color: var(--color-text);
  border-color: var(--color-border);
}

.bible-home[data-wb-theme='dark'] .bible-parallel-two {
  background: linear-gradient(180deg, #1a222e 0%, #1e2836 12%);
  border-color: var(--color-border);
}

.bible-home[data-wb-theme='dark'] .bible-parallel-two .bible-parallel-second {
  background: rgba(30, 40, 54, 0.9);
}

.bible-home[data-wb-theme='dark'] .bible-hero-title {
  background: linear-gradient(135deg, #f0e6d2 0%, #fff 50%, #e8eef8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.bible-home[data-wb-theme='dark'] .bible-hero-badge {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
}

.bible-home[data-wb-theme='dark'] .bible-reading-header {
  background: linear-gradient(180deg, rgba(30, 40, 54, 0.55) 0%, transparent 100%);
  border-bottom-color: var(--color-border);
}

.bible-home[data-wb-theme='dark'] .bible-reading-progressbar {
  background: rgba(255, 255, 255, 0.08);
}

.bible-home[data-wb-theme='dark'] .bible-reading-nav {
  border-top-color: var(--color-border);
}

.bible-home[data-wb-theme='dark'] .bible-nav-btn {
  background: rgba(36, 48, 68, 0.9);
  border-color: var(--color-border);
  color: var(--color-text);
}

.bible-home[data-wb-theme='dark'] .bible-selector-hint {
  background: rgba(0, 0, 0, 0.2);
  border-left-color: var(--color-accent);
}

.bible-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.bible-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 58, 95, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 60%, rgba(30, 58, 95, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.bible-home[data-wb-theme='dark'] .bible-hero-bg {
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(168, 196, 232, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 40%, rgba(201, 162, 39, 0.06) 0%, transparent 50%);
}

.bible-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.45;
  pointer-events: none;
}

.bible-hero-glow--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201, 162, 39, 0.25);
}

.bible-hero-glow--2 {
  width: min(280px, 50vw);
  height: min(280px, 50vw);
  bottom: 5%;
  right: 8%;
  background: rgba(30, 58, 95, 0.12);
}

.bible-home[data-wb-theme='dark'] .bible-hero-glow--1 {
  background: rgba(201, 162, 39, 0.15);
}

.bible-home[data-wb-theme='dark'] .bible-hero-glow--2 {
  background: rgba(168, 196, 232, 0.1);
}

.bible-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
}

.bible-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, var(--color-cream) 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  box-shadow:
    0 4px 14px rgba(30, 58, 95, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.bible-hero-badge-icon {
  font-size: 1.1rem;
  color: var(--color-accent);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bible-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem 0;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 45%, #1a3352 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 20px rgba(30, 58, 95, 0.08));
}

.bible-hero-desc {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.75;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
}

.bible-content {
  padding-bottom: 3.5rem;
  padding-top: 0;
}

.bible-home > .container.bible-content {
  padding-top: clamp(1rem, 3vw, 2rem);
  position: relative;
  z-index: 2;
}

.bible-selector-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow:
    0 4px 6px -1px rgba(30, 58, 95, 0.06),
    0 20px 40px -12px rgba(30, 58, 95, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  width: 100%;
  overflow: hidden;
}

.bible-selector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 20%, #e4bc4a 50%, var(--color-accent) 80%, transparent 100%);
  opacity: 0.95;
}

.bible-selector-form {
  width: 100%;
}

.bible-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .bible-home .bible-selector-grid--parallel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bible-home .bible-selector-grid--simple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bible-home .bible-selector-grid .bible-selector-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .bible-home .bible-selector-grid .bible-btn-read {
    width: 100%;
    max-width: 16rem;
  }
}

@media (min-width: 992px) {
  /* Compare + Language + Version + Book + Chapter + Verse + Read */
  .bible-home .bible-selector-grid--parallel {
    grid-template-columns:
      minmax(8.5rem, 0.95fr)
      minmax(6.5rem, 0.75fr)
      minmax(11rem, 1.85fr)
      minmax(8rem, 1.05fr)
      minmax(3.75rem, 4.75rem)
      minmax(3.5rem, 4.5rem)
      auto;
    gap: 0.7rem 0.85rem;
  }
  /* Language + Version + Book + Chapter + Verse + Read */
  .bible-home .bible-selector-grid--simple {
    grid-template-columns:
      minmax(7rem, 0.85fr)
      minmax(11rem, 1.9fr)
      minmax(8rem, 1.1fr)
      minmax(3.75rem, 4.75rem)
      minmax(3.5rem, 4.5rem)
      auto;
    gap: 0.7rem 0.85rem;
  }
}

@media (min-width: 1200px) {
  .bible-home .bible-selector-grid--parallel {
    grid-template-columns:
      minmax(9.5rem, 1fr)
      minmax(7rem, 0.8fr)
      minmax(12rem, 2fr)
      minmax(9rem, 1.15fr)
      minmax(3.75rem, 5rem)
      minmax(3.5rem, 4.75rem)
      auto;
    gap: 0.75rem 1rem;
  }
  .bible-home .bible-selector-grid--simple {
    grid-template-columns:
      minmax(7.5rem, 0.9fr)
      minmax(12rem, 2.1fr)
      minmax(9rem, 1.2fr)
      minmax(3.75rem, 5rem)
      minmax(3.5rem, 4.75rem)
      auto;
  }
}

.bible-selector-hint {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: -0.25rem 0 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: rgba(30, 58, 95, 0.04);
  border-left: 3px solid var(--color-accent);
}

.bible-selector-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.bible-selector-field-ch .bible-select {
  min-width: 80px;
}

.bible-selector-field-v .bible-select {
  min-width: 72px;
  max-width: 6.5rem;
}

.bible-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0;
}

.bible-select {
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  min-width: 140px;
  background: #fff;
  box-sizing: border-box;
}

.bible-selector-grid .bible-select {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .bible-selector-grid .bible-select {
    min-width: 0;
  }
}

.bible-selector-grid .bible-selector-field-ch .bible-select {
  min-width: 80px;
}

.bible-selector-grid .bible-selector-field-v .bible-select {
  min-width: 72px;
}

.bible-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.bible-selector-actions {
  display: flex;
  align-items: flex-end;
}

.bible-btn-read {
  background: linear-gradient(145deg, #1e3a5f 0%, #2c5282 55%, #1a3352 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 1.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow:
    0 2px 8px rgba(30, 58, 95, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.bible-btn-read:hover {
  color: #fff;
  filter: brightness(1.08);
  box-shadow:
    0 6px 20px rgba(30, 58, 95, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-2px);
}

.bible-hint {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.bible-reading-card {
  position: relative;
  background: #fff;
  border-radius: calc(var(--radius-lg) + 2px);
  box-shadow:
    0 4px 6px -1px rgba(30, 58, 95, 0.05),
    0 16px 36px -8px rgba(30, 58, 95, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 2rem 2.25rem 2.25rem;
  padding-left: calc(2.25rem + 6px);
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
  /* Allow parallel block to scroll horizontally on small screens; hidden clipped the English column */
  overflow-x: visible;
  overflow-y: visible;
}

.bible-reading-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-accent) 0%, #c9a227 40%, var(--color-primary) 100%);
  border-radius: calc(var(--radius-lg) + 2px) 0 0 calc(var(--radius-lg) + 2px);
}

.bible-reading-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.5) 0%, transparent 100%);
  margin-left: -6px;
  margin-right: -2.25rem;
  padding-left: calc(2.25rem + 6px);
  padding-right: 2.25rem;
  margin-top: -2rem;
  padding-top: 1.35rem;
  border-radius: 0 var(--radius-lg) 0 0;
}

.bible-reading-header-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.bible-reading-header-actions {
  flex: 0 0 auto;
}

.bible-nav-btn-books {
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(30, 58, 95, 0.22);
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.07) 0%, rgba(201, 162, 39, 0.14) 100%);
  box-shadow: 0 1px 3px rgba(30, 58, 95, 0.08);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, filter 0.15s;
}

.bible-nav-btn-books:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
  color: var(--color-primary);
}

.bible-home[data-wb-theme='dark'] .bible-nav-btn-books {
  box-shadow: none;
}

.bible-reading-progress {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0 0;
}

.bible-reading-progressbar {
  height: 4px;
  width: 100%;
  max-width: 14rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 95, 0.1);
  overflow: hidden;
}

.bible-reading-progressbar-fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
  transition: width 0.35s ease;
}

.bible-reader-sticky-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: 100%;
}

.bible-selector-sticky {
  position: sticky;
  top: var(--header-height);
  z-index: 990;
  background: linear-gradient(180deg, var(--color-cream) 0%, #fff 55%);
  padding-top: 0.35rem;
  margin-top: -0.35rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 8px 24px -12px rgba(30, 58, 95, 0.12);
  border-radius: calc(var(--radius-lg) + 2px);
}

/* Top pill nav: Previous | Change book & chapter | Next — single row on all viewports */
.bible-reading-nav.bible-reading-nav--top {
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: clamp(0.2rem, 1.2vw, 0.55rem);
  padding: 0.45rem clamp(0.25rem, 1.5vw, 0.5rem) 0.55rem;
  margin: 0;
  margin-top: 0;
  padding-top: 0.45rem;
  border: none;
  border-top: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-reading-nav--top .bible-nav-btn {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Prev / Next: compact, never shrink below label */
.bible-reading-nav--top .bible-nav-btn:not(.bible-nav-btn-ghost) {
  flex: 0 0 auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: clamp(0.4rem, 2vw, 1rem);
  padding-right: clamp(0.4rem, 2vw, 1rem);
  font-size: clamp(0.7rem, 2.8vw, 0.875rem);
}

/* Middle control: takes remaining space; ellipsis if needed on narrow phones */
.bible-reading-nav--top .bible-nav-btn-ghost {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: clamp(0.35rem, 1.5vw, 0.85rem);
  padding-right: clamp(0.35rem, 1.5vw, 0.85rem);
  font-size: clamp(0.65rem, 2.6vw, 0.875rem);
}

.bible-nav-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

.bible-selector-card--collapsible.is-collapsed {
  display: none;
}

.bible-selector-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: -0.25rem 0 0.35rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.bible-selector-browse-btn {
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-light);
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.bible-selector-browse-btn:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bible-selector-hide-btn {
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.25rem 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.bible-selector-hide-btn:hover {
  color: var(--color-accent);
}

.bible-home[data-wb-theme='dark'] .bible-selector-sticky {
  background: linear-gradient(180deg, #1e2430 0%, #252d3d 100%);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

.bible-home[data-wb-theme='dark'] .bible-selector-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bible-home[data-wb-theme='dark'] .bible-selector-browse-btn {
  color: #b8cce8;
}

.bible-home[data-wb-theme='dark'] .bible-selector-browse-btn:hover {
  color: #fff;
}

.bible-home[data-wb-theme='dark'] .bible-selector-hide-btn {
  color: #b8cce8;
}

.bible-home[data-wb-theme='dark'] .bible-selector-hide-btn:hover {
  color: #fff;
}

.bible-parallel-two.bible-parallel-en-te [lang='te'] .verse-line,
.bible-parallel-two.bible-parallel-en-te [lang='te'].scripture-text {
  font-family: var(--font-telugu);
}

.bible-parallel-row {
  transition: background 0.15s ease;
}

.bible-parallel-two .bible-parallel-row:hover,
.bible-parallel-two .bible-parallel-row:focus-within {
  background: rgba(30, 58, 95, 0.035);
}

.bible-home[data-wb-theme='dark'] .bible-parallel-two .bible-parallel-row:hover,
.bible-home[data-wb-theme='dark'] .bible-parallel-two .bible-parallel-row:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

.bible-search-page .bible-search-form .bible-search-input-group {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bible-search-icon {
  background: var(--color-cream);
  border-color: var(--color-border);
}

.bible-search-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bible-search-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  background: #fff;
  box-shadow: 0 4px 20px -8px rgba(30, 58, 95, 0.08);
}

.bible-search-card-ref {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.bible-search-card-addr {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.bible-search-card-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 575.98px) {
  .bible-search-card-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    overflow-x: auto;
    min-width: 0;
  }
  .bible-search-card-col {
    min-width: 0;
  }
}

.bible-search-card-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.bible-search-card-text {
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  color: var(--color-text);
}

.bible-search-card-text .bible-search-mark {
  background: rgba(201, 162, 39, 0.35);
  padding: 0 0.12em;
  border-radius: 2px;
}

.bible-search-open-btn {
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(30, 58, 95, 0.2);
  background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
  color: var(--color-primary);
}

.bible-search-open-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.bible-hero-parallel-cta .btn {
  border-radius: var(--radius-full);
}

.bible-reading-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Book + chapter title aligned with parallel columns (Telugu | English, or WEB | KJV) */
.bible-reading-title.bible-reading-title--parallel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.05rem, 2.85vw, 1.85rem);
}

.bible-reading-title--parallel .bible-reading-title-cell {
  display: block;
  min-width: 0;
  padding: 0.15rem 0.75rem 0;
  font-size: 0.9em;
  font-weight: 700;
  line-height: 1.25;
}

.bible-reading-title--parallel .bible-reading-title-cell:first-child {
  border-right: 1px solid var(--bible-parallel-col-line);
  padding-right: 0.85rem;
}

.bible-reading-title--parallel .bible-reading-title-cell:last-child {
  padding-left: 0.85rem;
  background: rgba(253, 251, 247, 0.65);
}

.bible-reading-title--parallel .bible-reading-title-cell[lang='te'] {
  font-family: var(--font-display), var(--font-telugu);
}

.bible-home[data-wb-theme='dark'] .bible-reading-title--parallel .bible-reading-title-cell:last-child {
  background: rgba(255, 255, 255, 0.04);
}

.bible-home[data-wb-theme='dark'] .bible-reading-title--parallel .bible-reading-title-cell:first-child {
  border-right-color: rgba(255, 255, 255, 0.12);
}

.bible-reading-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.18) 0%, rgba(30, 58, 95, 0.08) 100%);
  color: var(--color-primary);
  border: 1px solid rgba(201, 162, 39, 0.35);
  margin-top: 0.5rem;
}

.bible-reading-notice {
  font-size: 0.875rem;
  color: var(--color-primary-light);
  background: rgba(30, 58, 95, 0.06);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.bible-reading-notice-subtle {
  color: var(--color-text-muted);
  background: rgba(30, 58, 95, 0.04);
  font-size: 0.8125rem;
}

.bible-reading-empty {
  color: var(--color-text-muted);
  margin: 0;
}

.bible-selector-field-parallel .bible-select,
.bible-selector-field-tlang .bible-select {
  min-width: 0;
}

/* Parallel Bible: two equal columns, same row height, clear row dividers */
.bible-parallel {
  display: block;
  width: 100%;
}

.bible-parallel-two {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 12%);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0 0;
  margin: 0 -0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 30px -8px rgba(30, 58, 95, 0.08);
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.bible-parallel-mt-note {
  font-size: 0.8125rem;
  color: var(--color-primary-light);
  background: rgba(30, 58, 95, 0.05);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  margin: 0 1rem 1rem 1rem;
  line-height: 1.45;
  border-left: 3px solid var(--color-accent);
}

/* Full-width grid: equal columns; track shrinks on narrow viewports so text wraps instead of clipping */
.bible-parallel-two .bible-parallel-track {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.bible-parallel-two .bible-parallel-header,
.bible-parallel-two .bible-parallel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
  min-width: 0;
}

.bible-parallel-header {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.bible-parallel-two .bible-parallel-header {
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--bible-parallel-row-line);
}

.bible-parallel-cell {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.bible-parallel-two .bible-parallel-primary {
  padding: 0.6rem 0.85rem;
  border-right: 1px solid var(--bible-parallel-col-line);
}

.bible-parallel-two .bible-parallel-second {
  padding: 0.6rem 0.85rem;
  background: rgba(253, 251, 247, 0.65);
}

.bible-parallel-row {
  margin: 0;
  border-bottom: 1px solid var(--bible-parallel-row-line);
}

.bible-parallel-two .bible-parallel-track > .bible-parallel-row:last-child {
  border-bottom: none;
}

/* Verse + cross-refs stacked inside each parallel column (not a full-width row below) */
.bible-parallel-verse-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 auto;
}

/* Keep cross-references directly under verse text, not pushed to the cell bottom */
.bible-parallel-verse-stack > .verse-line,
.bible-parallel-verse-stack > .scripture-text.verse-line {
  flex: 0 1 auto;
}

.bible-verse-crossrefs.bible-verse-crossrefs--parallel-cell {
  display: block;
}

.bible-parallel-two .bible-verse-crossrefs--parallel-cell {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  line-height: 1.42;
}

.bible-verse-crossrefs--parallel-cell .bible-verse-crossrefs-label {
  display: inline;
  text-transform: none;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-right: 0.3rem;
}

.bible-verse-crossrefs--parallel-cell .bible-verse-crossrefs-links {
  display: inline;
}

.bible-verse-crossrefs--parallel-cell .bible-verse-crossrefs-link,
.bible-verse-crossrefs--parallel-cell .bible-verse-crossrefs-sep {
  display: inline;
}

.bible-verse-crossrefs--parallel-cell .bible-verse-crossrefs-sep {
  margin: 0 0.12rem;
}

@media (min-width: 768px) {
  .bible-parallel-two .bible-verse-crossrefs--parallel-cell {
    font-size: 0.72rem;
  }
}

.bible-verse-crossrefs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.bible-verse-crossrefs-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.15rem;
  color: var(--color-primary-light);
}

.bible-verse-crossrefs-version-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-right: 0.35rem;
  opacity: 0.9;
}

.bible-verse-crossrefs-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.25rem;
}

.bible-verse-crossrefs-sep {
  opacity: 0.45;
  user-select: none;
}

.bible-verse-crossrefs-link {
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.bible-verse-crossrefs-link:hover {
  color: var(--color-primary);
  border-bottom-color: rgba(30, 58, 95, 0.35);
}

.bible-home[data-wb-theme='dark'] .bible-verse-crossrefs-label {
  color: var(--color-primary-light);
}

.bible-home[data-wb-theme='dark'] .bible-verse-crossrefs-link {
  color: #b8cce8;
}

.bible-home[data-wb-theme='dark'] .bible-verse-crossrefs-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Cross-ref popup: nested references under verse text */
.wb-crossref-modal-nested {
  line-height: 1.65;
}

.bible-verse-with-crossrefs {
  margin-bottom: 0.65rem;
}

.bible-verse-with-crossrefs .bible-verse-crossrefs {
  margin-top: 0.35rem;
  padding-left: 0.15rem;
}

@media (min-width: 768px) {
  .bible-verse-crossrefs {
    font-size: 0.78rem;
  }
}

.bible-parallel-row .verse-line,
.bible-parallel-row .scripture-text {
  font-size: calc(clamp(0.82rem, 1.55vw, 0.95rem) * var(--wb-reader-font-scale, 1));
  line-height: var(--wb-reader-line, 1.72);
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

#bibleReaderRoot {
  --wb-reader-font-scale: 0.92;
  --wb-reader-line: 1.72;
}

.bible-reader-fab {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 1030;
}

.bible-fab-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1;
}

.bible-home[data-wb-theme='dark'] .bible-fab-btn {
  background: #243044;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.bible-reader-offcanvas .form-range {
  max-width: 100%;
}

.bible-picker-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.4rem;
}

.bible-picker-book {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.bible-picker-book:hover {
  border-color: var(--color-primary);
  background: var(--color-cream);
}

.bible-picker-book.is-active {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  font-weight: 600;
}

.bible-picker-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  gap: 0.35rem;
}

.bible-picker-ch {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.bible-picker-ch:hover {
  border-color: var(--color-primary);
  background: var(--color-cream);
}

.bible-picker-ch.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.bible-parallel-row .verse-line + .verse-line {
  margin-top: 0.35rem;
}

.bible-parallel-row .verse-num,
.bible-parallel-row .verse-num-secondary {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  min-width: 2em;
  display: inline-block;
  margin-right: 0.35rem;
}

.bible-parallel-row a.verse-num:hover {
  color: var(--color-primary);
}

.bible-verse-missing {
  color: var(--color-text-muted);
  font-style: italic;
}

.bible-verse-highlight {
  outline: 2px solid rgba(201, 162, 39, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
  transition: outline-color 0.5s ease;
}

.verse-empty {
  flex: 1 1 auto;
  min-height: 2.5rem;
  margin: 0;
  color: transparent;
}

@media (min-width: 992px) {
  .bible-parallel-row .verse-line,
  .bible-parallel-row .scripture-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 767.98px) {
  .bible-parallel-two {
    margin: 0;
    border-radius: var(--radius);
    margin-left: 0;
    margin-right: 0;
  }
  /* Fit two columns in the viewport: wrap text, no forced min-width (was clipping English) */
  .bible-parallel-two .bible-parallel-track {
    min-width: 0;
    max-width: 100%;
  }
  .bible-parallel-two .bible-parallel-primary,
  .bible-parallel-two .bible-parallel-second {
    padding: 0.5rem 0.45rem;
  }
  .bible-parallel-two .bible-parallel-header {
    padding: 0.5rem 0.45rem;
    font-size: 0.75rem;
  }
  .bible-parallel-row .verse-num,
  .bible-parallel-row .verse-num-secondary {
    min-width: 1.25em;
    margin-right: 0.2rem;
  }
  #bibleReaderRoot {
    --wb-reader-font-scale: 0.82;
    --wb-reader-line: 1.52;
  }
}

.bible-verses .verse-line {
  margin-bottom: 0.85rem;
  font-size: calc(clamp(0.9rem, 1.65vw, 1.05rem) * var(--wb-reader-font-scale, 1));
  line-height: var(--wb-reader-line, 1.75);
}

.bible-verses .verse-num {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  min-width: 2em;
  display: inline-block;
  margin-right: 0.35rem;
}

.bible-verses .verse-num:hover {
  color: var(--color-primary);
}

.bible-reading-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.bible-nav-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #fff 0%, var(--color-cream) 100%);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 3px rgba(30, 58, 95, 0.06);
}

.bible-nav-btn:hover {
  border-color: rgba(30, 58, 95, 0.2);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.1);
  transform: translateY(-1px);
}

.bible-nav-btn-ghost {
  background: transparent;
  box-shadow: none;
}

.bible-nav-btn-ghost:hover {
  background: rgba(30, 58, 95, 0.05);
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .bible-selector-card {
    padding: 1.35rem 1.25rem;
  }
  .bible-selector-grid {
    grid-template-columns: 1fr;
  }
  .bible-selector-field .bible-select {
    min-width: 100%;
  }
  .bible-selector-actions {
    width: 100%;
  }
  .bible-btn-read {
    width: 100%;
  }
  .bible-reading-card {
    padding: 1.5rem 1rem 1.75rem;
    padding-left: calc(1rem + 6px);
  }
  .bible-reading-header {
    margin-right: -1rem;
    padding-right: 1rem;
    padding-left: calc(1rem + 6px);
  }
}

/* Newsletter */
.newsletter-box {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Prayer card */
.prayer-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.prayer-card:hover {
  box-shadow: var(--shadow);
}

/* ========== Prayer Requests module – premium spiritual UI ========== */
.prayer-requests-hero {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-beige) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-accent);
  margin-bottom: 1.5rem;
}

.prayer-requests-hero .prayer-requests-hero-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.prayer-requests-hero .prayer-requests-hero-desc {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.prayer-requests-guest-notice {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.prayer-requests-guest-notice-icon {
  font-size: 1.5rem;
  opacity: 0.9;
}

.prayer-requests-guest-notice-text {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  color: var(--color-primary-light);
  margin: 0;
}

.prayer-request-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.prayer-request-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  opacity: 0.85;
}

.prayer-request-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.25);
}

.prayer-request-card .card-body {
  padding: 1.35rem 1.5rem 1.35rem 1.6rem;
}

.prayer-request-card .prayer-request-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.prayer-request-card .prayer-request-card-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.prayer-request-card .prayer-request-card-preview {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.prayer-request-card .prayer-request-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.prayer-request-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, rgba(228, 188, 74, 0.2) 100%);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.prayer-request-badge-icon {
  font-size: 0.9em;
  opacity: 0.9;
}

.prayer-request-badge-sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.prayer-requests-empty {
  background: linear-gradient(180deg, var(--color-cream) 0%, #fff 100%);
  border: 2px dashed rgba(30, 58, 95, 0.15);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.prayer-requests-empty-icon {
  font-size: 3.5rem;
  opacity: 0.5;
  margin-bottom: 1rem;
  display: block;
}

.prayer-requests-empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.prayer-requests-empty-desc {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
}

.prayer-request-detail-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.prayer-request-detail-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.prayer-request-detail-card .card-body {
  padding: 1.75rem 2rem 1.75rem 2.1rem;
}

.prayer-request-detail-card .prayer-request-detail-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.prayer-request-detail-card .prayer-request-detail-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.prayer-request-detail-card .prayer-request-detail-body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.prayer-request-detail-card .prayer-request-interact {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.prayer-requests-login-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 58, 95, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(30, 58, 95, 0.1);
}

.prayer-requests-login-prompt-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Breadcrumb */
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--color-text-muted);
}

/* Mobile menu - keep dark background so white nav text is visible */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(21, 42, 71, 0.98);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  .navbar-collapse .nav-main .nav-link,
  .navbar-collapse .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .navbar-collapse .dropdown-menu {
    background: rgba(21, 42, 71, 0.98);
    border-color: var(--color-header-border);
  }
  .navbar-collapse .header-search .form-control,
  .navbar-collapse .header-search .form-control::placeholder {
    color: var(--color-header-text);
  }
  .navbar-collapse .header-search .form-control::placeholder {
    opacity: 0.7;
  }
}

/* Quick actions - sticky on mobile */
.quick-actions-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 0.75rem;
  z-index: 999;
  display: none;
}

@media (max-width: 767.98px) {
  .quick-actions-mobile {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
  }
  .quick-actions-mobile .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  body {
    padding-bottom: 70px;
  }
}

/* Devotional card */
.devotional-card .card-title {
  font-size: 1.125rem;
  color: var(--color-primary);
}

/* Reading plan progress */
.progress-custom {
  height: 8px;
  border-radius: 4px;
  background: var(--color-beige);
}

.progress-custom .progress-bar {
  background: var(--color-accent);
}

/* Form controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
}

/* Flash messages */
.alert-flash {
  border-radius: var(--radius);
  border: none;
}

/* Save / heart icon */
.btn-save {
  color: var(--color-text-muted);
  border: none;
  background: none;
  padding: 0.25rem;
}

.btn-save:hover,
.btn-save.saved {
  color: #c53030;
}

/* Topic tag */
.topic-tag {
  display: inline-block;
  background: var(--color-beige);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
  margin: 0.25rem;
}

.topic-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Daily Bible Quiz */
.daily-quiz-hero {
  margin-bottom: 1.5rem;
}

.daily-quiz-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.daily-quiz-desc {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.daily-quiz-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.daily-quiz-question {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.daily-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daily-quiz-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.daily-quiz-option-btn:hover:not(.disabled) {
  border-color: var(--color-primary);
  background: rgba(30, 58, 95, 0.04);
}

.daily-quiz-option-btn.selected {
  border-color: var(--color-primary);
  background: rgba(30, 58, 95, 0.08);
  font-weight: 500;
}

.daily-quiz-option-btn.disabled {
  cursor: default;
}

.daily-quiz-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.daily-quiz-empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.daily-quiz-result .daily-quiz-explanation,
.daily-quiz-result .daily-quiz-reference {
  font-family: var(--font-serif);
}

/* Reading Streak */
.reading-streak-hero {
  margin-bottom: 1.5rem;
}

.reading-streak-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.reading-streak-desc {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.reading-streak-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.reading-streak-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Bible Topic Collections */
.topics-hero {
  margin-bottom: 1.5rem;
}

.topics-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.topics-hero-desc {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.topic-collection-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.topic-collection-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.topic-collection-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.topic-collection-card-desc {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.topic-detail-header {
  margin-bottom: 1.5rem;
}

.topic-detail-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.topic-detail-intro {
  font-family: var(--font-serif);
  margin-bottom: 0;
}

.topic-detail-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.topic-detail-body {
  font-family: var(--font-serif);
  line-height: 1.6;
}

.topic-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.topic-verse-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.topic-verse-card .scripture-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text);
}

.topic-verse-ref {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.topic-verse-ref:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* Verse Image Generator */
.verse-image-generator .vigen-hero {
  margin-bottom: 1.5rem;
}

.vigen-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.vigen-hero-desc {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.vigen-form-card,
.vigen-preview-card {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.vigen-preview-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.vigen-preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.vigen-preview-inner {
  width: 100%;
}

.vigen-preview-text {
  font-family: var(--font-serif);
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.vigen-preview-ref {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.vigen-align-center .vigen-preview-inner { text-align: center; }
.vigen-align-left .vigen-preview-inner { text-align: left; }
.vigen-align-right .vigen-preview-inner { text-align: right; }

.vigen-size-small .vigen-preview-text { font-size: 0.95rem; }
.vigen-size-medium .vigen-preview-text { font-size: 1.1rem; }
.vigen-size-large .vigen-preview-text { font-size: 1.35rem; }

.vigen-bg-blue_sky { background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #E0F4FF 100%); }
.vigen-bg-sunrise { background: linear-gradient(0deg, #FF7F50 0%, #FFB366 40%, #FFE4B5 70%, #FFEFD5 100%); }
.vigen-bg-warm_gradient { background: linear-gradient(180deg, #F5DEB3 0%, #DEB887 50%, #D2B48C 100%); }
.vigen-bg-soft_beige { background: #F5F5DC; }
.vigen-bg-green_nature { background: linear-gradient(180deg, #90EE90 0%, #98FB98 50%, #E8F5E9 100%); }

.vigen-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  z-index: 0;
  border-radius: inherit;
}

.vigen-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.vigen-preview-has-image .vigen-preview-inner {
  position: relative;
  z-index: 2;
}

.vigen-preview-has-image .vigen-preview-text,
.vigen-preview-has-image .vigen-preview-ref {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vigen-preview-has-image .vigen-preview-ref {
  color: #e8e8e8;
}

.vigen-preview {
  position: relative;
}

.vigen-preview-watermark {
  position: absolute;
  z-index: 3;
  width: 80px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.vigen-wm-bottom-right { bottom: 12px; right: 12px; left: auto; top: auto; }

@media (min-width: 768px) {
  .vigen-preview {
    max-width: 400px;
  }
}

/* Bible Q&A (Quora-inspired layout) */
.bqa-page {
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 120px);
  min-height: 60vh;
}

.bqa-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.bqa-hero-sub {
  font-size: 0.95rem;
  color: #636466;
  max-width: 42rem;
  margin-bottom: 0;
}

.bqa-btn-primary {
  background: #2e69ff;
  border-color: #2e69ff;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1.25rem;
}

.bqa-btn-primary:hover {
  background: #1c4ed8;
  border-color: #1c4ed8;
  color: #fff;
}

.bqa-sidebar-nav {
  position: sticky;
  top: 5.5rem;
}

.bqa-sidebar-title {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bqa-sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: #49494b;
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.bqa-sidebar-link:hover {
  background: #eef0f3;
  color: #1a1a2e;
}

.bqa-sidebar-link.is-active {
  background: #e8eefc;
  color: #2e69ff;
  font-weight: 600;
}

.bqa-feed-item {
  border-radius: 12px !important;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.bqa-feed-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.bqa-feed-link:hover .bqa-feed-title {
  color: #2e69ff;
}

.bqa-feed-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.12s ease;
}

.bqa-feed-snippet {
  line-height: 1.45;
}

.bqa-meta-dot {
  margin: 0 0.25rem;
  opacity: 0.5;
}

.bqa-q-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.3;
  color: #1a1a2e;
}

.bqa-q-body,
.bqa-answer-body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #2d2d2f;
}

.bqa-question .card-body {
  max-width: 46rem;
}

.bqa-answer {
  border-radius: 12px !important;
  overflow: hidden;
}

.bqa-vote-col {
  flex: 0 0 52px;
  border-right: 1px solid #eee;
  background: #fafbfc;
}

.bqa-vote-form {
  margin: 0;
  padding: 0.75rem 0.35rem;
}

.bqa-vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 0.35rem 0.25rem;
  color: #6b6b6d;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.bqa-vote-btn:hover {
  background: #eef0f3;
  color: #2e69ff;
}

.bqa-vote-btn.is-voted {
  color: #2e69ff;
}

.bqa-vote-btn.is-voted .bqa-vote-arrow {
  color: #2e69ff;
}

.bqa-vote-arrow {
  font-size: 0.75rem;
  line-height: 1;
}

.bqa-vote-count {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.bqa-vote-readonly {
  padding: 0.5rem 0.25rem;
}

.bqa-input {
  border-radius: 10px;
  border-color: #d8dadc;
}

.bqa-input:focus {
  border-color: #2e69ff;
  box-shadow: 0 0 0 3px rgba(46, 105, 255, 0.15);
}

.bqa-ask-card {
  border-radius: 12px !important;
}

.bqa-compose {
  border-radius: 12px !important;
}

@media (max-width: 991.98px) {
  .bqa-sidebar-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .bqa-sidebar-link {
    display: inline-block;
    margin-bottom: 0;
  }
}
