/* ==========================================
   샘물교회 (Saemmul Church) Design System & Stylesheet
   ========================================== */

/* 1. CSS Variables & Reset */
:root {
  /* Color Palette */
  --primary-navy: #0f172a;
  --primary-dark: #090d16;
  --secondary-navy: #1e293b;
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --emerald-primary: #059669;
  --emerald-light: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.15);

  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-light: rgba(255, 255, 255, 0.1);

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 8px 24px rgba(217, 119, 6, 0.3);

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-light);
}

/* 2. Utility Classes */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.text-gold {
  color: var(--accent-gold);
}

.text-emerald {
  color: var(--emerald-primary);
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 16px;
  word-break: keep-all;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  word-break: keep-all;
}

.title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--emerald-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 3. Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.92);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-gold), var(--emerald-primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-normal);
  border-radius: 2px;
}

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

.header-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

/* 4. Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/images/20260722_174559.webp') center/cover no-repeat;
  color: #ffffff;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(15, 23, 42, 0.35) 0%,
      rgba(15, 23, 42, 0.45) 50%,
      rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  word-break: keep-all;
  letter-spacing: -1px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-bounce);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-3px);
}

/* Hero Countdown Card */
.hero-countdown {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px 36px;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.countdown-label {
  text-align: left;
}

.countdown-label h4 {
  font-size: 0.95rem;
  color: var(--accent-gold-light);
  font-weight: 600;
}

.countdown-label p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.timer-boxes {
  display: flex;
  gap: 16px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.timer-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Playfair Display', serif;
}

.timer-unit {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-top: -2px;
}

/* 5. About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.03);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  color: #fff;
}

.about-badge .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.about-badge .role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 20px;
  line-height: 1.35;
  word-break: keep-all;
}

.about-quote {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
  word-break: keep-all;
}

.vision-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.vision-card {
  background: var(--bg-card);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

.vision-icon {
  width: 52px;
  height: 52px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}

.vision-card h4 {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.vision-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 6. Worship Services Section (Tabs) */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-navy);
  color: var(--text-white);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.schedule-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-gold);
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.schedule-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-navy);
  flex-shrink: 0;
}

.schedule-details h4 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 6px;
  font-weight: 700;
}

.schedule-time {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.schedule-place {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.schedule-target {
  font-size: 0.8rem;
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  color: var(--text-main);
}

/* 7. Sermons & Media Section */
.sermon-section {
  background: var(--primary-dark);
  color: #ffffff;
}

.sermon-section .section-title {
  color: #ffffff;
}

.sermon-section .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.sermon-card {
  background: var(--secondary-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.sermon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.sermon-thumb {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.sermon-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.play-btn {
  width: 56px;
  height: 56px;
  background: rgba(217, 119, 6, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.5);
  transition: var(--transition-bounce);
  cursor: pointer;
  border: none;
}

.sermon-card:hover .play-btn {
  transform: scale(1.15);
  background: var(--accent-gold-light);
}

.sermon-info {
  padding: 24px;
}

.sermon-date {
  font-size: 0.8rem;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  font-weight: 600;
}

.sermon-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.sermon-passage {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.sermon-speaker {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sermon-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-fast);
  text-decoration: none;
}

.sermon-read-btn:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* 8. Location & Directions Section */
.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.map-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.map-placeholder {
  height: 380px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.map-icon {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.map-placeholder h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.map-placeholder p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.map-actions {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.transport-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transport-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 18px;
}

.transport-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.transport-detail h5 {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
  font-weight: 700;
}

.transport-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 9. Online Offering Section */
.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.offering-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.offering-type {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bank-info {
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bank-details {
  display: flex;
  flex-direction: column;
}

.bank-name {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.account-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: 0.5px;
}

.copy-btn {
  padding: 8px 14px;
  background: var(--primary-navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--accent-gold);
}

/* 10. Contact / Newcomer Form */
.contact-wrapper {
  background: var(--primary-navy);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-group label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.form-control {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.12);
}

/* 11. Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-info p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* 12. Modal & Toast Notifications */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  background: var(--primary-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-bounce);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  z-index: 999;
  border: none;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--accent-gold-light);
}

/* 13. Responsive Media Queries */
@media (max-width: 992px) {
  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition-normal);
  }

  .mobile-toggle:hover {
    background: rgba(217, 119, 6, 0.3);
  }

  .hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--accent-gold-light);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--primary-navy);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    border-left: 1px solid var(--border-light);
  }

  .nav-menu.active {
    right: 0;
  }

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

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-countdown {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .vision-list {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.0rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Full Sermon Archive Section Styles
   ========================================================================== */
.sermon-archive-container {
  background: var(--secondary-navy);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.archive-header {
  margin-bottom: 24px;
}

.archive-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.archive-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.archive-search-box {
  position: relative;
  width: 100%;
}

.archive-search-box .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

.archive-search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.archive-search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

.archive-year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.year-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.year-btn:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.year-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

.archive-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-count-badge {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.archive-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  table-layout: fixed;
}

.archive-table .col-date {
  width: 130px;
  white-space: nowrap;
}

.archive-table .col-title {
  width: auto;
}

.archive-table .col-passage {
  width: 26%;
}

.archive-table .col-action {
  width: 85px;
  text-align: center;
  white-space: nowrap;
}

.archive-table th {
  background: rgba(15, 23, 42, 0.8);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.archive-table td {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  vertical-align: middle;
}

.archive-table td:first-child {
  padding-right: 14px;
}

.archive-table td:nth-child(2) {
  padding-left: 14px;
}

.archive-table th:nth-child(4),
.archive-table td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
  width: 85px;
  vertical-align: middle;
}

.archive-table tbody tr {
  transition: var(--transition-fast);
}

.archive-table tbody tr:hover {
  background: rgba(217, 119, 6, 0.08);
}

.archive-sermon-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  word-break: keep-all;
}

.archive-sermon-link:hover {
  color: var(--accent-gold-light);
  text-decoration: underline;
}

.archive-passage-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.archive-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  transition: var(--transition-fast);
}

.archive-btn-link:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  background: rgba(217, 119, 6, 0.2);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.page-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #ffffff;
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .sermon-archive-container {
    padding: 24px 12px;
  }

  .archive-table .col-date {
    width: 98px;
  }

  .archive-table th,
  .archive-table td {
    padding: 12px 6px;
    font-size: 0.88rem;
  }

  .archive-table td:first-child {
    padding-right: 10px;
  }

  .archive-table td:nth-child(2) {
    padding-left: 10px;
  }

  .archive-table th:nth-child(3),
  .archive-table td:nth-child(3) {
    display: none;
  }

  .archive-table th:nth-child(4),
  .archive-table td:nth-child(4) {
    white-space: nowrap;
    text-align: center;
    width: 65px;
    vertical-align: middle;
    padding-left: 4px;
    padding-right: 4px;
  }

  .archive-btn-link {
    padding: 5px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}