/* ==========================================================================
   RADIANT MOSQUE DESIGN SYSTEM (Parchment, Burgundy & Gold)
   ========================================================================== */
:root {
  --bg-main: #FAF8F2;
  --bg-card: #FFFFFF;
  --bg-alt: #F2ECDC;
  
  --color-burgundy: #008000;
  --color-crimson: #9A1815;
  --color-gold: #C59B27;
  --color-gold-light: #FFF9E6;
  
  --text-dark: #1F1D1A;
  --text-muted: #666055;
  --border-color: #E2D8C3;
  
  --shadow-sm: 0 4px 12px rgba(0, 128, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 45px rgba(0, 128, 0, 0.12);
  
  --hero-overlay: linear-gradient(180deg, rgba(7, 7, 5, 0.75) 0%, rgba(0, 128, 0, 0.85) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: 'Amiri', serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. PRAYER TICKER BAR (MARQUEE)
   ========================================================================== */
.prayer-ticker-bar {
  background: var(--color-burgundy);
  color: #FFFFFF;
  font-size: 0.86rem;
  position: relative;
  z-index: 101;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(197, 155, 39, 0.3);
}

.ticker-label {
  background: green;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  font-size: 0.75rem;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.25);
}

.ticker-label::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 0.4; transform: scale(0.8); }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-content {
  display: inline-flex;
  gap: 40px;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item strong {
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ticker-item span {
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 10px;
  border-radius: 4px;
  font-family: 'Amiri', serif;
  font-size: 0.98rem;
}

.ticker-item.active span {
  background: #FFFFFF;
  color: var(--color-burgundy);
  font-weight: bold;
}

.ticker-divider {
  color: var(--color-gold);
  opacity: 0.6;
}

/* ==========================================================================
   2. STICKY HEADER & RESPONSIVE NAV
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

header.scrolled nav {
  padding: 8px 24px;
}

header.scrolled .brand-mark {
  width: 30px;
  height: 30px;
}

header.scrolled .brand-name {
  font-size: 1.15rem;
}

header.scrolled .nav-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
  transition: padding 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: width 0.3s ease, height 0.3s ease;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-burgundy);
  letter-spacing: 0.02em;
  transition: font-size 0.3s ease;
}

.brand-name span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-burgundy);
}

.nav-cta {
  background: var(--color-burgundy);
  color: #FFFFFF !important;
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease, padding 0.3s ease, font-size 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-crimson);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 105;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-burgundy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


@media (max-width: 860px) {
  /* 1. MAKE HAMBURGER VISIBLE ON MOBILE */
  .mobile-nav-toggle {
    display: flex !important;
  }

  /* 2. DROPDOWN MENU POSITIONING */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0;

    /* Hidden by default until JavaScript toggles 'active' or 'open' */
    display: none; 
  }

  /* Show menu when active class is added by JS */
  .nav-menu.active,
  .nav-menu.open {
    display: flex;
  }

  /* 3. FIX LIST STYLING & BULLET POINTS */
  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    list-style: none; /* Removes the dots/bullets */
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    width: 100%;
    list-style: none; /* Extra safeguard for bullets */
  }

  /* 4. LINK STYLING */
  .nav-links a {
    color: #1a1a1a !important;
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    text-decoration: none;
    text-align: left;
  }

  /* 5. DONATE / CTA BUTTON STYLING */
  .nav-cta {
    display: block;
    margin: 16px 24px 8px 24px;
    text-align: center;
  }
}
/* ==========================================================================
   3. HERO PARALLAX SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 180px 24px 130px;
  text-align: center;
  overflow: hidden;
  background: var(--hero-overlay), url('images/mosque_hero_bg.jpg') center/cover no-repeat fixed;
  color: #FFFFFF;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.hero-arabic-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-arabic-badge .arabic {
  font-size: 1.9rem;
  color: var(--color-gold);
  line-height: 1;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.4rem);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 22px;
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-gold);
}

.hero p.hero-subtitle {
  font-size: 1.2rem;
  color: #c59b27;
  max-width: 660px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--color-burgundy);
  color: #FFFFFF;
  border: 1px solid white;
  box-shadow: 0 6px 20px rgba(0, 128, 0, 0.5);
}

.btn-primary:hover {
  background: var(--color-crimson);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.6);
}

.btn-outline {
    background: rgb(255 255 255);
    color: #c59b27;
    border: 1px solid #008000;
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background: #008000;
    color: #c59b27;
    border: 1px solid #0c0c0c;
    backdrop-filter: blur(8px);
  transform: translateY(-3px);
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.trust-item svg {
  color: var(--color-gold);
}

/* ==========================================================================
   4. GENERAL SECTION HEADINGS & LIGHT CARDS
   ========================================================================== */
section {
  padding: 100px 0;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--color-burgundy);
  font-weight: 700;
  display: block;
}

.section-head h2 {
  font-size: clamp(2.1rem, 3.8vw, 2.7rem);
  margin-top: 8px;
  color: var(--color-burgundy);
}

.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* ==========================================================================
   5. ABOUT US SECTION (LIGHT THEME)
   ========================================================================== */
.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-img-wrap:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(0, 128, 0, 0.92);
  color: #FFFFFF;
  padding: 16px 24px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 155, 39, 0.4);
  box-shadow: var(--shadow-lg);
}

.about-badge strong {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--color-gold);
  display: block;
  line-height: 1.1;
}

.about-badge span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  color: var(--color-burgundy);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.04rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background: var(--bg-card);
  padding: 20px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-burgundy);
  transform: translateY(-3px);
}

.stat-num {
  font-family: 'Amiri', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   6. HADITH OF THE DAY (TEXTURED BACKGROUND + CARD STACK)
   ========================================================================== */
.hadith-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 12% 20%, rgba(197, 155, 39, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(0, 128, 0, 0.05) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23C59B27' stroke-width='1' opacity='0.16'%3E%3Cpath d='M42 4 L54 24 L78 24 L60 38 L68 62 L42 48 L16 62 L24 38 L6 24 L30 24 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  overflow: hidden;
}

.hadith-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hadith-stack {
  position: relative;
  max-width: 760px;
  width: 100%;
}

.hadith-stack-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.hadith-layer-1 {
  transform: rotate(-2.5deg) translateY(6px);
  opacity: 0.7;
}

.hadith-layer-2 {
  transform: rotate(2.5deg) translateY(10px);
  opacity: 0.4;
}

.hadith-card {
  position: relative;
  width: 100%;
  padding: 48px 48px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.hadith-card::before, 
.hadith-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--color-gold);
}

.hadith-card::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hadith-card::after { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.hadith-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hadith-tag {
  background: var(--color-gold-light);
  color: var(--color-burgundy);
  border: 1px solid var(--color-gold);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hadith-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hadith-quote-icon {
  font-family: 'Amiri', serif;
  font-size: 3rem;
  color: var(--color-burgundy);
  line-height: 1;
}

.hadith-text {
  font-family: 'Amiri', serif;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--color-burgundy);
  line-height: 1.6;
  margin-bottom: 22px;
  min-height: 80px;
  transition: opacity 0.25s ease;
}

.hadith-source {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.25s ease;
}

.hadith-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hadith-refresh-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--color-burgundy);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hadith-refresh-btn:hover {
  background: var(--color-burgundy);
  color: #FFFFFF;
  border-color: var(--color-burgundy);
}

.hadith-copy-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hadith-copy-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-burgundy);
}

.hadith-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  position: relative;
  z-index: 2;
}

.hadith-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.hadith-dot.active {
  background: var(--color-gold);
  width: 22px;
  border-radius: 5px;
}

/* ==========================================================================
   PROGRAM CARDS (STACKED SCROLL EFFECT)
   ========================================================================== */
.programs-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stack-cards-area {
  position: relative;
  /* INCREASED SCROLL HEIGHT: Requires more scroll distance per card flip (slower pace) */
  --card-scroll-height: 1000;
  --card-rotate: 8;
}

.stack-cards-sticky {
  position: sticky;
  top: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  will-change: top;
}

.stack-cards {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 320px;
}

.stack-cards .stack-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform-origin: bottom center;
  /* Slower, smoother rotation/returning transition when scrolling back up */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

/* Card fly-away transition (Slower & Smoother) */
.stack-cards .stack-card.stack-card-active {
  /* Slower 0.8s duration for smooth fly-away motion */
  transform: translateY(-120vh) rotate(-50deg) !important;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.6s ease !important;
}

/* Mobile Fallback */
@media (max-width: 860px) {
  .stack-cards-area {
    height: auto !important;
  }
  .stack-cards-sticky {
    position: static !important;
    top: auto !important;
  }
  .stack-cards {
    position: static;
    max-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .stack-cards .stack-card {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}

.program-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-gold);
  background: var(--color-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-burgundy);
  font-size: 1.4rem;
  margin-bottom: 22px;
}

.program-card h3 {
  font-size: 1.25rem;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

.program-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
/* ==========================================================================
   8. DONATION PORTAL (HIGH CONTRAST & CONVERTING)
   ========================================================================== */
.donate-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.donate-box h2 {
  text-align: center;
  font-size: 2.3rem;
  color: var(--color-burgundy);
  margin-bottom: 6px;
}

.donate-box p.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.freq-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  background: var(--bg-main);
  padding: 5px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.freq-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.freq-btn.active {
  background: var(--color-burgundy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-burgundy);
  text-transform: uppercase;
}

.form-select, .form-input {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 6px;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
}

.amounts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.amt-btn {
  padding: 16px 0;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--color-burgundy);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.amt-btn.active, .amt-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-burgundy);
  background: var(--color-gold-light);
  box-shadow: var(--shadow-sm);
}

.btn-submit-donate {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  background: var(--color-burgundy);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-submit-donate:hover {
  background: var(--color-crimson);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* FOOTER */
footer {
  padding: 60px 0 36px;
  background: var(--color-burgundy);
  color: #FFFFFF;
  text-align: center;
}

.footer-brand {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 22px 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--color-gold); }

.footer-note {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTACT SECTION & DONATE SECTION (previously missing rules)
   ========================================================================== */
.donate-section {
  background: var(--bg-main);
}

.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-btn {
  align-self: flex-start;
}

/* ==========================================================================
   GLOBAL PAYMENTS MODAL (previously missing rules entirely)
   ========================================================================== */
#paymentModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 28px;
  background: var(--color-burgundy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  color: var(--color-gold);
  font-size: 1.15rem;
}

.modal-header button {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 16px;
}

#modalBody {
  padding: 28px;
}

/* ==========================================================================
   PILLARS ACTION BUTTON (previously missing rules)
   ========================================================================== */
.pillars-action {
  margin-top: 8px;
}

.pillars-btn {
  width: 100%;
}

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .programs-grid { grid-template-columns: 1fr; }
  .amounts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   VISION, MISSION & CORE PILLARS SECTION (FULL IMAGE BACKGROUND)
   ========================================================================== */
.pillars-section-bg {
  position: relative;
  padding: 120px 0;
  /* Updated Image Path: images/mosque_hero_bg.jpg */
  background: 
    linear-gradient(135deg, rgba(7, 7, 5, 0.5) 0%, rgba(0, 128, 0, 0.65) 100%), 
    url('images/mosque_hero_bg.jpg') center/cover no-repeat fixed;
  border-bottom: 1px solid var(--border-color);
}

.pillars-flex-container {
  display: flex;
  justify-content: flex-end;
}

/* Inner Theme Card */
.pillars-theme-card {
  background: var(--bg-main); /* Theme color #FAF8F2 */
  border: 1px solid var(--border-color);
  padding: 48px 44px;
  border-radius: 12px;
  max-width: 660px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.pillars-title {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  color: var(--color-burgundy);
  line-height: 1.25;
  margin-top: 8px;
  margin-bottom: 30px;
}

/* Accordion Styles */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--color-gold);
}

.accordion-header {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Amiri', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-burgundy);
  cursor: pointer;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}

.accordion-header:hover {
  background: var(--color-gold-light);
}

.accordion-icon {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-burgundy);
  line-height: 1;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 24px;
  background: var(--bg-card);
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid var(--border-color);
  color: var(--color-crimson);
}

.pillars-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.pillars-list li {
  font-size: 1.02rem;
  color: var(--text-dark);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.pillars-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-gold);
  font-size: 0.75rem;
}

.pillars-list li strong {
  color: var(--color-burgundy);
}

.accordion-text {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.65;
  padding-top: 16px;
  padding-bottom: 16px;
}

.mission-quote {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-burgundy);
  border-left: 3px solid var(--color-gold);
  padding-left: 18px;
  margin-top: 16px;
  margin-bottom: 16px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .pillars-flex-container {
    justify-content: center;
  }
  .pillars-theme-card {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   GENERAL MOBILE REFINEMENTS (applies across every section/container)
   ========================================================================== */
@media (max-width: 600px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 120px 20px 70px;
    background-attachment: scroll; /* fixed backgrounds are buggy/janky on mobile browsers */
  }

  .pillars-section-bg {
    background-attachment: scroll;
  }

  .hero-arabic-badge .arabic {
    font-size: 1.4rem;
  }

  .hero p.hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-trust-bar {
    gap: 20px;
  }

  .donate-box {
    padding: 28px 20px;
  }

  .hadith-card {
    padding: 32px 20px 40px;
  }

  .hadith-text {
    font-size: 1.3rem;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .amounts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-theme-card {
    padding: 24px 20px;
  }

  .accordion-header {
    font-size: 1.15rem;
    padding: 14px 18px;
  }

  .footer-links {
    gap: 14px;
  }

  .pw-launcher {
    right: 14px;
    bottom: 18px;
    padding: 12px 14px;
  }
}

/* =========================================================================
   STICKY PRAYER TIMINGS WIDGET
   Uses the same CSS variables already defined in styles.css:
   --color-burgundy, --color-crimson, --color-gold, --color-gold-light,
   --bg-card, --bg-main, --border-color, --text-dark, --text-muted, --shadow-lg
   ========================================================================= */

/* ---- Floating launcher tab (always visible, bottom-right) ---- */
.pw-launcher {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-burgundy);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  padding: 14px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pw-launcher:hover {
  background: var(--color-crimson);
  transform: translateY(-2px);
}

.pw-launcher svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hide the launcher while the panel itself is open */
.pw-launcher.pw-hidden {
  display: none;
}

/* ---- Sliding panel ---- */
.pw-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 92vw;
  height: 100dvh;
  background: var(--color-burgundy);
  background-image: linear-gradient(180deg, var(--color-burgundy) 0%, #4a0506 100%);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow-y: auto;
  transition: right 0.4s ease;
  font-family: 'Work Sans', sans-serif;
}

.pw-panel.pw-open {
  right: 0;
}

.pw-panel::-webkit-scrollbar {
  width: 6px;
}
.pw-panel::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}

.pw-inner {
  padding: 26px 22px 40px;
}

/* ---- Header ---- */
.pw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pw-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold-light);
}

.pw-header-title svg {
  width: 22px;
  height: 22px;
}

.pw-header-title span {
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pw-close-btn {
  background: none;
  border: none;
  color: var(--color-gold-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.pw-close-btn:hover {
  opacity: 1;
}

/* ---- Location toggle pills ---- */
.pw-loc-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.pw-loc-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 50px;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pw-loc-btn.active {
  background: var(--color-gold);
  color: var(--color-burgundy);
}

/* ---- Next prayer block ---- */
.pw-next-label {
  text-align: center;
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pw-iqamah-time {
  text-align: center;
  color: #FFFFFF;
  font-family: 'Amiri', serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pw-countdown {
  text-align: center;
  color: var(--color-gold-light);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* ---- Date nav ---- */
.pw-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.pw-date-arrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-gold-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pw-date-arrow:hover {
  background: rgba(255,255,255,0.18);
}

.pw-date-center {
  text-align: center;
  color: var(--color-gold-light);
}

.pw-date-weekday {
  font-family: 'Amiri', serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.pw-date-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ---- Prayer table ---- */
.pw-table-wrap {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
}

.pw-table-head, .pw-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 11px 16px;
  text-align: center;
}

.pw-table-head {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.pw-table-row {
  color: #FFFFFF;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pw-table-row:last-child {
  border-bottom: none;
}

.pw-table-row.pw-active-row {
  background: rgba(197, 155, 39, 0.18);
  font-weight: 700;
}

.pw-table-row span:first-child {
  text-align: left;
  font-weight: 600;
}

/* ---- Action buttons ---- */
.pw-action-btn {
  display: block;
  width: 100%;
  background: #FFFFFF;
  color: var(--color-burgundy);
  border: none;
  border-radius: 50px;
  padding: 13px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pw-action-btn:hover {
  background: var(--color-gold-light);
}

/* ---- Jumu'ah screen ---- */
.pw-back-row {
  margin-bottom: 14px;
}

.pw-back-btn {
  background: none;
  border: none;
  color: var(--color-gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}

.pw-jumuah-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 20px;
}

.pw-jumuah-title svg {
  width: 24px;
  height: 24px;
}

.pw-jumuah-title span {
  font-family: 'Amiri', serif;
  color: var(--color-gold-light);
  font-size: 1.15rem;
  font-weight: 700;
}

.pw-month-pill {
  display: block;
  margin: 0 auto 20px;
  width: fit-content;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-gold-light);
  padding: 7px 22px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pw-venue-card {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  margin-bottom: 18px;
  padding-top: 18px;
  position: relative;
}

.pw-venue-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-burgundy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.pw-venue-sessions {
  padding: 6px 16px 16px;
}

.pw-venue-head, .pw-venue-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1fr;
  text-align: center;
  padding: 6px 0;
}

.pw-venue-head {
  color: var(--color-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pw-venue-row {
  color: #FFFFFF;
  font-size: 0.9rem;
}

.pw-venue-address {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  padding: 4px 16px 16px;
}

.pw-venue-note {
  text-align: center;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px 16px;
}

/* ---- Screen switching ---- */
.pw-screen {
  display: none;
}

.pw-screen.pw-visible {
  display: block;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .pw-panel {
    width: 100%;
    max-width: 100%;
    right: -100%;
  }
  .pw-launcher span.pw-launcher-label {
    display: none;
  }
}