/* ===========================================
   CHURCH WEBSITE - SPLASH PAGE STYLES
   =========================================== */

/* Splash Page - Full Screen Hero */
.splash-page {
  height: 100vh;
  height: 100dvh;
  /* dynamic viewport height for mobile (F-09) */
  width: 100%;
  /* was 100vw — avoids scrollbar overflow (F-16) */
  position: relative;
  overflow: hidden;
}

.splash-slideshow {
  position: absolute;
  inset: 0;
}

.splash-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.splash-slide.active {
  opacity: 1;
}

.splash-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Splash Overlay */
.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 25, 41, 0.60) 0%,
      rgba(26, 58, 82, 0.80) 50%,
      rgba(10, 25, 41, 0.94) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

/* Splash Content */
.splash-content {
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

.splash-logo {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-lg);
  animation: fadeIn 1.5s ease-out;
}

.splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--space-md);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.splash-tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Scripture Quote */
.splash-scripture {
  max-width: 600px;
  margin: var(--space-2xl) auto;
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.splash-scripture .scripture {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 0;
}

.splash-scripture .scripture-reference {
  color: #e6b887;
  margin-top: var(--space-md);
}

/* Enter Button */
.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a3a52;
  background: var(--text-light);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
  position: relative;
  will-change: transform;
}

/* Hover Bridge for Splash Button */
.splash-enter-btn::after {
  content: '';
  position: absolute;
  inset: -12px;
  background: transparent;
  z-index: -1;
}

.splash-enter-btn:hover {
  background: #d4a574;
  color: var(--text-light);
  transform: scale(1.05);
  animation: none;
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.45);
}

.splash-enter-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.splash-enter-btn:hover svg {
  transform: translateX(4px);
}

/* Splash Footer */
.splash-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.splash-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg) var(--space-2xl);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.splash-footer-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.splash-footer-item svg {
  width: 16px;
  height: 16px;
  color: #e6b887;
}

.splash-footer-item a {
  color: rgba(255, 255, 255, 0.85);
}

.splash-footer-item a:hover {
  color: #e6b887;
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
}

.slide-indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slide-indicator.active {
  background: #e6b887;
  width: 30px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
}

/* Skeleton Loader Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
}

.skeleton-heading {
  height: 20px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .splash-scripture {
    padding: var(--space-lg);
    margin: var(--space-xl) auto;
  }

  .splash-footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }

  .slide-indicators {
    bottom: 140px;
  }
}

/* ===========================================
   SERMON ARCHIVE - WORLD CLASS UPGRADE
   =========================================== */

/* Cinematic Sermon Hero */
.sermon-hero {
  position: relative;
  background: linear-gradient(135deg, #1a3a52 0%, #0f2438 100%);
  padding: 120px 0 100px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.sermon-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  animation: noiseAnimation 8s steps(10) infinite;
  z-index: 1;
  pointer-events: none !important;
}

@keyframes noiseAnimation {
  0% {
    transform: translate(0, 0)
  }

  10% {
    transform: translate(-5%, -5%)
  }

  20% {
    transform: translate(-10%, 5%)
  }

  30% {
    transform: translate(5%, -10%)
  }

  40% {
    transform: translate(-5%, 15%)
  }

  50% {
    transform: translate(-10%, 5%)
  }

  60% {
    transform: translate(15%, 0)
  }

  70% {
    transform: translate(0, 10%)
  }

  80% {
    transform: translate(-15%, 0)
  }

  90% {
    transform: translate(10%, 5%)
  }

  100% {
    transform: translate(5%, 0)
  }
}

.sermon-hero .container {
  position: relative;
  z-index: 2;
}

.sermon-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sermon-section {
  padding: 45px 0 100px;
  background: linear-gradient(160deg, #f4f7fb 0%, #eef3f8 48%, #f6f8fb 100%);
  min-height: 80vh;
  position: relative;
}

.sermon-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.sermon-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #1a3a52 0%, #2a5278 50%, #c99a60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  line-height: 1.3;
}

.sermon-header h2::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #2a5278 30%, #1a3a52 50%, #2a5278 70%, transparent 100%);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(42, 82, 120, 0.4);
}

.sermon-header p {
  color: #6d7680;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  letter-spacing: 0.01em;
  margin-top: 20px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.65;
}

/* Glassmorphism Filter UI - Premium design */
.filter-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    0 8px 32px rgba(26, 58, 82, 0.1),
    0 2px 8px rgba(26, 58, 82, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  max-width: 800px;
  margin: 0 auto 50px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(42, 82, 120, 0.05) 0%, transparent 100%);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.filter-card:hover {
  box-shadow: 0 10px 44px rgba(26, 58, 82, 0.12), 0 6px 24px rgba(42, 82, 120, 0.1);
}

.filter-card:hover::before {
  opacity: 1;
}

.filter-card.active {
  border-color: rgba(42, 82, 120, 0.45);
  box-shadow: 0 14px 54px rgba(26, 58, 82, 0.14), 0 8px 28px rgba(42, 82, 120, 0.12);
}

.filter-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #d4a574;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.filter-group select {
  width: 100%;
  padding: 14px 50px 14px 20px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid rgba(212, 175, 120, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a3a52' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  box-shadow: 0 4px 16px rgba(26, 58, 82, 0.06);
  color: #1a3a52;
  font-weight: 500;
  outline: 2px solid transparent;
  outline-offset: 2px;
  position: relative;
  will-change: transform;
}

/* Hover Bridge for Selects */
.filter-group-select-wrapper {
  position: relative;
  display: block;
}

.filter-group select::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: transparent;
  z-index: -1;
}

.filter-group select:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 3px;
}

.filter-group select:hover {
  border-color: #2a5278;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 58, 82, 0.1), 0 3px 10px rgba(42, 82, 120, 0.08);
}



/* Search Row - below the year/month filters */
.search-row {
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  padding-top: 20px;
}

.search-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: #d4a574;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: #a0adb8;
  pointer-events: none;
  flex-shrink: 0;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  border: 2px solid rgba(212, 175, 120, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a3a52;
  font-weight: 500;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(26, 58, 82, 0.06);
}

.search-input-wrapper input::placeholder {
  color: #a0adb8;
  font-weight: 400;
}

.search-input-wrapper input:focus {
  border-color: #2a5278;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(42, 82, 120, 0.12);
}



.search-flex-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 10px !important;
}
.search-flex-row .search-input-wrapper {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
}

.reset-btn {
  background: rgba(212, 165, 116, 0.08) !important;
  color: #b88d5f !important;
  border: 1.5px solid rgba(212, 165, 111, 0.2) !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  height: 48px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Hover Bridge for Reset Button */
.reset-btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: transparent;
  z-index: -1;
}

.reset-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.5s ease;
}

.reset-btn:hover {
  background: #d4a574;
  color: #fff;
  border-color: #d4a574;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.reset-btn:hover svg {
  transform: rotate(-180deg);
}

.results-header.archived-meta {
  margin-top: 35px;
  margin-bottom: 35px;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.count-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 253, 255, 0.92) 100%);
  padding: 12px 28px;
  border-radius: 100px;
  box-shadow:
    0 4px 12px rgba(26, 58, 82, 0.04),
    0 12px 32px rgba(26, 58, 82, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #1a3a52;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.count-badge::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9-9 4.03-9 9 4.03 9 9 9z'%3E%3C/path%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

/* Remove clock/timer icon specifically for worship songs */
.worship-theme .count-badge::before {
  display: none !important;
}

.count-badge strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: #d4a574;
  margin-right: 2px;
  line-height: 1;
}

.count-badge .highlight {
  color: #1a3a52;
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Results Divider removed for centered compact layout */

/* Filter transition animation */
.sermon-list {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.sermon-list.transitioning {
  opacity: 0.5;
  transform: translateY(10px);
}

/* Prompt State - Premium styling */
.sermon-prompt {
  text-align: center;
  padding: 90px 40px;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(26, 58, 82, 0.06), 0 10px 50px rgba(26, 58, 82, 0.03);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(212, 175, 120, 0.12);
}

.sermon-prompt .icon-wrap {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, rgba(42, 82, 120, 0.12) 0%, rgba(42, 82, 120, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  border: 2px solid rgba(42, 82, 120, 0.2);
}

.sermon-prompt .icon-wrap svg {
  width: 48px;
  height: 48px;
  color: #2a5278;
  stroke-width: 1.5;
}

.sermon-prompt h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  background: linear-gradient(145deg, #1a3a52, #2a5278);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.sermon-prompt p {
  color: #6d7680;
  max-width: 440px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Results */
.sermon-results {
  display: none;
}

.sermon-results.active {
  display: block;
}

.worship-section .sermon-results.active {
  margin-top: -10px;
}

.hide-important {
  display: none !important;
}

.sermon-count {
  text-align: center;
  margin-bottom: 40px;
  padding: 14px 32px;
  background: linear-gradient(145deg, rgba(42, 82, 120, 0.12) 0%, rgba(42, 82, 120, 0.06) 100%);
  color: #1a3a52;
  border-radius: 26px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  box-shadow: 0 4px 18px rgba(42, 82, 120, 0.12);
  border: 2px solid rgba(42, 82, 120, 0.3);
}

.count-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.sermon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

/* Beautiful Sermon Cards - Premium enhanced with animations */
.sermon-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, rgba(251, 253, 255, 0.98) 50%, rgba(248, 252, 255, 0.97) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(26, 52, 74, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  opacity: 0;
  animation: sermonFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  will-change: transform, box-shadow;
}

/* Hover Bridge for Sermon Items */
.sermon-item::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: transparent;
  z-index: -1;
}

/* Staggered entrance animations */
@keyframes sermonFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sermon-item:nth-child(1) {
  animation-delay: 0.05s;
}

.sermon-item:nth-child(2) {
  animation-delay: 0.1s;
}

.sermon-item:nth-child(3) {
  animation-delay: 0.15s;
}

.sermon-item:nth-child(4) {
  animation-delay: 0.2s;
}

.sermon-item:nth-child(5) {
  animation-delay: 0.25s;
}

.sermon-item:nth-child(6) {
  animation-delay: 0.3s;
}

.sermon-item:nth-child(n+7) {
  animation-delay: 0.35s;
}

/* Remove alternating gradient backgrounds */
.sermon-item:nth-child(even) {
  background: linear-gradient(160deg, rgba(253, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.98) 50%, rgba(240, 246, 253, 0.97) 100%);
}

.sermon-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #d4a574;
  transition: height 0.4s ease;
  z-index: 2;
}

.sermon-item:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(212, 165, 116, 0.4);
}

.sermon-item:hover::before {
  height: 100%;
}

.sermon-item.playing {
  border-color: #d4a574;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  z-index: 1001; /* Above backdrop */
}

.sermon-item.playing:hover {
  transform: none;
}

.sermon-item.playing::before {
  content: 'Now Playing';
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  background: #d4a574;
  padding: 3px 8px;
  border-radius: 12px 0 8px 0;
  box-shadow: 2px 2px 10px rgba(212, 165, 116, 0.2);
  z-index: 5;
  width: auto;
  height: auto;
  pointer-events: none;
}

@keyframes badge-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
  }
}

@keyframes pulse-glow {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* Loading skeleton state */
.sermon-item.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  cursor: default;
  pointer-events: none;
  min-height: 100px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.sermon-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 25px;
  position: relative;
  z-index: 5;
}

/* Adjust layout for mobile when columns get tight */
@media (max-width: 640px) {
  .sermon-row {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px 20px;
  }

  .sermon-number {
    display: none;
    /* Hide number on small mobile to save space */
  }
}

/* Focus indicators for accessibility */
.play-btn:focus-visible,
.yt-link:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 3px;
}

.sermon-number {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(42, 82, 120, 0.08) 0%, rgba(42, 82, 120, 0.03) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2a5278;
  font-family: 'Playfair Display', serif;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(42, 82, 120, 0.12);
}

.sermon-item:hover .sermon-number {
  background: linear-gradient(145deg, #2a5278 0%, #1a3a52 100%);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.play-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a5278 0%, #1a3a52 100%);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(26, 58, 82, 0.2);
  position: relative;
}

/* Play Button Interior Glow */
.play-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.sermon-item:hover .play-btn {
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(42, 82, 120, 0.3);
}

.sermon-item:hover .play-btn::after {
  opacity: 1;
}

.play-btn svg {
  width: 14px;
  height: 14px;
  color: white;
  margin-left: 2px;
  position: relative;
  z-index: 1;
  fill: currentColor;
}

.sermon-info {
  flex: 1;
  min-width: 0;
}

.sermon-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  color: #1a3a52;
  margin-bottom: 4px;
  line-height: 1.2;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sermon-item:hover .sermon-title {
  color: #2a5278;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.sermon-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #5f6b77;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

.sermon-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  text-transform: none;
}

.sermon-item:hover .sermon-meta span {
  color: #55636f;
}

.sermon-meta svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
  color: #d4a574;
  transition: opacity 0.3s ease;
}

.sermon-item:hover .sermon-meta svg {
  opacity: 1;
}

.sermon-actions {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 2px 0;
}

.yt-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 82, 120, 0.22);
  border-radius: 12px;
  color: #2a5278;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: 2px solid transparent;
  outline-offset: 2px;
  min-height: 36px;
}

.yt-link:hover {
  background: rgba(42, 82, 120, 0.1);
  border-color: rgba(42, 82, 120, 0.38);
  color: #1a3a52;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(26, 58, 82, 0.15);
}

.yt-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.95;
}

.yt-link.yt-link-disabled {
  background: rgba(42, 82, 120, 0.08);
  color: rgba(26, 58, 82, 0.62);
  border-style: dashed;
  cursor: not-allowed;
  pointer-events: none;
}

/* Video Player - contained integrated reveal */
.video-player {
  max-height: 0;
  opacity: 0;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  margin: 0 16px 16px;
  transform: translateY(-6px);
  transition: max-height 0.4s ease, opacity 0.28s ease, transform 0.28s ease;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 120, 0.22);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
}

.video-player.active {
  max-height: 780px;
  opacity: 1;
  transform: translateY(0);
}

.video-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.close-btn {
  position: absolute;
  top: 54px;
  right: 18px;
  z-index: 10;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.15),
    0 0 0 0 rgba(255, 0, 0, 0);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.close-btn:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 3px;
}

.close-btn:hover {
  background: linear-gradient(145deg, #2a5278 0%, #1a3a52 100%);
  border-color: transparent;
  transform: scale(1.08) rotate(90deg);
  box-shadow:
    0 8px 30px rgba(26, 58, 82, 0.42),
    0 4px 14px rgba(0, 0, 0, 0.25),
    0 0 0 5px rgba(42, 82, 120, 0.16);
}

.close-btn svg {
  width: 22px;
  height: 22px;
  color: #1a1a1a;
  stroke-width: 2.5;
  transition: color 0.3s ease;
}

.close-btn:hover svg {
  color: white;
  stroke-width: 3;
}

.play-btn.disabled {
  background: linear-gradient(145deg, #9aa7b4 0%, #8b98a5 100%);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.no-sermons {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(145deg, #f0f4f9 0%, #eaeff6 100%);
  border-radius: 18px;
  max-width: 550px;
  margin: 40px auto;
  border: 2px solid rgba(42, 82, 120, 0.25);
  box-shadow: 0 6px 28px rgba(42, 82, 120, 0.12);
}

.no-sermons h3 {
  background: linear-gradient(145deg, #2a5278, #3a6a94);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.4;
}

.no-sermons p {
  color: #556a7a;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Back to top */
.back-top {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1a3a52 0%, #2a5278 100%);
  border: 2px solid rgba(212, 165, 116, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(26, 58, 82, 0.35);
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.back-top:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 3px;
}

.back-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 36px rgba(26, 58, 82, 0.45);
  border-color: rgba(212, 165, 116, 0.5);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .sermon-section {
    padding: 30px 0 60px;
  }

  .sermon-header {
    margin-bottom: 30px;
    padding: 0 16px;
  }

  .sermon-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
  }

  .sermon-header p {
    font-size: clamp(0.88rem, 2.5vw, 0.95rem);
    margin-top: 14px;
  }

  .filter-card {
    padding: 18px 16px;
    margin: 0 12px 30px;
    border-radius: 14px;
  }

  .filter-row {
    gap: 10px;
  }

  .filter-group {
    min-width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }

  .filter-group select {
    padding: 12px 44px 12px 14px;
    font-size: 0.88rem;
  }

  .sermon-list {
    margin: 0 12px;
    gap: 8px;
    max-width: 100%;
  }

  .sermon-item {
    border-radius: 12px;
  }

  .sermon-row {
    grid-template-columns: auto 1fr;
    padding: 14px 14px;
    gap: 12px;
  }

  .sermon-number {
    display: none;
  }

  .play-btn {
    width: 42px;
    height: 42px;
  }

  .play-btn svg {
    width: 14px;
    height: 14px;
  }

  .sermon-title {
    font-size: clamp(0.92rem, 3.5vw, 1.05rem);
    margin-bottom: 2px;
  }

  .sermon-meta {
    gap: 8px;
    font-size: 0.9rem;
  }

  .sermon-meta span {
    gap: 5px;
  }

  .sermon-meta svg {
    width: 12px;
    height: 12px;
  }

  .sermon-actions {
    grid-column: 1 / -1;
    margin: 4px 0 4px;
    justify-content: flex-start;
    padding: 0;
  }

  .yt-link {
    padding: 8px 12px;
    font-size: 0.72rem;
    min-height: 34px;
  }

  .yt-link svg {
    width: 13px;
    height: 13px;
  }

  .video-player {
    border-radius: 12px;
    margin: 0 10px 10px;
  }

  .video-player.active {
    max-height: 500px;
  }

  .video-player iframe {
    aspect-ratio: 16/9;
  }

  .close-btn {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    border-radius: 12px;
  }

  .close-btn svg {
    width: 18px;
    height: 18px;
  }

  .no-sermons {
    padding: 50px 24px;
    margin: 30px 12px;
  }

  .sermon-prompt {
    padding: 50px 24px;
    margin: 0 12px;
  }

  .sermon-prompt .icon-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .sermon-prompt .icon-wrap svg {
    width: 36px;
    height: 36px;
  }

  .back-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }

  .back-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  .filter-group {
    min-width: 100%;
    flex-basis: 100%;
  }

  .search-flex-row { flex-wrap: nowrap !important; }

  .sermon-row {
    grid-template-columns: auto 1fr;
    padding: 12px;
    gap: 10px;
  }

  .sermon-number {
    display: none;
  }

  .sermon-actions {
    justify-content: flex-start;
    margin: 4px 0;
  }
}

/* Extra Small Screens (480px and below) */
@media (max-width: 480px) {
  .filter-card {
    padding: 16px 12px;
    margin: 0 8px 24px;
    border-radius: 12px;
  }

  .filter-row {
    gap: 8px;
  }

  .filter-group {
    min-width: 100%;
    flex-basis: 100%;
  }

  .filter-group label {
    font-size: 0.78rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
  }

  .filter-group select {
    padding: 11px 40px 11px 12px;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .sermon-row {
    grid-template-columns: auto 1fr;
    padding: 12px 10px;
    gap: 10px;
  }

  .sermon-list {
    gap: 6px;
    margin: 0 8px;
  }

  .sermon-number {
    display: none;
  }

  .play-btn {
    width: 40px;
    height: 40px;
  }

  .sermon-title {
    font-size: 0.88rem;
  }

  .sermon-meta {
    font-size: 0.9rem;
    gap: 6px;
  }

  .yt-link {
    padding: 7px 10px;
    font-size: 0.68rem;
    min-height: 32px;
    border-radius: 8px;
  }

  .video-player {
    margin: 0 6px 8px;
    border-radius: 10px;
  }

  .video-player.active {
    max-height: 280px;
  }

  .close-btn {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
    border-radius: 10px;
  }

  .close-btn svg {
    width: 16px;
    height: 16px;
  }

  .sermon-prompt {
    padding: 40px 16px;
    margin: 0 8px;
    border-radius: 14px;
  }

  .no-sermons {
    padding: 36px 16px;
    margin: 20px 8px;
    border-radius: 14px;
  }

  .count-badge {
    padding: 8px 18px;
    font-size: 0.78rem;
  }

  .count-badge strong {
    font-size: 1.05rem;
  }

  .splash-footer-content {
    font-size: 0.85rem;
    gap: 6px;
    padding: 12px;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .sermon-item,
  .play-btn,
  .video-player {
    animation: none !important;
    transition: none !important;
  }

  .sermon-item {
    opacity: 1;
    transform: none;
  }

  /* F-20: Splash page animations */
  .splash-enter-btn {
    animation: none;
  }

  .splash-slide {
    transition-duration: 0.01ms !important;
  }

  .gallery-overlay,
  .footer-block {
    transition: none;
  }
}

/* ===========================================
   TESTIMONY PAGE STYLES - SPACIOUS REDESIGN
   =========================================== */

.testimony-page {
  padding: 60px 0 100px;
}

.layout-aligned-subpage .navbar-inner {
  max-width: 1280px !important;
}

.testimony-layout {
  display: grid;
  grid-template-columns: minmax(min-content, 280px) 1fr;
  /* Widened to 340px to prevent TOC text wrapping */
  gap: 50px;
  /* Reduced gap slightly to compensate */
  max-width: 1280px;
  /* Reverted to original width per user request */
  margin: 0 auto;
  padding: 0 20px;
}

/* Sidebar / Table of Contents */
.testimony-sidebar {
  position: sticky;
  top: 90px;
  /* Adjusted to 90px per user request */
  height: fit-content;
}

.toc-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: visible;
  /* Changed for hover bridge */
}

/* TOC Card Hover Bridge */
.toc-card::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: transparent;
  z-index: -1;
}

.toc-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.16),
    0 3px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1a3a52;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid;
  border-image: linear-gradient(90deg, #2a5278 0%, #1a3a52 100%) 1;
  background: linear-gradient(90deg, #2a5278 0%, #1a3a52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-link {
  display: block;
  padding: 10px 14px;
  /* Compact padding */
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
  /* Slightly smaller to fit content */
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  line-height: 1.3;
  /* Tighter line height */
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toc-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2a5278, #1a3a52);
  z-index: -1;
  transition: left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toc-link:hover {
  background: rgba(42, 82, 120, 0.08);
  color: #1a3a52;
  transform: translateX(4px);
}

.toc-link.active {
  background: linear-gradient(135deg, #2a5278 0%, #1a3a52 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(42, 82, 120, 0.25);
  padding-left: 18px;
  /* Space for accent bar */
}

.toc-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 4px;
  background: #b88d5f;
  border-radius: 0 4px 4px 0;
}

.toc-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #e8f0f8 0%, #dce6f0 100%);
  border: 1.5px solid rgba(42, 82, 120, 0.15);
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 10px;
  color: #2a5278;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.toc-link:hover .toc-number {
  background: linear-gradient(135deg, #d4e5f0 0%, #c8dae8 100%);
  border-color: rgba(42, 82, 120, 0.25);
  transform: scale(1.1);
}

.toc-link.active .toc-number {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 2px 8px rgba(42, 82, 120, 0.2);
}

/* Main Content */
.testimony-content {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 60px;
  /* Symmetric padding for balanced desktop view */
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.testimony-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a5278 0%, #1a3a52 100%);
}

.testimony-intro {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, rgba(42, 82, 120, 0.2) 0%, rgba(42, 82, 120, 0.05) 100%) 1;
}

.testimony-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #1a3a52 0%, #2a5278 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}



/* .scroll-progress removed - now managed centrally in components.css */

.testimony-intro p {
  color: #555;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

.testimony-section {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, rgba(42, 82, 120, 0.15) 0%, transparent 100%) 1;
  scroll-margin-top: 100px;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  /* Speeded up from 0.8s */
}

.testimony-section.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.testimony-section.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.testimony-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.testimony-section:target {
  opacity: 1;
}

.testimony-header {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(42, 82, 120, 0.1);
}

.testimony-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #1a3a52 0%, #2a5278 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.testimony-header .author {
  color: #b88d5f;
  /* Gold-tone color from design */
  font-weight: 700;
  font-size: 0.82rem;
  /* Smaller, more surgical font */
  text-transform: uppercase;
  /* All caps per reference */
  letter-spacing: 1.5px;
  /* Elegant tracking */
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimony-header .author::before {
  content: '';
  width: 32px;
  /* Increased size */
  height: 32px;
  background: linear-gradient(135deg, #2a5278 0%, #1a3a52 100%);
  border-radius: 50%;
  opacity: 1;
  /* More visible */
  box-shadow: 0 4px 10px rgba(42, 82, 120, 0.2);
}

.testimony-body p {
  line-height: 1.8;
  /* Refined line height */
  color: #444;
  margin-bottom: 24px;
  text-align: justify !important;
  /* Ensure justification fills the wider container */
  text-indent: 0;
  /* No Indent */
  max-width: none !important;
  /* Override global 70ch limit from mobile.css */
  width: 100%;
  transition: color 0.3s ease;
}

.testimony-body p:hover {
  color: #2a5278;
}

.testimony-body p.no-indent {
  text-indent: 0;
}

/* Editorial Drop-cap */
.testimony-section .testimony-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin: 0.1em 0.15em 0 0;
  color: #1a3a52;
  background: linear-gradient(135deg, #1a3a52 0%, #2a5278 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scripture-quote {
  background: linear-gradient(135deg, #f0f6fb 0%, #e6f0f8 100%);
  padding: 28px 32px;
  border-radius: 16px;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, #2a5278 0%, #1a3a52 100%) 1;
  margin: 32px 0;
  font-style: italic;
  color: #333;
  line-height: 1.9;
  text-indent: 0 !important;
  box-shadow:
    0 4px 12px rgba(42, 82, 120, 0.12),
    inset 0 1px 0 rgba(42, 82, 120, 0.1);
  border-radius: 16px;
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  /* Slightly larger */
  font-weight: 500;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2a5278 0%, #1a3a52 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 10px 28px rgba(42, 82, 120, 0.35),
    0 2px 8px rgba(42, 82, 120, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-6px);
  box-shadow:
    0 14px 36px rgba(42, 82, 120, 0.45),
    0 2px 8px rgba(42, 82, 120, 0.25);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .testimony-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .testimony-sidebar {
    position: relative;
    top: 0;
    order: 2;
  }

  .testimony-content {
    order: 1;
    padding: 40px 30px;
  }

  .testimony-intro h1 {
    font-size: 2rem;
  }

  .testimony-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .testimony-page {
    padding: 40px 0 80px;
  }

  .testimony-layout {
    gap: 25px;
    padding: 0 16px;
  }

  .testimony-content {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .toc-card {
    padding: 20px;
    border-radius: 16px;
  }

  .testimony-intro {
    margin-bottom: 35px;
    padding-bottom: 30px;
  }

  .testimony-intro h1 {
    font-size: 1.6rem;
  }

  .testimony-intro p {
    font-size: 0.95rem;
  }

  .testimony-header h2 {
    font-size: 1.3rem;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
  }
}

/* ===========================================
   WORSHIP PAGE - POLISHED PROFESSIONAL
   =========================================== */

.worship-theme {
  background: linear-gradient(to bottom, #ffffff 0%, #f4f7f9 100%);
  color: #1a344a; /* Polished Deep Navy */
}

.worship-theme .navbar-subpage {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(26, 52, 74, 0.1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}



.worship-theme .worship-section {
  padding-top: 80px;
  padding-bottom: 100px;
  background: transparent;
  min-height: 80vh;
}

.worship-theme .sermon-header h2 {
  color: #1a344a;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: none;
}

.worship-theme .sermon-header p {
  color: #5a6d80;
  font-weight: 500;
  font-size: 1.05rem;
}

.worship-theme .worship-filter {
  background: #ffffff;
  border: 1px solid rgba(26, 52, 74, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 30px;
  margin-bottom: 60px;
  border-radius: 12px;
}

.worship-theme .filter-group label {
  color: #1a344a;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.worship-theme .filter-group select {
  background: #ffffff;
  border: 1.5px solid rgba(26, 52, 74, 0.15);
  color: #1a344a;
  border-radius: 8px;
  padding: 8px 15px;
}

.worship-theme .filter-group select:focus {
  border-color: #d4a574;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.worship-theme .sermon-prompt {
  background: rgba(26, 52, 74, 0.02);
  border: 1px dashed rgba(26, 52, 74, 0.2);
  border-radius: 12px;
}

.worship-theme .sermon-prompt h3 {
  color: #1a344a;
}

.worship-theme .highlight {
  color: #1a344a;
  background: rgba(212, 165, 116, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Polished Dual-Accent Cards */
.worship-theme .sermon-item {
  background: #ffffff;
  border: 1px solid rgba(26, 52, 74, 0.06);
  border-top: 4px solid #1a3c5a; /* Navy Top Accent */
  border-bottom: 2px solid #d4a574; /* Gold Bottom Accent */
  box-shadow: 0 4px 20px rgba(26, 52, 74, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.worship-theme .sermon-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26, 52, 74, 0.1);
  border-color: rgba(212, 165, 116, 0.3);
}

.worship-theme .sermon-title {
  color: #1a344a;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.worship-theme .sermon-meta {
  color: #5a6d80;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.worship-theme .sermon-meta svg {
  color: #d4a574;
}

/* Refined Interactive Elements */
.worship-theme .play-btn {
  background: #1a344a;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 18px;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(26, 52, 74, 0.2);
}

.worship-theme .play-btn svg {
  color: #ffffff;
  fill: currentColor;
  width: 14px;
  height: 14px;
  margin-left: 0;
}

.worship-theme .play-btn:hover {
  background: #234e75;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 52, 74, 0.3);
}

.worship-theme .yt-link {
  background: #ffffff;
  border: 1.5px solid rgba(212, 165, 116, 0.5);
  color: #b88d5f;
  border-radius: 12px;
  padding: 8px 18px;
  font-weight: 600;
}

.worship-theme .yt-link:hover {
  background: #d4a574;
  color: #ffffff;
  border-color: transparent;
}

.worship-theme .video-player.active {
  border: 2px solid #1a3c5a;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.worship-theme .close-btn {
  background: #1a3c5a;
  color: #d4a574; /* Gold accent for icon */
  border: 1.5px solid rgba(212, 165, 116, 0.3);
}

.worship-theme .close-btn:hover {
  background: #234e75;
  color: #ffffff;
  border-color: #d4a574;
}


/* Video Mechanism Polish */
.video-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.video-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.video-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 165, 116, 0.2);
  border-top-color: #d4a574;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.worship-theme .breadcrumb-current {
  color: #1a3c5a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .worship-theme .worship-filter {
    padding: 20px;
    border-radius: 12px;
    margin: 0 16px 40px;
  }
  
  .worship-theme .sermon-item {
    margin: 0 16px 20px;
  }
}



/* Extracted from index.html */

    /* Hero - Full Height Landing - Sacred Church Design */
    .hero-home {
      position: relative;
      height: 100vh;
      min-height: 500px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: calc(var(--nav-height) + 20px) 16px 30px;
    }

    /* Floating particles for elegance */
    .hero-home .particles {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      overflow: hidden;
      display: none;
    }

    .hero-home .particle {
      position: absolute;
      width: 3px;
      height: 3px;
      background: rgba(212, 165, 116, 0.4);
      border-radius: 50%;
      animation: float var(--duration) ease-in-out infinite;
      opacity: 0;
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
      }

      10% {
        opacity: 1;
      }

      90% {
        opacity: 1;
      }

      100% {
        transform: translateY(-100vh) translateX(var(--drift));
        opacity: 0;
      }
    }

    /* Global image fade-in */
    img {
      opacity: 0;
      animation: fadeInImg 0.6s ease-out forwards;
    }

    @keyframes fadeInImg {
      from {
        opacity: 0;
        transform: scale(0.95);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Button styling - clean without ripple */
    .btn-primary,
    .btn-light,
    .btn-outline {
      position: relative;
      overflow: hidden;
    }

    /* Keep navbar logo visible and centered */
    .navbar:not(.scrolled) .navbar-logo {
      opacity: 1;
      pointer-events: all;
      transform: translateY(0);
    }

    .navbar-logo .favicon {
      height: 52px;
      width: auto;
      display: block;
      filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.35));
    }

    .nav-menu-right .nav-item.has-dropdown>.nav-link {
      font-weight: 500;
      letter-spacing: 0.1px;
    }

    .nav-menu-right .nav-item.has-dropdown>.nav-link svg {
      width: 13px;
      height: 13px;
      stroke-width: 1.8;
      opacity: 0.72;
      margin-left: 3px;
    }

    /* Soft vignette for focus */
    .hero-home::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at center, transparent 25%, rgba(10, 16, 24, 0.5) 100%);
      z-index: 2;
      pointer-events: none;
    }

    /* Modern elegant background - sophisticated dark base with depth */
    .hero-home-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background: linear-gradient(180deg,
          #060a10 0%,
          #0b1220 10%,
          #102030 30%,
          #163048 50%,
          #1a3850 65%,
          #132a3c 80%,
          #080e16 100%);
      overflow: hidden;
    }

    /* Subtle grain texture */
    .hero-home-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='gradientNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23gradientNoise)'/%3E%3C/svg%3E");
      opacity: 0.025;
      mix-blend-mode: overlay;
      pointer-events: none;
    }

    /* Rich layered light effects for premium look */
    .hero-home-bg::before {
      display: none;
    }

    @keyframes elegantGlow {

      0%,
      100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
      }

      50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.02);
      }
    }

    /* Elegant decorative accent line */
    .hero-home-bg::after {
      display: none;
    }

    /* Floating ambient orbs for depth */
    .hero-ambient-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0;
      z-index: 1;
      pointer-events: none;
    }

    .hero-ambient-orb.orb-1 {
      width: 100%;
      max-width: 400px;
      height: 400px;
      background: rgba(100, 170, 230, 0.08);
      top: 10%;
      left: -5%;
      animation: orbFloat1 15s ease-in-out infinite;
    }

    .hero-ambient-orb.orb-2 {
      width: 100%;
      max-width: 350px;
      height: 350px;
      background: rgba(212, 175, 120, 0.06);
      top: 20%;
      right: -5%;
      animation: orbFloat2 18s ease-in-out infinite 3s;
    }

    .hero-ambient-orb.orb-3 {
      width: 100%;
      max-width: 300px;
      height: 300px;
      background: rgba(80, 140, 200, 0.05);
      bottom: 15%;
      left: 30%;
      animation: orbFloat3 20s ease-in-out infinite 6s;
    }

    @keyframes orbFloat1 {

      0%,
      100% {
        transform: translate(0, 0);
        opacity: 0.6;
      }

      33% {
        transform: translate(40px, -30px);
        opacity: 1;
      }

      66% {
        transform: translate(-20px, 20px);
        opacity: 0.7;
      }
    }

    @keyframes orbFloat2 {

      0%,
      100% {
        transform: translate(0, 0);
        opacity: 0.5;
      }

      33% {
        transform: translate(-35px, 25px);
        opacity: 0.9;
      }

      66% {
        transform: translate(25px, -15px);
        opacity: 0.6;
      }
    }

    @keyframes orbFloat3 {

      0%,
      100% {
        transform: translate(0, 0);
        opacity: 0.4;
      }

      50% {
        transform: translate(30px, -25px);
        opacity: 0.8;
      }
    }



    .hero-home-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom,
          rgba(10, 22, 32, 0.05) 0%,
          rgba(15, 30, 42, 0.1) 50%,
          rgba(10, 22, 32, 0.2) 100%);
      z-index: 1;
    }

    /* Volumetric Light Rays (God Rays) */
    .hero-light-rays {
      display: none;
    }

    @keyframes swayRays {
      0% {
        transform: translateX(-50%) rotate(-3deg);
        opacity: 0.6;
      }

      100% {
        transform: translateX(-50%) rotate(3deg);
        opacity: 1;
      }
    }

    /* Floating Light Sparks (Dust Particles) */
    .hero-dust-particles {
      display: none;
    }

    .dust {
      position: absolute;
      background: #fff;
      border-radius: 50%;
      box-shadow: 0 0 10px 2px rgba(218, 185, 130, 0.8);
      opacity: 0;
      animation: floatDust linear infinite;
    }

    @keyframes floatDust {
      0% {
        bottom: -10%;
        transform: translateX(0) scale(0);
        opacity: 0;
      }

      20% {
        opacity: 0.8;
        transform: translateX(20px) scale(1);
      }

      80% {
        opacity: 0.8;
        transform: translateX(-20px) scale(1);
      }

      100% {
        bottom: 110%;
        transform: translateX(10px) scale(0.5);
        opacity: 0;
      }
    }

    .dust.p1 {
      left: 10%;
      width: 3px;
      height: 3px;
      animation-duration: 18s;
      animation-delay: 0s;
    }

    .dust.p2 {
      left: 25%;
      width: 4px;
      height: 4px;
      animation-duration: 22s;
      animation-delay: 5s;
    }

    .dust.p3 {
      left: 40%;
      width: 2px;
      height: 2px;
      animation-duration: 15s;
      animation-delay: 2s;
    }

    .dust.p4 {
      left: 55%;
      width: 5px;
      height: 5px;
      animation-duration: 25s;
      animation-delay: 8s;
    }

    .dust.p5 {
      left: 70%;
      width: 3px;
      height: 3px;
      animation-duration: 19s;
      animation-delay: 1s;
    }

    .dust.p6 {
      left: 85%;
      width: 4px;
      height: 4px;
      animation-duration: 21s;
      animation-delay: 6s;
    }

    .dust.p7 {
      left: 15%;
      width: 3px;
      height: 3px;
      animation-duration: 20s;
      animation-delay: 10s;
    }

    .dust.p8 {
      left: 35%;
      width: 2px;
      height: 2px;
      animation-duration: 16s;
      animation-delay: 4s;
    }

    .dust.p9 {
      left: 50%;
      width: 4px;
      height: 4px;
      animation-duration: 24s;
      animation-delay: 12s;
    }

    .dust.p10 {
      left: 65%;
      width: 3px;
      height: 3px;
      animation-duration: 17s;
      animation-delay: 7s;
    }

    .dust.p11 {
      left: 80%;
      width: 2px;
      height: 2px;
      animation-duration: 14s;
      animation-delay: 3s;
    }

    .dust.p12 {
      left: 95%;
      width: 5px;
      height: 5px;
      animation-duration: 23s;
      animation-delay: 9s;
    }


    .hero-logo-bg-glow {
      display: none;
    }


    .hero-home-content {
      position: relative;
      z-index: 4;
      text-align: center;
      max-width: 840px;
      padding: 30px 32px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: radial-gradient(ellipse at center, rgba(12, 22, 32, 0.4) 0%, rgba(12, 22, 32, 0.05) 70%, transparent 100%);
      border-radius: 24px;
      animation: none;
    }

    @keyframes heroBreathing {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.015);
      }
    }

    /* Logo - Elegant and refined with animated glow */
    .hero-logo {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin: 0 auto 12px;
      overflow: visible;
    }

    /* Logo Halo - Intense Ethereal Heartbeat Glow */
    .hero-logo-halo {
      display: none;
    }

    @keyframes heartbeatGlow {

      0%,
      100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
        filter: blur(15px);
        box-shadow: 0 0 50px rgba(218, 185, 130, 0);
      }

      15% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
        filter: blur(20px);
        box-shadow: 0 0 80px rgba(218, 185, 130, 0.2);
      }

      30% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.6;
        filter: blur(18px);
      }

      45% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
        filter: blur(25px);
        box-shadow: 0 0 100px rgba(218, 185, 130, 0.3);
      }
    }

    /* Animated glow ring around logo */
    .hero-logo::before {
      display: none;
    }

    @keyframes rotateGlow {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .hero-logo:hover::before {
      opacity: 1;
    }

    .hero-logo:hover {
      transform: scale(1.05) translateY(-2px);
    }

    .hero-logo.clicked {
      animation: none;
    }

    @keyframes heroCascade {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @media (prefers-reduced-motion: no-preference) {
      .hero-home-subtitle {
        animation: heroCascade 600ms ease-out 0ms both;
      }

      .hero-home-title {
        animation: heroCascade 600ms ease-out 150ms both;
      }

      .hero-home-tagline {
        animation: heroCascade 600ms ease-out 300ms both;
      }

      .hero-founder-badge {
        animation: heroCascade 600ms ease-out 450ms both;
      }

      .hero-home-verse,
      .hero-home-reference {
        animation: heroCascade 600ms ease-out 560ms both;
      }

      .hero-home-cta,
      .hero-service-times {
        animation: heroCascade 600ms ease-out 700ms both;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-home-tagline {
        transition: none;
      }
    }


    /* Title - Modern typography with warm cream tone, single line */
    .hero-home-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.2rem, 5.5vw, 3.8rem);
      font-weight: 700;
      color: #fffdf5;
      text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 10px 40px rgba(0, 0, 10, 0.4),
        0 0 50px rgba(212, 175, 120, 0.15);
      letter-spacing: -0.01em;
      font-feature-settings: "kern", "liga";
      margin-bottom: 28px;
      line-height: 1.1;
      position: relative;
      font-optical-sizing: auto;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: text-shadow 0.3s ease;
    }

    .hero-home-title::after {
      content: '';
      position: absolute;
      bottom: -18px;
      left: 50%;
      transform: translateX(-50%);
      width: 120px;
      height: 3px;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 120, 0.95), transparent);
      border-radius: 2px;
      box-shadow: 0 0 24px rgba(212, 175, 120, 0.5);
    }

    .hero-home-subtitle {
      font-family: 'Inter', sans-serif;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 2.8px;
      text-transform: uppercase;
      background: linear-gradient(135deg, #fbd37c 0%, #ffffff 50%, #d4a574 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      margin: 0 0 10px;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
      position: relative;
      display: inline-block;
      padding-bottom: 8px;
    }

    .hero-home-subtitle::before,
    .hero-home-subtitle::after {
      content: '';
      position: absolute;
      bottom: 0;
      width: 28px;
      height: 1px;
      background: rgba(212, 175, 120, 0.65);
    }

    .hero-home-subtitle::before {
      left: -38px;
    }

    .hero-home-subtitle::after {
      right: -38px;
    }

    .hero-home-tagline {
      font-family: 'EB Garamond', serif;
      font-size: clamp(1.15rem, 2.5vw, 1.42rem);
      font-style: italic;
      color: rgba(255, 250, 236, 0.95);
      font-weight: 500;
      margin: 6px 0 12px;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
      max-width: 760px;
      line-height: 1.6;
      letter-spacing: 0.3px;
    }

    .hero-home-tagline-location {
      display: block;
      margin-top: 8px;
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem;
      font-style: normal;
      text-transform: uppercase;
      color: rgba(230, 205, 160, 0.92);
      letter-spacing: 1.2px;
      font-weight: 600;
      line-height: 1.5;
    }

    /* Founder badge - Premium glass card */
    .hero-founder-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin: 2px 0 14px;
      padding: 12px 22px;
      background: linear-gradient(135deg, rgba(212, 175, 120, 0.15) 0%, rgba(212, 175, 120, 0.05) 100%);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 175, 120, 0.4);
      border-radius: 99px;
      box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      position: relative;
    }

    .hero-founder-badge::before {
      content: '';
      position: absolute;
      inset: -1px;
      padding: 1px;
      border-radius:inherit;
      background: linear-gradient(135deg, rgba(212,175,120,0.6), transparent 40%, transparent 60%, rgba(212,175,120,0.6));
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .hero-founder-badge span {
      font-family: 'Inter', sans-serif;
      font-size: 0.84rem;
      font-style: normal;
      font-weight: 500;
      color: rgba(255, 248, 231, 0.95);
      letter-spacing: 0.5px;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
      display: block;
      white-space: nowrap;
    }

    .hero-founder-badge .founder-label {
      text-transform: uppercase;
      letter-spacing: 1.7px;
      font-weight: 700;
      font-size: 0.7rem;
      color: rgba(212, 175, 120, 0.95);
    }

    .hero-founder-badge .founder-name {
      font-family: 'EB Garamond', serif;
      font-size: 1.02rem;
      font-weight: 500;
      letter-spacing: 0.25px;
      color: rgba(255, 248, 231, 0.98);
    }

    .hero-home-cta {
      font-family: 'Inter', sans-serif;
    }

    /* Scripture verse - Elegant and lively */
    .hero-home-verse {
      font-family: 'EB Garamond', serif;
      font-size: clamp(1rem, 1.85vw, 1.18rem);
      font-style: italic;
      font-weight: 500;
      color: #e6b887;
      max-width: 720px;
      margin: 18px auto 12px;
      line-height: 1.8;
      text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(212, 175, 120, 0.2);
      letter-spacing: 0.4px;
      position: relative;
      padding: 22px 32px;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.12) 0%, rgba(10, 20, 30, 0.6) 100%);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 12px;
      border: 1px solid rgba(212, 175, 120, 0.25);
      border-left: 3px solid #d4a574;
      box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    }

    .hero-home-verse::before,
    .hero-home-verse::after {
      content: none;
      display: none;
    }


    .hero-home-reference {
      font-family: 'EB Garamond', serif;
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 1.1px;
      color: rgba(212, 175, 120, 0.95);
      margin-bottom: 32px;
      text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(212, 175, 120, 0.15);
      font-style: italic;
      position: relative;
      display: inline-block;
    }

    .hero-home-reference::before {
      content: '';
      position: absolute;
      left: -24px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 120, 0.6));
    }

    .hero-home-reference::after {
      content: '';
      position: absolute;
      right: -24px;
      top: 50%;
      transform: translateY(-50%);
      width: 16px;
      height: 1px;
      background: linear-gradient(90deg, rgba(212, 175, 120, 0.6), transparent);
    }

    /* CTA Button - Premium sleek with shimmer */
    .hero-home-cta {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      background: linear-gradient(135deg, #f9d982 0%, #efbd5d 52%, #e3aa44 100%);
      color: #2b1d0d;
      padding: 18px 48px;
      margin-top: 6px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 0.8rem;
      letter-spacing: 3px;
      text-decoration: none;
      text-transform: uppercase;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(244, 198, 103, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      border: none;
      position: relative;
      will-change: transform;
    }

    /* Hover Bridge for CTA */
    .hero-home-cta::after {
      content: '';
      position: absolute;
      inset: -15px;
      background: transparent;
      z-index: -1;
    }

    .hero-home-cta::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.6s ease;
    }

    .hero-home-cta:hover::before {
      left: 100%;
    }

    .hero-home-cta:hover {
      background: linear-gradient(135deg, #ffe8a8 0%, #f5cd75 52%, #eab555 100%);
      color: #20160a;
      transform: translateY(-5px) scale(1.04);
      box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(246, 199, 103, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }


    .hero-home-cta svg {
      width: 20px;
      height: 20px;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .hero-home-cta:hover svg {
      transform: translateX(6px);
    }

    @keyframes bounce {

      0%,
      100% {
        transform: translateX(-50%) translateY(0);
      }

      50% {
        transform: translateX(-50%) translateY(10px);
      }
    }

    /* Welcome Section - Premium smooth transition */
    .welcome-section {
      padding: 100px 0;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
      position: relative;
      overflow: hidden;
      animation: sectionFadeIn 0.8s ease-out;
    }

    @keyframes sectionFadeIn {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .welcome-section::before {
      content: '';
      position: absolute;
      top: -40%;
      left: -15%;
      width: 100%;
      max-width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(212, 175, 120, 0.08) 0%, transparent 65%);
      border-radius: 50%;
      animation: floatSlow 25s ease-in-out infinite;
    }

    .welcome-section::after {
      content: '';
      position: absolute;
      bottom: -25%;
      right: -8%;
      width: 100%;
      max-width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(26, 58, 82, 0.06) 0%, transparent 65%);
      border-radius: 50%;
      animation: floatSlow 30s ease-in-out infinite reverse;
    }

    @keyframes floatSlow {

      0%,
      100% {
        transform: translate(0, 0);
      }

      50% {
        transform: translate(30px, -30px);
      }
    }

    /* Ornamental divider at top of welcome section */
    .welcome-section::before {
      display: none;
    }

    .welcome-section::after {
      display: none;
    }

    .welcome-wrap {
      max-width: 1000px;
      margin: 0 auto;
      text-align: center;
      position: relative;
      z-index: 1;
    }

    /* Stats Row */
    .welcome-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      margin: 50px 0 30px;
      padding: 40px 0;
      border-top: 1px solid rgba(212, 165, 116, 0.2);
      border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    }

    .stat-item {
      text-align: center;
      position: relative;
    }

    .stat-item::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1px;
      height: 60%;
      background: linear-gradient(180deg, transparent, rgba(212, 165, 116, 0.3), transparent);
    }

    .stat-item:last-child::after {
      display: none;
    }

    .stat-number {
      font-family: 'Playfair Display', serif;
      font-size: 2.8rem;
      font-weight: 700;
      color: #1a3a52;
      margin-bottom: 6px;
      line-height: 1;
      background: linear-gradient(135deg, #1a3a52 0%, #d4a574 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .stat-label {
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 1.3px;
      color: rgba(26, 58, 82, 0.7);
      font-weight: 600;
    }

    /* Doctrines Grid */
    .doctrines-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin: 60px 0 50px;
    }

    .doctrine-card {
      background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
      border: 1px solid rgba(212, 175, 120, 0.15);
      border-radius: 24px;
      padding: 36px 24px;
      text-align: center;
      text-decoration: none;
      position: relative;
      overflow: visible;
      transition: box-shadow 0.5s ease, border-color 0.5s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      box-shadow: 0 4px 20px rgba(26, 58, 82, 0.06), 0 10px 40px rgba(26, 58, 82, 0.04);
    }

    .doctrine-card::before {
      display: none;
    }

    .doctrine-card::after {
      display: none;
    }

    .doctrine-card:hover {
      box-shadow: 0 20px 50px rgba(26, 58, 82, 0.12), 0 30px 70px rgba(212, 175, 120, 0.18);
      border-color: rgba(212, 175, 120, 0.35);
    }

    .doctrine-icon {
      width: 72px;
      height: 72px;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.18) 0%, rgba(212, 175, 120, 0.08) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative;
      z-index: 1;
      box-shadow: 0 4px 16px rgba(212, 175, 120, 0.12);
    }

    .doctrine-icon svg {
      width: 38px;
      height: 38px;
      stroke: #c99a60;
      transition: all 0.4s ease;
    }

    .doctrine-card:hover .doctrine-icon {
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.35) 0%, rgba(212, 175, 120, 0.18) 100%);
      transform: scale(1.18) rotate(-8deg);
      box-shadow: 0 8px 28px rgba(212, 175, 120, 0.3);
    }

    .doctrine-card:hover .doctrine-icon svg {
      stroke: #e0b070;
      transform: scale(1.1);
    }

    .doctrine-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.18rem;
      color: #1a3a52;
      margin-bottom: 10px;
      font-weight: 600;
      transition: color 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .doctrine-card:hover h3 {
      color: #2a5278;
    }

    .doctrine-card p {
      color: #666;
      font-size: 0.92rem;
      line-height: 1.7;
      margin-bottom: 14px;
      flex-grow: 1;
      transition: color 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .doctrine-card:hover p {
      color: #555;
    }

    .doctrine-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #d4a574;
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      transition: all 0.3s ease;
      position: relative;
      z-index: 1;
    }

    .doctrine-card:hover .doctrine-link {
      gap: 12px;
      color: #c69563;
    }

    .welcome-wrap .section-subtitle {
      display: inline-block;
      margin-bottom: 14px;
      letter-spacing: 3.5px;
      font-size: 0.75rem;
      font-weight: 700;
      color: rgba(200, 155, 95, 0.95);
      position: relative;
      padding: 0 24px;
    }

    .welcome-wrap .section-subtitle::before,
    .welcome-wrap .section-subtitle::after {
      content: '✦';
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: rgba(200, 155, 95, 0.6);
      font-size: 0.85rem;
    }

    .welcome-wrap .section-subtitle::before {
      left: 0;
    }

    .welcome-wrap .section-subtitle::after {
      right: 0;
    }

    .welcome-wrap h2 {
      margin-bottom: 28px;
      font-size: clamp(2rem, 5.5vw, 3rem);
      font-weight: 600;
      background: linear-gradient(145deg, #1a3a52 0%, #2a5278 55%, #c99a60 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
      letter-spacing: 0.5px;
    }

    .welcome-lead {
      font-size: 1.1rem;
      line-height: 1.95;
      color: rgba(26, 58, 82, 0.82);
      max-width: 780px;
      margin: 0 auto 16px;
      font-weight: 400;
    }

    .welcome-founder-line {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      margin-top: 18px;
      padding-top: 12px;
      border-top: 1px solid rgba(212, 165, 116, 0.2);
    }

    .welcome-founder-line .founder-image {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      border: 2px solid rgba(212, 165, 116, 0.4);
    }

    .welcome-founder-line .founder-info h4 {
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      margin: 0 0 4px;
      color: #1a3a52;
    }

    .welcome-founder-line .founder-info span {
      font-family: 'Inter', sans-serif;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 1.4px;
      color: rgba(212, 165, 116, 0.9);
    }

    /* Quick Links Section - Premium dark design */
    .quick-links {
      padding: 95px 0;
      background: linear-gradient(180deg, #152535 0%, #1a3a52 30%, #1f4560 60%, #1a3548 100%);
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(212, 175, 120, 0.2);
    }

    /* Elegant ambient light effects */
    .quick-links::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 800px 600px at 20% 20%, rgba(212, 175, 120, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 800px 600px at 80% 80%, rgba(212, 175, 120, 0.05) 0%, transparent 60%);
      pointer-events: none;
    }

    .quick-links-header {
      text-align: center;
      margin-bottom: 45px;
      position: relative;
    }

    .quick-links-header h2 {
      color: #ffffff;
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.8rem, 5vw, 2.6rem);
      font-weight: 600;
      margin-bottom: 18px;
      letter-spacing: 0.5px;
      text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
    }

    .quick-links-header p {
      color: rgba(255, 255, 255, 0.75);
      font-size: 1rem;
      max-width: 550px;
      margin: 0 auto;
      line-height: 1.7;
    }

    /* Ornamental divider under heading */
    .quick-links-header::after {
      content: '◈';
      display: block;
      margin-top: 24px;
      color: rgba(212, 175, 120, 0.8);
      font-size: 1.3rem;
      text-shadow: 0 0 20px rgba(212, 175, 120, 0.4);
    }

    .quick-links h2 {
      text-align: center;
      color: #ffffff;
      font-size: 2rem;
      margin-bottom: 50px;
    }

    .links-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .link-card {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(212, 175, 120, 0.28);
      border-radius: 24px;
      padding: 38px 28px;
      position: relative;
      text-align: center;
      text-decoration: none;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      opacity: 0;
      animation: fadeInUp 0.6s ease-out forwards;
      will-change: transform;
    }

    /* Combined Hover Bridge & Top Accent for Link Card */
    .link-card::after {
      content: '';
      position: absolute;
      inset: -20px;
      /* Large bridge for 16px transform */
      background: transparent;
      z-index: -1;
    }

    /* Separate top accent to avoid bridge conflict */
    .link-card-accent {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, rgba(212, 175, 120, 0.3), #d4a574, rgba(212, 175, 120, 0.3));
      opacity: 0;
      transition: opacity 0.4s ease;
      border-radius: 24px 24px 0 0;
      z-index: 2;
      pointer-events: none;
    }

    .link-card:hover .link-card-accent {
      opacity: 1;
    }

    .link-card:hover {
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 100%);
      transform: translateY(-16px) scale(1.03);
      box-shadow:
        0 30px 70px rgba(212, 175, 120, 0.25),
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
      border-color: rgba(212, 175, 120, 0.5);
    }

    .link-card:hover::before {
      opacity: 1;
    }

    .link-card:hover::after {
      /* Keep bridge active */
      opacity: 1;
    }

    .link-card:focus {
      outline: 2px solid #d4a574;
      outline-offset: 2px;
    }

    .link-card-number {
      position: absolute;
      top: 25px;
      right: 25px;
      font-family: 'Playfair Display', serif;
      font-size: 3.5rem;
      font-weight: 700;
      color: rgba(212, 165, 116, 0.12);
      line-height: 1;
      transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .link-card:hover .link-card-number {
      color: rgba(212, 165, 116, 0.25);
      transform: scale(1.1) rotate(5deg);
    }

    .link-card-icon {
      width: 72px;
      height: 72px;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.28) 0%, rgba(212, 175, 120, 0.1) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      box-shadow: 0 4px 20px rgba(212, 175, 120, 0.15);
    }

    .link-card-icon::before {
      content: '';
      position: absolute;
      inset: -5px;
      border-radius: 50%;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.25), transparent);
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .link-card:hover .link-card-icon {
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.45) 0%, rgba(212, 175, 120, 0.2) 100%);
      transform: scale(1.18) rotate(8deg);
      box-shadow: 0 12px 30px rgba(212, 175, 120, 0.35);
    }

    .link-card:hover .link-card-icon::before {
      opacity: 1;
    }

    .link-card-icon svg {
      width: 32px;
      height: 32px;
      stroke: #d4a574;
      transition: stroke 0.4s ease, transform 0.4s ease;
    }

    .link-card:hover .link-card-icon svg {
      transform: scale(1.12);
      stroke: #e8c090;
    }

    .link-card h3 {
      color: #ffffff;
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      margin-bottom: 12px;
      font-weight: 600;
      transition: all 0.4s ease;
      position: relative;
      z-index: 1;
      letter-spacing: 0.3px;
    }

    .link-card:hover h3 {
      color: #fff8e7;
      text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
      transform: translateY(-3px);
    }

    .link-card p {
      color: rgba(255, 255, 255, 0.82);
      font-size: 0.92rem;
      margin: 0;
      line-height: 1.75;
      letter-spacing: 0.35px;
      transition: color 0.4s ease;
      position: relative;
      z-index: 1;
    }

    .link-card:hover p {
      color: rgba(255, 255, 255, 0.98);
    }

    /* Scripture Banner - Premium elegant */
    .scripture-banner {
      padding: 110px 0;
      background: linear-gradient(180deg, #fefefe 0%, #f8f6f3 50%, #fafafa 100%);
      text-align: center;
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(212, 175, 120, 0.12);
      border-bottom: 1px solid rgba(212, 175, 120, 0.12);
    }

    .scripture-banner::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      max-width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(212, 175, 120, 0.1) 0%, transparent 65%);
      border-radius: 50%;
      pointer-events: none;
    }

    /* Large decorative opening quotation mark */
    .scripture-banner::after {
      content: '"';
      position: absolute;
      left: 8%;
      top: 15%;
      font-family: 'Playfair Display', serif;
      font-size: 16rem;
      color: rgba(212, 175, 120, 0.08);
      line-height: 1;
      pointer-events: none;
      animation: floatQuote 8s ease-in-out infinite;
    }

    @keyframes floatQuote {

      0%,
      100% {
        transform: translateY(0px);
        opacity: 0.08;
      }

      50% {
        transform: translateY(-25px);
        opacity: 0.14;
      }
    }

    /* Vertical gold accent lines */
    .scripture-banner .container {
      position: relative;
    }

    .scripture-banner .container::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 80px;
      background: linear-gradient(180deg, transparent, #d4a574, transparent);
    }

    .scripture-banner .container::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 80px;
      background: linear-gradient(180deg, transparent, #d4a574, transparent);
    }

    /* Core Values Section - Premium styling */
    .values-section {
      padding: 100px 0;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 50%, #f5f6f8 100%);
      position: relative;
      border-top: 1px solid rgba(212, 175, 120, 0.12);
    }

    .values-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 65px;
    }

    .value-card {
      background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
      border: 1px solid rgba(212, 175, 120, 0.12);
      border-radius: 20px;
      padding: 36px 24px;
      text-align: center;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative;
      overflow: visible;
      /* Changed to visible for hover bridge */
      box-shadow: 0 4px 16px rgba(26, 58, 82, 0.05), 0 10px 30px rgba(26, 58, 82, 0.04);
    }

    /* Value Card Hover Bridge */
    .value-card::after {
      content: '';
      position: absolute;
      inset: -15px;
      background: transparent;
      z-index: -1;
    }

    .value-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.1) 0%, transparent 100%);
      border-radius: 20px;
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
    }

    .value-card:hover {
      transform: translateY(-12px) scale(1.02);
      box-shadow: 0 16px 40px rgba(26, 58, 82, 0.1), 0 25px 60px rgba(26, 58, 82, 0.08);
      border-color: rgba(212, 175, 120, 0.3);
    }

    .value-card:hover::before {
      opacity: 1;
    }

    .value-card:focus {
      outline: 2px solid #d4a574;
      outline-offset: 2px;
    }

    .value-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.08));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      transition: all 0.3s ease;
    }

    .value-card:hover .value-icon {
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(212, 165, 116, 0.15));
      transform: scale(1.1);
    }

    .value-icon svg {
      width: 32px;
      height: 32px;
      stroke: #d4a574;
      transition: all 0.3s ease;
    }

    .value-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem;
      color: #1a3a52;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .value-card p {
      color: #666;
      font-size: 0.92rem;
      line-height: 1.65;
      margin: 0;
      letter-spacing: 0.2px;
    }

    .recent-sermons {
      padding: 35px 0;
      background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(212, 175, 120, 0.12);
    }

    .recent-sermons::before {
      content: '';
      position: absolute;
      top: -40%;
      right: -15%;
      width: 100%;
      max-width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(212, 175, 120, 0.1) 0%, transparent 65%);
      border-radius: 50%;
      pointer-events: none;
    }

    .recent-sermons::after {
      content: '';
      position: absolute;
      bottom: -25%;
      left: -8%;
      width: 100%;
      max-width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(26, 58, 82, 0.06) 0%, transparent 65%);
      border-radius: 50%;
      pointer-events: none;
    }

    .section-header {
      text-align: center;
      margin-bottom: 22px;
      position: relative;
    }

    .section-header h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 5.5vw, 3rem);
      color: #1a3a52;
      margin-bottom: 14px;
      letter-spacing: 0px;
      font-weight: 600;
      font-feature-settings: "kern", "liga";
      background: linear-gradient(145deg, #1a3a52 0%, #2a5278 45%, #c99a60 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      position: relative;
    }

    /* Ornamental divider under section heading */
    .section-header h2::after {
      content: '';
      display: block;
      width: 80px;
      height: 3px;
      background: linear-gradient(90deg, transparent 0%, #c99a60 30%, #d4a574 50%, #c99a60 70%, transparent 100%);
      margin: 28px auto 0;
      border-radius: 2px;
      box-shadow: 0 0 15px rgba(212, 175, 120, 0.3);
    }

    .section-header h2::before {
      display: none;
    }

    .section-header p {
      color: #777;
      font-size: 1.05rem;
      margin: 0 auto;
      font-weight: 500;
      letter-spacing: 0.4px;
      max-width: 550px;
      line-height: 1.6;
    }

    .sermons-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-bottom: 25px;
    }
    .section-cta {
      margin-top: 25px;
      text-align: center;
    }

    .sermon-card {
      background: white;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid rgba(212, 175, 120, 0.12);
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      box-shadow: 0 4px 16px rgba(26, 58, 82, 0.08), 0 12px 32px rgba(26, 58, 82, 0.05);
      display: flex;
      flex-direction: column;
      position: relative;
      background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
    }

    .sermon-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: linear-gradient(90deg, rgba(212, 175, 120, 0.4) 0%, #d4a574 50%, rgba(212, 175, 120, 0.4) 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .sermon-card::after {
      content: '';
      position: absolute;
      inset: -20px;
      /* Large hover bridge for 14px transform */
      background: transparent;
      z-index: -1;
      will-change: transform;
    }

    /* Separate gradient to avoid bridge conflict */
    .sermon-card-glow {
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.06) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
      border-radius: inherit;
    }

    .sermon-card:hover .sermon-card-glow {
      opacity: 1;
    }

    .sermon-card:hover {
      transform: translateY(-14px) scale(1.02);
      box-shadow: 0 30px 60px rgba(26, 58, 82, 0.14), 0 0 1px rgba(212, 175, 120, 0.25);
      border-color: rgba(212, 175, 120, 0.35);
    }

    .sermon-card:hover::before {
      opacity: 1;
    }

    .sermon-card:hover::after {
      /* Keep bridge active */
      opacity: 1;
    }

    .sermon-card.skeleton {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.1) 75%);
      background-size: 200% 100%;
      animation: skeleton-loading 1.5s infinite;
      min-height: 200px;
    }

    @keyframes skeleton-loading {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .sermon-card-header {
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.12) 0%, rgba(26, 58, 82, 0.05) 100%);
      padding: 16px 18px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
    }

    .sermon-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      background: linear-gradient(135deg, #d4a574 0%, #e6b887 100%);
      color: white;
      padding: 5px 10px;
      border-radius: 18px;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
      z-index: 3;
    }

    .sermon-meta {
      display: flex;
      align-items: center;
      gap: 5px;
      color: #888;
      font-size: 0.9rem;
    }

    .sermon-date {
      display: inline-block;
      color: #888;
      font-size: 0.73rem;
      font-weight: 600;
      letter-spacing: 0.4px;
      width: fit-content;
      border: 1.5px solid rgba(212, 165, 116, 0.3);
      text-transform: uppercase;
      backdrop-filter: blur(4px);
    }

    .sermon-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.25rem;
      color: #1a3a52;
      margin: 0 0 6px 0;
      line-height: 1.5;
      flex-grow: 1;
      font-weight: 700;
      letter-spacing: -0.2px;
    }

    .sermon-card-content {
      padding: 12px 18px;
      border-top: 1.5px solid rgba(212, 175, 120, 0.2);
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.08) 0%, rgba(26, 58, 82, 0.02) 100%);
    }

    .sermon-speaker {
      color: #333;
      font-size: 0.9rem;
      margin: 0 0 10px 0;
      font-weight: 600;
      letter-spacing: 0.3px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .sermon-speaker::before {
      content: '\25b8';
      color: #d4a574;
      font-size: 0.9rem;
    }

    .sermon-read-more {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #d4a574;
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
    }

    .sermon-card:hover .sermon-read-more {
      opacity: 1;
      transform: translateY(0);
    }

    .sermon-read-more:hover {
      gap: 10px;
      color: #b88d5f;
    }

    .sermon-read-more svg {
      transition: transform 0.3s ease;
    }

    .sermon-read-more:hover svg {
      transform: translateX(4px);
    }

    /* Navigation Enhancements */
    nav a {
      position: relative;
      transition: color 0.3s ease;
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #d4a574, rgba(212, 165, 116, 0.5));
      transition: width 0.4s ease;
    }

    nav a:hover::after {
      width: 100%;
    }

    nav a:hover {
      color: #d4a574;
    }

    /* Logo enhancement */
    .logo {
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    .logo:hover {
      transform: scale(1.05);
      filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.3));
    }

    .section-cta {
      text-align: center;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 14px;
      background: linear-gradient(145deg, #1a3a52 0%, #1f4560 50%, #243b4d 100%);
      color: white;
      padding: 18px 45px;
      border: none;
      border-radius: 10px;
      font-size: 0.85rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      box-shadow: 0 4px 16px rgba(26, 58, 82, 0.15), 0 10px 30px rgba(26, 58, 82, 0.2);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      position: relative;
      overflow: hidden;
      text-decoration: none;
      font-feature-settings: "kern";
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 120, 0.2), transparent);
      transition: left 0.6s ease;
    }

    .btn-primary:hover {
      background: linear-gradient(145deg, #1f4560 0%, #2a5278 50%, #1a3a52 100%);
      border-color: rgba(212, 175, 120, 0.4);
      transform: translateY(-5px) scale(1.02);
      box-shadow: 0 8px 24px rgba(26, 58, 82, 0.2), 0 16px 40px rgba(26, 58, 82, 0.25);
    }

    .btn-primary:hover::before {
      left: 100%;
    }

    .btn-primary:focus {
      outline: 2px solid #d4a574;
      outline-offset: 2px;
    }

    .btn-primary:active {
      transform: translateY(0);
    }

    .btn-primary svg {
      width: 18px;
      height: 18px;
      transition: transform 0.3s ease;
    }

    .btn-primary:hover svg {
      transform: translateX(4px);
    }

    @media (max-width: 1024px) {
      .sermons-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .values-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .section-header h2 {
        font-size: 1.8rem;
      }

      .sermons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .values-grid {
        grid-template-columns: 1fr;
      }

      .recent-sermons {
        padding: 65px 0;
      }

      .values-section {
        padding: 65px 0;
      }

      .welcome-wrap {
        padding: 0 16px;
      }

      .welcome-lead {
        font-size: 1rem;
      }

      .welcome-founder-line {
        flex-direction: column;
        gap: 10px;
      }
    }

    .scripture-banner blockquote {
      font-family: 'EB Garamond', serif;
      font-size: clamp(1.5rem, 3.2vw, 2rem);
      font-style: italic;
      color: #1a3a52;
      max-width: 920px;
      margin: 0 auto 18px;
      line-height: 1.85;
      letter-spacing: 0.4px;
      font-feature-settings: "kern", "liga";
      font-weight: 400;
    }

    .scripture-banner cite {
      font-family: 'Inter', sans-serif;
      font-size: 0.92rem;
      font-weight: 600;
      color: #c99a60;
      font-style: normal;
      letter-spacing: 0.5px;
    }

    /* Call to Action Section - Premium dark styling */
    .cta-section {
      padding: 120px 0;
      background: linear-gradient(145deg, #152535 0%, #1a3a52 35%, #1f4560 65%, #1a3548 100%);
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(212, 175, 120, 0.2);
    }

    /* Removed geometric pattern as requested */
    .cta-section::before {
      display: none;
    }

    @keyframes patternMove {
      0% {
        transform: translateX(0) translateY(0);
      }

      100% {
        transform: translateX(70px) translateY(70px);
      }
    }

    .cta-section::after {
      content: '';
      position: absolute;
      bottom: -20%;
      right: -10%;
      width: 100%;
      max-width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .cta-content {
      text-align: center;
      position: relative;
      z-index: 2;
      max-width: 900px;
      margin: 0 auto;
    }

    .cta-content h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 4.5vw, 3rem);
      color: #fff8e7;
      margin-bottom: 18px;
      font-weight: 600;
      text-shadow: 0 3px 15px rgba(0, 0, 0, 0.35);
      letter-spacing: 0.5px;
    }

    .cta-content p {
      font-size: 1.1rem;
      color: rgba(255, 252, 245, 0.9);
      margin-bottom: 36px;
      line-height: 1.8;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
      max-width: 650px;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-buttons {
      display: flex;
      gap: 20px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-light {
      background: linear-gradient(135deg, #fff8e7 0%, #f8f0dd 100%);
      color: #1a3a52;
      padding: 16px 40px;
      border-radius: 8px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-size: 0.85rem;
      border: none;
      cursor: pointer;
      display: inline-block;
      position: relative;
      overflow: hidden;
      box-shadow: 0 8px 25px rgba(255, 248, 231, 0.25);
    }

    @keyframes btnPulse {

      0%,
      100% {
        box-shadow: 0 8px 25px rgba(255, 248, 231, 0.25), 0 0 0 0 rgba(255, 248, 230, 0.5);
      }

      50% {
        box-shadow: 0 8px 25px rgba(255, 248, 231, 0.25), 0 0 0 12px rgba(255, 248, 230, 0);
      }
    }

    .btn-light:hover {
      background: linear-gradient(135deg, #ffffff 0%, #fff8e7 100%);
      transform: translateY(-4px) scale(1.02);
      box-shadow: 0 14px 35px rgba(255, 248, 231, 0.35);
      animation: none;
    }

    .btn-outline {
      background: transparent;
      color: #fff8e7;
      padding: 16px 40px;
      border: 2px solid rgba(255, 248, 231, 0.5);
      border-radius: 8px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-size: 0.85rem;
      cursor: pointer;
      display: inline-block;
      backdrop-filter: blur(8px);
    }

    .btn-outline:hover {
      background: rgba(255, 248, 230, 0.12);
      border-color: rgba(255, 248, 231, 0.8);
      color: #ffffff;
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 1024px) {
      .links-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {

      /* Hero section */
      .hero-home {
        padding: calc(var(--nav-height) + 20px) 16px 30px;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto;
      }

      .hero-home-content {
        padding: 12px 6px;
        max-width: 100%;
        gap: 8px;
      }

      .hero-logo {
        width: 56px;
        height: 56px;
        margin: 0 auto 8px;
      }

      .hero-home-title {
        font-size: clamp(1.15rem, 6vw, 1.6rem);
        margin-bottom: 4px;
        line-height: 1.2;
      }

      .hero-home-title::after {
        width: 60px;
      }

      .hero-founder-badge {
        margin: 6px 0 8px;
        padding: 8px 18px;
        font-size: 0.85rem;
        gap: 8px;
      }

      .hero-founder-badge span {
        font-size: 0.82rem;
        white-space: normal;
        text-align: center;
        letter-spacing: 0.3px;
      }

      .hero-founder-badge::before,
      .hero-founder-badge::after {
        font-size: 0.85rem;
        left: 8px;
        right: 8px;
      }

      .hero-home-verse {
        margin: 0 auto 4px;
        padding: 10px 10px;
        font-size: clamp(0.72rem, 2.2vw, 0.85rem);
        line-height: 1.7;
        border-left-width: 2px;
        border-right-width: 2px;
      }

      .hero-home-verse::before,
      .hero-home-verse::after {
        font-size: 2.5rem;
      }

      .hero-home-reference {
        margin-bottom: 12px;
        font-size: 0.85rem;
      }

      .hero-home-reference::before,
      .hero-home-reference::after {
        display: none;
      }

      .hero-home-cta {
        width: 100%;
        max-width: 260px;
        padding: 10px 20px;
        font-size: 0.70rem;
        letter-spacing: 0.8px;
        justify-content: center;
      }

      .scroll-indicator {
        display: none !important;
      }

      .welcome-section {
        padding: 65px 0;
      }

      .quick-links {
        padding: 65px 0;
      }

      .scripture-banner {
        padding: 65px 0;
      }

      .cta-section {
        padding: 65px 0;
      }

      .values-section {
        padding: 50px 0;
      }

      .recent-sermons {
        padding: 30px 0;
        background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
      }

      /* CTA buttons */
      .cta-content h2 {
        font-size: 1.6rem;
        background: linear-gradient(135deg, #ffffff 0%, #fbd37c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 20px;
      }

      .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 32px;
        color: rgba(255, 255, 255, 0.9);
      }

      .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
      }

      .btn-light,
      .btn-outline {
        width: 100%;
        padding: 14px 24px;
        text-align: center;
        box-sizing: border-box;
        border-radius: 99px;
        font-weight: 600;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
      }

      .btn-light {
        background: #ffffff;
        color: #1a3a52;
        border: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      }

      .btn-outline {
        background: transparent;
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.4);
      }

      /* Grids */
      .links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      .doctrines-grid,
      .links-grid,
      .sermons-grid {
        justify-items: center;
        padding: 0 10px;
      }

      .sermons-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }

      /* Cards */
      .link-card {
        padding: 24px 20px;
      }

      .value-card {
        padding: 24px 20px;
      }

      .doctrine-card,
      .link-card,
      .sermon-card {
        width: 100%;
        max-width: 500px;
      }

      .sermon-card {
        background: #ffffff;
        border: 1px solid rgba(212, 175, 120, 0.2);
        border-radius: 20px;
        padding: 28px;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      }

      .sermon-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(212, 175, 120, 0.15);
        border-color: rgba(212, 175, 120, 0.4);
      }

      .sermon-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #fbd37c, #d4a574);
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .sermon-card:hover::before {
        opacity: 1;
      }

      .sermon-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
      }

      .sermon-meta {
        font-size: 0.9rem;
        color: #d4a574;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .sermon-card h3 {
        font-size: 1.25rem;
        color: #1a3a52;
        margin: 0 0 16px;
        font-family: 'Playfair Display', serif;
        line-height: 1.4;
      }

      /* Section headers */
      .section-header {
        margin-bottom: 20px;
        text-align: center;
      }

      .section-header h2 {
        font-size: 2.2rem;
        color: #1a3a52;
        font-family: 'Playfair Display', serif;
        margin-bottom: 12px;
      }

      .section-header p {
        color: #666;
        max-width: 600px;
        margin: 0 auto;
      }

      .quick-links-header {
        margin-bottom: 24px;
      }

      .quick-links-header h2 {
        font-size: 1.6rem;
      }

      .welcome-wrap h2 {
        font-size: 1.8rem;
      }

      .welcome-lead {
        font-size: 0.92rem;
      }

      /* Scripture banner */
      .scripture-banner blockquote {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
        padding: 0 16px;
      }

      .scripture-banner .container::before,
      .scripture-banner .container::after {
        display: none;
      }

      /* btn-primary */
      .btn-primary {
        padding: 12px 24px;
        font-size: 0.78rem;
      }
    }

    @media (max-width: 480px) {
      .hero-home {
        padding: calc(var(--nav-height) + 20px) 16px 30px;
        min-height: 100vh;
        min-height: 100dvh;
      }

      .hero-home-content {
        padding: 12px 8px;
        gap: 6px;
      }

      .hero-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
      }

      .hero-home-title {
        font-size: clamp(1rem, 5vw, 1.4rem);
        margin-bottom: 4px;
      }

      .hero-founder-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
      }

      .hero-founder-badge span {
        font-size: 0.7rem;
      }

      .hero-home-verse {
        padding: 10px 8px;
        font-size: clamp(0.68rem, 2.5vw, 0.78rem);
        margin: 0 auto 6px;
      }

      .hero-home-verse::before,
      .hero-home-verse::after {
        font-size: 1.5rem;
      }

      .hero-home-reference {
        font-size: 0.75rem;
        margin-bottom: 12px;
      }

      .hero-home-cta {
        width: 100%;
        padding: 11px 18px;
        font-size: 0.68rem;
        letter-spacing: 0.5px;
      }

      .welcome-section,
      .quick-links,
      .scripture-banner,
      .cta-section,
      .values-section,
      .recent-sermons {
        padding: 36px 0;
      }

      .welcome-wrap {
        padding: 0 10px;
      }

      .welcome-lead {
        font-size: 0.88rem;
      }

      .doctrines-grid {
        gap: 12px;
        margin: 20px 0 16px;
      }

      .doctrines-grid,
      .links-grid,
      .sermons-grid {
        padding: 0;
      }

      .doctrine-card {
        padding: 15px 12px;
      }

      .doctrine-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
      }

      .doctrine-icon svg {
        width: 24px;
        height: 24px;
      }

      .doctrine-card h3 {
        font-size: 0.95rem;
      }

      .doctrine-card p {
        font-size: 0.8rem;
      }

      .link-card,
      .value-card,
      .sermon-card {
        padding: 18px 14px;
      }

      .doctrine-card,
      .link-card,
      /* removed 260px clamp */

      .sermon-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
      }

      .sermon-card h3 {
        font-size: 1rem;
      }

      .sermon-meta {
        font-size: 0.9rem;
      }

      .value-icon {
        width: 48px;
        height: 48px;
      }

      .section-header h2,
      .quick-links-header h2 {
        font-size: 1.35rem;
      }

      .welcome-wrap h2 {
        font-size: 1.4rem;
      }

      .cta-content h2 {
        font-size: 1.25rem;
      }

      .cta-content p {
        font-size: 0.9rem;
      }

      .welcome-stats {
        gap: 12px;
        padding: 16px 0;
      }

      .stat-number {
        font-size: 1.8rem;
      }

      .stat-label {
        font-size: 0.75rem;
      }

      .scripture-banner blockquote {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        padding: 0 10px;
      }

      .scripture-banner cite {
        font-size: 0.8rem;
      }

      .btn-primary {
        padding: 10px 18px;
        font-size: 0.7rem;
        width: 100%;
        box-sizing: border-box;
      }

      .section-cta {
        text-align: center;
      }

      .cta-buttons {
        flex-direction: column;
      }

      .btn-light,
      .btn-outline {
        width: 100%;
        padding: 12px 18px;
      }
    }

    /* Floating Prayer Button - Premium styling */
    .floating-prayer-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 64px;
      height: 64px;
      background: linear-gradient(145deg, #dcc494 0%, #c99a60 50%, #d4a574 100%);
      border: none;
      border-radius: 50%;
      color: #0a0f14;
      font-size: 26px;
      cursor: pointer;
      box-shadow: 0 10px 35px rgba(212, 175, 120, 0.35), 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .floating-prayer-btn:hover {
      transform: scale(1.12) translateY(-4px);
      box-shadow: 0 16px 45px rgba(212, 175, 120, 0.45), 0 8px 25px rgba(0, 0, 0, 0.25);
    }

    .floating-prayer-btn:active {
      transform: scale(1.02);
    }

    /* Announcement Bar */
    .announcement-bar {
      background: linear-gradient(90deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.1) 100%);
      border-bottom: 1px solid rgba(212, 165, 116, 0.2);
      padding: 12px 0;
      position: relative;
      z-index: 50;
    }

    .announcement-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      font-size: 0.9rem;
      color: #1a3a52;
    }

    .announcement-icon {
      width: 20px;
      height: 20px;
      background: #d4a574;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      font-weight: bold;
    }

    .announcement-text {
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    @media (max-width: 1024px) {
      .doctrines-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }
    }

    @media (max-width: 768px) {
      .navbar-logo .favicon {
        height: 46px;
      }

      .floating-prayer-btn {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
        font-size: 18px;
      }

      .announcement-content {
        font-size: 0.78rem;
        gap: 8px;
      }

      .welcome-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0;
      }

      .stat-item::after {
        display: none;
      }

      .stat-number {
        font-size: 2rem;
      }

      .doctrines-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0 20px;
      }

      .doctrine-card {
        padding: 24px 18px;
      }

      .doctrine-icon {
        width: 56px;
        height: 56px;
      }

      .doctrine-icon svg {
        width: 28px;
        height: 28px;
      }

      .doctrine-card h3 {
        font-size: 1.05rem;
      }

      .doctrine-card p {
        font-size: 0.85rem;
      }

      .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 3px;
      }
    }

    @media (max-width: 480px) {
      .floating-prayer-btn {
        width: 46px;
        height: 46px;
        bottom: 12px;
        right: 12px;
        font-size: 16px;
      }

      .doctrines-grid {
        gap: 12px;
        margin: 16px 0;
      }

      .doctrine-card {
        padding: 20px 14px;
      }

      .doctrine-icon {
        width: 48px;
        height: 48px;
      }

      .doctrine-icon svg {
        width: 24px;
        height: 24px;
      }

      .welcome-stats {
        gap: 16px;
        padding: 20px 0;
      }
    }

    /* Extra small screens (320px - 360px) */
    @media (max-width: 360px) {

      /* Further optimize sections */
      .welcome-section,
      .quick-links,
      .scripture-banner,
      .cta-section,
      .values-section,
      .recent-sermons {
        padding: 32px 0;
      }

      /* Typography */
      .section-header h2,
      .quick-links-header h2 {
        font-size: 1.25rem;
        letter-spacing: -0.02em;
      }

      .section-header p {
        font-size: 0.85rem;
      }

      .welcome-wrap h2 {
        font-size: 1.3rem;
      }

      .welcome-lead {
        font-size: 0.85rem;
        line-height: 1.6;
      }

      .cta-content h2 {
        font-size: 1.2rem;
      }

      .cta-content p {
        font-size: 0.88rem;
      }

      /* Cards - extra compact */
      .doctrine-card,
      .link-card,
      .value-card,
      .sermon-card {
        padding: 16px 12px;
      }

      .doctrine-icon,
      .value-icon {
        width: 44px;
        height: 44px;
      }

      .doctrine-icon svg {
        width: 22px;
        height: 22px;
      }

      .doctrine-card h3,
      .link-card h3 {
        font-size: 0.92rem;
      }

      .doctrine-card p,
      .link-card p {
        font-size: 0.78rem;
      }

      .sermon-card h3 {
        font-size: 0.95rem;
      }

      /* Grids */
      .doctrines-grid,
      .links-grid {
        gap: 10px;
      }

      .doctrines-grid,
      .links-grid,
      .sermons-grid {
        padding: 0;
      }

      .doctrine-card,
      .link-card,
      /* removed 230px clamp */

      /* Welcome stats */
      .welcome-stats {
        gap: 14px;
        padding: 18px 0;
        margin: 16px 0 12px;
      }

      .stat-number {
        font-size: 1.6rem;
      }

      .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
      }

      /* Scripture banner */
      .scripture-banner blockquote {
        font-size: clamp(0.85rem, 4vw, 1rem);
        padding: 0 8px;
        line-height: 1.6;
      }

      .scripture-banner cite {
        font-size: 0.75rem;
      }

      /* Buttons */
      .btn-primary,
      .btn-light,
      .btn-outline {
        padding: 10px 16px;
        font-size: 0.68rem;
      }

      .cta-buttons {
        gap: 10px;
      }

      /* Floating prayer button */
      .floating-prayer-btn {
        width: 44px;
        height: 44px;
        bottom: 10px;
        right: 10px;
        font-size: 15px;
      }

      /* Sermon elements */
      .sermon-badge {
        font-size: 0.62rem;
        padding: 2px 7px;
      }

      .sermon-meta,
      .sermon-date {
        font-size: 0.72rem;
      }
    }
  

/* Extracted from about.html */

    

/* ============================================================ */
/* JOURNEY TIMELINE — MOBILE FIRST, DESKTOP OVERRIDE            */
/* ============================================================ */

/* === SHARED BASE (all screens) === */
.doctrine-hub { padding: 60px 0 100px; }
.intro-section { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.journey-marker { text-align: center; margin: 40px 0; }

.journey-timeline {
  max-width: 960px;
  margin: 40px auto;
  position: relative;
  padding: 20px 0;
}

/* Mobile-first base: shared icon and content base */
.journey-icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 165, 116, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.journey-content { background: #ffffff !important; z-index: 5 !important; position: relative !important; background: #ffffff; z-index: 5; position: relative;
  background: white;
  border-radius: 16px;
  padding: 20px 18px;
  text-decoration: none;
  display: block;
  border: 1px solid rgba(212, 165, 116, 0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  position: relative;
  z-index: 5;
}

.journey-number {
  width: 44px;
  height: 44px;
  background: white;
  color: #1a3a52;
  border: 2px solid #d4a574;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
}

/* === MOBILE LAYOUT (up to 768px) === */
@media (max-width: 768px) {
  .journey-timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: rgba(212, 165, 116, 0.3);
    z-index: 1;
    transform: none;
  }

  .journey-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
  }

  .journey-number {
    grid-column: 1;
    justify-self: center;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    background: #1a3a52;
    color: white;
    box-shadow: 0 0 0 15px #ffffff !important;
    position: relative;
    left: auto;
    transform: none;
  }

  .journey-content {
    grid-column: 2;
    width: 100%;
    padding: 18px 14px;
    margin: 0;
    text-align: left;
    background: #ffffff;
  }

  .journey-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    margin-left: 0;
  }

  .journey-marker { display: none; }
}

/* === DESKTOP LAYOUT (769px and above) === */
@media (min-width: 769px) {
  .journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: rgba(212, 165, 116, 0.4);
    z-index: 1;
  }

  .journey-item {
    display: flex;
    align-items: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
  }

  .journey-item:nth-child(odd) { flex-direction: row; }
  .journey-item:nth-child(even) { flex-direction: row-reverse; }

  .journey-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
  }

  .journey-content {
    width: calc(50% - 70px);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
  }

  .journey-item:nth-child(odd) .journey-content { margin-right: auto; text-align: right; }
  .journey-item:nth-child(even) .journey-content { margin-left: auto; text-align: left; }
  .journey-item:nth-child(odd) .journey-icon { margin-left: auto; }
}
/* Extracted from contact.html */

    /* Contact Page Premium Styling */
    .contact-form-wrapper {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 16px;
      padding: 32px;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    }

    .form-group {
      position: relative;
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-weight: 700;
      font-size: var(--font-size-sm);
      margin-bottom: 8px;
      color: #1a3a52;
      letter-spacing: 0.02em;
    }

    .form-input,
    .form-textarea {
      width: 100%;
      padding: 11px 14px;
      font-family: 'Inter', sans-serif;
      font-size: 1rem;
      color: #1a3a52;
      background: #ffffff;
      border: 2px solid rgba(26, 58, 82, 0.15);
      box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
      border-radius: 10px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
      outline: none;
      will-change: border-color, box-shadow, background-color;
    }

    .form-input:focus,
    .form-textarea:focus {
      border-color: #1a3a52;
      box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15), 0 2px 12px rgba(0, 0, 0, 0.06);
      background: #ffffff;
    }

    .form-input:focus-visible,
    .form-textarea:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 2px;
    }

    .form-textarea {
      min-height: 130px;
      resize: vertical;
      line-height: 1.6;
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
      color: #556b7d;
    }

    /* Validation States */
    .form-group.error .form-input,
    .form-group.error .form-textarea {
      border-color: #dc2626;
      background: rgba(220, 38, 38, 0.05);
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .form-group.success .form-input,
    .form-group.success .form-textarea {
      border-color: #10b981;
      background: rgba(16, 185, 129, 0.05);
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }

    .form-error-msg {
      color: #dc2626;
      font-size: var(--font-size-sm);
      margin-top: 5px;
      display: none;
      font-weight: 500;
      animation: slideDown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: opacity, transform;
    }

    .form-help-text {
      color: #555;
      font-size: var(--font-size-xs);
      margin-top: 3px;
      display: block;
    }

    .form-error-summary {
      display: none;
      background: rgba(220, 38, 38, 0.08);
      border: 1px solid rgba(220, 38, 38, 0.3);
      color: #9f1239;
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 16px;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .form-error-summary.show {
      display: block;
      animation: slideDown 0.25s ease;
    }

    .form-group.error .form-error-msg {
      display: block;
      animation: slideDown 0.3s ease;
    }

    .form-group.success::after {
      content: '✓';
      position: absolute;
      right: 16px;
      top: 42px;
      color: #10b981;
      font-size: 1.2rem;
      font-weight: bold;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .form-success-msg {
      background: #f0faf4;
      border: 1px solid rgba(16, 185, 129, 0.35);
      border-radius: 10px;
      padding: 14px 18px;
      margin-bottom: 20px;
      color: #10b981;
      font-weight: 500;
      display: none;
      position: relative;
      padding-left: 45px;
    }

    .form-success-msg::before {
      content: '✓';
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      width: 24px;
      height: 24px;
      background: #10b981;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
    }

    .form-success-msg.show {
      display: block;
      animation: slideDown 0.4s ease;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #1a3a52;
      color: white;
      padding: 11px 26px;
      border: none;
      border-radius: 10px;
      font-size: var(--font-size-base);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 6px 18px rgba(26, 58, 82, 0.2);
      letter-spacing: 0.02em;
      position: relative;
      overflow: visible;
      will-change: transform;
    }

    /* Hover Bridge for Contact Primary Button */
    .btn-primary::after {
      content: '';
      position: absolute;
      inset: -12px;
      background: transparent;
      z-index: -1;
    }

    .btn-primary::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s ease;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(26, 58, 82, 0.28);
      background: #132c3f;
    }

    .btn-primary:hover::before {
      left: 100%;
    }

    .btn-primary:active {
      transform: translateY(-1px);
    }

    .btn-primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      pointer-events: none;
    }

    .btn-primary .btn-spinner {
      display: none;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    .btn-primary.loading .btn-spinner {
      display: block;
    }

    .btn-primary.loading .btn-text {
      display: none;
    }

    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    /* Contact Cards */
    .contact-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin: 32px 0;
    }

    .contact-card {
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 252, 0.95) 100%);
      border: 1px solid rgba(212, 165, 116, 0.2);
      border-radius: 14px;
      padding: 24px 20px;
      text-align: center;
      transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
      box-shadow: 0 4px 15px rgba(26, 58, 82, 0.06);
      position: relative;
      will-change: transform;
    }

    /* Hover Bridge for Contact Cards */
    .contact-card::after {
      content: '';
      position: absolute;
      inset: -15px;
      background: transparent;
      z-index: -1;
    }

    .contact-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 15px 40px rgba(26, 58, 82, 0.12);
      border-color: rgba(212, 165, 116, 0.4);
    }

    .contact-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #d4a574, rgba(212, 165, 116, 0.3));
      border-radius: 14px 14px 0 0;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .contact-card:hover::before {
      opacity: 1;
    }

    .contact-card-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.1));
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      transition: all 0.3s ease;
    }

    .contact-card:hover .contact-card-icon {
      background: linear-gradient(135deg, rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0.2));
      transform: scale(1.1);
    }

    .contact-card-icon svg {
      width: 24px;
      height: 24px;
      color: #d4a574;
      stroke-width: 2;
    }

    .contact-card-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1rem, 2.5vw, 1.3rem);
      color: #1a3a52;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .contact-card-info {
      color: #666;
      font-size: var(--font-size-base);
      line-height: 1.6;
    }

    .contact-card-link {
      display: inline-block;
      color: #d4a574;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      margin-top: 8px;
    }

    .contact-card-link:hover {
      color: #1a3a52;
      transform: translateX(4px);
    }

    /* Enhanced Visit Section */
    .visit-section {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      border-radius: 16px;
      padding: 32px;
      box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
      margin-top: 32px;
    }

    .visit-section h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.8rem, 5vw, 2rem);
      color: #1a3a52;
      margin-bottom: 24px;
      font-weight: 700;
    }

    .visit-full-width-grid {
      display: grid;
      grid-template-columns: 1fr 1.5fr;
      gap: 32px;
      align-items: start;
    }

    .visit-info-column h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.35rem;
      color: #1a3a52;
      margin-bottom: 18px;
      font-weight: 700;
      position: relative;
      padding-bottom: 10px;
    }

    .visit-info-column h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 44px;
      height: 2px;
      background: #d4a574;
      border-radius: 2px;
    }

    .visit-info-column p {
      color: #555;
      line-height: 1.85;
      font-size: 0.95rem;
      margin-bottom: 18px;
    }

    .visit-info-column .contact-info-item {
      display: flex;
      align-items: baseline;
      margin-bottom: 12px;
    }

    .visit-info-column .contact-label {
      min-width: 80px;
      font-weight: 700;
      color: #1a3a52;
    }

    .visit-info-column strong {
      color: #1a3a52;
      font-weight: 700;
    }

    .contact-link-elegant {
      color: #d4a574;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .contact-link-elegant:hover {
      color: #1a3a52;
    }

    .directions-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #1a3a52;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      font-size: var(--font-size-sm);
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
      margin-top: 8px;
      box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
      position: relative;
      will-change: transform;
    }

    /* Hover Bridge for Directions Button */
    .directions-btn::after {
      content: '';
      position: absolute;
      inset: -10px;
      background: transparent;
      z-index: -1;
    }

    .directions-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 18px rgba(26, 58, 82, 0.28);
      background: #132c3f;
      color: white;
    }

    .map-column {
      height: 450px;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      border: 1px solid rgba(0, 0, 0, 0.08);
      transition: all 0.3s ease;
      position: relative;
    }

    .map-column::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 12px;
      border: 1px solid transparent;
      transition: border-color 0.3s ease;
      pointer-events: none;
    }

    .map-column:hover {
      box-shadow: 0 12px 32px rgba(26, 58, 82, 0.16);
    }

    .map-column:hover::after {
      border-color: rgba(212, 165, 116, 0.25);
    }

    @media (max-width: 1024px) {
      .visit-full-width-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .map-column {
        height: 360px;
      }
    }

    @media (max-width: 768px) {
      .contact-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 28px 0;
      }

      .contact-form-wrapper,
      .visit-section {
        padding: 24px;
      }

      .service-times-elegant {
        padding: 22px;
      }

      .map-column {
        height: 280px;
      }
    }

    /* Redesigned Service Timings */
    .service-times-elegant {
      background: linear-gradient(135deg, #1a3a52 0%, #0f2435 100%);
      border-radius: 16px;
      padding: 28px;
      box-shadow: 0 12px 40px rgba(26, 58, 82, 0.2);
      position: relative;
      overflow: hidden;
    }

    .service-times-elegant::before {
      content: '';
      position: absolute;
      top: -100px;
      right: -100px;
      width: 100%;
      max-width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
      border-radius: 50%;
    }

    .service-times-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 22px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      z-index: 1;
    }

    .clock-icon-elegant {
      width: 48px;
      height: 48px;
      background: rgba(212, 165, 116, 0.15);
      border: 2px solid rgba(212, 165, 116, 0.3);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .clock-icon-elegant svg {
      width: 24px;
      height: 24px;
      color: #d4a574;
    }

    .service-times-elegant h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.3rem;
      color: white;
      margin: 0 0 4px 0;
      font-weight: 700;
    }

    .service-subtitle {
      color: rgba(255, 255, 255, 0.6);
      font-size: var(--font-size-xs);
      margin: 0;
    }

    .service-schedule {
      position: relative;
      z-index: 1;
    }

    .schedule-item {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 12px 14px;
      margin-bottom: 8px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      cursor: default;
    }

    .schedule-category {
      color: rgba(255, 255, 255, 0.4);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin: 24px 0 12px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .schedule-category::after {
      content: '';
      height: 1px;
      flex-grow: 1;
      background: rgba(255, 255, 255, 0.1);
    }

    .schedule-category:first-of-type {
      margin-top: 0;
    }

    .schedule-item:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(212, 165, 116, 0.3);
      transform: translateX(4px);
    }

    .schedule-item:last-child {
      margin-bottom: 0;
    }

    .schedule-type {
      display: block;
      color: #d4a574;
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 6px;
      line-height: 1.2;
    }

    .schedule-badge {
      display: inline-block;
      font-size: 0.65rem;
      padding: 2px 6px;
      background: rgba(212, 165, 116, 0.15);
      color: #d4a574;
      border-radius: 4px;
      margin-left: 6px;
      vertical-align: middle;
      font-weight: 600;
      border: 1px solid rgba(212, 165, 116, 0.2);
    }

    .schedule-details {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .day-name {
      font-weight: 600;
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.82rem;
    }

    .day-time {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.75rem;
      white-space: nowrap;
    }

    .map-container {
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 480px) {
      .map-column {
        height: 220px;
      }
    }
  

/* Extracted from gallery.html */

    /* Section framing - Premium styling */
    .content-section {
      background: linear-gradient(145deg, #ffffff 0%, #fafbfc 50%, #f8f9fa 100%);
      border: 1px solid rgba(212, 175, 120, 0.12);
      border-radius: 24px;
      padding: 50px 40px 20px;
      box-shadow: 0 4px 30px rgba(26, 58, 82, 0.06), 0 10px 50px rgba(26, 58, 82, 0.03);
      position: relative;
      overflow: hidden;
    }

    .content-section::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -20%;
      width: 100%;
      max-width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(212, 175, 120, 0.06) 0%, transparent 65%);
      border-radius: 50%;
      pointer-events: none;
    }

    .section-header {
      text-align: center;
      margin-bottom: 10px;
      position: relative;
      z-index: 1;
    }

    .section-header h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 5vw, 2.8rem);
      font-weight: 700;
      background: linear-gradient(145deg, #1a3a52 0%, #2a5278 50%, #c99a60 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 18px;
      letter-spacing: -0.01em;
      line-height: 1.3;
    }

    .section-header h2::after {
      content: '';
      display: block;
      width: 70px;
      height: 3px;
      background: linear-gradient(90deg, transparent 0%, #c99a60 30%, #d4a574 50%, #c99a60 70%, transparent 100%);
      margin: 20px auto 0;
      border-radius: 2px;
      box-shadow: 0 0 12px rgba(212, 175, 120, 0.3);
    }

    .section-header p {
      color: #6d7680;
      font-size: clamp(1rem, 2.5vw, 1.15rem);
      line-height: 1.7;
      max-width: 580px;
      margin: 0 auto;
      font-weight: 400;
    }

    /* Year Filter Tabs - Premium sleek design */
    .year-filter {
      display: flex;
      justify-content: center;
      gap: 10px;
      padding: 30px 0;
      flex-wrap: wrap;
      position: relative;
    }

    .year-btn {
      padding: 10px 24px;
      border: 2px solid rgba(26, 58, 82, 0.15);
      background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
      color: #1a3a52;
      font-weight: 600;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-size: 0.9rem;
      position: relative;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(26, 58, 82, 0.05);
      outline: 2px solid transparent;
      outline-offset: 2px;
    }

    .year-btn:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 3px;
    }

    .year-btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.1) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .year-btn:hover {
      background: linear-gradient(145deg, #ffffff 0%, #f5f6f8 100%);
      transform: translateY(-2px);
      border-color: rgba(212, 175, 120, 0.5);
      box-shadow: 0 6px 20px rgba(26, 58, 82, 0.12);
    }

    .year-btn:hover::before {
      opacity: 1;
    }

    .year-btn.active {
      background: linear-gradient(145deg, #152535 0%, #1a3a52 50%, #1f4560 100%);
      color: #fff8e7;
      border-color: transparent;
      box-shadow: 0 8px 28px rgba(26, 58, 82, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .year-btn.active::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 50%;
      transform: translateX(-50%);
      width: 40%;
      height: 3px;
      background: linear-gradient(90deg, transparent, #d4a574, transparent);
      border-radius: 2px;
    }

    /* Album Cards Grid - Responsive Density */
    .albums-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 20px;
      padding: 32px 0 80px;
    }

    /* Tablet large - 4-5 columns, tighter spacing */
    @media (max-width: 1200px) {
      .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
        padding: 28px 0 60px;
      }
    }

    /* Tablet - 3-4 columns */
    @media (max-width: 1024px) {
      .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 14px;
        padding: 24px 0 50px;
      }
    }

    /* Tablet small - 2-3 columns */
    @media (max-width: 768px) {
      .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 20px 0 40px;
      }
    }

    /* Mobile - 2 columns max, readable spacing */
    @media (max-width: 480px) {
      .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 16px 0 32px;
      }
    }

    .album-card {
      background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
      border-radius: 20px;
      overflow: visible;
      /* Changed to visible for hover bridge */
      box-shadow: 0 4px 20px rgba(26, 58, 82, 0.07), 0 10px 40px rgba(26, 58, 82, 0.05);
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      border: 2px solid rgba(212, 175, 120, 0.12);
      will-change: transform;
      animation: cardFadeIn 0.6s ease-out forwards;
      opacity: 1;
      position: relative;
      outline: 2px solid transparent;
      outline-offset: 2px;
      display: flex;
      flex-direction: column;
      height: 100%;
      will-change: transform;
    }

    /* Album Card Hover Bridge - Enhanced for stability */
    .album-card::after {
      content: '';
      position: absolute;
      inset: -20px;
      background: transparent;
      z-index: -1;
    }

    .album-card:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 4px;
    }


    @keyframes cardFadeIn {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Unified simpler animation - reduces overhead */
    .album-card:nth-child(n+1) {
      animation-delay: 0.05s;
    }

    .album-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 48px rgba(26, 58, 82, 0.14), 0 8px 24px rgba(212, 175, 120, 0.1);
      border-color: rgba(212, 175, 120, 0.5);
    }


    .album-cover {
      position: relative;
      height: 180px;
      overflow: hidden;
      background: linear-gradient(145deg, #e8e9eb 0%, #f0f1f3 50%, #e8e9eb 100%);
      background-size: 200% 100%;
      animation: shimmer 1.8s ease-in-out infinite;
      border-radius: 18px 18px 0 0;
      flex-shrink: 0;
    }

    @media (max-width: 768px) {
      .album-cover {
        height: 150px;
      }
    }

    @media (max-width: 480px) {
      .album-cover {
        height: 140px;
      }
    }

    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    .album-cover:has(img.loaded) {
      animation: none;
      background: none;
    }

    .album-cover::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(165deg,
          transparent 40%,
          rgba(26, 58, 82, 0.08) 70%,
          rgba(21, 37, 53, 0.25) 100%);
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
    }

    .album-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.35s ease;
      opacity: 0;
    }

    .album-cover img.loaded {
      opacity: 1;
    }

    .album-card:hover .album-cover img {
      transform: scale(1.06);
      filter: brightness(1.02);
    }

    .album-card:hover .album-cover::after {
      opacity: 1;
    }

    .album-photo-count {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: linear-gradient(145deg, rgba(21, 37, 53, 0.95) 0%, rgba(26, 58, 82, 0.92) 100%);
      color: #fff8e7;
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 6px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      font-weight: 700;
      border: 1px solid rgba(212, 175, 120, 0.3);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      z-index: 5;
      transition: all 0.4s ease;
      letter-spacing: 0.3px;
    }

    .album-card:hover .album-photo-count {
      background: linear-gradient(145deg, #d4a574 0%, #c99a60 100%);
      color: #fff;
      border-color: transparent;
      transform: scale(1.05);
    }

    .album-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      padding: 12px 14px;
      background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
      position: relative;
      min-height: 75px;
    }

    .album-info::before {
      content: '';
      position: absolute;
      top: 0;
      left: 14px;
      right: 14px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 120, 0.3), transparent);
    }

    .album-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(0.85rem, 2.5vw, 0.95rem);
      font-weight: 700;
      color: #1a3a52;
      margin: 0;
      line-height: 1.3;
      transition: color 0.3s ease;
      text-align: center;
      display: block;
      overflow: hidden;
      max-height: 2.6em;
      word-break: break-word;
    }

    @supports (-webkit-line-clamp: 2) {
      .album-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }

    .album-card:hover .album-title {
      color: #c99a60;
    }

    .album-date {
      color: #8b9299;
      font-size: 0.8rem;
      letter-spacing: 0.01em;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      font-weight: 500;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .album-date::before {
      content: '';
      width: 3px;
      height: 3px;
      background: linear-gradient(145deg, #d4a574, #c99a60);
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* Album Detail View - Premium elegant design */
    .album-detail {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 120, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 120, 0.04) 0%, transparent 40%),
        linear-gradient(145deg, #0a1622 0%, #152535 50%, #1a3a52 100%);
      z-index: 2000;
      overflow-y: auto;
      padding: 16px;
      display: none;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .album-detail.active {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }

    .album-detail.closing {
      opacity: 0;
      transform: translateY(20px);
      pointer-events: none;
    }

    .album-detail-header {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 18px 24px;
      background: rgba(255, 255, 255, 0.04);
      position: sticky;
      top: 0;
      z-index: 10;
      border-radius: 20px;
      margin: 0 auto 20px;
      max-width: 1300px;
      box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(212, 175, 120, 0.18);
      gap: 16px;
      backdrop-filter: blur(28px) saturate(180%);
      -webkit-backdrop-filter: blur(28px) saturate(180%);
    }

    .album-detail-header::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 24px;
      right: 24px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(212, 175, 120, 0.4), transparent);
    }

    .album-detail-title {
      color: #fff8e7;
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.2rem, 2.5vw, 1.5rem);
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      text-align: center;
      flex: 1;
      word-wrap: break-word;
      overflow-wrap: break-word;
      line-height: 1.3;
      margin: 0;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .album-detail-close {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff8e7;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      font-size: 1.6rem;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      outline: 2px solid transparent;
      outline-offset: 2px;
      flex-shrink: 0;
      font-weight: 300;
      position: relative;
      overflow: hidden;
    }

    .album-detail-close::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(145deg, rgba(212, 175, 120, 0.2) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .album-detail-close:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      transform: scale(1.08);
      border-color: rgba(212, 175, 120, 0.5);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .album-detail-close:hover::before {
      opacity: 1;
    }

    /* Masonry Layout for Photos - Optimized Density */
    .album-photos-grid {
      column-count: 5;
      column-gap: 12px;
      max-width: 1300px;
      margin: 0 auto;
      padding: 24px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 20px;
      box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
      position: relative;
      border: 1px solid rgba(255, 255, 255, 0.04);
    }

    @media (max-width: 1600px) {
      .album-photos-grid {
        column-count: 4;
      }
    }

    @media (max-width: 1400px) {
      .album-photos-grid {
        column-count: 3;
        column-gap: 11px;
        padding: 20px;
      }
    }

    @media (max-width: 1200px) {
      .album-photos-grid {
        column-count: 3;
        column-gap: 10px;
      }
    }

    @media (max-width: 960px) {
      .album-photos-grid {
        column-count: 2;
        column-gap: 10px;
        padding: 18px;
      }
    }

    @media (max-width: 768px) {
      .album-photos-grid {
        column-count: 2;
        column-gap: 8px;
        padding: 16px;
      }
    }

    @media (max-width: 480px) {
      .album-photos-grid {
        column-count: 1;
        padding: 12px;
      }
    }

    /* Performance Optimized Background Particles */
    .detail-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      background: radial-gradient(circle, rgba(212, 175, 120, 0.06) 0%, transparent 70%);
      border-radius: 50%;
      filter: blur(50px);
      animation: float 25s infinite linear;
      will-change: transform;
    }

    @keyframes float {
      0% { transform: translate(0, 0); }
      50% { transform: translate(80px, 40px); }
      100% { transform: translate(0, 0); }
    }

    .album-photo {
      break-inside: avoid;
      margin-bottom: 12px;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      position: relative;
      background: rgba(255, 255, 255, 0.03);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.25);
      animation: photoEntrance 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
    }

    @keyframes photoEntrance {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
      }
    }

    .album-photo:has(img.loaded) {
      animation: none;
      background: none;
    }

    /* Album Photo Hover Bridge */
    .album-photo::after {
      content: '';
      position: absolute;
      inset: -10px;
      background: transparent;
      z-index: -1;
    }

    .album-photo::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(165deg,
          transparent 40%,
          rgba(212, 175, 120, 0.02) 70%,
          rgba(26, 58, 82, 0.06) 100%);
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
      z-index: 1;
    }

    .album-photo:hover {
      transform: translateY(-4px) scale(1.01);
      box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 120, 0.2);
      border-color: rgba(212, 175, 120, 0.3);
    }

    .album-photo:hover::before {
      opacity: 1;
    }

    .album-photo img {
      width: 100%;
      height: auto;
      display: block;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      opacity: 0;
    }

    .album-photo img.loaded {
      opacity: 1;
    }

    .album-photo:hover img {
      transform: scale(1.03);
      filter: brightness(1.01);
    }

    .album-photo-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 24px 14px 14px;
      background: linear-gradient(to top, rgba(21, 37, 53, 0.95) 0%, rgba(26, 58, 82, 0.7) 50%, transparent 100%);
      color: #fff8e7;
      font-size: 0.82rem;
      font-weight: 600;
      opacity: 0;
      transform: translateY(12px);
      transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      pointer-events: none;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      z-index: 2;
    }

    .album-photo:hover .album-photo-caption {
      opacity: 1;
      transform: translateY(0);
    }

    /* Lightbox - Premium elegant design */
    .lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(145deg, rgba(10, 16, 24, 0.98) 0%, rgba(21, 37, 53, 0.97) 100%);
      z-index: 3000;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      animation: lightboxFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      padding-bottom: 110px;
      overflow: hidden;
    }

    @keyframes lightboxFadeIn {
      from {
        opacity: 0;
        backdrop-filter: blur(0px);
      }

      to {
        opacity: 1;
        backdrop-filter: blur(16px);
      }
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-close {
      position: absolute;
      top: 24px;
      right: 24px;
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
      border: 2px solid rgba(212, 175, 120, 0.3);
      color: #fff8e7;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      width: 54px;
      height: 54px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
      outline: 2px solid transparent;
      outline-offset: 2px;
    }

    .lightbox-close:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 3px;
    }

    .lightbox-close:hover {
      background: linear-gradient(145deg, #d4a574 0%, #c99a60 100%);
      border-color: transparent;
      transform: scale(1.1) rotate(180deg);
      box-shadow: 0 6px 24px rgba(212, 175, 120, 0.35);
    }

    .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
      border: 2px solid rgba(212, 175, 120, 0.3);
      color: #fff8e7;
      font-size: 1.5rem;
      width: 60px;
      height: 60px;
      border-radius: 18px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
      outline: 2px solid transparent;
      outline-offset: 2px;
    }

    .lightbox-nav:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 3px;
    }

    .lightbox-nav:hover {
      background: linear-gradient(145deg, #d4a574 0%, #c99a60 100%);
      border-color: transparent;
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 6px 24px rgba(212, 175, 120, 0.35);
    }

    .lightbox-prev {
      left: 32px;
    }

    .lightbox-next {
      right: 32px;
    }

    @media (max-width: 768px) {
      .lightbox-prev {
        left: 12px;
      }

      .lightbox-next {
        right: 12px;
      }
    }

    .lightbox-content {
      display: flex;
      align-items: center;
      justify-content: center;
      animation: contentSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }

    @keyframes contentSlideIn {
      from {
        opacity: 0;
        transform: scale(0.92);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .lightbox-content img {
      max-width: 85vw;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(212, 175, 120, 0.15);
      background: rgba(0, 0, 0, 0.1);
      position: relative;
      opacity: 1;
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .lightbox-content img.switching {
      opacity: 0;
    }

    .lightbox-caption {
      position: absolute;
      bottom: 115px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff8e7;
      font-size: 0.95rem;
      text-align: center;
      background: linear-gradient(145deg, rgba(21, 37, 53, 0.85) 0%, rgba(26, 58, 82, 0.8) 100%);
      padding: 14px 32px;
      border-radius: 999px;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(212, 175, 120, 0.25);
      animation: captionSlideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
      max-width: 80vw;
      font-weight: 500;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    }

    @media (max-width: 768px) {
      .lightbox-caption {
        bottom: 85px;
        font-size: 0.85rem;
        padding: 10px 24px;
        max-width: 90vw;
      }
    }

    @keyframes captionSlideUp {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }

    /* Image Counter */
    .lightbox-counter {
      position: absolute;
      top: 28px;
      left: 50%;
      transform: translateX(-50%);
      color: #fff8e7;
      font-size: 0.92rem;
      font-weight: 600;
      background: linear-gradient(145deg, rgba(21, 37, 53, 0.8) 0%, rgba(26, 58, 82, 0.75) 100%);
      padding: 10px 22px;
      border-radius: 24px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 175, 120, 0.2);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.5px;
    }

    /* Keyboard hint */
    .lightbox-hint {
      position: absolute;
      bottom: 28px;
      right: 90px;
      color: rgba(255, 248, 231, 0.75);
      font-size: 0.85rem;
      font-weight: 500;
      background: linear-gradient(145deg, rgba(21, 37, 53, 0.85) 0%, rgba(26, 58, 82, 0.8) 100%);
      padding: 8px 16px;
      border-radius: 20px;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(212, 175, 120, 0.25);
      opacity: 0;
      animation: hintFadeIn 0.5s ease-out 0.8s forwards, hintFadeOut 0.4s ease-out 4.5s forwards;
      pointer-events: none;
      white-space: nowrap;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.3px;
    }

    @media (max-width: 768px) {
      .lightbox-hint {
        display: none;
      }
    }

    @keyframes hintFadeIn {
      from {
        opacity: 0;
        transform: translateX(0) translateY(-10px);
      }

      to {
        opacity: 1;
        transform: translateX(0) translateY(0);
      }
    }

    @keyframes hintFadeOut {
      from {
        opacity: 1;
      }

      to {
        opacity: 0;
      }
    }

    /* Lightbox Thumbnails Bar */
    .lightbox-thumbnails {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 120px;
      background: linear-gradient(to top, rgba(10, 16, 24, 0.98) 0%, rgba(21, 37, 53, 0.9) 100%);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-top: 1px solid rgba(212, 175, 120, 0.2);
      display: flex;
      gap: 12px;
      padding: 14px 24px;
      overflow-x: auto;
      z-index: 3001;
      align-items: center;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
    }

    .lightbox-thumbnails::-webkit-scrollbar {
      height: 5px;
    }

    .lightbox-thumbnails::-webkit-scrollbar-track {
      background: transparent;
    }

    .lightbox-thumbnails::-webkit-scrollbar-thumb {
      background: rgba(212, 175, 120, 0.3);
      border-radius: 10px;
    }

    .lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
      background: rgba(212, 175, 120, 0.5);
    }

    /* Lightbox Thumbnail Items */
    .lightbox-thumb {
      width: 85px;
      height: 85px;
      border-radius: 14px;
      overflow: hidden;
      cursor: pointer;
      border: 2.5px solid rgba(255, 255, 255, 0.15);
      transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      opacity: 0.55;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
      scroll-snap-align: center;
      outline: 2px solid transparent;
      outline-offset: 2px;
      flex-shrink: 0;
    }

    .lightbox-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .lightbox-thumb:focus-visible {
      outline: 2px solid #d4a574;
      outline-offset: 3px;
    }

    .lightbox-thumb:hover {
      opacity: 0.8;
      border-color: rgba(212, 175, 120, 0.5);
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .lightbox-thumb:hover img {
      transform: scale(1.05);
    }

    .lightbox-thumb.active {
      opacity: 1;
      border-color: #d4a574;
      box-shadow: 0 0 20px rgba(212, 175, 120, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
      transform: translateY(-3px);
    }

    /* Loading Skeleton - Enhanced */
    .skeleton {
      background: linear-gradient(90deg, rgba(212, 175, 120, 0.08) 25%, rgba(212, 175, 120, 0.15) 50%, rgba(212, 175, 120, 0.08) 75%);
      background-size: 200% 100%;
      animation: skeleton-loading 1.8s ease-in-out infinite;
    }

    @keyframes skeleton-loading {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .album-card.skeleton {
      cursor: default;
      pointer-events: none;
    }

    .album-card.skeleton:hover {
      transform: none;
      box-shadow: 0 4px 20px rgba(26, 58, 82, 0.06);
    }

    /* Empty State */
    .no-albums {
      text-align: center;
      padding: 120px 24px 100px;
      color: #6d7680;
      grid-column: 1 / -1;
    }

    .no-albums svg {
      width: 100px;
      height: 100px;
      margin: 0 auto 32px;
      opacity: 0.35;
      color: #c99a60;
      display: block;
    }

    .no-albums p {
      font-size: 1.1rem;
      margin: 0;
      line-height: 1.6;
    }

    .no-albums p:first-of-type {
      font-size: 1.3rem;
      font-weight: 600;
      color: #1a3a52;
      margin-bottom: 12px;
    }

    .gallery-state {
      grid-column: 1 / -1;
      text-align: center;
      padding: 64px 24px;
      color: #6d7680;
      font-size: 1.02rem;
      line-height: 1.6;
    }

    .gallery-state.error {
      color: #9f1239;
    }

    @media (max-width: 768px) {
      .content-section {
        padding: 40px 24px 20px;
      }

      .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 14px;
      }

      .section-header p {
        font-size: 1rem;
      }

      .year-filter {
        gap: 12px;
        padding: 32px 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-left: 16px;
        padding-right: 16px;
      }

      .year-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
        flex-shrink: 0;
        scroll-snap-align: center;
      }

      .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 18px;
        padding: 24px 0 60px;
      }

      .album-cover {
        min-height: 200px;
      }

      .album-info {
        padding: 22px 24px;
      }

      .album-detail-header {
        padding: 18px 22px;
        position: sticky;
        top: 0;
      }

      .album-detail-title {
        font-size: 1.4rem;
      }

      .album-detail-close {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
      }

      .album-photos-grid {
        column-count: 2;
        column-gap: 12px;
        padding-bottom: 140px;
      }

      .lightbox-close,
      .lightbox-nav {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
      }

      .lightbox-prev {
        left: 14px;
      }

      .lightbox-next {
        right: 14px;
      }

      .lightbox-thumbnails {
        height: 115px;
        padding: 14px 20px;
        gap: 12px;
      }

      .lightbox-thumb {
        width: 78px;
        height: 78px;
      }

      @media (max-width: 480px) {
        .albums-grid {
          grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
          gap: 14px;
        }

        .album-detail-title {
          font-size: 1.2rem;
        }

        .lightbox-counter {
          font-size: 0.85rem;
          padding: 8px 16px;
        }
      }
    }
  
/* Force white background and prevent browser autofill "coloring" */
.form-input, .form-textarea, .form-input:focus, .form-textarea:focus {
  background-color: #ffffff !important;
}

/* Specifically target Webkit browser autofill (Chrome, Edge, Safari) */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover, 
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1a3a52 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Enhanced visibility for required field asterisks */
.form-label::after {
  display: inline-block;
  margin-left: 4px;
  color: #b88d5f; /* Gold accent */
}

/* Ensure data-animate doesn't keep items hidden for too long */
[data-animate]:not(.animated) {
  opacity: 0.1; /* Show a faint ghostly outline so people know something is there */
  filter: blur(4px);
}

/* Fix for invisible select options */
select.form-input option {
  color: #1a3a52 !important;
  background-color: #ffffff !important;
  padding: 10px;
}

/* Ensure the select itself has a visible arrow and readable color */
select.form-input {
  appearance: auto !important; /* Standard browser arrow for better reliability */
  -webkit-appearance: listbox !important;
  color: #1a3a52 !important;
}

/* Enhanced title legibility for no-overlay heroes */
.worship-hero .hero-title {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.4) !important;
}
.worship-hero .hero-subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  font-weight: 600 !important;
}

/* FORCE NO OVERLAY ON WORSHIP HERO */
.worship-hero .hero-overlay,
.worship-hero .hero-bg-gradient,
.worship-hero .noise-overlay,
.worship-hero .hero-home-overlay {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Ensure title is readable on bright images since the overlay is gone */
.worship-hero .hero-overlay {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 0, 0, 0.5) !important;
}
.worship-hero .hero-title {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 0.8) !important;
}
.worship-hero .hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1) !important;
  font-weight: 600 !important;
}
