/* ==========================================================================
   BIBLE BAPTIST CHURCH (WAYZATA, MN) — MODERN EDITORIAL STYLESHEET
   Inspired by BratstvoUSA warm heritage aesthetic + modern responsive craft
   ========================================================================== */

:root {
  --bg-paper: #f6f2ea;
  --bg-paper-alt: #ece6da;
  --bg-card: #fffdf8;
  --primary: #2d4739;
  --primary-hover: #21362a;
  --primary-light: #e7efe9;
  --accent: #8c6d46;
  --accent-light: #f4ede2;
  --text-dark: #282622;
  --text-body: #38352f;
  --text-muted: #6e675b;
  --border-rule: #ddd5c7;
  --border-strong: #c8beac;
  --shadow-sm: 0 4px 16px rgba(40, 38, 34, 0.05);
  --shadow-md: 0 12px 32px rgba(40, 38, 34, 0.09);
  --shadow-lg: 0 20px 48px rgba(40, 38, 34, 0.14);
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-paper);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  top: 0 !important; /* Prevent Google Translate banner from pushing body down */
}

/* Hide default Google Translate top bar while keeping instant translation capability */
.skiptranslate iframe,
.goog-te-banner-frame,
#goog-gt-tt {
  display: none !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   1. TOP LANGUAGE SUGGESTION BANNER
   ========================================================================== */
.lang-suggest-banner {
  background: linear-gradient(90deg, #21362a 0%, #2d4739 50%, #3a5747 100%);
  color: #f6f2ea;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1030;
}

.lang-suggest-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-suggest-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.lang-suggest-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-lang-banner {
  background: #fffdf8;
  color: var(--primary);
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-lang-banner:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-lang-dismiss {
  background: transparent;
  color: rgba(246, 242, 234, 0.75);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}

.btn-lang-dismiss:hover {
  color: #fff;
}

/* ==========================================================================
   2. STICKY SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-rule);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-dark);
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: transparent;
  box-shadow: 0 3px 10px rgba(40, 38, 34, 0.14);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(45, 71, 57, 0.07);
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Language Switcher Pill */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-paper-alt);
  border: 1px solid var(--border-rule);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: #fffdf8;
  box-shadow: 0 2px 6px rgba(45, 71, 57, 0.2);
}

.btn-youtube-nav,
.btn-instagram-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fffdf8;
  border: 1px solid var(--border-rule);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-youtube-nav:hover {
  border-color: #c4302b;
  color: #c4302b;
  background: #fff;
}

.btn-instagram-nav:hover {
  border-color: #c13584;
  color: #c13584;
  background: #fff;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION (HOME PAGE)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 4rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(140, 109, 70, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(45, 71, 57, 0.12) 0%, transparent 52%),
    linear-gradient(180deg, #f3ede1 0%, var(--bg-paper) 100%);
  border-bottom: 1px solid var(--border-rule);
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text-dark);
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-title-sub {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.45rem;
}

.hero-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.45rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fffdf8;
  box-shadow: 0 6px 18px rgba(45, 71, 57, 0.22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-dark);
  border-color: var(--border-strong);
}

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

.btn-youtube {
  background: #fffdf8;
  color: #b91c1c;
  border-color: #e6c6c6;
}

.btn-youtube:hover {
  background: #fef2f2;
  border-color: #b91c1c;
}

/* Quick Info Card in Hero Right Column */
.hero-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.hero-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 0 0 4px 4px;
}

.info-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.info-card-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 71, 57, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(45, 71, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 71, 57, 0); }
}

.hero-info-card h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
  color: var(--text-dark);
}

.schedule-quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.schedule-quick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-rule);
  border-radius: 12px;
}

.sq-day {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.sq-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.sq-time {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-rule);
  white-space: nowrap;
}

.hero-address-box {
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-rule);
  font-size: 0.9rem;
}

.hero-address-box strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-pastors-mini {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.86rem;
}

.hero-pastors-mini a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.hero-pastors-mini a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. COMMON SECTIONS & CONTAINERS
   ========================================================================== */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--bg-paper-alt);
  border-top: 1px solid var(--border-rule);
  border-bottom: 1px solid var(--border-rule);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-kicker {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-dark);
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0;
}

/* ==========================================================================
   5. ABOUT & FEATURE HIGHLIGHTS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.feature-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.feature-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   6. YOUTUBE CHANNEL & MEDIA PLAYER SECTION
   ========================================================================== */
.youtube-showcase {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.yt-player-wrap {
  display: flex;
  flex-direction: column;
}

.yt-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #181818;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.yt-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-color: #181818;
  text-decoration: none;
  border: 0;
  padding: 1.5rem;
  color: #fffdf8;
}

.yt-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 16, 0.35) 0%, rgba(15, 18, 16, 0.75) 100%);
  transition: background 0.2s ease;
}

.yt-facade:hover::before {
  background: linear-gradient(180deg, rgba(15, 18, 16, 0.2) 0%, rgba(15, 18, 16, 0.65) 100%);
}

.yt-play-btn {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 52px;
  border-radius: 14px;
  background: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}

.yt-facade:hover .yt-play-btn {
  transform: scale(1.08);
  background: #ef4444;
}

.yt-facade-caption {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  text-align: center;
  max-width: 90%;
}

.yt-facade-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fffdf8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  display: block;
}

.yt-facade-sub {
  font-size: 0.82rem;
  color: rgba(255, 253, 248, 0.88);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.45rem;
}

.yt-now-playing {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.yt-now-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.yt-playlist-col {
  display: flex;
  flex-direction: column;
}

.yt-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-rule);
}

.yt-playlist-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0;
  color: var(--text-dark);
}

.yt-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.yt-video-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border-rule);
  background: var(--bg-paper);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  width: 100%;
}

.yt-video-item:hover,
.yt-video-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

.yt-thumb {
  width: 96px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.yt-video-meta {
  overflow: hidden;
}

.yt-video-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 0.2rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. CALENDAR & UPCOMING EVENTS + BLOG / NEWS
   ========================================================================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

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

.event-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.event-time {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.event-day {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--text-dark);
  margin: 0 0 0.65rem;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.event-loc {
  font-size: 0.82rem;
  color: var(--text-body);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-rule);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Blog / News Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-cat {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex-grow: 1;
}

.blog-full {
  font-size: 0.9rem;
  color: var(--text-body);
  background: var(--bg-paper);
  padding: 0.9rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  margin-top: 0.5rem;
}

/* ==========================================================================
   8. PASTORS & CONTACT + GOOGLE MAPS SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  color: var(--text-dark);
}

.pastors-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pastor-box {
  background: var(--bg-paper);
  border: 1px solid var(--border-rule);
  border-radius: 12px;
  padding: 1.15rem;
}

.pastor-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.pastor-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

.pastor-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fffdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  width: 100%;
  justify-content: center;
  transition: background 0.2s ease;
}

.pastor-phone-btn:hover {
  background: var(--primary-hover);
}

.map-embed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.map-embed-card iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  flex-grow: 1;
}

/* ==========================================================================
   9. BELIEFS PAGE (ВЕРОУЧЕНИЕ — EXACT BRATSTVOUSA CONFIG)
   ========================================================================== */
.page-hero-band {
  background:
    radial-gradient(circle at 25% 30%, rgba(140, 109, 70, 0.18), transparent 55%),
    linear-gradient(135deg, #21362a 0%, #2d4739 60%, #3b5948 100%);
  color: #fffdf8;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-rule);
}

.page-hero-band .kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d9c8a9;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.page-hero-band h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.page-hero-band p.subtitle {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 253, 248, 0.84);
  font-size: 1rem;
}

.beliefs-wrapper {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.beliefs-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.beliefs-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3.5rem;
  align-items: start;
}

.beliefs-content {
  max-width: 46rem;
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  box-shadow: var(--shadow-sm);
}

.beliefs-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-rule);
  margin-bottom: 1.1rem;
}

.beliefs-content section:first-of-type + section h3 {
  margin-top: 1.5rem;
}

.beliefs-content h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
  font-style: italic;
  color: var(--accent);
}

.beliefs-content p {
  line-height: 1.85;
  margin-bottom: 1.35rem;
  color: var(--text-body);
}

.beliefs-content p.beliefs-lead {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-dark);
  background: var(--bg-paper);
  padding: 1.35rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.beliefs-content ul {
  list-style-type: "—  ";
  padding-left: 1.5rem;
  color: var(--text-body);
  margin-bottom: 1.35rem;
}

.beliefs-content ul li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
}

/* Interactive Bible Verse Reference Groups & Floating Hovercard */
.beliefs-content .ref-group {
  color: var(--primary);
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: background-color 0.15s ease, color 0.15s ease;
  border-radius: 4px;
  padding: 0 2px;
}

.beliefs-content .ref-group:hover,
.beliefs-content .ref-group:focus-visible {
  text-decoration-style: solid;
  background-color: var(--primary-light);
  outline: none;
}

.ref-hovercard {
  position: absolute;
  z-index: 1080;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 0.95rem 1.1rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-body);
  max-height: 360px;
  overflow-y: auto;
}

.ref-hovercard[hidden] {
  display: none;
}

.ref-hovercard .ref-card-item + .ref-card-item {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-rule);
}

.ref-hovercard .ref-card-ref {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.ref-hovercard .ref-card-text {
  font-style: italic;
  color: var(--text-dark);
}

/* Beliefs Sticky Sidebar TOC */
.beliefs-toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 2px solid var(--border-rule);
  font-size: 0.9rem;
  background: rgba(255, 253, 248, 0.65);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.beliefs-toc .eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.toc-top {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.toc-top:hover {
  color: var(--primary);
}

.toc-list,
.toc-children {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  margin-bottom: 0.75rem;
}

.toc-item {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.toc-item:hover,
.toc-item.active {
  color: var(--primary);
}

.toc-children {
  margin: 0.35rem 0 0 0.85rem;
  border-left: 1px solid var(--border-rule);
  padding-left: 0.65rem;
}

.toc-children li {
  margin-bottom: 0.28rem;
}

.toc-child {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  font-size: 0.85rem;
  display: block;
}

.toc-child:hover,
.toc-child.active {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile Collapsible TOC */
.beliefs-toc-mobile {
  display: none;
  border: 1px solid var(--border-rule);
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.toc-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
}

.toc-mobile-chevron {
  transition: transform 0.2s ease;
}

.toc-mobile-chevron.open {
  transform: rotate(180deg);
}

.toc-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0 1.15rem 0.85rem;
  display: none;
}

.toc-mobile-list.open {
  display: block;
}

.toc-mobile-list a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-serif);
  color: var(--text-dark);
  text-decoration: none;
  border-top: 1px solid var(--border-rule);
  font-size: 0.92rem;
}

/* English Summary Card on Beliefs Page */
.english-beliefs-summary {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.english-beliefs-summary h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.en-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.en-summary-item {
  background: var(--bg-paper);
  border: 1px solid var(--border-rule);
  border-radius: 10px;
  padding: 1rem;
}

.en-summary-item strong {
  color: var(--primary);
  display: block;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   10. CHURCHES DIRECTORY PAGE (НАЙТИ ЦЕРКОВЬ — EXACT BRATSTVOUSA CONFIG)
   ========================================================================== */
.directory {
  max-width: 1080px;
  padding: 38px 24px 64px;
  margin: auto;
  color: #302f29;
}

.directory .kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #746e61;
  margin-bottom: 10px;
  font-weight: 700;
}

.directory h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 46px);
  margin: 0 0 10px;
  color: var(--text-dark);
}

.directory .intro {
  color: #746e61;
  font-size: 15px;
  margin-bottom: 24px;
}

.search-panel {
  padding: 22px;
  background: #eae6dc;
  border: 1px solid #dcd5c5;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-panel label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #665f52;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  background: #fffdf8;
  padding: 10px 14px;
  border: 1px solid #d8d1c3;
  border-radius: 10px;
  font-size: 15px;
  color: #302f29;
  font-family: var(--font-sans);
}

.search-panel input:focus,
.search-panel select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.btn-mn-filter {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: #fffdf8;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mn-filter:hover,
.btn-mn-filter.active {
  background: var(--primary);
  color: #fffdf8;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  font-size: 13px;
  font-weight: 600;
  color: #746e61;
}

.btn-toggle-map {
  border: 1px solid #d8d1c3;
  background: #fffdf8;
  color: #354f41;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-toggle-map:hover {
  background: #354f41;
  color: #fffdf8;
  border-color: #354f41;
}

.churches-map-container {
  height: 440px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #d8d1c3;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.churches-map-container[hidden] {
  display: none;
}

.church-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.church-card {
  background: #fffdf7;
  border: 1px solid #e0d9cb;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.church-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.church-card.our-church-card {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #f3f8f5 0%, #fffdf7 45%);
  box-shadow: var(--shadow-md);
}

.church-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.church-card .location {
  color: #586b50;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.our-church-badge {
  background: var(--primary);
  color: #fffdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.church-card h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
  color: var(--text-dark);
}

.church-card .subname {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin: 3px 0 0;
}

.church-card .address {
  font-size: 14px;
  line-height: 1.6;
  color: #746e61;
  margin: 12px 0;
}

.church-card .contact {
  font-size: 13px;
  color: #5c564b;
  margin: 0 0 4px;
  font-weight: 500;
}

.church-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.church-card .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  min-height: 42px;
  border: 1px solid #d8d1c3;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #354f41;
  text-decoration: none;
  background: #fffdf8;
  transition: all 0.18s ease;
}

.church-card .actions a:hover {
  border-color: #354f41;
  background: #f0ede4;
}

.church-card .actions a.directions {
  background: #354f41;
  border-color: #354f41;
  color: #fffdf7;
}

.church-card .actions a.directions:hover {
  background: #24382d;
}

.arrow-icon {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
  background: #202622;
  color: #dcd7cd;
  padding: 4rem 1.5rem 2.5rem;
  border-top: 4px solid var(--accent);
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: #fffdf8;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #b5afa4;
  margin: 0 0 0.75rem;
}

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

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

.footer-links a {
  color: #c9c3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #fffdf8;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #969085;
}

/* ==========================================================================
   11.5 FLOATING BOTTOM-RIGHT "CONTACT US" WIDGET & FAQ SECTION
   ========================================================================== */
.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1095;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-contact-popover {
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(25, 35, 28, 0.25);
  padding: 1.25rem;
  width: 310px;
  max-width: calc(100vw - 44px);
  margin-bottom: 0.75rem;
  transform-origin: bottom right;
  animation: popIn 0.18s ease-out;
}

.floating-contact-popover[hidden] {
  display: none;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.fcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.fcp-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0;
}

.fcp-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  line-height: 1;
}

.fcp-close:hover {
  color: var(--text-dark);
}

.fcp-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.fcp-phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fcp-phone-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fffdf8;
  text-decoration: none;
  padding: 0.7rem 0.95rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.15s ease;
}

.fcp-phone-link:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.fcp-phone-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fcp-phone-num {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fcp-addr {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-rule);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.fcp-addr a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.fcp-addr a:hover {
  text-decoration: underline;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary);
  color: #fffdf8;
  border: 2px solid #fffdf8;
  border-radius: 999px;
  padding: 0.82rem 1.35rem;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(45, 71, 57, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(45, 71, 57, 0.45);
}

/* FAQ Section for SEO & AI Assistants */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-rule);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 0.55rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container,
  .youtube-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .calendar-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .beliefs-toc-aside {
    display: none;
  }

  .beliefs-toc-mobile {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-rule);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-youtube-nav span,
  .btn-instagram-nav span {
    display: none;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .church-grid,
  .features-grid,
  .calendar-grid,
  .blog-grid,
  .pastors-list,
  .en-summary-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .beliefs-content {
    padding: 1.65rem 1.35rem;
  }
}
