/* ============================================
   MODERN SPIRITUAL THEME 2027
   Primitive Baptist Sermons
   ============================================ */

/* === CSS VARIABLES === */
:root {
  /* Vintage Spiritual Colors - Matching Reference */
  --bg-dark: #1A0F0A;
  --bg-dark-secondary: #2A1F1A;
  --parchment-light: #E8DCC8;
  --parchment-dark: #D4C4A8;
  --parchment-darker: #C9B896;
  --burgundy-dark: #4A2C1F;
  --burgundy-darker: #3A1F14;
  --gold-text: #D4A574;
  --gold-bright: #E6C068;
  --gold-accent: #C89F5E;
  --text-dark: #3A2415;
  --text-light: #F5EFE7;
  --candle-glow: rgba(230, 192, 104, 0.6);
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-accent: Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}


/* (Light Theme is now default above) */

/* === ANTIQUE LOADER (Celestial Compass) === */
.antique-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 2, 0.85); /* Deep dark background */
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.antique-loader-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.compass-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

/* Outer Ring - The Universe */
.compass-spinner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px dashed var(--gold-accent);
  border-radius: 50%;
  animation: spin-slow 10s linear infinite;
  box-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
}

/* Inner Ring - The Mechanism */
.compass-spinner::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 3px solid transparent;
  border-top-color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin-fast 1.5s linear infinite;
}

/* Center Spark - The Spirit */
.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright), 0 0 20px var(--gold-bright);
  animation: pulse-glow 2s ease-in-out infinite;
}

.loading-text {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  color: var(--gold-text);
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fade-text 2s ease-in-out infinite;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-fast {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

@keyframes fade-text {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; text-shadow: 0 0 10px var(--gold-accent); }
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px; /* Increased from 16px for better readability (45+ focus) */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: #1A0F0A;
  background-image: url('../../../images/bg.png');
  background-size: 100% 100vh; /* Stretch to fit width and height */
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Dark overlay for better text readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(26, 15, 10, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* 3D Canvas Background */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.content-wrapper {
  position: relative;
  z-index: 1;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--gold-text); /* Default heading color */
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold-bright); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--parchment-light); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-accent); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); color: var(--parchment-dark); }
h5 { font-size: 1.1rem; color: var(--gold-text); }
h6 { font-size: 1rem; color: var(--parchment-darker); text-transform: uppercase; letter-spacing: 1px; }

p { 
  margin-bottom: var(--space-sm); 
  color: var(--parchment-light); 
  font-size: 1rem;
}

/* === UTILITY CLASSES === */
.mb-1-rem { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-2-rem { margin-bottom: 2rem !important; }
.mb-3-rem { margin-bottom: 3rem !important; }
.mb-4-rem { margin-bottom: 4rem !important; }
.mt-auto { margin-top: auto !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 0.75rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.pt-1-rem { padding-top: 1rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-0-5 { padding: 0.5rem !important; }
.p-1-5 { padding: 1.5rem !important; }
.p-2-5 { padding: 2.5rem !important; }
.p-5-rem { padding: 5rem !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }
.no-shadow { text-shadow: none !important; }
.no-border { border: none !important; }
.shadow-none { box-shadow: none !important; }
.bg-none { background: none !important; }
.border-none { border: none !important; }
.overflow-hidden { overflow: hidden !important; }
.italic-muted { font-size: 0.95rem; color: #555; text-shadow: none; font-style: italic; margin-bottom: 0; }
.spacer-sm { height: 1rem; }

.text-gold { color: var(--gold-bright) !important; }
.text-gold-accent { color: var(--gold-accent) !important; }
.text-gold-bright { color: var(--gold-bright) !important; }
.text-parchment { color: var(--parchment-light) !important; }
.text-parchment-dark { color: var(--parchment-dark) !important; }
.text-parchment-light { color: var(--parchment-light) !important; }
.text-dark { color: #1A0F0A !important; }
.text-white { color: #ffffff !important; }
.text-shadow { text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.font-body { font-family: var(--font-body) !important; }
.font-heading { font-family: var(--font-heading) !important; }

.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-10 { z-index: 10 !important; }
.position-relative { position: relative !important; }

.display-none { display: none !important; }
.display-block { display: block !important; }
.display-flex { display: flex !important; }
.display-inline { display: inline !important; }
.display-inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 !important; }
.gap-1 { gap: 1rem !important; }
.gap-1-5 { gap: 1.5rem !important; }
.gap-3 { gap: 3rem !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.w-40 { width: 40px !important; }
.h-40 { height: 40px !important; }
.max-w-380 { max-width: 380px !important; }
.max-w-500 { max-width: 500px !important; }
.max-w-600 { max-width: 600px !important; }
.max-w-900 { max-width: 900px !important; }
.m-auto { margin: 0 auto !important; }

.border-left-5 { border-left: 5px solid var(--burgundy-dark) !important; }
.border-bottom-gold-faint { border-bottom: 1px solid rgba(212, 165, 116, 0.2) !important; }
.border-radius-8 { border-radius: 8px !important; }

.opacity-0-5 { opacity: 0.5 !important; }
.opacity-0-6 { opacity: 0.6 !important; }
.opacity-0-7 { opacity: 0.7 !important; }
.opacity-0-8 { opacity: 0.8 !important; }

.color-crimson { color: #8B0000 !important; }
.underline { text-decoration: underline !important; }

.fs-0-7 { font-size: 0.7rem !important; }
.fs-0-75 { font-size: 0.75rem !important; }
.fs-0-8 { font-size: 0.8rem !important; }
.fs-0-85 { font-size: 0.85rem !important; }
.fs-0-9 { font-size: 0.9rem !important; }
.fs-0-95 { font-size: 0.95rem !important; }
.fs-1-05 { font-size: 1.05rem !important; }
.fs-1-1 { font-size: 1.1rem !important; }
.fs-1-2 { font-size: 1.2rem !important; }
.fs-1-4 { font-size: 1.4rem !important; }
.fs-1-5 { font-size: 1.5rem !important; }
.fs-1-8 { font-size: 1.8rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-2-5 { font-size: 2.5rem !important; }

.btn-size-35 { width: 35px !important; height: 35px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.min-w-90 { min-width: 90px !important; }



a {
  color: var(--primary-burgundy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-gold);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1250px; /* Reduced from 1400px for better 2027 readability */
  margin: 0 auto;
  padding: 0 var(--space-lg); /* Slightly more padding for breathing room */
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm); /* Tighter padding for mobile apps */
  }
}

.container-wide {
  max-width: 1250px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section-compact {
  padding: var(--space-lg) 0;
}

/* === HERO MINI (compact inner-page banner) === */
/* Used on 15+ pages — was missing, causing bloated hero heights */
.hero-mini {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
  min-height: auto !important;
}

.hero-mini .hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.hero-mini .hero-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin-bottom: 0.5rem;
}

/* === GRID LAYOUT UTILITIES === */
/* grid-2 was missing — used on contact, churches, donation pages */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* === MISSING WIDTH / PADDING UTILITIES === */
/* max-w-1100 was missing — used on contact page */
.max-w-1100 {
  max-width: 1100px !important;
}

.max-w-1200 {
  max-width: 1200px !important;
}

/* pt-1 was missing — used as section top-padding override */
.pt-1 {
  padding-top: 1rem !important;
}

.pt-2 {
  padding-top: 1.5rem !important;
}

.pt-3 {
  padding-top: 2rem !important;
}

/* === NAVIGATION === */
.modern-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #3A1F14 0%, #2A1408 100%);
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-lg);
  max-width: 1250px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-bright);
  text-decoration: none;
}

.nav-logo-icon {
  font-size: 1.8rem;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--parchment-light);
  padding: 8px 12px;
  position: relative;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-bright);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(230, 192, 104, 0.4);
}

.nav-link.active {
  color: var(--gold-bright);
}

.nav-more {
  font-size: 1.2rem;
  color: var(--parchment-light);
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 2px;
}

.nav-more:hover {
  color: var(--gold-bright);
}

/* === STANDARD BUTTONS === */
.btn-gold {
  background: linear-gradient(135deg, #c49a45, #8a6e30);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 200px; /* Ensure buttons are same width if content is similar */
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d4a574, #b8860b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 154, 69, 0.4);
  color: #fff;
}

.nav-donate-btn {
  background: linear-gradient(135deg, #c49a45, #8a6e30);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: 38px;
  animation: nav-pulse 2.5s infinite;
}

@keyframes nav-pulse {
  0% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(230, 192, 104, 0.4); }
  70% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(230, 192, 104, 0); }
  100% { box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(230, 192, 104, 0); }
}

.nav-donate-btn:hover {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 15px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(255, 215, 0, 0.3);
  color: #fff;
}

/* .nav-toggle styles moved to end of file for better responsiveness handling */
/* Maintained simple base styles here if needed, but primarily handled in RESPONSIVE section */

/* === HERO SECTION === */
.hero {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-md); /* Reduced from 2xl to remove gap */
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, var(--candle-glow) 0%, transparent 30%),
    radial-gradient(circle at 85% 60%, rgba(230, 192, 104, 0.4) 0%, transparent 25%);
  pointer-events: none;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* 2027 Split Layout Utility */
.hero-split-layout {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Ensure each direct child (card container) stretches to full height */
.hero-split-layout > div {
    flex: 1;
    min-width: 320px;
    display: flex;
}

@media (max-width: 992px) {
    .hero-split-layout > div {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold-bright);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(230, 192, 104, 0.3);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--parchment-light);
  margin-bottom: var(--space-xl);
  font-family: var(--font-body);
  font-style: italic;
  opacity: 0.9;
}

/* === 2027 HERO COMPONENTS (Founder & Featured) === */

/* Consolidated Premium Card Style for BOTH Hero Cards */
.premium-hero-card {
    background: url('../../../images/modal-bg.png') center/cover no-repeat;
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: var(--radius-md);
    padding: 2.5rem var(--space-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 100px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1; /* Stretch within the flex container */
    overflow: hidden;
    color: var(--parchment-light);
    justify-content: flex-start;
}

/* Subtle noise texture */
.premium-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.04"/></svg>');
    pointer-events: none;
    z-index: 0;
}

/* Specific content alignment for Founder Card */
.founder-card {
    justify-content: center;
}

.founder-flex-container {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.founder-photo-wrapper {
    flex-shrink: 0;
}

.founder-img {
    width: 110px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(212, 165, 116, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.founder-card .vintage-heading {
    font-family: var(--font-heading);
    color: var(--gold-bright) !important;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.founder-card p {
    color: #0b0b0a !important;
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: none;
    margin-bottom: 0;
}

/* Featured Sermon Specific Overrides */
.featured-sermon-card .featured-badge {
    color: #f4f4f4;
    opacity: 0.8;
}

.featured-sermon-card .featured-title {
    color: var(--gold-bright) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 1.6rem !important;
    margin-bottom: 0.5rem;
}

.featured-sermon-card .sermon-meta {
    color: var(--parchment-light) !important;
}

.featured-action {
    margin-top: 1.5rem;
}

/* === FEATURED AUDIO CLIP CARD — Playlist Style === */
.featured-audio-card {
    justify-content: flex-start;
}

.fac-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    position: relative;
    z-index: 1;
}

.fac-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.fac-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gold-bright);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Playlist container — scrollable, specifically limited to ~2 clips */
.fac-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
    max-height: 130px; /* ~2 rows tall max */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
    padding-right: 4px;
}

.fac-playlist::-webkit-scrollbar {
    width: 6px;
}
.fac-playlist::-webkit-scrollbar-track {
    background: transparent;
}
.fac-playlist::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

/* Each uniform row — full row is clickable */
.fac-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.fac-row:hover {
    background: rgba(0, 0, 0, 0.08); /* Dark hover */
}

.fac-row:hover .fac-play-btn {
    opacity: 1;
    transform: scale(1.1);
}

.fac-row:hover .fac-num {
    opacity: 0;
}

/* Track number — hides on hover, play icon takes over */
.fac-num {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #333333; /* Dark font for readability */
    font-weight: bold;
    flex-shrink: 0;
    transition: opacity 0.2s;
    font-family: var(--font-accent);
}

/* Thumbnail */
.fac-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Title + meta */
.fac-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.fac-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #111111; /* Black font for readability */
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fac-meta {
    font-size: 0.78rem;
    color: #444444; /* Dark font for readability */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Play button — always visible */
.fac-play-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
    border: none;
    color: #1A0F0A;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Always visible now */
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    pointer-events: none; /* row handles the click */
}


/* Icon-Btn Pill — Themed Gold CTA Button */
.icon-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4A2C1F, #3A1F14);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 165, 116, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.icon-btn-pill:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
    color: #1A0F0A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.featured-sermon-premium .sermon-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.minister-photo-compact {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 0 15px rgba(230, 192, 104, 0.2);
    flex-shrink: 0;
}

.featured-badge {
    color: var(--gold-faint);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.featured-sermon-premium .sermon-meta {
    color: var(--parchment-light);
    opacity: 0.9;
}

.featured-badge {
    color: var(--gold-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.85;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .founder-flex-container {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .founder-flex-container {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-img {
        width: 100px;
        height: 125px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
}

/* === PARCHMENT CARD === */
.glass-card {
  background: linear-gradient(135deg, var(--parchment-light) 0%, var(--parchment-dark) 100%);
  border: 3px solid var(--burgundy-dark);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 60px rgba(201, 159, 94, 0.1);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.03"/></svg>');
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(74, 44, 31, 0.3);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 60px rgba(201, 159, 94, 0.15);
}

/* === FEATURED SERMON CARD === */
.featured-sermon {
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
  background: url('../../../images/modal-bg.png');
  background-size: cover;
  background-position: center;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(139, 69, 19, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  border-radius: var(--radius-md);
}

/* Ornamental corner flourishes */
.featured-sermon::after {
  content: '';
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle at 100% 100%, transparent 60%, rgba(139, 69, 19, 0.1) 61%, transparent 70%);
  pointer-events: none;
}

.sermon-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(74, 44, 31, 0.2);
}

.minister-photo {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--gold-accent);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(230, 192, 104, 0.3);
  flex-shrink: 0;
}

.sermon-info h3 {
  font-size: 2rem;
  color: #5A3C2F; /* Darker brown for title on parchment */
  margin-bottom: var(--space-xs);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  font-family: var(--font-heading);
}

.sermon-meta {
  color: #8B5A2B;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* === MODERN AUDIO PLAYER === */
.modern-player {
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-darker));
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: var(--parchment-light);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.play-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(230, 192, 104, 0.4);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(230, 192, 104, 0.6);
}

.waveform {
  flex: 1;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-accent));
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(230, 192, 104, 0.5);
}

.time-display {
  font-size: 0.85rem;
  opacity: 0.9;
  min-width: 80px;
  text-align: right;
  font-weight: 500;
  font-family: var(--font-accent);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-darker));
  color: var(--parchment-light);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5A3C2F, var(--burgundy-dark));
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  color: var(--text-dark);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 
    0 4px 15px rgba(230, 192, 104, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #F0CC78, var(--gold-bright));
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(230, 192, 104, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === SERMON GRID === */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md); /* Reduced from xl */
}

.sermon-card {
  background: url('../../../images/sermon-card-bg.jpg') no-repeat center center;
  background-size: 100% 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem; /* Tighter padding */
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 260px; /* Reduced min-height */
  height: auto; /* Allow auto height to fit content tightly */
}

.sermon-card::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(74, 44, 31, 0.2);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 10px 28px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(230, 192, 104, 0.2);
  border-color: var(--gold-accent);
}

.sermon-card-photo {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--gold-accent);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(230, 192, 104, 0.2);
  display: block;
}

.sermon-card-title {
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: var(--space-sm);
  font-weight: 400;
  text-align: center;
  line-height: 1.4;
  font-family: var(--font-heading);
}

.sermon-card-meta {
  font-size: 0.85rem;
  color: var(--parchment-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
  text-align: center;
  opacity: 0.85;
}

.sermon-card-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: auto;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-darker));
  border: 1px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--parchment-light);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.icon-btn:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  color: var(--text-dark);
  transform: scale(1.12);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(230, 192, 104, 0.4);
}

/* === SERMON LIST LAYOUT === */
.sermon-list-container {
  width: 100%;
  margin-top: var(--space-md);
}

.sermon-list-header {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  padding: var(--space-sm) var(--space-md);
  color: var(--gold-accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  border-bottom: 2px solid rgba(230, 192, 104, 0.3);
  margin-bottom: var(--space-sm);
  align-items: center;
}

.sermon-list-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  padding: 1.2rem var(--space-md);
  margin-bottom: 8px;
  background: rgba(15, 8, 4, 0.4);
  border: 1px solid rgba(230, 192, 104, 0.1);
  border-bottom: 2px solid rgba(230, 192, 104, 0.2);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sermon-list-row:hover {
  background: rgba(230, 192, 104, 0.12);
  transform: translateX(8px);
  border-color: rgba(230, 192, 104, 0.4);
  box-shadow: 
    -5px 0 0 var(--gold-accent), 
    0 15px 35px rgba(0,0,0,0.5),
    inset 0 0 15px rgba(230, 192, 104, 0.1);
  z-index: 2;
}

.row-index {
  color: var(--gold-faint);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.5;
}

.sermon-list-row:hover .row-index {
  color: var(--gold-bright);
  opacity: 1;
}

.sermon-list-thumb-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sermon-list-thumb {
  width: 65px;
  height: 65px;
  flex: 0 0 65px; /* Strict fixed size */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-right: 1.5rem;
  transition: all 0.3s ease;
  background: rgba(15, 8, 4, 0.4);
}

.sermon-list-title {
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  display: block;
}

.sermon-list-meta {
  color: var(--parchment-light);
  font-size: 0.85rem;
  opacity: 0.7;
}

.sermon-list-text {
  color: var(--gold-faint);
  font-size: 1rem;
}

/* Play Pill Button Refined (Icon Only Support) */
.btn-play-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, rgba(15, 8, 4, 0.95), rgba(35, 20, 10, 0.95));
  border: 1px solid rgba(230, 192, 104, 0.5);
  border-radius: 40px;
  padding: 5px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-medium);
  min-width: 48px;
  height: 48px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-play-pill:hover {
  border-color: var(--gold-accent);
  box-shadow: 0 0 20px rgba(230, 192, 104, 0.3);
  transform: translateY(-1px);
}

.play-icon-circle {
  width: 36px;
  height: 36px;
  background: var(--gold-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-right: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pill-caret {
  font-size: 0.75rem;
  margin-left: 10px;
  opacity: 0.7;
}

/* Custom Pagination */
.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  font-family: var(--font-heading);
}

.pagination-pill {
  background: rgba(15, 8, 4, 0.6);
  border: 1px solid rgba(230, 192, 104, 0.3);
  border-radius: 30px;
  padding: 8px 25px;
  color: var(--gold-faint);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-pill:hover:not(.disabled) {
  border-color: var(--gold-accent);
  color: var(--gold-bright);
  background: rgba(15, 8, 4, 0.8);
}

.pagination-pill.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-number {
  font-size: 1.5rem;
  color: var(--gold-bright);
  position: relative;
  padding: 0 10px;
}

.pagination-number::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-accent), transparent);
  box-shadow: 0 0 10px var(--gold-accent);
}

.pagination-caret {
  font-size: 0.7rem;
  opacity: 0.6;
}

/* === LIBRARY REBORN: MUSIC APP STYLE === */
.library-controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.pill-search-wrapper {
  width: 100%;
  max-width: 650px;
  position: relative;
}

.pill-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 8, 4, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 192, 104, 0.2);
  border-radius: 50px;
  padding: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pill-search-form:focus-within {
  border-color: var(--gold-accent);
  box-shadow: 0 8px 32px rgba(230, 192, 104, 0.1);
  background: rgba(15, 8, 4, 0.6);
}

.pill-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 15px 12px 50px;
  color: var(--parchment-light);
  font-size: 1.1rem;
  outline: none;
}

.pill-search-icon {
  position: absolute;
  left: 20px;
  color: var(--gold-faint);
  font-size: 1.2rem;
  opacity: 0.7;
}

.pill-search-submit {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  border: none;
  padding: 10px 25px;
  border-radius: 40px;
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pill-search-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px var(--candle-glow);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--gold-faint);
  font-size: 1.5rem;
  margin: 0 10px;
  cursor: pointer;
  opacity: 0.6;
}

/* Sort Controls */
.library-sort-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  padding: 10px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .library-sort-controls {
    justify-content: flex-start;
  }
}

.library-sort-controls::-webkit-scrollbar {
  display: none;
}

.sort-pill {
  background: rgba(15, 8, 4, 0.6);
  border: 1px solid rgba(230, 192, 104, 0.3);
  padding: 8px 18px;
  border-radius: 20px;
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.sort-pill:hover {
  background: rgba(15, 8, 4, 0.8);
  border-color: var(--gold-accent);
  box-shadow: 0 0 10px rgba(230, 192, 104, 0.1);
}

.sort-pill.active {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 0 15px var(--candle-glow);
}

/* --- CREATIVE ALPHABET BAR --- */
.alphabet-bar {
  display: flex;
  justify-content: flex-start; /* Start aligned for scrolling */
  gap: 0.3rem;
  margin: 1.5rem auto;
  padding: 0.8rem 1.5rem;
  background: rgba(15, 8, 4, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 192, 104, 0.2);
  border-radius: 50px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 95%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  -webkit-overflow-scrolling: touch;
}

/* Center on desktop if content fits */
@media (min-width: 1024px) {
  .alphabet-bar {
    justify-content: flex-start; /* Important: Keep start-aligned to avoid clipping 'A' */
    max-width: 1100px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.alphabet-bar::-webkit-scrollbar { display: none; }

.alphabet-btn {
  background: none;
  border: none;
  color: var(--gold-faint);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.7;
  flex-shrink: 0; /* Important: Don't let buttons shrink */
}

.alphabet-btn:hover {
  color: var(--gold-bright);
  opacity: 1;
  background: rgba(230, 192, 104, 0.1);
  transform: translateY(-2px);
}

.alphabet-btn.active {
  color: var(--bg-dark);
  background: var(--gold-bright);
  opacity: 1;
  font-weight: 700;
  box-shadow: 0 0 15px var(--candle-glow);
}

.sort-select {
  background: rgba(15, 8, 4, 0.6);
  border: 1px solid rgba(230, 192, 104, 0.3);
  padding: 10px 35px 10px 15px;
  border-radius: 20px;
  color: var(--gold-bright);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E6C068' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 180px;
}

.sort-select:hover {
  background: rgba(15, 8, 4, 0.8);
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.2);
}

.sort-select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(230, 192, 104, 0.3);
}

.sort-select option {
  background: #1A0F0A;
  color: var(--gold-bright);
  padding: 10px;
}

.sort-pill {
  background: rgba(230, 192, 104, 0.05);
  border: 1px solid rgba(230, 192, 104, 0.2);
  padding: 8px 20px;
  border-radius: 20px;
  color: var(--parchment-light);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.sort-pill:hover {
  background: rgba(230, 192, 104, 0.1);
  border-color: var(--gold-accent);
}

.sort-pill.active {
  background: var(--gold-bright);
  color: var(--bg-dark);
  border-color: var(--gold-bright);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.3);
}

/* Responsive adjustments for Sermon List */
@media (max-width: 992px) {
  .sermon-list-header {
    display: none;
  }
  .sermon-list-row {
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 1.2rem 10px;
    text-align: left;
  }
  .sermon-list-text {
    display: none; /* Hide extra columns earlier to prevent stacking */
  }
  .sermon-list-title {
    white-space: normal; /* Allow titles to wrap */
    overflow: visible;
    text-overflow: clip;
    font-size: 1.1rem;
  }
  .sermon-list-thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-xl) 0;
  }
  
  .featured-sermon {
    padding: var(--space-md);
  }
  
  .minister-photo {
    width: 100px;
    height: 100px;
  }
}

/* === MODAL STYLES === */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-image: url('../../../images/modal-bg.png');
  background-size: cover;
  background-position: center;
  margin: 10% auto;
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 2px solid var(--gold-accent);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
  background-color: #2A1408; /* Dark brown as requested */
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--gold-accent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0;
}

.close-modal {
  color: var(--parchment-light);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: var(--gold-bright);
}

.modal-body {
  padding: var(--space-lg);
  color: #3A2415; /* Dark brown text for contrast on parchment */
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

/* === FOOTER === */
.modern-footer {
  background: linear-gradient(180deg, #2A1408 0%, #1A0F0A 100%);
  border-top: 2px solid rgba(230, 192, 104, 0.3);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2xl);
}

.footer-candle {
  margin: 0 auto var(--space-lg);
  display: block;
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(230, 192, 104, 0.4));
}


/* === CAROUSEL LAYOUT === */
.sermon-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-xs); /* Padding for shadow visibility */
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Modify sermon card for carousel */
/* Modify sermon card for carousel */
.carousel-container .sermon-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  margin: 0; 
  /* Compact Height Changes */
  padding: 1rem 0.8rem;
  min-height: 0; /* Remove fixed min-height */
  height: auto;
}

.carousel-container .sermon-card-photo {
  width: 70px; /* Reduced from 90px */
  height: 70px;
  margin-bottom: var(--space-sm);
}

.carousel-container .sermon-card-title {
  font-size: 1rem;
  margin-bottom: 0.25rem; /* Tighter spacing */
}

.carousel-container .sermon-card-meta {
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.carousel-container .sermon-card-actions {
  margin-top: var(--space-xs);
}

.carousel-container .icon-btn {
  width: 32px; /* Smaller buttons */
  height: 32px;
  font-size: 0.9rem;
}

.carousel-btn {
  background: rgba(44, 24, 16, 0.8);
  border: 1px solid var(--gold-accent);
  color: var(--gold-bright);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--gold-bright);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.4);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.see-all-container {
  text-align: center;
  margin-top: var(--space-lg);
  display: none; /* Hidden by default */
}

.see-all-btn {
  background: transparent;
  border: 1px solid var(--gold-accent);
  color: var(--gold-bright);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.see-all-btn:hover {
  background: rgba(230, 192, 104, 0.1);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.2);
  transform: translateY(-2px);
}

.footer-title {
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-text {
  color: var(--parchment-dark);
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold-bright);
}

/* === VINTAGE CONTENT SECTION === */
.vintage-content-section {
  background: url('../../../images/modal-bg.png');
  background-size: cover;
  background-position: center;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.vintage-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  font-style: italic;
  font-weight: 400;
}

.heading-blue, .heading-red {
  color: #2A1408; /* Dark Brown for consistency and contrast */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.vintage-text {
  font-family: var(--font-body);
  font-size: 1.3rem; /* Increased for readability */
  line-height: 1.8;
  color: #1A0F0A; /* Very Dark Brown/Black */
  font-weight: 600; /* Medium-Bold weight */
  margin-bottom: var(--space-md);
}

/* === ENHANCED ALPHABET NAV (Accessibility) === */
.alphabet-nav-container {
  margin: var(--space-xl) 0;
  text-align: center;
}

.alphabet-search-wrapper {
  margin-bottom: var(--space-md);
  position: relative;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.vintage-search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: 2px solid var(--gold-accent);
  background: rgba(26, 15, 10, 0.8);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
  padding-right: 50px; /* Space for icon */
}

.vintage-search-input:focus {
  background: rgba(26, 15, 10, 0.95);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.3);
  border-color: var(--gold-bright);
}

.vintage-search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

.vintage-search-icon:hover {
  color: var(--gold-bright);
  transform: translateY(-50%) scale(1.1);
}

.search-clear-btn {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-accent);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.2rem;
  display: none; /* Hidden by default */
  z-index: 2;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  color: var(--gold-bright);
}

.alphabet-nav {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: auto; /* Enable horizontal scroll */
  justify-content: flex-start; /* Alignment */
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  gap: 8px;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--gold-accent) rgba(0,0,0,0.3);
}

/* Custom scrollbar for Webkit */
.alphabet-nav::-webkit-scrollbar {
  height: 8px;
}

.alphabet-nav::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.alphabet-nav::-webkit-scrollbar-thumb {
  background-color: var(--gold-accent);
  border-radius: 4px;
}

.alphabet-letter {
  width: 44px; /* Minimum touch target size */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--parchment-light);
  background: var(--burgundy-dark); /* Solid background for visibility */
  border: 1px solid var(--gold-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.alphabet-letter:hover,
.alphabet-letter.active {
  background: var(--gold-bright);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* === LARGER SERMON CARD BUTTONS === */
.icon-btn {
  width: 48px; /* Larger touch target */
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-darker));
  border: 1px solid rgba(230, 192, 104, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--gold-bright); /* Gold icon for contrast */
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.icon-btn:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(230, 192, 104, 0.3);
}

/* Compact Action Container */
.action-icons-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 480px) {
    .action-icons-group {
        gap: 5px;
    }
    .btn-fav-star, .btn-share-gold, .btn-play-pill {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    .play-icon-circle {
        width: 30px !important;
        height: 30px !important;
    }
}

/* === RESPONSIVE MOBILE APP-LIKE STYLES === */
@media (max-width: 768px) {
  /* Stack grid into list view for "App" feel */
  .sermon-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sermon-card {
    flex-direction: row; /* Horizontal layout */
    text-align: left;
    align-items: center;
    padding: 12px; /* Tighter padding */
    min-height: auto;
    justify-content: flex-start;
    gap: 12px;
  }

  .sermon-card-photo {
    width: 55px; /* Slightly smaller */
    height: 55px;
    margin: 0;
    border-width: 2px;
    flex-shrink: 0;
  }

  .sermon-card-title {
    font-size: 1rem; /* More compact title */
    text-align: left;
    margin-bottom: 0.1rem;
    line-height: 1.3;
  }

  .sermon-card-meta {
    text-align: left;
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.3;
  }

  /* Container for text to take available width */
  .sermon-details-wrapper {
    flex: 1;
    min-width: 0; /* Enable text truncation if needed */
    padding-right: 8px;
  }

  .sermon-card-actions {
    margin-top: 0;
    margin-left: auto;
    flex-direction: column; /* Stack buttons vertically to save width */
    gap: 6px;
    flex-shrink: 0;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Scrollable Alphabet Nav (Chip style) */
  .alphabet-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    gap: 8px;
  }

  .alphabet-letter {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  /* Compact Hero for Mobile */
  .hero {
    padding: var(--space-lg) 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .vintage-content-section {
    padding: var(--space-md);
  }

  .library-controls-wrapper {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .pill-search-form {
    padding: 3px;
  }

  .pill-search-input {
    padding-left: 40px;
    font-size: 0.95rem;
  }

  .pill-search-icon {
    left: 15px;
    font-size: 1rem;
  }

  .pill-search-submit {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  .sort-pill {
    padding: 6px 15px;
    font-size: 0.85rem;
  }

  .bulletin-banner {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .bulletin-content {
    min-width: 0;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .resource-card {
    padding: 1rem;
  }
  
  /* Mobile Bottom Nav Spacer */
  body {
    padding-bottom: 70px;
  }
}

/* === FOOTER DEDICATION === */
.footer-dedication {
  margin-bottom: 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.dedication-photo {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border: 2px solid var(--gold-accent);
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.dedication-title {
  color: var(--gold-bright);
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dedication-text {
  color: var(--parchment-light);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  opacity: 0.95;
}

.dedication-subtext {
  color: var(--gold-faint);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-dedication {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .dedication-photo {
    width: 120px;
    height: 150px;
  }

  .dedication-title {
    font-size: 1.2rem;
  }

  .dedication-text {
    font-size: 0.9rem;
  }
}

/* === MOBILE BOTTOM BAR === */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1A0F0A;
    border-top: 1px solid var(--gold-accent);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
  }
  
  .bottom-nav-item {
    color: var(--parchment-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .bottom-nav-icon {
    font-size: 1.4rem;
  }
  
  .bottom-nav-item.active {
    color: var(--gold-bright);
  }
}

/* === MINISTRY RESOURCES SECTION === */
.ministry-resources {
  margin-bottom: var(--space-lg); /* Reduced from 2xl */
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.resource-card {
  background: url('../../../images/resource-card-bg.gif') no-repeat center center;
  background-size: 100% 100%;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
  padding: 1.5rem; /* Frame padding */
}

.resource-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.05); /* Subtle brighten */
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.resource-icon-wrapper {
  width: 100%;
  height: 100px;
  background: transparent; /* Transparent to show card bg */
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid rgba(42, 20, 8, 0.1); /* Subtle divider */
}

.resource-icon {
  font-size: 3.5rem;
  /* Authentic Dark Ink */
  color: transparent;
  text-shadow: 0 0 0 #2A1408; 
  filter: sepia(1) contrast(1.2);
  transition: transform 0.3s;
}

.resource-card:hover .resource-icon {
  transform: scale(1.1);
  text-shadow: 0 0 0 #8B0000; /* Red ink on hover */
}

.resource-card-content {
  padding: var(--space-md) 0 0 0; /* Adjust padding */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-family: var(--font-heading);
  color: #2A1408; /* Dark ink title */
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
  margin-top: 0;
  font-weight: 700;
  text-shadow: none;
}

.resource-desc {
  color: #3E2723; /* Dark brown text */
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
  line-height: 1.5;
  font-weight: 500;
}

.resource-cta {
  color: #8B0000; /* Burgundy CTA */
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.resource-card:hover .resource-cta {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* Newsletter/Bulletin Banner */
.bulletin-banner {
  background: linear-gradient(90deg, #2A1408, #3E2723);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bulletin-content {
  flex: 1;
  min-width: 250px;
}

.bulletin-title {
  color: var(--gold-bright);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.bulletin-text {
  color: var(--parchment-light);
  font-size: 0.95rem;
  opacity: 0.9;
}


/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  background-image: url('../../../images/vintage-btn.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: #2A1408; /* Dark brown text for contrast against gold */
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
  filter: brightness(1.1);
}

/* .btn-primary removed empty ruleset */

.btn-secondary {
  filter: grayscale(0.5) sepia(0.5); /* Slightly desaturated for secondary */
  color: #1A0F0A;
}

.btn-secondary:hover {
  filter: grayscale(0) sepia(0);
}

/* Bulletin Button Override */
.bulletin-btn {
  background-image: url('../../../images/vintage-btn.png');
  background-size: 100% 100%;
  background-color: transparent; /* Remove old solid color */
  color: #2A1408;
  padding: 12px 24px;
  border-radius: var(--radius-sm); /* Image has corners, so radius might clip or fit */
  border: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.bulletin-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(230, 192, 104, 0.4);
}

/* === TEXT DECORATION === */
.cross-t {
  position: relative;
  font-family: inherit;
  display: inline-block;
}

.cross-t::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  width: 3px;
  height: 55px; /* Extended height for large header */
  background: var(--gold-bright);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(230, 192, 104, 0.6);
  border-radius: 2px;
  pointer-events: none;
}

/* === MOBILE RESPONSIVE REFINE (AUDIO LIST) === */
/* === RESPONSIVE UTILITIES === */

/* DESKTOP MENU OPTIMIZIATION (1250px - 1450px) */
@media (min-width: 1251px) and (max-width: 1450px) {
  .nav-container {
    padding: 10px 15px;
    max-width: 100%;
  }
  
  .nav-menu {
    gap: 0.8rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
  
  .nav-donate-btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    height: 36px;
  }
}


/* TABLET & MOBILE NAVIGATION (Up to Compact Laptops/Tablets) */
@media (max-width: 1250px) {
  .nav-menu {
    display: none; /* Hide desktop menu on tablets */
  }

  .nav-toggle {
    display: block; /* Show hamburger */
  }
  
  .nav-container {
    padding: 12px 20px;
  }
}

/* MOBILE LAYOUT ADJUSTMENTS */
@media (max-width: 768px) {
  /* Global Overflow Fix */
  body, html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 15px; /* Consistent side padding */
  }

  .nav-container {
    padding: 12px 15px;
  }
  /* Nav menu/toggle rules removed from here as they are covered by 1150px query */

  .sermon-list-header {
    display: none; /* Hide headers on mobile */
  }

  .sermon-list-row {
    grid-template-columns: 35px 1fr auto; /* Tighter index */
    padding: 1rem 8px;
    gap: 8px;
    margin-bottom: 10px;
    background: rgba(15, 8, 4, 0.6);
    border: 1px solid rgba(230, 192, 104, 0.2);
    border-bottom: 3px solid rgba(230, 192, 104, 0.4);
    border-radius: 10px;
    width: 100%;
  }

  /* .sermon-list-text is already hidden by the 992px query */

  .row-index {
    font-size: 0.8rem;
    opacity: 0.6;
  }

  .sermon-list-thumb-wrapper {
    gap: 10px;
  }

  .sermon-list-thumb {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
  }

  .sermon-list-title {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
    color: var(--gold-bright);
    white-space: normal; /* Essential for long article titles */
    word-break: break-word;
  }

  .sermon-list-meta {
    font-size: 0.75rem;
    display: block;
    opacity: 0.8;
  }

  .btn-play-pill {
    min-width: 100px; /* Reduced for tighter screens */
    padding: 4px;
    padding-right: 12px;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }

  .play-icon-circle {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    margin-right: 8px;
  }

  .pill-search-wrapper {
    margin-bottom: 2rem;
    padding: 0;
    width: 100%;
  }

  .pill-search-input {
    padding: 12px 15px 12px 45px;
    font-size: 1rem;
    height: 50px;
    border-radius: 40px;
  }

  .pill-search-icon {
    left: 18px;
    font-size: 1.1rem;
  }

  .modern-pagination {
    gap: 0.5rem; /* Tighter gap */
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    width: 100%;
    justify-content: center;
  }

  .pagination-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .pagination-number {
    font-size: 1rem;
    padding: 0 5px;
  }

  /* Alphabet Nav Horizontal Scroll */
  .alphabet-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 0 15px;
    margin: 0 -15px; /* Pull to edges */
    padding-left: 15px;
    padding-right: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .alphabet-nav::-webkit-scrollbar {
    display: none;
  }
}
/* === ANTIQUE READING CARD === */
.antique-reading-card {
  padding: 4rem;
  background: rgba(15, 8, 4, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(230, 192, 104, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.article-header {
  text-align: center;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(230, 192, 104, 0.15);
  padding-bottom: 3rem;
}

.premium-article-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.article-metadata {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--gold-faint);
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  font-size: 1.2rem;
}

.article-body-wrapper {
  color: var(--parchment-light);
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: justify;
}

.article-feature-image-container {
  float: left;
  margin: 0 3rem 2rem 0;
  max-width: 350px;
}

.article-feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--gold-accent);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.article-rich-content {
  margin-bottom: 4rem;
}

.article-footer {
  border-top: 1px solid rgba(230, 192, 104, 0.15);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.back-link-pill {
  background: rgba(230, 192, 104, 0.05);
  border: 1px solid rgba(230, 192, 104, 0.3);
  padding: 12px 30px;
  border-radius: 40px;
  color: var(--gold-bright);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-link-pill:hover {
  background: var(--gold-bright);
  color: var(--bg-dark);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(230, 192, 104, 0.2);
}

.article-end-mark {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.gold-line {
  height: 1px;
  flex: 1;
  max-width: 150px;
  background: linear-gradient(to right, transparent, var(--gold-accent), transparent);
}

.end-symbol {
  font-size: 1.5rem;
  color: var(--gold-accent);
  opacity: 0.8;
}

/* === PREMIUM MOBILE MENU === */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 8, 4, 0.95);
  backdrop-filter: blur(25px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 30px 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.mobile-nav-menu li {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

/* Staggered link animation */
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav-menu li:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--parchment-light);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(230, 192, 104, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--gold-bright);
  padding-left: 10px;
}

.mobile-menu-footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--parchment-light);
  opacity: 0.5;
  font-size: 0.9rem;
}

.mobile-menu-footer p {
  margin-top: 10px;
}

/* Updated Nav Toggle States */
.nav-toggle.active .hamburger-icon {
  display: none;
}

.nav-toggle.active .close-icon {
  display: block !important;
  font-size: 1.8rem;
}

/* Prevent scroll when menu is active */
body.menu-open {
  overflow: hidden;
}

/* Nav Toggle becomes the primary Close button when active */
.nav-toggle {
  z-index: 2001;
  position: relative;
  border: none;
  background: transparent;
  width: 44px; /* Minimum touch target */
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--gold-bright); /* Add color for visibility */
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-toggle .hamburger-icon,
.nav-toggle .close-icon {
  color: var(--gold-bright);
  font-size: 1.5rem;
  line-height: 1;
}

/* On smaller screens (where toggle is visible), ensure it stays fixed if needed or properly absolute */
@media (max-width: 1250px) {
  .nav-toggle {
    display: flex;
  }
}

.nav-toggle.active {
  position: fixed; /* Fix it to the screen so it doesn't scroll away */
  top: 15px;
  right: 20px;
  background: rgba(15, 8, 4, 0.8);
  border-radius: 50%;
  border: 1px solid var(--gold-accent);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.4);
}

.nav-toggle.active .close-icon {
  font-size: 2rem;
  color: var(--gold-bright);
  line-height: 1;
}

.nav-toggle:hover {
  transform: scale(1.1);
  color: var(--gold-bright);
}

.nav-toggle:hover .hamburger-icon,
.nav-toggle:hover .close-icon {
  color: var(--gold-bright);
}


@media (max-width: 768px) {
  .antique-reading-card {
    padding: 2rem;
  }
  /* ... existing media queries ... */
}
/* === PREMIUM PAGINATION === */
.modern-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination-pill, .pagination-number {
  padding: 10px 20px;
  background: rgba(15, 8, 4, 0.4);
  border: 1px solid rgba(230, 192, 104, 0.2);
  border-radius: 30px;
  color: var(--parchment-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.pagination-pill:hover, .pagination-number:hover {
  background: rgba(230, 192, 104, 0.1);
  border-color: rgba(230, 192, 104, 0.6);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.pagination-number.active {
  background: var(--gold-accent);
  color: var(--deep-charcoal);
  border-color: var(--gold-accent);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(230, 192, 104, 0.3);
}

.pagination-pill.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .modern-pagination {
    gap: 8px;
  }
  
  .pagination-pill, .pagination-number {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Spiritual Antique Global Player
   ========================================================================== */
.spiritual-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, #e6c068 0%, #b08d44 50%, #8a6d32 100%);
  border-top: 2px solid #f2e1b8;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 9999;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  color: #1a0f08;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spiritual-player-bar .player-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Track Info */
.player-track-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 30%;
  min-width: 280px;
}

.player-thumb {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #4a2c1f;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.player-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #1a0f08;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.player-artist {
  font-size: 0.9rem;
  color: #3d2311;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Controls Center */
.player-controls-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.player-main-btns {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.player-nav-btn {
  background: none;
  border: none;
  color: #4a2c1f;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.player-nav-btn:hover {
  opacity: 1;
  color: #000;
  transform: scale(1.15);
}

.player-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A2C1F, #1a0f08);
  border: 1px solid #7d4d38;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6c068;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4), inset 0 2px 3px rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #5c3b2d, #1a0f08);
}

/* Progress Area */
.player-progress-area {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  max-width: 650px;
}

.player-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.player-progress-bar {
  height: 100%;
  background: #4a2c1f;
  border-radius: 12px;
  width: 0%;
  position: relative;
}

.candle-seeker {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff 15%, #ffdf9e 35%, rgba(230, 192, 104, 0));
  border-radius: 50%;
  box-shadow: 0 0 20px #e6c068, 0 0 40px #ff9d00;
  pointer-events: none;
}

.player-time {
  font-family: monospace;
  font-size: 0.85rem;
  color: #3d2311;
  font-weight: 600;
  min-width: 45px;
}

/* Actions Right */
.player-actions-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 30%;
  justify-content: flex-end;
}

.speed-control {
  position: relative;
}

.speed-btn {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8rem !important;
  color: #1a0f08 !important;
}

.speed-menu {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--parchment-light);
  border: 2px solid var(--burgundy-dark);
  border-radius: 8px;
  padding: 5px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 10000;
  min-width: 60px;
}

.speed-option {
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  color: #1a0f08;
  font-weight: 600;
  transition: background 0.2s;
}

.speed-option:hover {
  background: var(--parchment-dark);
}

.speed-option.active {
  background: var(--burgundy-dark);
  color: var(--parchment-light);
}

.player-action-btn {
  background: rgba(74, 44, 31, 0.1);
  border: 1px solid rgba(74, 44, 31, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a2c1f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.player-action-btn:hover {
  background: #4a2c1f;
  color: #e6c068;
  transform: translateY(-2px);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.player-volume-slider {
  width: 90px;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  outline: none;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #4a2c1f;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Mobile Adjustments & Mini Player */
@media (max-width: 768px) {
  .spiritual-player-bar {
    height: auto;
    padding: 0.8rem;
    padding-bottom: 20px; /* Tighter on mobile */
    background: linear-gradient(to bottom, #f2e1b8 0%, #e6c068 100%); /* Lighter for mobile visibility */
  }
  
  .spiritual-player-bar .player-container {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .player-track-info {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 1rem;
  }

  .player-thumb {
    width: 50px;
    height: 50px;
  }
  
  .player-text {
    display: block !important;
    text-align: left;
  }
  
  .player-title {
    font-size: 1rem;
    max-width: 180px;
  }

  .player-artist {
    font-size: 0.8rem;
    max-width: 180px;
  }

  .player-controls-center {
    width: 100%;
    order: -1; /* Move controls up on mobile */
  }

  .player-main-btns {
    gap: 2.5rem;
  }
  
  .player-actions-right {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(74, 44, 31, 0.1);
  }
  
  .player-progress-area {
    max-width: 100%;
  }

  /* Compact Mode (When active on mobile scroll) */
  .spiritual-player-bar.mini-mode {
    height: 70px;
    padding-bottom: 0.5rem;
  }

  .spiritual-player-bar.mini-mode .player-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .spiritual-player-bar.mini-mode .player-controls-center {
    width: auto;
    order: 0;
  }

  .spiritual-player-bar.mini-mode .player-progress-area,
  .spiritual-player-bar.mini-mode .player-actions-right,
  .spiritual-player-bar.mini-mode .player-artist {
    display: none;
  }

  .spiritual-player-bar.mini-mode .player-thumb {
    width: 40px;
    height: 40px;
  }

  /* Manual Expansion State (Force full view) */
  .spiritual-player-bar.mobile-expanded {
    height: auto !important;
    padding-bottom: 20px !important;
  }

  .spiritual-player-bar.mobile-expanded .player-container {
    flex-direction: column !important;
    display: flex !important;
  }

  .spiritual-player-bar.mobile-expanded .player-controls-center {
    display: flex !important;
    order: -1 !important;
    width: 100% !important;
  }

  .spiritual-player-bar.mobile-expanded .player-progress-area,
  .spiritual-player-bar.mobile-expanded .player-actions-right,
  .spiritual-player-bar.mobile-expanded .player-artist,
  .spiritual-player-bar.mobile-expanded .player-main-btns {
    display: flex !important;
  }

  .spiritual-player-bar.mobile-expanded #playerMobileToggle i {
    transform: rotate(180deg);
  }
}

.player-mobile-expand-btn {
  display: none;
  background: rgba(74, 44, 31, 0.15);
  border: 1px solid rgba(74, 44, 31, 0.3);
  color: #4a2c1f;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .player-mobile-expand-btn {
    display: flex;
  }
}


/* === CURIOSITY DISCOVERY REFINEMENT (Reference Matching) === */

.history-curiosity-card {
  position: relative;
  background: url('../../../images/modal-bg.png'); /* Parchment texture */
  background-size: cover;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.2);
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

/* Sparkling Effect */
.sparkle-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.sparkle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle-float 4s infinite linear;
}

@keyframes sparkle-float {
  0% { transform: translateY(100%) scale(0); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-20%) scale(1.5); opacity: 0; }
}

.sparkle:nth-child(1) { width: 4px; height: 4px; right: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { width: 3px; height: 3px; right: 40%; animation-delay: 1s; }
.sparkle:nth-child(3) { width: 5px; height: 5px; right: 10%; animation-delay: 2s; }
.sparkle:nth-child(4) { width: 2px; height: 2px; right: 60%; animation-delay: 3s; }

/* Discovery Button Style */
.btn-discovery-reveal {
  background: #3A1F14; /* Dark Burgundy/Brown from image */
  color: #D4AF37; /* Gold */
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin-top: 1.5rem;
}

.btn-discovery-reveal:hover {
  background: #4A2C1F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  color: #E6C068;
}

.btn-discovery-reveal .chevron {
  font-size: 0.8rem;
  transition: transform 0.5s ease;
}

.btn-discovery-reveal.active .chevron {
  transform: rotate(180deg);
}

.history-reveal-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
  opacity: 0;
  margin-top: 0;
}

.history-reveal-container.active {
  max-height: 1200px;
  opacity: 1;
  padding-top: 2rem;
}

/* Magic Misty Reveal Animation */
.history-reveal-container.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  animation: magic-mist-wash 2s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}

@keyframes magic-mist-wash {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}

.history-curiosity-card:hover .sparkle {
  animation-duration: 2s; /* Faster sparkles on hover */
}

/* === GLOBAL SHARE UI === */

.share-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.share-option-btn {
  background: white;
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.share-option-btn:hover {
  background: #fdf5e6;
  border-color: #b8860b;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(184, 134, 11, 0.15);
}

.share-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.share-option-btn span:last-child {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4A2C1F;
  font-family: var(--font-body);
}

/* Premium Gold Share Button */
.btn-share-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
}

.btn-share-gold::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-share-gold:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #f1c40f 0%, #d4af37 100%);
}

.btn-share-gold:hover::before {
  opacity: 1;
  animation: shine-gold 1.5s infinite;
}

@keyframes shine-gold {
  0% { transform: translate(-30%, -30%) rotate(0deg); }
  100% { transform: translate(30%, 30%) rotate(360deg); }
}

@media (max-width: 480px) {
  .share-options-grid {
    grid-template-columns: 1fr;
  }
}

/* === GLOBAL SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 15, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.search-container {
  width: 90%;
  max-width: 800px;
  text-align: center;
}

.search-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--gold-bright);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.search-close-btn:hover {
  transform: rotate(90deg);
  color: #fff;
}

.search-form-large {
  position: relative;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-large {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gold-accent);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  padding: 1rem 1rem 1rem 3.5rem;
  transition: all 0.3s ease;
}

.search-input-large:focus {
  outline: none;
  border-bottom-color: var(--gold-bright);
  box-shadow: 0 15px 25px -10px rgba(230, 192, 104, 0.1);
}

.search-icon-large {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--gold-accent);
}

.search-submit-btn {
  margin-top: 2rem;
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  color: #1a0f0a;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(230, 192, 104, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* === PREMIUM PAGE PLAYER === */
.page-player-wrapper {
  background: rgba(42, 20, 8, 0.6);
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.pp-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.pp-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
  border: none;
  color: #2A1408;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pp-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(230, 192, 104, 0.3);
}

.pp-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pp-time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gold-text);
  font-family: var(--font-accent);
}

.pp-rail {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.4);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-bright));
  border-radius: 3px;
  position: relative;
  transition: width 0.1s linear;
}

/* Candle glow effect at the tip of the fill */
.pp-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright), 0 0 20px var(--gold-bright);
  opacity: 0.8;
}

.pp-extra-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(184, 134, 11, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.pp-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-text);
}

.pp-volume-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  accent-color: var(--gold-accent);
}

/* === GALAXY FOLD / ULTRA SMALL SCREENS (< 360px) === */
@media (max-width: 360px) {
  /* Tighter Header */
  .nav-container {
    padding: 10px 10px;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-logo-icon {
    font-size: 1.5rem;
    height: 35px !important;
  }

  /* Compact Mobile Menu */
  .mobile-menu-overlay {
    padding: 80px 20px 30px; /* Reduced padding */
  }

  .mobile-nav-link {
    font-size: 1.4rem; /* Smaller font */
    margin-bottom: 5px; /* Tighter spacing */
  }
  
  .mobile-nav-menu li {
    margin-bottom: 1rem;
  }

  .nav-donate-btn {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  /* Player Bar Adjustments */
  .spiritual-player-bar {
    padding: 0.5rem;
  }

  .player-play-btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .player-main-btns {
    gap: 1.5rem;
  }
}

/* === MODERN ENHANCEMENTS 2027 === */

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay classes if needed */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Accessibility: Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--gold-bright);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  z-index: 10000;
  transition: top 0.3s ease;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.skip-link:focus {
  top: 0;
}

/* Visibility Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Better Focus States */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

/* Skeleton Screens for Grid Loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Library Overlay Styles */
.library-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}
.library-list::-webkit-scrollbar {
    width: 6px;
}
.library-list::-webkit-scrollbar-thumb {
    background: var(--gold-faint);
    border-radius: 10px;
}
.library-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.library-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold-faint);
    transform: translateX(5px);
}
.library-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-accent);
}
.library-item-info .title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}
.library-item-info .artist {
    color: var(--gold-accent);
    font-size: 0.8rem;
}

/* Favorite Star Button */
.btn-fav-star {
    background: none;
    border: 1px solid rgba(230,192,104,0.3);
    color: rgba(230,192,104,0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.btn-fav-star:hover, .btn-fav-star.active {
    border-color: var(--gold-bright) !important;
    color: var(--gold-bright) !important;
    transform: scale(1.1);
}

.btn-fav-star.active i::before {
    content: "\F586" !important; /* bootstrap-icons star-fill */
}

/* Page Specific Active Star Color */
.pp-action-star.active {
    color: var(--gold-bright) !important;
    border-color: var(--gold-bright) !important;
}
.pp-action-star.active i::before {
    content: "\F586" !important;
}

/* ==========================================================================
   Article Details & Reading Experience
   ========================================================================== */

.modern-reading-card {
    padding: 4rem;
    background: #fdf6e3; /* Classic Solarized/E-reader light parchment */
    background-image: 
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="paper"><feTurbulence baseFrequency="0.04" numOctaves="3" type="fractalNoise"/></filter><rect width="100" height="100" filter="url(%23paper)" opacity="0.03"/></svg>');
    border: 1px solid #d3c6aa;
    border-radius: 4px; /* Sharper, paper-like corners */
    box-shadow: 
        0 30px 70px rgba(0,0,0,0.5),
        0 0 0 10px rgba(230, 192, 104, 0.05); /* Subtle outer glow */
    margin-bottom: 3rem;
    color: #2c1a10; /* Darker text for white/light background */
    position: relative;
    overflow: hidden;
}

.modern-reading-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.05) 0%, transparent 5%, transparent 95%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(230, 192, 104, 0.1);
    padding-bottom: 2rem;
}

.premium-article-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: #1a0f08;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-metadata {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #5c3b21; /* Earthy brown for meta info */
    font-size: 1rem;
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1.1rem;
}

.article-feature-image-container {
    max-width: 400px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.article-feature-image {
    width: 100%;
    border-radius: 12px;
    border: 3px solid var(--gold-accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.article-body-wrapper {
    display: block; /* Vertical flow is better for articles */
    margin-top: 2rem;
}

.article-feature-image-container {
    float: left;
    margin: 0 2.5rem 1.5rem 0;
    max-width: 350px;
}

@media (max-width: 768px) {
    .article-feature-image-container {
        float: none;
        margin: 0 auto 2rem;
        max-width: 100%;
    }
}

.article-rich-content {
    flex: 1;
    color: #2c1a10 !important; /* Dark, high-contrast text */
    line-height: 1.9;
    font-size: 1.25rem;
    font-family: 'Lora', var(--font-body);
}

/* Reader Font Size Variants */
.article-rich-content.font-size-small { font-size: 1.1rem; line-height: 1.7; }
.article-rich-content.font-size-medium { font-size: 1.25rem; line-height: 1.9; }
.article-rich-content.font-size-large { font-size: 1.45rem; line-height: 2; }

/* Reader Font Family Variants */
.article-rich-content.font-family-serif { font-family: 'Lora', var(--font-body); }
.article-rich-content.font-family-sans { font-family: 'Outfit', sans-serif; }

/* Force dark color on all children to override any legacy inline white/light colors */
.article-rich-content p,
.article-rich-content span,
.article-rich-content div,
.article-rich-content strong,
.article-rich-content b,
.article-rich-content i,
.article-rich-content em,
.article-rich-content li,
.article-rich-content h1,
.article-rich-content h2,
.article-rich-content h3,
.article-rich-content h4,
.article-rich-content h5,
.article-rich-content h6 {
    color: #2c1a10 !important;
}

/* Legacy Table Overrides for Light Background */
.article-rich-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2.5rem 0 !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1.5px solid #2c1a10 !important;
}

.article-rich-content td, 
.article-rich-content th {
    padding: 1.2rem !important;
    border: 1px solid rgba(44, 26, 16, 0.2) !important;
    color: #2c1a10 !important; /* Force dark text in tables */
}

/* Ensure CKEditor / Legacy blue text is still readable or overridden if too faint */
.article-rich-content span[style*="color"] {
    /* If the color is too light, we could override, but on light background dark colors work fine */
    filter: brightness(0.5); /* Make any colored text slightly darker for readability */
}

.article-rich-content a {
    color: #8b4513 !important; /* Saddle brown links for parchment */
    text-decoration: underline !important;
}

.article-rich-content a:hover {
    color: #000 !important;
}

.article-rich-content p {
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(230, 192, 104, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.back-link-pill {
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(230, 192, 104, 0.1);
    border: 1px solid var(--gold-accent);
    color: var(--gold-bright);
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.back-link-pill:hover {
    background: var(--gold-bright);
    color: var(--bg-dark);
}

.article-end-mark {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

.gold-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-accent), transparent);
}

.end-symbol {
    color: var(--gold-accent);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .antique-reading-card {
        padding: 1.5rem;
    }
    .premium-article-title {
        font-size: 2rem;
    }
    .article-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* eBook Reader Controls */
.reader-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 40px;
    padding: 0.5rem 1.5rem;
    margin: 0 auto 3rem;
    max-width: fit-content;
    border: 1px solid rgba(44, 26, 16, 0.1);
}

.reader-control-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.control-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #8b4513;
    opacity: 0.6;
    margin-right: 0.5rem;
}

.reader-btn {
    background: none;
    border: 1px solid transparent;
    color: #5c3b21;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.reader-btn[data-size="small"] { font-size: 0.75rem; }
.reader-btn[data-size="large"] { font-size: 1.2rem; }
.reader-btn[data-font="sans"] { font-family: 'Outfit', sans-serif; }

.reader-btn:hover {
    background: rgba(139, 69, 19, 0.1);
}

.reader-btn.active {
    background: #8b4513;
    color: #fdf6e3;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.2);
}

.reader-control-divider {
    width: 1px;
    height: 20px;
    background: rgba(44, 26, 16, 0.1);
    margin: 0 1.5rem;
}

@media (max-width: 500px) {
    .reader-controls {
        flex-direction: column;
        gap: 1rem;
        border-radius: 12px;
        padding: 1rem;
    }
    .reader-control-divider {
        display: none;
    }
}

/* --- COMPACT SERMON CARDS (For Minister Details) --- */
.sermon-card-item {
  background: linear-gradient(135deg, rgba(26, 20, 8, 0.4), rgba(42, 30, 15, 0.3));
  border: 1px solid rgba(230, 192, 104, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex !important;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
}

.sermon-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 192, 104, 0.3);
  border-color: rgba(230, 192, 104, 0.6);
}

.sermon-card-thumb-col {
  flex-shrink: 0;
}

.sermon-card-thumb-col img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-accent);
  box-shadow: 0 0 15px rgba(230, 192, 104, 0.4);
}

.sermon-card-content-col {
  flex: 1;
  min-width: 0;
}

.sermon-card-title-text {
  margin: 0 0 0.4rem 0;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sermon-card-meta-text {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  align-items: center;
}

.sermon-card-actions-col {
  flex-shrink: 0;
}

.sermon-card-buttons-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-play-pill-compact,
.btn-download-pill-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
}

.btn-play-pill-compact {
  background: linear-gradient(135deg, var(--gold-accent), #d4a574);
  color: #1A0F0A;
}

.btn-download-pill-compact {
  background: linear-gradient(135deg, #4A2C1F, #3A1F14);
  color: var(--gold-accent);
  border: 1px solid var(--gold-accent);
}

.btn-share-gold-mini {
  width: 38px;
  height: 38px;
  background: rgba(230, 192, 104, 0.1);
  border: 1px solid rgba(230, 192, 104, 0.3);
  border-radius: 50%;
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.play-icon-mini, .download-icon-mini {
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .sermon-card-item {
    flex-direction: column !important;
    text-align: center;
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .sermon-card-title-text {
    white-space: normal;
  }
  .sermon-card-meta-text {
    justify-content: center;
    font-size: 0.85rem;
  }
  .sermon-card-buttons-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .btn-play-pill-compact, .btn-download-pill-compact {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
  }
}

/* === 2027 REFINEMENT: UTILITY & COMPONENT EXTRAS === */
.pt-1-rem { padding-top: 1rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2-rem { margin-bottom: 2rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.px-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
.display-inline-block { display: inline-block !important; }
.w-100 { width: 100% !important; }

.btn-sm {
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
}

.resource-card-action {
    text-align: center;
    margin-top: auto;
    width: 100%;
}

/* === REFINED MODAL COMPONENTS === */
.modal-narrow { max-width: 450px !important; }
.modal-regular { max-width: 500px !important; }

.modal-body-title {
    color: #8B0000;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.modal-body-subtitle {
    font-style: italic;
    margin-bottom: 1rem;
    color: #5A3C2F;
    font-family: var(--font-body);
}

.modal-body-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #1A0F0A;
    font-family: var(--font-body);
}

.modal-message-text {
    font-family: var(--font-body);
    color: #2A1408;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    padding: 1rem 0;
}

.modal-body-info {
    font-family: var(--font-body);
    color: #5A3C2F;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2A1408;
    font-family: var(--font-body);
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(230, 192, 104, 0.3);
}

.btn-text-link {
    background: none;
    border: none;
    color: #8B0000;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: underline;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.btn-text-link:hover {
    color: #5A0000;
}

/* === CORE ARCHITECTURE: NAV & HEADER === */
.nav-logo-img {
    height: 50px;
    width: auto;
    vertical-align: middle;
}

@media (max-width: 360px) {
    .nav-logo-img {
        height: 35px;
    }
}

.nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--parchment-light);
    font-size: 1.2rem;
    padding: 8px;
    transition: color 0.3s ease;
}

.nav-icon-btn:hover {
    color: var(--gold-bright);
}

.library-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-bright);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.search-overlay-heading {
    color: var(--gold-bright);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
}

.search-overlay-hint {
    color: var(--parchment-light);
    margin-top: 1.5rem;
    opacity: 0.8;
}

.library-overlay-container {
    max-width: 900px;
}

.library-section-title {
    color: var(--gold-accent);
    border-bottom: 1px solid rgba(230,192,104,0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-nav-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold-bright);
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-badge {
    margin-left: auto;
    background: var(--gold-bright);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* === CORE ARCHITECTURE: FOOTER & NEWSLETTER === */
.footer-newsletter-container {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-newsletter-text {
    font-size: 0.9rem;
    color: #a89f91;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(230, 192, 104, 0.3);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.footer-newsletter-input:focus {
    border-color: var(--gold-bright);
}

.footer-newsletter-btn {
    background: var(--gold-accent);
    color: #1a0f0a;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-btn:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 192, 104, 0.3);
}

/* === GLOBAL SHARE MODAL REFINEMENTS === */
.modal-share-title {
    color: #4A2C1F;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    border-bottom: 1px solid rgba(74, 44, 31, 0.1);
    padding-bottom: 1rem;
}

.modal-share-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: #5c3b21;
}

/* === PLAYER REFINEMENTS === */
.player-fav-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.player-fav-btn:hover, .player-fav-btn.active {
    color: var(--gold-bright) !important;
}

.pp-action-star.active {
    color: var(--gold-bright) !important;
    border-color: var(--gold-bright) !important;
}

.speed-control-relative {
    position: relative;
}

/* === UTILITY & COLOR HELPERS === */
.border-top-faint { border-top: 1px solid rgba(74, 44, 31, 0.1) !important; }
.text-burgundy { color: var(--burgundy-dark) !important; }
.text-primary { color: #1877F2 !important; }
.text-success { color: #25D366 !important; }
.text-right { text-align: right !important; }

/* === HERO & LISTING PAGES === */
.hero-mini {
    padding: 2rem 0 !important;
}

/* === SKELETON LOADING SYSTEM === */
.skeleton-row {
    border: 1px solid rgba(230,192,104,0.1);
    margin-bottom: 12px;
    border-radius: 12px;
    height: 90px;
    display: flex;
    align-items: center;
    padding: 10px;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: rgba(230,192,104,0.05);
}

.skeleton-text-lg {
    width: 60%;
    height: 18px;
    margin-bottom: 8px;
    background: rgba(230,192,104,0.05);
}

.skeleton-text-sm {
    width: 40%;
    height: 12px;
    background: rgba(230,192,104,0.05);
}

.skeleton-block {
    flex: 1;
}

.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

@keyframes skeleton-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.pagination-dots {
    color: rgba(230,192,104,0.3) !important;
    padding: 0 5px;
}

/* === DETAIL PAGES: PLAYER & CONTENT === */
.player-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.player-detail-card {
    padding: 3rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pp-minister-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-bright);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.pp-sermon-title {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: #fff !important;
}

.pp-minister-name {
    font-size: 1.2rem;
    color: var(--parchment-light);
    font-style: italic;
    margin-bottom: 2rem;
}

/* === DETAIL PAGES: SUMMARY & SUGGESTIONS === */
.detail-summary-box {
    margin-top: 3rem;
    text-align: left;
    background: rgba(0,0,0,0.03);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--gold-accent);
}

.detail-summary-heading {
    color: #2A1408;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.detail-summary-text {
    color: #3A2415;
    line-height: 1.8;
    font-size: 1.1rem;
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.suggested-card {
    padding: 1.5rem !important;
    transition: transform 0.3s ease;
}

.suggested-card:hover {
    transform: translateY(-5px);
}

.suggested-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.suggested-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-accent);
}

.suggested-title {
    margin: 0;
    font-size: 1.1rem !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

.suggested-title a {
    color: inherit;
    text-decoration: none;
}

.suggested-title a:hover {
    color: var(--gold-bright);
}

.suggested-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

.suggested-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.suggested-date {
    font-size: 0.85rem;
    color: var(--gold-accent);
}

.suggested-actions {
    display: flex;
    gap: 10px;
}

/* === INTERACTIVE & DECORATIVE UTILS === */
.decorative-symbol {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 15rem;
    opacity: 0.03;
    pointer-events: none;
    transform: rotate(15deg);
    z-index: 0;
}

.pp-action-star {
    background: none;
    border: 2px solid var(--gold-accent);
    color: var(--gold-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-action-star:hover {
    background: var(--gold-accent);
    color: #000;
}

.pp-action-star.active {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: #000;
}

.play-icon-mini {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
}

/* === PROFILE & SIDEBAR LAYOUTS === */
.details-split-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.details-sidebar {
    flex: 0 0 300px;
    max-width: 100%;
}

.details-main-col {
    flex: 1;
    min-width: 300px;
}

.profile-big-photo {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--gold-bright);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.bio-card-content {
    line-height: 1.8;
    color: var(--parchment-light);
    font-size: 1.1rem;
    text-align: justify;
}

.discovery-controls-card {
    padding: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.discovery-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--gold-bright);
}

.btn-fav-star-hero {
    width: 45px;
    height: 45px;
    border-width: 2px !important;
}

.fs-0-8 { font-size: 0.8rem !important; }
.fs-0-9 { font-size: 0.9rem !important; }
.pt-1-5-rem { padding-top: 1.5rem !important; }

/* === READING & GALLERY UTILS === */
.reading-container {
    max-width: 950px;
    margin: 0 auto;
}

.meta-icon {
    display: inline-block;
    margin-right: 4px;
}

.contact-info-block {
    color: var(--parchment-light);
    line-height: 1.8;
}

.contact-item {
    margin-bottom: 1rem;
}

.details-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.photo-frame {
    border: 2px solid var(--gold-faint);
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === ALIGNMENT & SPACING === */
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.w-100 { width: 100% !important; }
.display-block { display: block !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ps-5 { padding-left: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.pb-5 { padding-bottom: 3rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 2rem !important; }
.p-1 { padding: 0.25rem !important; }

/* === BORDERS & COLORS === */
.border-0 { border: 0 !important; }
.border-bottom-gold-faint { border-bottom: 1px solid rgba(184, 134, 11, 0.3) !important; }
.bg-burgundy-dark { background: #2A1408 !important; }
.color-gold-bright { color: var(--gold-bright) !important; }
.no-underline { text-decoration: none !important; }
.opacity-0-5 { opacity: 0.5 !important; }
.fs-1 { font-size: 1.5rem !important; }
.fs-1-1 { font-size: 1.1rem !important; }
.left-10 { left: 10px !important; }
.right-5 { right: 5px !important; }
.max-width-250 { max-width: 250px !important; }
.color-inherit { color: inherit !important; }
.flex-1 { flex: 1 !important; }

/* === HIGH-END ANTIQUE CHURCH CARDS === */
.church-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 3rem;
}

.premium-church-card {
    background: linear-gradient(rgba(26, 15, 10, 0.7), rgba(26, 15, 10, 0.7)), url('../../../images/sermon-card-bg.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid #8e6d45;
    border-radius: 10px;
    padding: 1rem 0.8rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.5),
        inset 0 0 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 360px;
    color: #fdf5e6;
    animation: cardFloatIn 0.6s ease-out backwards;
}

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

.premium-church-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(230, 192, 104, 0.2);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.premium-church-card:hover {
    transform: translateY(-10px);
    border-color: #e6c068;
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.7), 
        0 0 30px rgba(230, 192, 104, 0.2),
        inset 0 0 100px rgba(230, 192, 104, 0.05);
}

.premium-church-card:hover .church-frame-photo {
    transform: scale(1.08);
    border-color: #e6c068;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.church-photo-wrapper {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 2;
}

.church-frame-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fdf5e6;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    outline: 1px solid rgba(230, 192, 104, 0.6);
    transition: all 0.5s ease;
}

.premium-church-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #e6c068;
    margin: 0.2rem 0 0.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
    font-weight: 700;
}

.decorative-flourish {
    color: #e6c068;
    font-size: 1.2rem;
    opacity: 0.5;
    margin: -8px 0;
    font-weight: 300;
}

.decorative-flourish::after {
    content: '❦'; /* Or simple ❦ */
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.church-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.church-detail-item {
    font-size: 0.85rem;
    color: #fdf5e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.church-detail-item i {
    color: #e6c068;
    font-size: 0.7rem;
    border: 1px solid rgba(230, 192, 104, 0.3);
    padding: 3px;
    border-radius: 3px;
}

.location-text {
    font-size: 0.9rem;
    color: #e6c068;
    opacity: 0.7;
    letter-spacing: 0.3px;
    margin-top: -0.3rem;
}

.church-card-description {
    font-size: 0.85rem;
    color: #fdf5e6;
    opacity: 0.6;
    line-height: 1.3;
    font-style: italic;
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 0.3rem;
}

.church-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-top: auto;
    width: 100%;
    padding-top: 0.5rem;
}

.btn-church-view {
    background: linear-gradient(135deg, #e6c068 0%, #a67c00 100%);
    color: #1a0f0a !important;
    padding: 7px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-church-view:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 192, 104, 0.4);
}

.church-card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    padding: 0.6rem 0 0.1rem;
    border-top: 1px solid rgba(230, 192, 104, 0.1);
    position: relative;
}

.footer-divider {
    width: 1px;
    height: 15px;
    background: rgba(230, 192, 104, 0.15);
}

.btn-church-icon-action {
    background: none;
    border: none;
    color: #e6c068;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-church-icon-action:hover {
    opacity: 1;
    transform: scale(1.2);
}

.btn-church-icon-action.active {
    color: #ffd700;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.btn-church-view:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
    transform: scale(1.05);
}

/* === PREMIUM MODAL OVERHAUL === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.display-block {
    display: flex;
}

.modal-content-premium {
    background: linear-gradient(rgba(10, 5, 2, 0.5), rgba(10, 5, 2, 0.5)), url('../../../images/modal-bg.png');
    background-size: cover;
    background-position: center;
    border: 3px solid #8e6d45;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 60px rgba(0,0,0,0.4);
    color: #fdf5e6;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.display-block .modal-content-premium {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(230, 192, 104, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: #e6c068;
}

.modal-inner-parchment {
    background: linear-gradient(145deg, #d4a96a, #c49050, #b87e38);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(100, 60, 20, 0.4);
    box-shadow: inset 0 0 25px rgba(0,0,0,0.25), 0 4px 15px rgba(0,0,0,0.4);
}

.modal-status-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

.status-success .modal-status-icon { color: #e6c068; }
.status-error .modal-status-icon { color: #ff6b6b; }

.modal-premium-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #4a2c1f; /* Dark Mahogany for contrast */
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.modal-premium-text {
    font-size: 1.05rem;
    color: #5d4037; /* Warm earthy brown */
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.modal-premium-scripture {
    font-size: 0.9rem;
    font-style: italic;
    color: #8d6e63;
    padding-top: 1rem;
    border-top: 1px solid rgba(141, 110, 99, 0.2);
    margin-top: 1rem;
}

.btn-premium-modal {
    background: linear-gradient(135deg, #e6c068 0%, #a67c00 100%);
    color: #1a0f0a !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-premium-modal:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 192, 104, 0.4);
}

@media (max-width: 600px) {
    .modal-content-premium {
        padding: 1.5rem 1rem;
    }
    .modal-inner-parchment {
        padding: 1.5rem 1rem;
    }
    .modal-premium-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 900px) {
    .premium-church-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .church-frame-photo {
        width: 180px;
        height: 130px;
        margin: 0 auto;
    }
    .church-details-list {
        align-items: center;
    }
    .premium-church-title {
        font-size: 1.5rem;
    }
    .church-card-actions {
        flex-direction: row;
        width: 100%;
    }
}

/* === SHARED CLEANUP UTILS === */
.text-center { text-align: center !important; }
.italic { font-style: italic !important; }
.error-message-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.error-text {
    font-size: 1.2rem;
    color: #ff4d4d;
}

.btn-size-35 { width: 35px !important; height: 35px !important; }
.fs-0-8 { font-size: 0.8rem !important; }
.fs-0-85 { font-size: 0.85rem !important; }
.fs-0-95 { font-size: 0.95rem !important; }
.h-50 { height: 50px !important; }
.z-1 { z-index: 1 !important; }
.position-relative { position: relative !important; }

/* === SEARCH & DISCOVERY UTILS === */
.search-highlight {
    background: rgba(230, 192, 104, 0.4);
    color: #fff;
    padding: 0 2px;
    border-radius: 2px;
}

.search-section-header {
    border-bottom: 1px solid rgba(230, 192, 104, 0.3);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    transition: transform 0.2s ease;
}

.search-result-card:hover {
    transform: translateY(-2px);
}

.search-min-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold-accent);
}

.search-meta {
    font-size: 0.85rem;
    color: var(--gold-bright);
}

.search-list-item {
    padding: 1rem 1.5rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.empty-state-box {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* === SHARED LAYOUT HELPER === */
.results-grid-min {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sp-1 { right: 50%; animation-delay: 1.5s; }
.sp-2 { right: 70%; animation-delay: 2.5s; }

.results-stack {
    display: grid;
    gap: 1rem;
}


/* === PREMIUM DONATION SYSTEM === */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.donation-tier-card {
    background: linear-gradient(145deg, rgba(42, 31, 26, 0.4), rgba(26, 15, 10, 0.6));
    border: 1px solid rgba(230, 192, 104, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.donation-tier-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(230, 192, 104, 0.1);
    background: linear-gradient(145deg, rgba(58, 43, 36, 0.5), rgba(42, 30, 15, 0.7));
}

.donation-tier-card.featured {
    border: 2px solid var(--gold-accent);
    background: linear-gradient(145deg, rgba(74, 44, 31, 0.5), rgba(42, 30, 15, 0.8));
    transform: scale(1.05);
    z-index: 2;
}

.donation-tier-card.featured::before {
    content: 'MOST IMPACTFUL';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--gold-bright);
    color: #1a0f0a;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.donation-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 2px 10px rgba(230, 192, 104, 0.3);
}

.donation-label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--parchment-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.donation-impact {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gold-text);
    margin-bottom: 2rem;
    min-height: 3rem;
}

.premium-donate-btn {
    background: linear-gradient(135deg, var(--gold-accent), #8a6e30);
    color: #1a0f0a !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.premium-donate-btn:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-accent));
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(230, 192, 104, 0.4);
}

.premium-donate-btn.pulse {
    animation: donate-pulse 2s infinite;
}

@keyframes donate-pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 192, 104, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 192, 104, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 192, 104, 0); }
}

.donation-footer-info {
    margin-top: 4rem;
    padding: 3rem;
    border-top: 1px solid rgba(230, 192, 104, 0.1);
    text-align: center;
}

.address-shield {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(230, 192, 104, 0.1);
    padding: 2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-text);
    display: inline-block;
    margin-top: 1.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .donation-amount { font-size: 2.8rem; }
    .donation-tier-card.featured { transform: scale(1); margin: 1rem 0; }
}


/* ============================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints: 1024px | 768px | 600px | 400px
   ============================================================ */

/* ===  TABLET LANDSCAPE (≤1024px) === */
@media (max-width: 1024px) {
    /* Nav */
    .nav-menu {
        gap: 0.5rem;
    }
    .nav-link {
        padding: 8px 8px;
        font-size: 0.95rem;
    }
    .nav-donate-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Hero */
    .hero {
        padding-top: 2.5rem;
        padding-bottom: 1.5rem;
    }
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    /* Hero Split */
    .hero-split-layout {
        gap: 1.5rem;
    }

    /* Section spacing */
    .section {
        padding: 2.5rem 0;
    }

    /* Glass card padding */
    .glass-card,
    .p-2-5 {
        padding: 1.5rem !important;
    }

    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===  TABLET PORTRAIT (≤768px) === */
@media (max-width: 768px) {

    /* Base font size slightly smaller for mobile */
    html { font-size: 16px; }

    /* NAV: hide desktop menu, show hamburger */
    .nav-menu {
        display: none;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(212, 165, 116, 0.3);
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.4rem;
        color: var(--gold-bright);
    }
    .nav-container {
        padding: 10px 1rem;
    }
    .nav-logo-img {
        height: 36px !important;
    }

    /* HERO */
    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }
    .hero-mini {
        padding-top: 1.2rem !important;
        padding-bottom: 1rem !important;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* HERO SPLIT — stack vertically */
    .hero-split-layout {
        flex-direction: column;
        gap: 1rem;
        min-height: unset;
    }
    .hero-split-layout > div {
        min-width: 0;
        width: 100%;
    }
    .hero-split-layout .light-theme-card,
    .featured-sermon-premium {
        padding: 1.5rem;
        min-height: 200px;
    }
    .founder-flex-container {
        flex-direction: row;
        gap: 1rem;
    }
    .founder-img {
        width: 80px;
        height: 100px;
    }
    .founder-info h3 {
        font-size: 1rem;
    }
    .featured-title {
        font-size: 1.3rem;
    }

    /* SECTION */
    .section {
        padding: 2rem 0;
    }

    /* GLASS CARD */
    .glass-card,
    .p-2-5 {
        padding: 1.2rem !important;
    }

    /* GRIDS — single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* CONTACT PAGE */
    .max-w-1100 {
        width: 100% !important;
        padding: 0;
    }

    /* FORM */
    .btn-gold {
        min-width: unset;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* MODAL */
    .modal-content-premium {
        width: 95%;
        padding: 1.2rem;
        margin: 1rem auto;
    }
    .modal-inner-parchment {
        padding: 1.2rem;
    }

    /* STATUS MODAL icon */
    .modal-status-icon {
        font-size: 2.5rem !important;
    }

    /* PREMIUM CHURCH CARDS */
    .premium-church-card {
        min-height: unset;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}


/* ===  MOBILE (≤600px) === */
@media (max-width: 600px) {

    /* Tighter container */
    .container {
        padding: 0 0.75rem;
    }

    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }

    /* Hero split completely stacked */
    .founder-flex-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .featured-title {
        font-size: 1.1rem;
    }

    /* Cards */
    .glass-card,
    .p-2-5 {
        padding: 1rem !important;
    }
    .light-theme-card,
    .hero-split-layout .light-theme-card,
    .featured-sermon-premium {
        padding: 1rem;
        border-radius: 8px;
    }

    /* Headings */
    .vintage-heading.fs-2 {
        font-size: 1.3rem !important;
    }

    /* Buttons full width */
    .btn-premium-modal,
    .btn-church-view {
        width: 100%;
        text-align: center;
    }

    /* Status modal */
    .modal-premium-title {
        font-size: 1.2rem !important;
    }
    .modal-premium-text {
        font-size: 0.9rem !important;
    }
    .modal-premium-scripture {
        font-size: 0.85rem !important;
    }

    /* Church cards */
    .churches-grid {
        grid-template-columns: 1fr !important;
    }
    .church-photo-wrapper {
        width: 55px !important;
        height: 55px !important;
    }
    .premium-church-title {
        font-size: 1rem !important;
    }

    /* Section padding tight */
    .section {
        padding: 1.5rem 0;
    }
}


/* ===  SMALL PHONES (≤400px) === */
@media (max-width: 400px) {
    html { font-size: 15px; }

    .hero-title {
        font-size: 1.3rem;
    }
    .nav-logo-img {
        height: 30px !important;
    }
    .glass-card,
    .p-2-5 {
        padding: 0.75rem !important;
    }
    .modal-content-premium {
        width: 98%;
        padding: 1rem;
    }
    .btn-gold,
    .btn-premium-modal {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* === GLOBAL MODAL & SHARE COMPONETS === */
.pb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 2, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pb-modal-overlay.display-flex {
  opacity: 1;
  visibility: visible;
}

.pb-modal-content {
  background: linear-gradient(145deg, #1A0F0A, #2A1408); 
  border: 1px solid rgba(230, 192, 104, 0.4);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 500px; /* Increased to fit icons */
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.pb-modal-overlay.display-flex .pb-modal-content {
  transform: translateY(0);
}

.pb-modal-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: center; /* Center the title */
  align-items: center;
  border-bottom: 1px solid rgba(230, 192, 104, 0.2);
  background: rgba(0, 0, 0, 0.4);
  position: relative;
}

.pb-modal-header .vintage-heading {
  color: var(--gold-bright) !important;
  font-weight: 800 !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 !important;
  text-align: center;
}

.pb-modal-close {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ffffff !important;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.pb-modal-close:hover {
  transform: translateY(-50%) scale(1.1);
  color: var(--gold-bright) !important;
  opacity: 1;
}


.pb-modal-body {
  padding: 1.8rem 1.5rem;
}

/* Share Options Horizontal Row - Mobile Scroll Optimized */
.share-options-grid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start; /* Alignment for scrolling */
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem; /* Padding for scroll hints */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth iOS Scroll */
  scrollbar-width: none; 
  -ms-overflow-style: none;
  width: 100%;
}

.share-options-grid::-webkit-scrollbar {
  display: none;
}

.share-option-btn {
  background: rgba(255, 255, 255, 0.08); /* Slightly more visible */
  border: 1px solid rgba(230, 192, 104, 0.3);
  border-radius: 50%; 
  width: 58px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.share-option-btn.btn-copy {
  border-radius: 30px; 
  width: auto;
  min-width: 110px;
  padding: 0 1.5rem;
  background: var(--gold-bright) !important;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.share-option-btn.btn-copy span {
  color: #1A0F0A !important; /* Dark text on bright gold button */
  font-weight: 800 !important;
  font-size: 0.9rem;
}

.share-option-btn:not(.btn-copy):hover {
  background: rgba(230, 192, 104, 0.2);
  transform: translateY(-5px);
  border-color: var(--gold-bright);
}

.share-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.modal-share-title {
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800 !important;
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.modal-share-quote {
  display: block;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(230, 192, 104, 0.15);
  padding-top: 1.2rem;
  text-align: center;
}

@media (max-width: 600px) {
  .pb-modal-content {
     width: 92%;
     max-width: none;
  }
  .share-options-grid {
    gap: 0.8rem;
    padding: 0.5rem 1rem 1.2rem 1rem;
  }
  .share-option-btn {
    width: 55px;
    height: 55px;
  }
  .share-option-btn.btn-copy {
    min-width: 100px;
    padding: 0 1rem;
  }
}

.text-pink { color: #E1306C !important; } /* Instagram Pink */

.text-burgundy { color: #5D1916 !important; }
.border-top-faint { border-top: 1px solid rgba(58, 36, 21, 0.1) !important; }
