/* =============================================
   APOSTLE MJ MINISTRIES - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --primary:       #1a0545;
  --primary-mid:   #3b0f8c;
  --primary-light: #6b21a8;
  --gold:          #f0a500;
  --gold-dark:     #c78b00;
  --gold-light:    #ffe082;
  --white:         #ffffff;
  --light:         #faf5ff;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --shadow:        0 4px 20px rgba(26,5,69,0.15);
  --shadow-lg:     0 10px 40px rgba(26,5,69,0.25);
  --radius:        14px;
  --radius-sm:     8px;
  --transition:    all 0.3s ease;
  --nav-height:    72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(26,5,69,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}
/* mobile nav backdrop */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }
.brand-icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text { color: var(--white); }
.brand-text .name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; display: block; }
.brand-text .sub  { font-size: 0.65rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(240,165,0,0.1);
}
.nav-donate {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  padding: 0.45rem 1rem !important;
}
.nav-donate:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== PAGE OFFSET ===== */
.page-content { padding-top: var(--nav-height); }

/* ===== HERO SECTIONS ===== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 50%, #7c3aed 100%);
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,5,69,0.35) 0%, rgba(26,5,69,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 650px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-img-circle {
  width: 220px; height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(240,165,0,0.15), 0 8px 40px rgba(0,0,0,0.4);
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== PAGE HERO (smaller) ===== */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,0.8); position: relative; z-index: 1; max-width: 600px; margin: 0.5rem auto 0; }
.page-hero .breadcrumb {
  position: relative; z-index: 1;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(240,165,0,0.4); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-purple {
  background: linear-gradient(135deg, var(--primary-mid), var(--primary-light));
  color: var(--white);
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.35); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--light); }
.section-gray  { background: var(--gray-100); }
.section-dark  { background: var(--primary); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { color: var(--primary); margin-bottom: 1rem; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--primary); }
.card-text { color: var(--text-muted); font-size: 0.9rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }

/* ===== QUICK LINKS ===== */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}
.quick-link:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--gold-dark);
}
.quick-link i {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.quick-link:hover i { background: var(--primary); color: var(--gold); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 0.4rem; }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(107,33,168,0.1);
}
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== AUDIO RECORDER ===== */
.recorder {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--gray-100);
  margin: 1rem 0;
}
.recorder .rec-btn {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.recorder .rec-btn:hover { transform: scale(1.1); }
.recorder .rec-btn.recording { animation: pulse-rec 1.5s infinite; background: #c0392b; }
@keyframes pulse-rec { 0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,0.4);} 50%{box-shadow:0 0 0 15px rgba(239,68,68,0);} }
.rec-timer { font-size: 1.5rem; font-weight: 700; color: var(--danger); font-family: monospace; }
.rec-status { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
audio { width: 100%; margin-top: 1rem; border-radius: var(--radius-sm); }

/* ===== PRAYER STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-praying  { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }

/* ===== SCRIPTURE CARD ===== */
.scripture-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scripture-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 8rem;
  color: rgba(255,255,255,0.05);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.scripture-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-style: italic; margin-bottom: 0.75rem; }
.scripture-ref  { color: var(--gold); font-size: 0.85rem; font-weight: 600; }

/* ===== STAT CARDS ===== */
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.stat-card .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
}
.stat-card .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--primary-light));
}
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.4rem; top: 4px;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline-year { font-size: 0.8rem; font-weight: 700; color: var(--gold); margin-bottom: 0.25rem; }
.timeline-title { font-weight: 700; margin-bottom: 0.25rem; }
.timeline-text { font-size: 0.9rem; color: var(--text-muted); }

/* ===== MEDIA GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,5,69,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-height: 88vh; max-width: 90vw; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* ===== LIVE STREAM ===== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--danger);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 1px;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
.embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.embed-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ===== SOCIAL BUTTONS ===== */
.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { transform: translateX(6px); filter: brightness(1.1); }
.social-btn i { font-size: 1.5rem; width: 40px; text-align: center; }
.social-fb   { background: #1877F2; }
.social-yt   { background: #FF0000; }
.social-tiktok { background: #010101; }
.social-wa   { background: #25D366; }
.social-ig   { background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ===== DONATION CARDS ===== */
.donation-card {
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  background: var(--white);
  transition: var(--transition);
}
.donation-card:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.donation-card .icon {
  width: 70px; height: 70px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-light);
  margin: 0 auto 1.25rem;
}
.donation-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.donation-card p  { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PAYMENT INFO BOX ===== */
.pay-box {
  background: var(--light);
  border: 1px solid rgba(107,33,168,0.15);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.pay-box h4 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1rem; }
.pay-box .pay-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.pay-box .pay-row:last-child { border-bottom: none; }
.pay-box .pay-row strong { color: var(--primary); }
.copy-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.copy-btn:hover { background: var(--primary-light); }

/* ===== EVENTS ===== */
.event-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.event-date {
  flex-shrink: 0;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.event-date .day   { font-size: 1.6rem; font-weight: 800; font-family: 'Playfair Display', serif; line-height: 1; }
.event-date .month { font-size: 0.75rem; font-weight: 600; color: var(--gold); letter-spacing: 1px; }
.event-info h4 { color: var(--primary); margin-bottom: 0.3rem; }
.event-info p  { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; }
.event-info .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.event-info .meta i { color: var(--gold); margin-right: 0.3rem; }

/* ===== TESTIMONY CARDS ===== */
.testimony-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimony-card::before {
  content: '\201C';
  position: absolute;
  top: 10px; right: 20px;
  font-size: 4rem;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.testimony-card .author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.testimony-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimony-card .author-name { font-weight: 600; font-size: 0.92rem; color: var(--primary); }
.testimony-card .author-location { font-size: 0.8rem; color: var(--text-muted); }

/* ===== DEVOTION ===== */
.devotion-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.devotion-card .devotion-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: var(--white);
  padding: 1.5rem 2rem;
}
.devotion-card .devotion-header h3 { color: var(--white); }
.devotion-card .devotion-header .verse { color: var(--gold-light); font-style: italic; font-size: 0.9rem; }
.devotion-card .devotion-body { padding: 2rem; }
.prayer-points { margin-top: 1.5rem; }
.prayer-point {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--light);
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.prayer-point i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

/* ===== FLOATING WHATSAPP ===== */
.float-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 6px 25px rgba(37,211,102,0.45);
  z-index: 999;
  transition: var(--transition);
  animation: float-bounce 3s ease-in-out infinite;
}
.float-wa:hover { transform: scale(1.12) translateY(-3px); }
@keyframes float-bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }
.float-wa-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-wa:hover .float-wa-tooltip { opacity: 1; }

/* ===== ADMIN ===== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  padding: 2rem;
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}
.admin-sidebar .sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-logo h3 { color: var(--gold); font-size: 1rem; }
.admin-sidebar .sidebar-logo p  { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border-left-color: var(--gold);
}
.admin-nav a i { width: 20px; text-align: center; }
.admin-main {
  margin-left: 260px;
  flex: 1;
  background: #f8f9fc;
  min-height: 100vh;
}
.admin-topbar {
  background: var(--white);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-content { padding: 2rem; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}
.stat-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
}
.stat-mini .num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-mini .lbl { font-size: 0.82rem; color: var(--text-muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 600px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: var(--light); color: var(--primary); font-weight: 700; padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--gray-200); font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
tr:hover td { background: var(--light); }
.btn-xs { padding: 0.3rem 0.75rem; font-size: 0.78rem; border-radius: 4px; cursor: pointer; border: none; font-weight: 600; }
.btn-xs-green  { background: #d1fae5; color: #065f46; }
.btn-xs-blue   { background: #dbeafe; color: #1e40af; }
.btn-xs-red    { background: #fee2e2; color: #991b1b; }
.btn-xs-purple { background: var(--light); color: var(--primary-light); }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 1.5rem 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; padding-bottom: 3rem; }
.footer-col h4 { color: var(--gold); font-size: 1rem; margin-bottom: 1.25rem; }
.footer-col p, .footer-col li { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-col li::before { content: '▸ '; color: var(--gold); font-size: 0.75rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social:hover { background: var(--gold); color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold); }

/* ===== ALERT / TOAST ===== */
.toast {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
  max-width: 320px;
  border-left: 4px solid var(--success);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--danger); }

/* ===== BACK TO TOP ===== */
#back-top {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 998;
  transition: var(--transition);
}
#back-top:hover { background: var(--primary-light); transform: translateY(-3px); }
#back-top.visible { display: flex; }

/* ===== RESPONSIVE ===== */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); position: fixed; z-index: 200; height: 100vh; overflow-y: auto; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .admin-main { margin-left: 0; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 0.45rem 0.55rem; font-size: 0.78rem; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  /* NAV */
  .navbar { padding: 0 1rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.75rem 1rem 1.5rem;
    gap: 0.2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 999;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 0.7rem 1rem; font-size: 0.9rem; border-radius: var(--radius-sm); }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); }
  .nav-donate { background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important; color: var(--primary) !important; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
  .brand-text .name { font-size: 0.88rem; }
  .brand-text .sub { display: none; }

  /* HERO */
  .hero { min-height: 85vh; }
  .hero-img-circle { width: 160px !important; height: 160px !important; margin-bottom: 1.25rem !important; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-badge { font-size: 0.72rem; }

  /* PAGE HERO */
  .page-hero { padding: calc(var(--nav-height) + 2rem) 1rem 2rem; }
  .page-hero h1 { font-size: 1.6rem; }

  /* SECTIONS */
  .section { padding: 3rem 1rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  .container { padding: 0 0.25rem; }

  /* GRIDS — collapse all to 1 column */
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="gap:3rem"], [style*="gap: 3rem"] { gap: 1.5rem !important; }
  [style*="gap:4rem"], [style*="gap: 4rem"] { gap: 1.5rem !important; }
  [style*="gap:2rem"], [style*="gap: 2rem"] { gap: 1.25rem !important; }

  /* FORMS */
  .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* QUICK LINKS */
  .quick-links { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .quick-link { padding: 1rem 0.5rem; font-size: 0.78rem; gap: 0.5rem; }
  .quick-link i { width: 42px; height: 42px; font-size: 1.4rem; }

  /* STATS */
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-card .number { font-size: 2rem; }

  /* CARDS */
  .card-img { height: 180px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

  /* EVENTS */
  .event-card { flex-direction: column; gap: 1rem; }
  .event-date { width: 60px; height: 60px; }

  /* TESTIMONY */
  .testimony-card { padding: 1.25rem; }

  /* SOCIAL BUTTONS */
  .social-btn { padding: 1rem 1.25rem; font-size: 0.9rem; }
  .social-links { grid-template-columns: 1fr 1fr !important; }

  /* DONATION CARDS */
  .donation-card { padding: 1.5rem 1rem; }

  /* PRAYER METHODS */
  .prayer-methods { grid-template-columns: 1fr !important; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  footer { padding: 2.5rem 1rem 0; }
  .footer-col h4 { font-size: 0.92rem; }
  .footer-col p, .footer-col li { font-size: 0.82rem; }

  /* FLOATING BUTTONS */
  .float-wa { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; font-size: 1.5rem; }
  .float-wa-tooltip { display: none; }
  #back-top { bottom: 5rem; right: 1.25rem; width: 38px; height: 38px; font-size: 0.85rem; }

  /* ADMIN */
  .admin-content { padding: 1rem; }
  .admin-topbar { padding: 0.75rem 1rem; gap: 0.5rem; }
  .topbar-date { display: none; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .stat-mini { padding: 1rem; gap: 0.75rem; }
  .stat-mini .num { font-size: 1.5rem; }
  .sidebar-logo { position: relative; }
  th, td { padding: 0.6rem 0.75rem; font-size: 0.82rem; }

  /* SCRIPTURE CARD */
  .scripture-card { padding: 1.5rem; }
  .scripture-text { font-size: 1rem; }

  /* DEPT GRID */
  .dept-grid { grid-template-columns: repeat(3, 1fr); }

  /* TICKER */
  .announcement-ticker { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .ticker-label { display: none; }

  /* EMBED */
  .embed-wrapper { border-radius: var(--radius-sm); }

  /* PAY BOX */
  .pay-box .pay-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

  /* MEMBER CARD */
  .member-card { padding: 1.5rem; }

  /* AMOUNT BUTTONS */
  .amount-btns { gap: 0.4rem; }
  .amount-btn { padding: 0.45rem 1rem; font-size: 0.82rem; }

  /* PAGE HERO BREADCRUMB */
  .page-hero .breadcrumb { font-size: 0.78rem; }

  /* TIMELINE */
  .timeline { padding-left: 1.5rem; }

  /* SEARCH BAR */
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; justify-content: center; }

  /* SERMON TABS / MEDIA TABS */
  .sermon-tabs, .media-tabs { gap: 0.35rem !important; }
  .sermon-tab, .media-tab { font-size: 0.8rem !important; padding: 0.5rem 0.9rem !important; }

  /* PLATFORM BUTTONS */
  .platform-btn { padding: 0.85rem 1rem !important; font-size: 0.88rem !important; }
  .platform-btn .platform-icon { font-size: 1.4rem !important; }

  /* SCHEDULE */
  .schedule-item { flex-wrap: wrap; gap: 0.5rem; }

  /* AMOUNT BUTTONS */
  .amount-btns { gap: 0.4rem !important; flex-wrap: wrap !important; }
  .amount-btn { padding: 0.45rem 0.9rem !important; font-size: 0.82rem !important; }

  /* MEMBER CARD */
  .member-card { padding: 1.5rem !important; }
  .member-card-avatar { width: 64px !important; height: 64px !important; font-size: 1.5rem !important; }

  /* DEPT GRID */
  .dept-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .dept-item { padding: 0.85rem 0.5rem !important; }
  .dept-item i { font-size: 1.4rem !important; }
  .dept-item span { font-size: 0.8rem !important; }

  /* ADMIN ANNOUNCEMENT ITEMS */
  #announcements-list > div { flex-wrap: wrap !important; gap: 0.5rem !important; align-items: flex-start !important; }

  /* ADMIN SEARCH */
  .search-filter input { min-width: 0 !important; width: 100% !important; }
  .search-filter { flex-direction: column; }

  /* ADMIN CARD HEADER ROW */
  .admin-card > div:first-child { flex-wrap: wrap; }

  /* GIVING SECTION */
  .giving-section { padding: 1.25rem !important; }

  /* NOT LIVE PLACEHOLDER */
  .not-live { padding: 1.5rem !important; }
  .not-live h3 { font-size: 1.1rem !important; }

  /* AUDIO ITEM */
  .audio-item { gap: 0.75rem; padding: 1rem; }
  .audio-item .btn { padding: 0.4rem 0.75rem; font-size: 0.78rem; }

  /* CONTACT */
  .contact-info-card { padding: 1.5rem; }
  .contact-item { gap: 0.75rem; }
  .contact-item-icon { width: 40px; height: 40px; font-size: 1rem; }
}

/* ---- Small mobile (≤480px) ---- */
@media (max-width: 480px) {
  /* NAV */
  .brand-text .name { font-size: 0.82rem; }
  .navbar { padding: 0 0.75rem; }

  /* HERO */
  .hero { min-height: 90vh; }
  .hero-img-circle { width: 140px !important; height: 140px !important; }
  .hero h1 { font-size: 1.5rem; }

  /* SECTIONS */
  .section { padding: 2.5rem 0.75rem; }

  /* QUICK LINKS */
  .quick-links { grid-template-columns: repeat(2, 1fr); }

  /* GALLERY */
  .gallery { grid-template-columns: repeat(2, 1fr); }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; padding-bottom: 1.5rem; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
  .footer-socials { justify-content: flex-start; }
  .footer-col h4 { margin-bottom: 0.75rem; }
  .footer-col p, .footer-col li { margin-bottom: 0.4rem; }
  footer { padding: 2rem 1rem 0; }

  /* STATS */
  .stats-bar { grid-template-columns: 1fr 1fr; }

  /* DONATION CARDS */
  .grid-4 { grid-template-columns: 1fr !important; }

  /* DEPT GRID */
  .dept-grid { grid-template-columns: repeat(2, 1fr); }

  /* SOCIAL LINKS */
  .social-links { grid-template-columns: 1fr !important; }

  /* AMOUNT BTNS */
  .amount-btns { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; }
  .amount-btn { padding: 0.4rem 0.5rem !important; font-size: 0.78rem !important; text-align: center; }

  /* DEPT GRID */
  .dept-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* ADMIN STATS */
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .topbar-label { display: none; }
  .admin-login-card { padding: 2rem 1.25rem; }
  .admin-topbar h4 { font-size: 0.9rem; }

  /* MEMBER CARD */
  .member-card { padding: 1.25rem !important; }

  /* PLATFORM BUTTONS */
  .platform-btn { font-size: 0.82rem !important; padding: 0.75rem 0.9rem !important; }

  /* SERMON / MEDIA TABS — wrap to 2 per row on very small */
  .sermon-tab, .media-tab { flex: 1 1 calc(50% - 0.35rem) !important; text-align: center; }

  /* ADMIN PRAYER FILTER BTNS */
  .sec-prayers .btn-sm, #sec-prayers .btn-sm { padding: 0.35rem 0.6rem !important; font-size: 0.76rem !important; }

  /* TOAST */
  .toast { right: 0.75rem; left: 0.75rem; max-width: 100%; bottom: 5rem; }

  /* RECORDER */
  .recorder { padding: 1rem; }
  .recorder .rec-btn { width: 60px; height: 60px; font-size: 1.25rem; }
  .rec-timer { font-size: 1.25rem; }

  /* PRAYER FORM */
  .prayer-form-body { padding: 1.25rem; }
  .prayer-form-header { padding: 1.25rem 1.25rem; }

  /* WHATSAPP DIRECT */
  .whatsapp-direct { padding: 1.25rem; }

  /* SUBMISSION OPTIONS */
  .submit-options { flex-direction: column; }
  .submit-options .btn { width: 100%; justify-content: center; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.d-flex { display: flex; } .align-center { align-items: center; } .flex-wrap { flex-wrap: wrap; }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
