/* Import premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Color Palette derived from Logo (Light Theme) */
  --bg-main: #f9f6ec;             /* Main warm cream background from logo */
  --bg-card: #ffffff;             /* Pure white for contrast cards/containers */
  --bg-banner: #f1ebd9;           /* Light golden-beige for separating sections */
  
  --accent-purple: #4d1979;       /* Deep Logo Purple (Text & Primary Buttons) */
  --accent-purple-hover: #3b115e; /* Hover dark purple state */
  --accent-purple-light: #917cb5; /* Logo Lavender */
  --accent-gold: #c2b069;         /* Logo Cross Gold (adjusted for light contrast) */
  --accent-gold-hover: #ab9b5b;   /* Hover gold state */
  
  --text-main: #1f0b35;           /* Deepest purple/plum for high-contrast body text */
  --text-muted: #5e4c70;          /* Muted purple-gray for subtext and captions */
  --border-color: rgba(77, 25, 121, 0.08); /* Subtle purple border tint */
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing & Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 12px 30px -12px rgba(31, 11, 53, 0.08);
  --glass-bg: rgba(249, 246, 236, 0.85); /* Light glassmorphism */
  --glass-border: rgba(77, 25, 121, 0.05);
}

/* CSS Reset & Global Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-purple);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Header & Glassmorphic Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(249, 246, 236, 0.98);
  box-shadow: var(--shadow-premium);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-purple);
}

.logo-text span {
  color: var(--accent-gold);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-purple);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Placeholder Styling for empty/missing images */
.image-placeholder {
  background: linear-gradient(135deg, #ede9da 0%, #f4f0e3 100%);
  border: 2px dashed rgba(77, 25, 121, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  aspect-ratio: 16/9;
  font-size: 0.9rem;
  font-weight: 500;
}

.image-placeholder::before {
  content: '🖼️';
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.image-placeholder-span {
  font-family: monospace;
  color: var(--accent-purple);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 1rem;
  margin-top: 75px; /* Space for fixed nav */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(249, 246, 236, 0.25) 0%, rgba(249, 246, 236, 0.96) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  animation: fade-in-up 1s ease-out;
}

.hero-subtitle {
  color: var(--accent-purple);
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 850;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--accent-purple);
  text-shadow: 0 2px 8px rgba(31, 11, 53, 0.05);
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(77, 25, 121, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}

.btn-secondary:hover {
  background: rgba(77, 25, 121, 0.05);
  border-color: var(--accent-purple-hover);
  transform: translateY(-2px);
}

/* Service Times Banner */
.service-banner {
  background: var(--bg-banner);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 1rem;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.4);
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-premium);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.service-time {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-header);
  color: var(--accent-purple);
}

.service-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Common Section Layouts */
section {
  padding: 3.5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  color: var(--accent-gold);
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: var(--accent-purple);
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Announcements / Slide Gallery styling */
.announcements-wrapper {
  margin-bottom: 2rem;
}

/* Carousel Styles for Slide Images */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.carousel-slide {
  display: none;
  animation: fade-in 0.5s ease-in-out;
  aspect-ratio: 16/9;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(249, 246, 236, 0.9);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--accent-purple);
  color: #ffffff;
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(77, 25, 121, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.carousel-dot.active {
  background: var(--accent-purple);
  width: 24px;
  border-radius: 5px;
}

/* Event Cards Layout */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 25, 121, 0.2);
  box-shadow: 0 16px 40px -16px rgba(31, 11, 53, 0.12);
}

.event-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
}

.event-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-badge {
  background: rgba(77, 25, 121, 0.06);
  color: var(--accent-purple);
  border: 1px solid rgba(77, 25, 121, 0.1);
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.event-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent-purple);
}

.event-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.event-details {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-details li::before {
  content: '•';
  color: var(--accent-gold);
  font-weight: bold;
}

/* Holiday Landing Pages */
.holiday-hero {
  height: 30vh;
  min-height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  margin-top: 75px;
}

.holiday-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(249, 246, 236, 0.4) 0%, var(--bg-main) 100%);
  z-index: 1;
}

.holiday-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fade-in-up 1s ease-out;
}

.holiday-tag {
  color: var(--theme-accent, var(--accent-purple));
  font-family: var(--font-header);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.easter-theme {
  --theme-accent: #6b46c1;       /* Deep rich violet for contrast on light theme */
  --theme-accent-hover: #553c9a;
}

.christmas-theme {
  --theme-accent: #c53030;      /* Deep rich crimson */
  --theme-accent-hover: #9b2c2c;
}

.holiday-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.holiday-main {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--shadow-premium);
}

.holiday-main h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
}

.holiday-main p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.holiday-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 2rem;
  box-shadow: var(--shadow-premium);
}

.sidebar-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  color: var(--accent-purple);
}

.holiday-time-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.holiday-time-item {
  display: flex;
  flex-direction: column;
}

.holiday-time-title {
  font-weight: 700;
  color: var(--text-main);
}

.holiday-time-desc {
  font-size: 0.88rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* About Us & Leaders page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
}

.leadership-section {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-premium);
}

.leader-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.leader-img-wrapper {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-purple);
  box-shadow: var(--shadow-premium);
  aspect-ratio: 4 / 5;
}

.leader-title {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.leader-bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Ministries styling */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.ministry-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
}

.ministry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 25, 121, 0.2);
  box-shadow: 0 16px 40px -16px rgba(31, 11, 53, 0.12);
}

.ministry-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}

.ministry-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-purple);
}

.ministry-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Giving Page Styles */
.giving-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.giving-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-premium);
}

.giving-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 25, 121, 0.25);
  box-shadow: 0 16px 40px -16px rgba(31, 11, 53, 0.12);
}

.giving-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
}

.giving-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Contact Details Page styling */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
}

.contact-item-icon {
  font-size: 1.75rem;
  color: var(--accent-purple);
}

.contact-item-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--accent-purple);
}

.contact-item-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input, textarea, select {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 25, 121, 0.1);
}

/* Footer styling */
footer {
  background: #f0ebde; /* Warm light beige from logo palette for separation */
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  color: var(--accent-purple);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item i {
  color: var(--accent-purple);
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
  section {
    padding: 4rem 1rem;
  }
  
  .holiday-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .leader-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .leader-img-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    gap: 1.5rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Sermons and Video Modal Styles */
.sermon-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-premium);
}

.sermon-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 25, 121, 0.2);
  box-shadow: 0 16px 40px -16px rgba(31, 11, 53, 0.12);
}

.sermon-thumb-container {
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.sermon-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.sermon-thumb-container:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 11, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.sermon-thumb-container:hover .play-overlay {
  background: rgba(31, 11, 53, 0.4);
  opacity: 1;
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  padding-left: 4px; /* Align the play icon arrow */
}

.sermon-thumb-container:hover .play-btn-circle {
  background: var(--accent-gold);
  transform: scale(1.1);
}

/* Modals */
.modal-overlay {
  display: none; /* Controlled by JS */
  position: fixed;
  inset: 0;
  background: rgba(18, 7, 31, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fade-in 0.3s ease-out;
}

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

.modal-content-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.8);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: var(--text-main);
  transform: scale(1.05);
}

.modal-iframe-container {
  width: 100%;
  height: 100%;
}

.modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Lucide Icons Dimensions & Colors */
.service-icon i,
.ministry-icon i,
.contact-item-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  stroke: var(--accent-purple);
  stroke-width: 1.8px;
}

.play-btn-circle i {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2px;
}

/* Responsive Map Embed Container */
.map-iframe-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  background: var(--bg-card);
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-iframe-container {
    height: 300px;
  }
}

/* Scroll-in Animations & Alternating Ministry Columns */
.ministry-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  transition: transform 0.3s var(--transition-smooth);
}

.ministry-row:hover {
  transform: translateY(-4px);
}

.ministry-image-col {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  position: relative;
  background: var(--bg-banner);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ministry-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg-banner);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 1.5rem;
  text-align: center;
  flex-direction: column;
}

.ministry-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ministry-text-col .ministry-icon {
  font-size: 2.2rem;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(77, 25, 121, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(77, 25, 121, 0.08);
}

.ministry-text-col .ministry-icon i {
  width: 28px;
  height: 28px;
  stroke: var(--accent-purple);
}

.ministry-text-col .ministry-title {
  font-size: 1.8rem;
  font-family: var(--font-header);
  color: var(--accent-purple);
}

.ministry-text-col .ministry-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Alternate order */
.ministry-row:nth-child(even) .ministry-image-col {
  order: 2;
}
.ministry-row:nth-child(even) .ministry-text-col {
  order: 1;
}

/* Scroll Animation States */
.slide-in-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .ministry-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
  }
  .ministry-row:nth-child(even) .ministry-image-col {
    order: 0;
  }
  .ministry-row:nth-child(even) .ministry-text-col {
    order: 0;
  }
}

/* About Page Image Wrappers & Fallbacks */
.about-img-wrapper {
  background: var(--bg-banner);
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-img-wrapper {
  position: relative;
  background: var(--bg-banner);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrapper img,
.leader-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About Page Slideshow */
.about-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.about-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Floating Plan Your Visit Widget */
#surveyBubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  height: 65px;
  background-color: var(--accent-purple);
  border-radius: 40px;
  cursor: pointer;
  box-shadow: var(--shadow-premium);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 0;
  transition: width 0.3s, height 0.3s, border-radius 0.3s, background-color 0.3s, transform 0.2s;
  line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#surveyBubble:hover {
  background-color: #561d87;
  transform: scale(1.02);
}

#surveyBubble span {
  font-size: 13px;
  font-weight: normal;
  margin-top: 2px;
  opacity: 0.9;
}

#surveyIframeContainer {
  position: fixed;
  bottom: 95px; /* Floating directly above the bubble */
  right: 20px;
  width: 400px;
  height: 600px;
  border-radius: 20px;
  display: none;
  z-index: 9998;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

#surveyIframeContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
  margin: 0;
  padding: 0;
  display: block;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 480px) {
  #surveyIframeContainer {
    width: calc(100% - 30px);
    height: 70vh;
    right: 15px;
    bottom: 95px;
  }
}

/* Pulsing Red Dot for Live Status */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(0.9);
    opacity: 1;
  }
}

