/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.scroll-animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.scroll-animate-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}

.scroll-animate-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}

/* Enhanced Theme Variables */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --panel: #ffffff;
  --text: #111827;
  --text-light: #374151;
  --muted: #6b7280;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-300: #a5b4fc;
  --brand-200: #c7d2fe;
  --brand-100: #e0e7ff;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.12);
  --border-light: rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

[data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #1f2937;
  --panel: #1f2937;
  --text: #f9fafb;
  --muted: #9ca3af;
  --brand-500: #818cf8;
  --brand-600: #6366f1;
  --brand-700: #4f46e5;
  --brand-300: #a5b4fc;
  --brand-200: #c7d2fe;
  --accent: #22d3ee;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --border: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
}

/* Debug: Make dark theme more obvious */
[data-theme="dark"] body {
  background: #111827 !important;
  color: #f9fafb !important;
}

[data-theme="dark"] .site-header {
  background: #1f2937 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Reset */
* { box-sizing: border-box; }
html, body { 
  height: 100%; 
  margin: 0; 
  padding: 0; 
}
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,0.14), transparent 60%),
              radial-gradient(1000px 400px at 110% 10%, rgba(8,145,178,0.12), transparent 55%),
              var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
main { margin: 0; padding: 0; }

.container { 
  width: min(1200px, 95%); 
  margin: 0 auto; 
  padding: 0 var(--spacing-md);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -40px; background: var(--panel); color: var(--text);
  padding: 0.5rem 0.75rem; border-radius: 6px; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  backdrop-filter: saturate(1.5) blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.6)); 
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0;
  padding: 0;
}

[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(17,24,39,0.85), rgba(17,24,39,0.6));
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 100%;
  margin: 0 auto;
  gap: 1rem;
  min-height: 60px;
  width: 100%;
}
/* Header styles moved to header-enhanced.css */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.3px; }
.brand img { filter: drop-shadow(0 4px 8px rgba(79,70,229,0.25)); }


/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: var(--spacing-sm); 
  padding: var(--spacing-md) var(--spacing-lg); 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
  font-weight: 600; 
  color: var(--text); 
  backdrop-filter: blur(6px); 
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::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:hover::before {
  left: 100%;
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-300);
}

.btn-primary { 
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500)); 
  border-color: transparent; 
  box-shadow: var(--shadow-lg);
  color: #ffffff;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 8px 20px rgba(67,56,202,0.4);
}

.btn-secondary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.btn-ghost { 
  background: rgba(0,0,0,0.04); 
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(0,0,0,0.08);
  border-color: var(--border);
}

[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,0.08);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn-small { 
  padding: 0.55rem 0.8rem; 
  border-radius: 10px; 
  font-size: 0.92rem; 
}

/* Sections */
.section { 
  padding: var(--spacing-3xl) 0; 
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

[data-theme="dark"] .section.alt {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.highlight { 
  background: radial-gradient(600px 240px at 10% 10%, rgba(8,145,178,0.08), transparent 60%),
              radial-gradient(600px 240px at 110% 0%, rgba(99,102,241,0.10), transparent 60%), 
              var(--bg-alt);
}

[data-theme="dark"] .section.highlight {
  background: radial-gradient(600px 240px at 10% 10%, rgba(34,211,238,0.12), transparent 60%),
              radial-gradient(600px 240px at 110% 0%, rgba(129,140,248,0.15), transparent 60%), 
              var(--bg-alt);
}

.section h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin: 0 0 1rem; letter-spacing: 0.3px; }
.section .muted { color: var(--muted); }

.grid { 
  display: grid; 
  gap: var(--spacing-xl); 
  align-items: start;
}

.grid.two { 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.grid.three { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.cards .card { 
  background: var(--panel); 
  border: 1px solid var(--border-light); 
  border-radius: var(--radius-lg); 
  padding: var(--spacing-xl); 
  box-shadow: var(--shadow);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: all 0.3s ease;
  position: relative;
}

.cards .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-300);
}

.cards .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cards .card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .cards .card {
  border: 1px solid rgba(255,255,255,0.1);
}

.card .muted { color: var(--muted); }

.stack { display: grid; gap: 0.8rem; }

/* Hero */
/* Unique Hero Section */
.hero { 
  position: relative; 
  overflow: hidden; 
  height: 90vh;
  max-height: 900px;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.hero-bg { 
  position: absolute; 
  inset: 0; 
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  filter: brightness(0.7) contrast(1.2) saturate(1.1);
  border: none;
}

.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(135deg, 
    rgba(99,102,241,0.4) 0%, 
    rgba(8,145,178,0.3) 30%,
    rgba(0,0,0,0.2) 60%,
    rgba(99,102,241,0.5) 100%);
  z-index: 2;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 8px 32px rgba(255,255,255,0.1);
}

.floating-icon svg {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.9);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.floating-icon.icon-1 {
  top: 20%;
  left: 10%;
}

.floating-icon.icon-2 {
  top: 30%;
  right: 15%;
}

.floating-icon.icon-3 {
  top: 60%;
  left: 20%;
}

.floating-icon.icon-4 {
  top: 70%;
  right: 10%;
}

.floating-icon.icon-5 {
  top: 40%;
  left: 50%;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-25px) rotate(8deg) scale(1.05); 
    opacity: 1;
  }
}

/* Animated Particles */
.animated-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  opacity: 0;
}

.particle:nth-child(1) {
  left: 10%;
}

.particle:nth-child(2) {
  left: 20%;
}

.particle:nth-child(3) {
  left: 30%;
}

.particle:nth-child(4) {
  left: 70%;
}

.particle:nth-child(5) {
  left: 80%;
}

.particle:nth-child(6) {
  left: 90%;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Hero Content */
.hero-inner { 
  padding: 0; 
  text-align: center; 
  position: relative; 
  z-index: 4;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Live Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(255,68,68,0.3);
  order: 1;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,68,68,0.3); }
  50% { box-shadow: 0 0 30px rgba(255,68,68,0.6); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  order: 2;
}



.title-line {
  display: block;
  animation: slideInUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
  color: white;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
  color: white;
  text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Description */
.hero-description { 
  color: rgba(255,255,255,0.95); 
  font-size: 1.2rem; 
  margin: 0;
  line-height: 1.6;
  max-width: 650px;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-weight: 400;
  order: 3;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero CTA */
.hero-cta { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
  justify-content: center;
  margin: 0;
  animation: fadeInUp 1s ease-out 1s forwards;
  opacity: 0;
  transform: translateY(30px);
  order: 4;
}

.btn-animated {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-animated::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-animated:hover::before {
  left: 100%;
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-animated:hover .btn-icon {
  transform: translateX(3px);
}

/* Service Times */
.service-times-container {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 1rem;
  max-width: 650px;
  margin: 0;
  animation: fadeInUp 1s ease-out 1.2s forwards;
  opacity: 0;
  transform: translateY(30px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  order: 5;
}

.service-times-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: center;
}

.service-times { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.6rem;
  align-items: center;
  padding: 0.6rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.service-day {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  grid-column: 1;
  grid-row: 1;
}

.service-time {
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.85rem;
  grid-column: 2;
  grid-row: 1;
}

.service-type {
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    height: 75vh;
    min-height: 500px;
    max-height: 600px;
  }
  
  .hero-content {
    padding: 0 1rem;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }
  
  .hero-description {
    font-size: 1.1rem;
    max-width: 500px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .service-times-container {
    padding: 1rem;
    max-width: 500px;
  }
  
  .service-times {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .service-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.4rem;
    padding: 0.7rem;
  }
  
  .service-time {
    grid-column: 1;
    grid-row: 2;
  }
  
  .service-type {
    grid-row: 3;
  }
  
  .hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 75vh;
    min-width: 177.77vh;
  }
  
  .floating-icon {
    width: 45px;
    height: 45px;
  }
  
  .floating-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .hero-video iframe {
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
  }
}

/* Scripture Cards */
.scripture { display: grid; gap: 0.6rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(99,102,241,0.12), rgba(8,145,178,0.08)); border: 1px solid rgba(0,0,0,0.08); padding: 1rem 1.1rem; }
.scripture blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.scripture figcaption { color: var(--muted); font-size: 0.95rem; }
.scripture-icon { width: 32px; height: 32px; filter: drop-shadow(0 8px 14px rgba(99,102,241,0.22)); }

/* Ministries */
.card-icon { width: 36px; height: 36px; color: var(--brand-500); }
.card h3 { margin: 0.4rem 0 0.4rem; font-size: 1.15rem; }

/* Sermons */
.section-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem; 
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  position: relative;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
  border-radius: 2px;
}

.section-head p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin: var(--spacing-lg) 0 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.list { list-style: none; padding: 0; margin: 0; }
.sermons { display: grid; gap: 0.8rem; }
.sermon-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1rem; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-sm); background: rgba(0,0,0,0.02); }
.sermon-meta span { color: var(--muted); font-size: 0.95rem; display: block; }

/* Photo Gallery */
.section-subtitle { color: var(--muted); font-size: 1rem; margin: 0.5rem 0 0; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.photo-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease; }
.photo-item:hover { transform: translateY(-4px); }
.photo-item.large { grid-column: span 2; grid-row: span 2; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 1.5rem 1rem 1rem; transform: translateY(100%); transition: transform 0.3s ease; }
.photo-item:hover .photo-overlay { transform: translateY(0); }
.photo-overlay h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.photo-overlay p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

/* Responsive Photo Grid */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item.large { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item.large { grid-column: span 1; }
}

/* Video Sermons */
.sermons-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.sermon-video { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.sermon-video h3 { margin: 0 0 0.8rem; font-size: 1.1rem; color: var(--text); }
.video-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 aspect ratio */ }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: var(--radius-sm); }

/* Visit */
.visit .card { 
  text-align: left; 
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.visit .card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.visit .card p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.visit .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Contact */
.contact-form { display: grid; gap: 0.9rem; }
.form-field { display: grid; gap: 0.35rem; }
label { font-weight: 600; }
input, textarea { 
  background: var(--panel); 
  border: 1px solid rgba(0,0,0,0.12); 
  color: var(--text); 
  border-radius: 10px; 
  padding: 0.75rem 0.8rem; 
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
  border: 1px solid rgba(255,255,255,0.2);
}

input:focus, textarea:focus { 
  outline: 2px solid rgba(99,102,241,0.35); 
  border-color: transparent; 
}
.error { color: var(--danger); font-size: 0.9rem; min-height: 1.1rem; }
.form-status { margin-top: 0.25rem; color: var(--success); min-height: 1.1rem; }

/* Footer */
.site-footer { 
  border-top: 1px solid rgba(0,0,0,0.08); 
  background: var(--panel); 
}

[data-theme="dark"] .site-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner { display: grid; gap: 0.8rem; padding: 26px 0; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
/* Social media styles moved to footer-social.css for better specificity */

/* Utilities */
.grid.three.visit { grid-template-columns: repeat(3, minmax(0,1fr)); }
.checklist { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.35rem; color: var(--muted); }
.checklist li::before { content: "✓"; color: var(--success); margin-right: 0.5rem; }

/* About Section Styling */
#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

.about-intro {
  position: relative;
  margin-bottom: 2rem;
}

.about-intro .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
}

.about-intro .lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 2px;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(99,102,241,0.05) 100%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.08);
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

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

.highlight-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.3);
}

.highlight-card:hover::after {
  opacity: 1;
  transform: scale(1.5);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 16px;
  color: white;
  position: relative;
  box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}

.highlight-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover .highlight-icon::before {
  opacity: 0.3;
}

.highlight-icon svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.highlight-card h4 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.highlight-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.about-impact {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(99,102,241,0.03) 100%);
  border-radius: 20px;
  border-left: 6px solid var(--primary);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.1);
}

.about-impact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about-impact h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.about-impact p {
  line-height: 1.8;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Responsive adjustments for About section */
@media (max-width: 768px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .highlight-card {
    padding: 1.5rem;
  }
  
  .about-impact {
    padding: 2rem;
  }
  
  .about-intro .lead {
    padding-left: 1.5rem;
    font-size: 1.1rem;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .grid.three.visit { 
    grid-template-columns: repeat(2, minmax(0,1fr)); 
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.three.visit { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .grid.three.visit { 
    gap: 0.8rem;
    padding: 0 0.5rem;
  }
  .visit-info .card {
    padding: 1.2rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-height: 180px;
  }
  .visit-info .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  .visit-info .card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #555;
  }
  .btn-small {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    min-height: 44px; /* Better touch target */
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  .btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .visit-content {
    padding: 0 1rem;
  }
  .section-head h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid.three.visit { 
    gap: 0.6rem;
    padding: 0 0.25rem;
  }
  .visit-info .card {
    padding: 1rem;
    margin-bottom: 0.4rem;
    min-height: 160px;
  }
  .visit-info .card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  .visit-info .card p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }
  .btn-small {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
  .section-head h2 {
    font-size: 1.3rem;
  }
  .section-subtitle {
    font-size: 0.85rem;
  }
}

@media (max-width: 760px) {
  .site-nav ul { display: none; position: absolute; right: 4%; top: 68px; background: #ffffff; padding: 0.8rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); box-shadow: var(--shadow); }
  .site-nav ul.open { display: grid; gap: 0.4rem; }
  .nav-toggle { display: inline-flex; }
}

/* Admin Data Loader Styles */
.loading-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-style: italic;
}

.loading-placeholder p {
  margin: 0;
  padding: 2rem;
  text-align: center;
}

/* Dynamic content styles */
.sermon-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
}

.sermon-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.sermon-info strong {
  color: var(--text);
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.event-date {
  text-align: center;
  min-width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-600);
}

.event-date .month {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

.event-details h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.event-time {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.event-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.ministry-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.ministry-info small {
  display: block;
  margin: 0.25rem 0;
  color: var(--muted);
}

.member-since {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Admin link styling */
.admin-link {
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.admin-link:hover {
  opacity: 1;
}

@media (max-width: 760px) {
  .admin-link {
    font-size: 1.1rem;
  }
}

/* Enhanced News Section Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-2xl) 0;
}

.news-category {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent));
}

.news-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-300);
}

.news-category h3 {
  margin: 0 0 1.5rem 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: pointer;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-300);
}

.news-item-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-thumbnail .default-thumbnail {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.news-item-content {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-item-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.news-cta .btn {
  min-width: 150px;
}

/* Zebra-themed Floating Elements */
.zebra-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.zebra-stripe {
  position: absolute;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
  border-radius: 50px;
  animation: floatZebra 6s ease-in-out infinite;
}

.stripe-1 {
  width: 200px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  transform: rotate(15deg);
}

.stripe-2 {
  width: 150px;
  height: 15px;
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
  transform: rotate(-20deg);
}

.stripe-3 {
  width: 180px;
  height: 18px;
  top: 40%;
  left: 70%;
  animation-delay: 3s;
  transform: rotate(10deg);
}

.stripe-4 {
  width: 120px;
  height: 12px;
  bottom: 30%;
  left: 20%;
  animation-delay: 4.5s;
  transform: rotate(-15deg);
}

@keyframes floatZebra {
  0%, 100% {
    transform: translateY(0px) rotate(var(--rotation, 0deg));
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) rotate(var(--rotation, 0deg));
    opacity: 0.6;
  }
}

/* Zebra Photo Special Styling in Hero */
.photo-item.zebra-photo {
  position: relative;
  animation: zebraGlow 3s ease-in-out infinite alternate;
}

.photo-item.zebra-photo::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  border-radius: 12px;
  z-index: -1;
  animation: rainbowBorder 4s linear infinite;
}

.photo-item.zebra-photo img {
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.photo-item.zebra-photo:hover img {
  transform: scale(1.05);
}

.photo-item.zebra-photo .photo-overlay {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(78, 205, 196, 0.9));
  backdrop-filter: blur(10px);
}

@keyframes zebraGlow {
  0% {
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.4);
  }
  100% {
    box-shadow: 0 0 25px rgba(69, 183, 209, 0.3);
  }
}

@keyframes rainbowBorder {
  0% {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  }
  25% {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff6b6b);
  }
  50% {
    background: linear-gradient(45deg, #45b7d1, #96ceb4, #feca57, #ff6b6b, #4ecdc4);
  }
  75% {
    background: linear-gradient(45deg, #96ceb4, #feca57, #ff6b6b, #4ecdc4, #45b7d1);
  }
  100% {
    background: linear-gradient(45deg, #feca57, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
  }
}

/* Enhanced Footer Styling */
.site-footer {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--panel) 100%);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-3xl) 0 var(--spacing-xl) 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--brand-600);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-500);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.social {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--brand-500);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Event-specific styles for news */
.news-item.event-item .news-item-thumbnail {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.news-item.event-item .news-item-date {
  background: var(--brand-100);
  color: var(--brand-700);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sermon-specific styles for news */
.news-item.sermon-item .news-item-thumbnail {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: white;
  font-size: 2rem;
}

/* Testimony-specific styles for news */
.news-item.testimony-item .news-item-thumbnail {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 2rem;
}

/* Responsive design for news section */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-category {
    padding: 1rem;
  }
  
  .news-item {
    flex-direction: column;
    text-align: center;
  }
  
  .news-item-thumbnail {
    width: 100%;
    height: 120px;
    margin: 0 auto;
  }
  
  .news-item-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .news-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .news-cta .btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .news-item-thumbnail {
    height: 100px;
  }
  
  .news-item-thumbnail .default-thumbnail {
    width: 30px;
    height: 30px;
  }
  
  .news-item-title {
    font-size: 0.9rem;
  }
  
  .news-item-description {
    font-size: 0.85rem;
  }
  
  /* Footer responsive design */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
  }
  
  .social {
    justify-content: center;
  }
}

/* Latest Sermon Section */
.latest-sermon-section {
  background: var(--bg);
  padding: var(--spacing-2xl) 0;
}

.latest-sermons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.sermon-video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: 12px;
  padding: var(--spacing-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.loading-placeholder {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--text-muted);
  font-style: italic;
}

.fallback-message {
  text-align: center;
  padding: var(--spacing-2xl);
  background: var(--bg-alt);
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.fallback-message h3 {
  color: var(--text);
  margin-bottom: var(--spacing-md);
}

.fallback-message p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.sermon-video {
  width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.sermon-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex-grow: 1;
}

.sermon-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.sermon-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  font-size: var(--text-sm);
  flex-wrap: wrap;
}

.sermon-separator {
  color: var(--text-muted);
}

.sermon-description {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: var(--text-sm);
  flex-grow: 1;
}

/* Loading states for sermon section */
#latest-sermon-video[src=""] {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
}

#latest-sermon-video[src=""]::before {
  content: "Loading latest video...";
}

/* Animation for loading text */
.loading-text {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Offering Section */
.offering-section {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  padding: var(--spacing-2xl) 0;
  color: white;
}

.offering-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.offering-text h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 var(--spacing-md);
  color: white;
}

.offering-text p {
  font-size: var(--text-base);
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
}

.offering-verse {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-lg);
  border-radius: 12px;
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  backdrop-filter: blur(10px);
}

.offering-verse svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.offering-verse p {
  margin: 0;
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.offering-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.btn-primary {
  background: white;
  color: var(--brand-600);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.btn-outline {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid white;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background: white;
  color: var(--brand-600);
  transform: translateY(-2px);
}

.offering-image {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Payment Options */
.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.payment-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: var(--spacing-xl);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.payment-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.payment-badge {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mpesa-header .payment-badge {
  background: #e53e3e;
  color: white;
}

.bank-header .payment-badge {
  background: #38a169;
  color: white;
}

.payment-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--spacing-md);
  color: white;
  text-align: center;
}

.payment-card p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.payment-field {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
}

.payment-field label {
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.payment-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #93c5fd;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
  background: #8b5cf6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  min-width: 120px;
}

.copy-btn:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: translateY(0);
}

/* Responsive Design for New Sections */
@media (min-width: 768px) {
  .latest-sermons-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-lg);
  }
  
  .sermon-video-card {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .offering-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .payment-options {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
  }
  
  .sermon-title {
    font-size: var(--text-lg);
  }
  
  .offering-text h2 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1200px) {
  .latest-sermons-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
  }
  
  .sermon-video-card {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .sermon-title {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1024px) {
  .offering-image {
    height: 450px;
  }
}


