/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --green:        #1B4332;
  --green-mid:    #2D6A4F;
  --green-light:  #40916C;
  --gold:         #C9A227;
  --gold-light:   #F0C040;
  --cream:        #FAFAF8;
  --white:        #FFFFFF;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-400:     #9CA3AF;
  --gray-600:     #4B5563;
  --gray-800:     #1F2937;
  --text:         #111827;
  --text-muted:   #6B7280;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --transition:   .25s ease;
  --navbar-h:     70px;
  --ticker-h:     38px;
}

[data-theme="dark"] {
  --cream:      #0F1A14;
  --white:      #1A2E20;
  --gray-50:    #162118;
  --gray-100:   #1E2D24;
  --gray-200:   #2A3D30;
  --gray-400:   #6B8F73;
  --gray-600:   #94A89C;
  --gray-800:   #D1E8D6;
  --text:       #E8F5E9;
  --text-muted: #94A89C;
  --shadow:     0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.5);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  margin: .5rem 0;
}
[data-theme="dark"] .section-head h2 { color: var(--gold-light); }
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(27,67,50,.1);
  color: var(--green-mid);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 100px;
}
[data-theme="dark"] .badge { background: rgba(64,145,108,.2); color: var(--green-light); }
.badge.light {
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--green);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 4px 14px rgba(201,162,39,.4); }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-mid); }

.btn-outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-ghost {
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); }

.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }
.mt-1 { margin-top: .75rem; }

/* ============================================================
   TICKER / ANNOUNCEMENT BAR
   ============================================================ */
.ticker-bar {
  height: var(--ticker-h);
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--green);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .4rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track-wrap {
  overflow: hidden;
  flex: 1;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track span {
  font-size: .82rem;
  padding: 0 2.5rem;
  border-right: 1px solid rgba(255,255,255,.2);
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  flex-shrink: 0;
}
.brand-icon.light { color: rgba(255,255,255,.85); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
}
[data-theme="dark"] .brand-name { color: var(--gold-light); }
.brand-sub {
  font-size: .72rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.nav-link {
  padding: .5rem .7rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--gray-100); color: var(--green); }
[data-theme="dark"] .nav-link:hover { background: var(--gray-200); }

.drop-btn { color: var(--text); font-size: .88rem; font-weight: 500; }
[data-theme="dark"] .drop-btn { color: var(--text); }

.nav-drop { position: relative; }
.drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem;
  z-index: 100;
}
.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel { display: block; }
.drop-panel a {
  display: block;
  padding: .5rem .85rem;
  font-size: .88rem;
  border-radius: 6px;
  color: var(--text);
}
.drop-panel a:hover { background: var(--gray-100); color: var(--green); }

.nav-extras {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: .5rem;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--transition);
}
.theme-btn:hover { background: var(--gray-100); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h) - var(--ticker-h));
  background: var(--green);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 4L46 26L66 14L52 32L78 40L52 48L66 66L46 54L40 76L34 54L14 66L28 48L2 40L28 32L14 14L34 26Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,.95) 0%, rgba(45,106,79,.8) 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-text { color: #fff; }

.arabic-text {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  direction: rtl;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .88rem;
  color: rgba(255,255,255,.65);
}
.hero-meta i { color: var(--gold); }

/* Hero Prayer Widget */
.prayer-widget {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.widget-top {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: .75rem;
  margin-bottom: 1rem;
}
.widget-next {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}
.next-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.next-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin: .2rem 0;
}
[data-theme="dark"] .next-name { color: var(--gold-light); }
.next-time {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.countdown {
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  letter-spacing: .04em;
}
[data-theme="dark"] .countdown { color: var(--gold-light); }

.widget-prayers {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1rem;
}
.widget-prayers li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .6rem;
  border-radius: 6px;
  font-size: .88rem;
}
.widget-prayers li.active {
  background: rgba(27,67,50,.08);
  font-weight: 600;
  color: var(--green);
}
[data-theme="dark"] .widget-prayers li.active {
  background: rgba(64,145,108,.15);
  color: var(--gold-light);
}
.widget-prayers li .p-name { color: var(--text); }
.widget-prayers li .p-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.widget-prayers li.active .p-name,
.widget-prayers li.active .p-time { color: inherit; }

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  animation: bounce .9s ease-in-out infinite alternate;
  z-index: 2;
}
@keyframes bounce { to { transform: translateX(-50%) translateY(6px); } }

/* ============================================================
   PRAYER TIMES SECTION
   ============================================================ */
.prayer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.prayer-bar-date,
.prayer-bar-hijri {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.prayer-bar-date i { color: var(--green); }
.prayer-bar-hijri i { color: var(--gold); }
.prayer-bar-next {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}
.next-badge {
  background: var(--green);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.prayer-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.prayer-card:hover { box-shadow: var(--shadow); }
.prayer-card.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.prayer-card.skeleton {
  height: 120px;
  background: var(--gray-100);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }

.prayer-card .p-icon {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.prayer-card .p-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .2rem;
}
.prayer-card .p-arabic {
  font-family: 'Amiri', serif;
  font-size: .95rem;
  opacity: .65;
  margin-bottom: .5rem;
}
.prayer-card .p-time {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.prayer-card.active .p-time { color: var(--gold-light); }

.prayer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .84rem;
}
.prayer-note i { color: var(--green-light); margin-right: .3rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--gray-50); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.25rem;
}
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.stat-n {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}
[data-theme="dark"] .stat-n { color: var(--gold-light); }
.stat-l {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
  margin: .5rem 0 1rem;
}
[data-theme="dark"] .about-content h2 { color: var(--gold-light); }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; }

.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.5rem 0; }
.feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 500;
}
.feature i { color: var(--green-light); width: 16px; }

.about-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.prog-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}
.prog-icon.green  { background: var(--green-light); }
.prog-icon.gold   { background: var(--gold); color: var(--green); }
.prog-icon.blue   { background: #3B82F6; }
.prog-icon.purple { background: #8B5CF6; }
.prog-icon.orange { background: #F97316; }
.prog-icon.teal   { background: #0D9488; }

.program-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.program-card p  { font-size: .86rem; color: var(--text-muted); margin-bottom: 1rem; }
.prog-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
[data-theme="dark"] .prog-link { color: var(--gold-light); }
.prog-link:hover { gap: .6rem; }

/* ============================================================
   EVENTS
   ============================================================ */
.events-section { background: var(--gray-50); }

.events-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 500;
  border: 1.5px solid var(--gray-200);
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.event-card[hidden] { display: none; }

.event-date {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  width: 56px;
  text-align: center;
  padding: .6rem .3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.event-date span { font-size: .65rem; font-weight: 600; letter-spacing: .08em; opacity: .75; text-transform: uppercase; }
.event-date strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }

.event-body h3 { font-size: .95rem; font-weight: 600; margin: .4rem 0 .4rem; }
.event-body p  { font-size: .83rem; color: var(--text-muted); margin-bottom: .6rem; }

.etag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .15rem .55rem;
  border-radius: 100px;
}
.etag.community { background: rgba(27,67,50,.1); color: var(--green); }
.etag.education  { background: rgba(59,130,246,.12); color: #2563EB; }
.etag.youth      { background: rgba(249,115,22,.12); color: #EA580C; }
.etag.special    { background: rgba(201,162,39,.15); color: #92700B; }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.event-meta i { color: var(--green-light); }

/* ============================================================
   DONATE
   ============================================================ */
.donate-section {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
}

.donate-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 4L46 26L66 14L52 32L78 40L52 48L66 66L46 54L40 76L34 54L14 66L28 48L2 40L28 32L14 14L34 26Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.donate-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.donate-left h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin: .5rem 0 1rem;
}
.donate-left > p { color: rgba(255,255,255,.75); margin-bottom: 1.5rem; }

.campaign-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.campaign-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: .85rem;
  margin-bottom: .75rem;
  gap: .5rem;
}
.campaign-amt { font-weight: 600; color: var(--gold-light); white-space: nowrap; }
.progress-bar {
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin-bottom: .6rem;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: .4rem;
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  transition: width 1.5s cubic-bezier(.22,1,.36,1);
  width: 0;
}
.campaign-stats {
  display: flex;
  gap: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.campaign-stats strong { color: #fff; }

.amounts-label { font-size: .84rem; margin-bottom: .6rem; color: rgba(255,255,255,.7); }
.amount-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.amt-btn {
  padding: .5rem 1rem;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  transition: all var(--transition);
}
.amt-btn:hover, .amt-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}

.monthly-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.monthly-label input { display: none; }
.toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,.25);
  border-radius: 100px;
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.monthly-label input:checked + .toggle-track { background: var(--gold); }
.monthly-label input:checked + .toggle-track::after { transform: translateX(18px); }

.donate-right h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.donate-list { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.donate-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.donate-list li i { color: var(--gold-light); margin-top: .15rem; flex-shrink: 0; }

.hadith-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}
.hadith-quote p {
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: .3rem;
}
.hadith-quote cite { font-size: .82rem; color: var(--gold-light); }

.sadaqah-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.sadaqah-note i { color: var(--gold-light); flex-shrink: 0; margin-top: .1rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-icon { font-size: 2.2rem; margin-bottom: .85rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.service-card p  { font-size: .86rem; color: var(--text-muted); margin-bottom: 1rem; }
.svc-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
[data-theme="dark"] .svc-link { color: var(--gold-light); }
.svc-link:hover { gap: .6rem; }

/* ============================================================
   QIBLA
   ============================================================ */
.qibla-section { background: var(--gray-50); }

.qibla-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.qibla-info h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--green);
  margin: .5rem 0 1rem;
}
[data-theme="dark"] .qibla-info h2 { color: var(--gold-light); }
.qibla-info p { color: var(--text-muted); margin-bottom: .75rem; }
.qibla-coords { font-size: .85rem; display: flex; align-items: center; gap: .4rem; }
.qibla-coords i { color: var(--green-light); }

.compass {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}
.compass-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cn, .ce, .cs, .cw {
  position: absolute;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.cn { top: 8px; left: 50%; transform: translateX(-50%); color: var(--green); }
.cs { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ce { right: 10px; top: 50%; transform: translateY(-50%); }
.cw { left: 10px; top: 50%; transform: translateY(-50%); }

.compass-needle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(var(--qibla-deg));
}
.needle-head {
  position: absolute;
  top: 20px;
  font-size: 1.4rem;
  animation: pulse-slow 2s ease-in-out infinite;
}
@keyframes pulse-slow { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.needle-tail {
  position: absolute;
  bottom: 20px;
  width: 2px;
  height: 60px;
  background: linear-gradient(to top, var(--gold), transparent);
  border-radius: 2px;
}
.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid #fff;
}
.compass-deg-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 600;
  color: var(--green);
}
[data-theme="dark"] .compass-deg-label { color: var(--gold-light); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: .75rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item.large {
  grid-column: span 1;
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,67,50,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gal-overlay { opacity: 1; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: var(--green); }

.newsletter-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.newsletter-text h2 { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.newsletter-text p  { color: rgba(255,255,255,.75); }
.nl-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .6rem;
}
.form-input {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(64,145,108,.15);
}
.nl-row .form-input { flex: 1; min-width: 160px; }
.nl-note { font-size: .78rem; color: rgba(255,255,255,.55); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.cinfo-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.cinfo-card:last-of-type { border-bottom: none; }
.cinfo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(27,67,50,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
[data-theme="dark"] .cinfo-icon { background: rgba(64,145,108,.15); }
.cinfo-card h4 { font-size: .88rem; font-weight: 600; margin-bottom: .2rem; }
.cinfo-card p, .cinfo-card a { font-size: .9rem; color: var(--text-muted); }
.cinfo-card a:hover { color: var(--green); }
.cinfo-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--green) !important;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .3rem;
}

.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .95rem;
  transition: transform var(--transition), opacity var(--transition);
}
.social-btn:hover { transform: translateY(-2px); opacity: .85; }
.social-btn.fb { background: #1877F2; }
.social-btn.yt { background: #FF0000; }
.social-btn.wa { background: #25D366; }
.social-btn.ig { background: linear-gradient(45deg,#405DE6,#E1306C); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .35rem;
  color: var(--text);
}
textarea.form-input { resize: vertical; }
select.form-input { cursor: pointer; }

.contact-map {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--gray-200);
}
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0D2418; color: rgba(255,255,255,.75); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}
.footer-logo .brand-name { color: #fff; }
.footer-logo .brand-sub  { color: rgba(255,255,255,.5); }

.footer-brand p { font-size: .88rem; line-height: 1.65; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green);
}

.footer-col h4 {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: .03em;
}
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { font-size: .86rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-col p {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .86rem;
  margin-bottom: .6rem;
}
.footer-contact-col p i { color: var(--gold); margin-top: .2rem; flex-shrink: 0; }
.footer-contact-col a { color: inherit; transition: color var(--transition); }
.footer-contact-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.fabs {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 900;
}
.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}
.fab:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.fab-wa { background: #25D366; color: #fff; }
.fab-top {
  background: var(--green);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.fab-top.visible { opacity: 1; pointer-events: auto; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
  cursor: pointer;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 3000;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .programs-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }

  .hero-container { grid-template-columns: 1fr; }
  .hero-widget    { display: none; }

  .about-grid       { grid-template-columns: 1fr; }
  .about-visual     { max-width: 500px; }

  .donate-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .qibla-container { grid-template-columns: 1fr; text-align: center; }
  .qibla-compass-wrap { display: flex; justify-content: center; }
  .compass-deg-label { position: static; margin-top: .6rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav */
  .menu-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: calc(var(--navbar-h) + var(--ticker-h));
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; border-radius: 8px; }
  .nav-drop { width: 100%; }
  .drop-panel {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--gray-50);
    border-radius: 8px;
    display: none;
    padding: .25rem .5rem;
    margin-top: .25rem;
  }
  .nav-drop.open .drop-panel { display: block; }
  .nav-extras { width: 100%; padding-top: .75rem; border-top: 1px solid var(--gray-200); justify-content: flex-start; }

  /* Ticker */
  .ticker-label { display: none; }

  /* Hero */
  .hero-text h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

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

  /* Events */
  .events-grid { grid-template-columns: 1fr; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }

  /* Newsletter */
  .newsletter-box { grid-template-columns: 1fr; gap: 1.5rem; }
  .nl-row { flex-direction: column; }
  .nl-row .form-input { min-width: unset; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-col { grid-column: 1 / -1; }

  /* Donate */
  .campaign-top { flex-direction: column; }
  .amount-row .amt-btn { flex: 1; min-width: 70px; }

  /* About stats */
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .prayer-grid    { grid-template-columns: 1fr 1fr; }
  .programs-grid  { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .prayer-bar     { flex-direction: column; align-items: flex-start; }
  .prayer-bar-next { margin-left: 0; }
  .footer-grid    { grid-template-columns: 1fr; }
}
