@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   CHURCH SO BLESSED NUEVA VIZCAYA — Theme Stylesheet
   Aligned with main churchsoblessed.org design system:
   - Primary navy blue sticky header (#1e3a8a) & CSB Blue (#2563eb)
   - Crisp white & soft gray section backgrounds (#ffffff / #f9fafb)
   - Dark slate typography (#0f172a / #475569)
   - White cards with soft shadows (shadow-[0_8px_30px_rgb(0,0,0,0.04)])
   - Light gray footer matching churchsoblessed.org
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Brand Accent Colors */
  --primary:        #2563eb;
  --primary-hover:  #1d4ed8;
  --primary-light:  #3b82f6;
  --primary-glow:   #60a5fa;
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --primary-border: rgba(37, 99, 235, 0.25);

  /* Core Palette (CSB Navy, Crisp White, Light Gray) */
  --ink:        #1e3a8a;   /* CSB Navy Header / Brand Color */
  --ink-dark:   #0f172a;   /* Deep Slate for Dark Section Blocks */
  --paper:      #ffffff;   /* Pure White Section / Card Base */
  --cream:      #f8fafc;   /* Neutral Off-White Background */
  --cream-line: #e2e8f0;

  /* Background Layers */
  --bg-color:   #f9fafb;   /* Main Body Light Gray Background */
  --bg-mid:     #1e3a8a;   /* Header Sticky Navy */
  --panel-bg:   #ffffff;   /* Card Background */
  --panel-bg-2: #ffffff;   /* Secondary Card Background */

  /* Borders */
  --border-color: #e2e8f0;
  --border-bright: #cbd5e1;
  --border-dark:  #cbd5e1;

  /* Text Colors */
  --text-primary:   #0f172a;   /* Dark Slate Headings */
  --text-secondary: #475569;   /* Slate Body Text */
  --text-muted:     #64748b;   /* Soft Muted Text */

  /* Semantic */
  --success:    #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger:     #f43f5e;
  --danger-bg:  rgba(244, 63, 94, 0.12);
  --warning:    #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info:       #2563eb;
  --info-bg:    rgba(37, 99, 235, 0.12);

  /* Typography */
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-script:  'Dancing Script', cursive;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.25);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ── Reset & Scrollbars ── */
body.branch-theme-body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports not (scrollbar-color: auto) {
  .branch-theme-body::-webkit-scrollbar { width: 6px; height: 6px; }
  .branch-theme-body::-webkit-scrollbar-track { background: #f1f5f9; }
  .branch-theme-body::-webkit-scrollbar-thumb { background: rgba(37, 99, 235, 0.3); border-radius: 3px; }
  .branch-theme-body::-webkit-scrollbar-thumb:hover { background: rgba(37, 99, 235, 0.5); }
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ── Cards & Panels ── */
.glass-panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.25s;
}
.glass-panel:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.glass-panel.on-light {
  background: #ffffff;
  border-color: var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}
.glass-panel.on-light:hover {
  border-color: var(--border-bright);
}

/* ── Story-led Cards ── */
.photo-story-card {
  position: relative;
  isolation: isolate;
  min-height: 22rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.photo-story-card__image,
.photo-story-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-story-card__image {
  z-index: -2;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-story-card--kids .photo-story-card__image {
  object-position: 67% 42%;
}
.photo-story-card__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.95) 100%);
}
.photo-story-card__content {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}
.photo-story-card:hover .photo-story-card__image {
  transform: scale(1.025);
}
.photo-story-card h4 {
  color: #ffffff !important;
}
.photo-story-card .text-gray-400 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.identity-card-photo {
  position: relative;
  height: clamp(11.5rem, 18vw, 14rem);
  margin: -2rem -2rem 2rem;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--ink-dark);
}
.identity-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 38%, rgba(15, 23, 42, 0.82) 100%);
}
.identity-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.identity-photo-card:hover .identity-card-photo img {
  transform: scale(1.025);
}
.identity-card-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Section Color Blocks ── */
.section-black { background: #0f172a; color: #ffffff; }
.section-white { background: #ffffff; color: var(--text-primary); }
.section-cream { background: #f8fafc; color: var(--text-primary); }

.section-white .text-gray-400,
.section-cream .text-gray-400 { color: var(--text-secondary) !important; }
.section-white .text-gray-500,
.section-cream .text-gray-500 { color: var(--text-muted) !important; }

.section-white h1, .section-white h2, .section-white h3, .section-white h4,
.section-cream h1, .section-cream h2, .section-cream h3, .section-cream h4 { color: var(--text-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  text-decoration: none;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Solid blue pill CTA */
.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff !important;
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(1px); }

/* Outline pill */
.btn-secondary {
  background: #ffffff;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff !important;
}

.btn-danger {
  background: #be123c;
  color: white !important;
}
.btn-danger:hover {
  background: #e11d48;
}

/* Underlined text-link CTA */
.btn-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  color: var(--primary);
  transition: opacity 0.2s, gap 0.2s;
}
.section-black .btn-underline {
  color: #ffffff;
}
.btn-underline:hover {
  opacity: 0.8;
  gap: 0.75rem;
}

/* ── Typography & Headings ── */
.display-font {
  font-family: var(--font-display);
}
.script-font {
  font-family: var(--font-script);
}

h1, .h1-scale {
  font-size: 3.2rem !important;
  line-height: 1.02 !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2, .h2-scale {
  font-size: 2.3rem !important;
  line-height: 1.05 !important;
  font-weight: 800;
  letter-spacing: -0.015em;
}
h3, .h3-scale {
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
}
h4, .h4-scale {
  font-size: 1.25rem !important;
}
p, .p-scale {
  font-size: 1.025rem !important;
  line-height: 1.7 !important;
}
li, .li-scale {
  font-size: 1.025rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 640px) {
  h1, .h1-scale { font-size: 2.5rem !important; }
  h2, .h2-scale { font-size: 1.85rem !important; }
  h3, .h3-scale { font-size: 1.35rem !important; }
  p, .p-scale, li, .li-scale { font-size: 0.975rem !important; }
}

.btn-facebook-accent {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(24, 119, 242, 0.6) !important;
}
.btn-facebook-accent:hover {
  background: #1877f2 !important;
  border-color: #1877f2 !important;
  color: #ffffff !important;
}
.btn-facebook-accent i {
  color: #1877f2 !important;
  font-size: 1.1rem;
}
.btn-facebook-accent:hover i {
  color: #ffffff !important;
}

/* Praise & Pray 3-Column Layout */
.praise-pray-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .praise-pray-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
  }
}
.prayer-feed-column, .testimony-feed-column {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* ── Form Controls ── */
.branch-form input,
.branch-form select,
.branch-form textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all 0.2s;
  outline: none;
}
.branch-form input.pl-12,
.branch-form input.pl-14,
input.pl-12,
input.pl-14 {
  padding-left: 3.5rem !important;
}
.branch-form input.pl-10,
input.pl-10 {
  padding-left: 2.75rem !important;
}
.branch-form input:focus,
.branch-form select:focus,
.branch-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.branch-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ── Card Animations ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-card {
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* ── Navigation Header (CSB Navy Sticky Header) ── */
.sticky-nav-branch {
  background-color: #1e3a8a !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.white-logo {
  filter: brightness(0) invert(1);
}

/* Centered pill nav container */
.pill-nav {
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.4rem 0.5rem;
}
.pill-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: all 0.2s;
}
.pill-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}
.pill-nav-link.home-church-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}
.pill-nav-link.home-church-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.nav-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.nav-back-link:hover { color: #ffffff; }

.site-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.site-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

#mobile-menu {
  background: #1e3a8a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.mobile-link {
  transition: opacity 0.2s;
}
.mobile-link:hover { opacity: 0.75; }

/* ── Hero Block ── */
.hero-vous {
  position: relative;
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border-color);
  background: #0f172a;
}
.hero-byline {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #60a5fa;
  display: block;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 60rem;
  margin-bottom: 2rem;
}
.hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl);
}
.hero-play-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.hero-play-btn:hover .hero-thumb {
  transform: scale(1.02);
}
.hero-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.hero-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  transition: transform 0.25s;
}
.hero-play-btn:hover .hero-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
}
.hero-summary {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem !important;
  line-height: 1.7 !important;
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
}
.hero-ctas .btn-underline { color: #ffffff; }

/* ── Horizontal-Scroll Carousels ── */
.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.carousel-arrows {
  display: flex;
  gap: 0.6rem;
}
.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-bright);
  background: #ffffff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.section-black .carousel-arrow {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.carousel-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 auto;
}

/* Photographic cards */
.card-photo {
  position: relative;
  width: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.card-photo-media {
  position: relative;
  aspect-ratio: 3/4;
  width: 100%;
  overflow: hidden;
}
.card-photo-media.ratio-16-9 { aspect-ratio: 16/9; }
.card-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}
.card-photo-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  color: #ffffff;
}
.card-photo-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
  display: block;
}
.card-photo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #ffffff;
}

.leader-photo-card .card-photo-media,
.pastor-portrait-frame {
  aspect-ratio: 1 / 1;
  background: #f8fafc;
}
.leader-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.leader-photo-card .card-photo-scrim {
  background: linear-gradient(180deg, rgba(0,0,0,0) 52%, rgba(0,0,0,0.88) 100%);
}

.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--primary);
}
.photo-placeholder i {
  font-size: 2.25rem;
}
.photo-placeholder.pastor-placeholder i { font-size: 4rem; }

.value-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.quote-block {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}
.quote-block-line-art {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: 60%;
  max-width: 520px;
  opacity: 0.14;
  pointer-events: none;
}
.quote-block-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 48rem;
}

.giving-block {
  background: #f8fafc;
  color: #0f172a;
}
.giving-block h1, .giving-block h2, .giving-block h3, .giving-block h4 {
  color: #0f172a !important;
}
.giving-block p, .giving-block span {
  color: #475569;
}
.giving-block .btn-underline { color: var(--primary); }

/* ── Main Site Style Footer ── */
.site-footer {
  background: #080d1a !important;
  color: rgba(255, 255, 255, 0.75) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.site-footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #60a5fa !important;
  margin-bottom: 1rem;
}
.site-footer a.footer-link {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8 !important;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.site-footer a.footer-link:hover { color: #ffffff !important; }
.site-footer .text-white\/50,
.site-footer .text-white\/40 {
  color: #94a3b8 !important;
}
.site-footer a.hover\:text-white:hover {
  color: #ffffff !important;
}

/* Search Input Padding Fix - Ensures 60px left padding so magnifying glass icon never overlaps typed text */
#searchInput,
input#searchInput,
.branch-form input#searchInput {
  padding-left: 3.75rem !important;
  padding-right: 1.5rem !important;
}

.schedule-tabs-container {
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 9999px;
  padding: 4px;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}
.glass-panel .schedule-tabs-container,
.section-black .glass-panel .schedule-tabs-container {
  border: 1.5px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
}
.schedule-tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569 !important;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.glass-panel .schedule-tab-btn,
.section-black .glass-panel .schedule-tab-btn {
  color: #475569 !important;
}
.schedule-tab-btn:hover,
.glass-panel .schedule-tab-btn:hover {
  color: #0f172a !important;
}
.schedule-tab-btn.active,
.glass-panel .schedule-tab-btn.active,
.section-black .glass-panel .schedule-tab-btn.active,
.section-black .schedule-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.schedule-list-item {
  border-bottom: 1px dashed var(--border-color);
  padding: 1rem 0;
}
.schedule-list-item:last-child {
  border-bottom: none;
}

/* ── Media Cards ── */
.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-primary);
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-xl);
}
.media-card h4 {
  color: #0f172a !important;
}
.media-card .text-gray-400 {
  color: #64748b !important;
}
.media-thumbnail-container {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.media-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.media-card:hover .media-thumbnail {
  transform: scale(1.04);
}
.media-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s, background-color 0.2s;
}
.media-card:hover .media-play-overlay {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
}
.media-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.media-card:hover .media-play-btn {
  transform: scale(1.1);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}
.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.video-modal-content {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background: #000;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-modal.active .video-modal-content {
  transform: scale(1);
}
.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1010;
}
.video-modal-close:hover {
  transform: rotate(90deg);
}

.gotyme-card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  overflow: hidden;
}
.gotyme-card .text-gray-400 { color: #475569 !important; }
.gotyme-card .text-gray-500 { color: #64748b !important; }
.gotyme-card .text-white { color: #0f172a !important; }
.gotyme-card .border-ink-10 { border-color: #e2e8f0 !important; }
.gotyme-logo-img {
  max-height: 28px;
  width: auto;
}
.gotyme-qr-container {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  border: 1px solid #e2e8f0;
}

.visit-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 950;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .visit-fab {
    bottom: 1rem;
    right: 1rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.72rem;
  }
}

.text-ink { color: var(--text-primary) !important; }
.border-ink-10 { border-color: #e2e8f0 !important; }
.vote-idle-hover:hover { background-color: rgba(37, 99, 235, 0.08) !important; }
.bg-cream-box { background-color: #f8fafc !important; }
.border-l-blue-600 { border-left-color: var(--primary) !important; }

.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e3a8a;
  color: #ffffff;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
  max-width: 380px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Media Card & Sermon Repository Contrast Fixes ── */
.media-card {
  background: #ffffff !important;
  color: #0f172a !important;
}
.media-card h3,
.media-card h3 a,
.media-card h4,
.media-card h4 a {
  color: #0f172a !important;
}
.media-card h3 a:hover,
.media-card h4 a:hover {
  color: #2563eb !important;
}
.media-card .text-gray-400,
.media-card .text-gray-500 {
  color: #475569 !important;
}
.media-card .text-white {
  color: #0f172a !important;
}
.media-card .media-thumbnail-container .text-white {
  color: #ffffff !important;
}

/* ── Glass Panel Sermon Detail Page Body Contrast Fixes ── */
.glass-panel article,
.glass-panel .prose,
article.glass-panel {
  color: #1e293b !important;
}

/* Override prose-invert inside glass-panel (which has white background) */
.glass-panel.prose-invert,
.glass-panel .prose-invert {
  --tw-prose-body: #1e293b;
  --tw-prose-headings: #0f172a;
  --tw-prose-lead: #334155;
  --tw-prose-links: #2563eb;
  --tw-prose-bold: #0f172a;
  --tw-prose-counters: #475569;
  --tw-prose-bullets: #2563eb;
  --tw-prose-hr: #e2e8f0;
  --tw-prose-quotes: #0f172a;
  --tw-prose-quote-borders: #2563eb;
  --tw-prose-captions: #475569;
  --tw-prose-code: #0f172a;
  --tw-prose-pre-code: #e2e8f0;
  --tw-prose-pre-bg: #0f172a;
  --tw-prose-th-borders: #cbd5e1;
  --tw-prose-td-borders: #e2e8f0;
  color: #1e293b !important;
}

.glass-panel #sermon-article p,
.glass-panel article p,
article.glass-panel p {
  color: #1e293b !important;
}

.glass-panel #sermon-article h1,
.glass-panel #sermon-article h2,
.glass-panel #sermon-article h3,
.glass-panel #sermon-article h4,
.glass-panel article h1,
.glass-panel article h2,
.glass-panel article h3,
.glass-panel article h4 {
  color: #0f172a !important;
}

.glass-panel #sermon-article h3.text-blue-400,
.glass-panel article h3.text-blue-400,
.glass-panel .text-blue-400 {
  color: #1d4ed8 !important;
}

.glass-panel #sermon-article strong,
.glass-panel #sermon-article b,
.glass-panel article strong,
.glass-panel article b {
  color: #0f172a !important;
  font-weight: 700;
}

.glass-panel #sermon-article em,
.glass-panel article em {
  color: #334155 !important;
}

.glass-panel #sermon-article ul,
.glass-panel #sermon-article ol,
.glass-panel article ul,
.glass-panel article ol {
  color: #1e293b !important;
}

.glass-panel #sermon-article li,
.glass-panel article li {
  color: #1e293b !important;
}

.glass-panel .italic.text-gray-200,
.glass-panel .text-gray-200,
.glass-panel .text-gray-300,
.glass-panel .text-gray-350,
.glass-panel .text-gray-400 {
  color: #334155 !important;
}

/* Callout & Sidebar boxes inside glass-panel */
.glass-panel .bg-white\/5 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

.glass-panel .bg-blue-950\/40 {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
}

.glass-panel .bg-blue-950\/40 .text-white {
  color: #1e3a8a !important;
}

.glass-panel .border-white\/10 {
  border-color: #e2e8f0 !important;
}

.glass-panel h2.text-white,
.glass-panel h3.text-white,
.glass-panel .text-white {
  color: #0f172a !important;
}

/* Preserve dark panel styles when glass-panel has explicit dark background classes */
.glass-panel.bg-gradient-to-br,
.glass-panel[class*="bg-gradient"],
.glass-panel[class*="from-"],
.glass-panel[class*="bg-[#"],
.glass-panel[class*="bg-slate-"],
.glass-panel[class*="bg-blue-950"] {
  color: #ffffff !important;
}
.glass-panel.bg-gradient-to-br *,
.glass-panel[class*="bg-gradient"] *,
.glass-panel[class*="from-"] *,
.glass-panel[class*="bg-[#"] *,
.glass-panel[class*="bg-slate-"] *,
.glass-panel[class*="bg-blue-950"] * {
  color: inherit;
}
.glass-panel.bg-gradient-to-br .text-white,
.glass-panel[class*="bg-gradient"] .text-white,
.glass-panel[class*="from-"] .text-white,
.glass-panel[class*="bg-[#"] .text-white {
  color: #ffffff !important;
}
.glass-panel.bg-gradient-to-br .text-gray-400,
.glass-panel[class*="bg-gradient"] .text-gray-400,
.glass-panel[class*="from-"] .text-gray-400,
.glass-panel[class*="bg-[#"] .text-gray-400 {
  color: #94a3b8 !important;
}

