/* ================================================================
   MASJID FARHAT HABEEB — STYLE SHEET v3.0
   Mobile-First | Fully Responsive | Modern Islamic Design
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Amiri:wght@400;700&display=swap');

/* ================================================================
   1. DESIGN TOKENS
================================================================ */
:root {
  /* Brand */
  --clr-primary:       #0b5e32;
  --clr-primary-light: #0f7a43;
  --clr-primary-dark:  #073d21;
  --clr-primary-bg:    #e8f5ee;
  --clr-gold:          #c9a227;
  --clr-gold-light:    #e8cf6a;
  --clr-gold-dark:     #9a7d1e;
  --clr-gold-bg:       #fdf9e7;

  /* Neutrals */
  --clr-dark:       #0d1117;
  --clr-text:       #2d3748;
  --clr-text-muted: #718096;
  --clr-border:     #e2e8f0;
  --clr-bg:         #f8f6f2;
  --clr-white:      #ffffff;

  /* Dark panel (prayer section) */
  --clr-night:   #0c1a11;
  --clr-night-2: #152a1d;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px  rgba(0,0,0,0.08);
  --shadow:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Typography */
  --ff-body:    'Inter', system-ui, Arial, sans-serif;
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-arabic:  'Amiri', serif;

  /* Spacing */
  --s-1:  4px;  --s-2:  8px;  --s-3:  12px; --s-4:  16px;
  --s-5:  20px; --s-6:  24px; --s-8:  32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(16px, 5vw, 48px);
  --header-h: 64px;

  /* Transitions */
  --t:      0.22s ease;
  --t-slow: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ================================================================
   2. RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

a {
  text-decoration: none;
  color: var(--clr-primary);
  transition: color var(--t);
}
a:hover { color: var(--clr-primary-light); }

button { cursor: pointer; font-family: var(--ff-body); border: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--clr-dark);
  font-weight: 700;
}


/* ================================================================
   3. UTILITIES
================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left:  var(--container-pad);
  padding-right: var(--container-pad);
}

.section { padding: var(--s-10) 0; }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--clr-primary-dark);
  margin-bottom: var(--s-6);
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--clr-gold);
  margin: var(--s-3) auto 0;
  border-radius: 2px;
}

.page-title-bar {
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--s-5) 0;
}
.page-title-bar h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--clr-primary-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 10px 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t);
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--clr-gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--clr-gold-dark);
  color: #fff;
  transform: translateY(-1px);
}


/* ================================================================
   4. NAVIGATION
================================================================ */
.top-header {
  background: var(--clr-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: #fff;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.brand:hover { opacity: 0.88; color: #fff; }

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.28);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

/* Desktop nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav > a,
.main-nav .dropbtn {
  color: rgba(255,255,255,0.88);
  padding: 7px 11px;
  border-radius: var(--r-xs);
  font-size: 0.83rem;
  font-weight: 500;
  transition: background var(--t), color var(--t);
  display: block;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav .dropbtn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.main-nav > a.active { color: var(--clr-gold-light); }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  /* top & padding-top set in the hover-gap-fix block below */
  left: 0;
  background: #fff;
  min-width: 176px;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 9999;
}
.dropdown:hover .dropdown-content { display: block; }

.dropdown-content a,
.sub-dropbtn {
  display: block;
  padding: 10px 16px;
  color: var(--clr-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--t), color var(--t);
}
.dropdown-content a:hover,
.sub-dropbtn:hover {
  background: var(--clr-primary-bg);
  color: var(--clr-primary);
}

/* Sub-dropdown */
.sub-dropdown { position: relative; }

.sub-dropdown-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  min-width: 176px;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 9999;
}
.sub-dropdown:hover .sub-dropdown-content { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border-radius: var(--r-sm);
  transition: background var(--t);
  padding: 0;
}
.hamburger:hover { background: rgba(255,255,255,0.14); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Desktop dropdown hover-gap fix ─────────────────────
   top: 100% (no gap) so hover is never lost between
   button and menu. padding-top provides visual spacing.
──────────────────────────────────────────────────────── */
.dropdown-content {
  top: 100%;
  padding-top: 6px;
}

/* Mobile nav — hidden by default, slides down when open */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .brand-name { display: none; }

  .main-nav {
    /* Use display:none / flex instead of transform so
       it works reliably on iOS Safari & Android WebView */
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--clr-primary-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-1) 0 var(--s-5);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open {
    display: flex;
    animation: navSlideIn 0.28s ease both;
  }

  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-nav > a,
  .main-nav .dropbtn {
    padding: 14px 20px;
    border-radius: 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    white-space: normal;
  }
  .main-nav > a:hover,
  .main-nav .dropbtn:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
  }

  .dropdown { display: block; }

  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.22);
    border-radius: 0;
    padding-top: 0;
    top: auto;
  }
  /* Remove bridge on mobile */
  .dropdown-content::before { display: none; }
  .dropdown.open .dropdown-content { display: block; }

  .dropdown-content a,
  .sub-dropbtn {
    color: rgba(255,255,255,0.80);
    padding: 12px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: transparent;
  }
  .dropdown-content a:hover,
  .sub-dropbtn:hover {
    color: var(--clr-gold-light);
    background: rgba(255,255,255,0.06);
  }

  .sub-dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0,0,0,0.18);
    border-radius: 0;
  }
  .sub-dropdown.open .sub-dropdown-content { display: block; }
  .sub-dropdown-content a { padding-left: 52px; }
}


/* ================================================================
   5. HERO BANNER — Home Page (Cinematic, photo-forward)
================================================================ */
.hero-banner {
  position: relative;
  width: 100%;
  /* Sky-blue gradient matches the photo edges so no ugly bars appear */
  background: linear-gradient(to bottom, #8ac4e0 0%, #c8dfe9 50%, #e2ebe6 100%);
  overflow: hidden;
}

/* ── Mobile: image fills width naturally, full building visible ── */
.hero-bg-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
}

/* ── Desktop: contain inside a capped hero, sky background fills gaps ── */
@media (min-width: 901px) {
  .hero-banner {
    height: 80vh;
    max-height: 720px;
  }
  .hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

/* Near-invisible green tint so text is readable */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 94, 50, 0.10) 0%,
    rgba(7, 61, 33, 0.22) 100%
  );
  z-index: 1;
}

/* Content floats over the image */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-5);
  padding: var(--s-8) var(--container-pad);
  animation: fadeInUp 0.9s ease both;
}

/* Bismillah — bright gold with a dark halo so it pops on any background */
.hero-bismillah {
  font-family: var(--ff-arabic);
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--clr-gold-light);
  text-shadow:
    0 2px 6px rgba(0,0,0,0.55),
    0 0 24px rgba(0,0,0,0.35);
  letter-spacing: 4px;
  line-height: 1.3;
  margin-bottom: var(--s-2);
}

/* Masjid name — white with strong drop shadow */
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.65),
    0 0 32px rgba(0,0,0,0.40);
  line-height: 1.15;
  letter-spacing: 0.5px;
}

/* Address — white with shadow */
.hero-address {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.5px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.60);
}

/* Next prayer — no box, just floating text over the photo */
.hero-prayer-card {
  background: none;
  border: none;
  padding: var(--s-3) 0;
  text-align: center;
  margin-top: var(--s-2);
}
.hpc-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.50);
  margin-bottom: var(--s-1);
}
.hpc-name,
#next-prayer-name {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.60);
  line-height: 1.2;
}
.hpc-countdown,
#next-prayer-countdown {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  letter-spacing: 5px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  display: block;
}

/* CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--clr-primary-dark);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  margin-top: var(--s-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}
.hero-cta:hover {
  background: var(--clr-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11,94,50,0.45);
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.45);
  font-size: 1.3rem;
  animation: heroBounce 2s ease-in-out infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   ANNOUNCEMENTS SECTION (between hero and prayer times)
================================================================ */
.ann-section {
  background: var(--clr-primary-dark);
  padding: var(--s-8) var(--container-pad);
  text-align: center;
}

.ann-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--clr-gold-light);
  margin-bottom: var(--s-5);
  letter-spacing: 1px;
}

.ann-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 20px 24px 24px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.7;
}

.ann-card p {
  margin: 0 0 5px;
  color: rgba(255,255,255,0.82);
}

.ann-card p strong {
  color: #fff;
}

.ann-eid {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: var(--clr-gold-light) !important;
}

@media (max-width: 640px) {
  .ann-section { padding: var(--s-6) var(--s-4); }
  .ann-card { padding: 16px 18px 22px; font-size: 0.85rem; }
}

/* ── Keep old card styles in case used on other pages ── */
.new-badge {
  background: var(--clr-gold);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  vertical-align: middle;
}


/* ================================================================
   6. PRAYER TIMES — NIGHT SKY THEME
================================================================ */
.pt-section {
  position: relative;
  background: linear-gradient(170deg, #0a1628 0%, #0f2035 40%, #132a46 70%, #0d1b2e 100%);
  padding: var(--s-8) var(--container-pad) var(--s-12);
  overflow: hidden;
  color: #fff;
}

/* ── Stars layer ─────────────────────────────────── */
.pt-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-stars::before,
.pt-stars::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  border-radius: 50%;
}
.pt-stars::before {
  box-shadow:
    24px 38px 0 0.8px rgba(255,255,255,0.40),
    178px 67px 0 1px rgba(255,255,255,0.50),
    312px 25px 0 0.5px rgba(255,255,255,0.30),
    427px 88px 0 1px rgba(255,255,255,0.45),
    563px 42px 0 0.6px rgba(255,255,255,0.35),
    698px 75px 0 1px rgba(255,255,255,0.50),
    821px 33px 0 0.5px rgba(255,255,255,0.30),
    942px 98px 0 1px rgba(255,255,255,0.40),
    1067px 55px 0 0.5px rgba(255,255,255,0.35),
    1189px 110px 0 1px rgba(255,255,255,0.45),
    55px 145px 0 0.6px rgba(255,255,255,0.30),
    211px 152px 0 1px rgba(255,255,255,0.40),
    367px 163px 0 0.5px rgba(255,255,255,0.35),
    523px 148px 0 1px rgba(255,255,255,0.50),
    679px 185px 0 0.6px rgba(255,255,255,0.30),
    89px 230px 0 0.8px rgba(255,255,255,0.40),
    445px 260px 0 1px rgba(255,255,255,0.35),
    780px 240px 0 0.5px rgba(255,255,255,0.45),
    1100px 220px 0 0.7px rgba(255,255,255,0.30);
  animation: starTwinkle 4s ease-in-out infinite alternate;
}
.pt-stars::after {
  box-shadow:
    145px 28px 0 0.5px rgba(255,255,255,0.35),
    245px 95px 0 1px rgba(255,255,255,0.40),
    380px 44px 0 0.6px rgba(255,255,255,0.30),
    502px 112px 0 1px rgba(255,255,255,0.45),
    634px 31px 0 0.5px rgba(255,255,255,0.35),
    756px 88px 0 1px rgba(255,255,255,0.40),
    889px 19px 0 0.5px rgba(255,255,255,0.30),
    1003px 73px 0 1px rgba(255,255,255,0.45),
    132px 178px 0 1px rgba(255,255,255,0.40),
    289px 188px 0 0.5px rgba(255,255,255,0.30),
    601px 168px 0 0.6px rgba(255,255,255,0.35),
    757px 195px 0 1px rgba(255,255,255,0.40),
    950px 175px 0 0.5px rgba(255,255,255,0.35),
    350px 270px 0 0.8px rgba(255,255,255,0.30),
    620px 255px 0 0.7px rgba(255,255,255,0.45);
  animation: starTwinkle 5.5s ease-in-out infinite alternate-reverse;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ── Sun-path arc ────────────────────────────────── */
.sky-arc-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto var(--s-5);
  padding: 0 var(--container-pad);
}
.sky-arc { width: 100%; height: auto; display: block; }

/* Default (night) dot + label colors */
.arc-dot { fill: rgba(255,255,255,0.50); }
.arc-dot-active { fill: #e8cf6a; animation: dotPulse 2s ease-in-out infinite; }
.arc-label { fill: rgba(255,255,255,0.35); }
.arc-label-active { fill: #e8cf6a; font-weight: 700; }

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── Header ──────────────────────────────────────── */
.pt-header {
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto var(--s-8);
  position: relative;
  z-index: 1;
}
.pt-hijri {
  font-family: var(--ff-arabic);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  color: var(--clr-gold-light);
  margin-bottom: var(--s-1);
  letter-spacing: 0.5px;
  opacity: 0.75;
}
.pt-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-2);
}
.pt-title::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--clr-gold);
  margin: var(--s-2) auto 0;
  border-radius: 2px;
}
.pt-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.pt-meta-sep { opacity: 0.3; }
.pt-clock {
  font-weight: 700;
  color: var(--clr-gold-light);
  font-variant-numeric: tabular-nums;
}

/* ── Card Grid ───────────────────────────────────── */
.pt-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Individual Card — frosted glass ─────────────── */
.prayer-card {
  flex: 0 0 155px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 22px 14px 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.09);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
  animation: cardSlideUp 0.5s ease both;
}
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Top accent bar */
.prayer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  opacity: 0;
  transition: opacity var(--t);
}
.prayer-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  border-color: rgba(255,255,255,0.14);
}
.prayer-card:hover::after { opacity: 1; }

/* ── Next prayer — breathing gold glow ── */
.prayer-card.next {
  border-color: rgba(201,162,39,0.45);
  background: rgba(201,162,39,0.10);
  animation: cardSlideUp 0.5s ease both, nextGlow 3s ease-in-out infinite alternate;
}
.prayer-card.next::after {
  opacity: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold-dark), var(--clr-gold-light));
}
@keyframes nextGlow {
  0%   { box-shadow: 0 0 18px rgba(201,162,39,0.12), 0 4px 16px rgba(0,0,0,0.20); }
  100% { box-shadow: 0 0 36px rgba(201,162,39,0.30), 0 4px 16px rgba(0,0,0,0.20); }
}

/* Active (between athan & iqamah) */
.prayer-card.active {
  border-color: rgba(15,122,67,0.50);
  background: rgba(15,122,67,0.12);
}

/* Night prayer tint */
.prayer-card.night { background: rgba(6, 10, 28, 0.40); }

/* ── Prayer name ── */
.prayer-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 14px;
}
.prayer-name .arabic {
  font-family: var(--ff-arabic);
  font-size: 1.3rem;
  color: var(--clr-gold-light);
  direction: rtl;
  line-height: 1.3;
}
.prayer-name .english {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
}

/* ── Time displays ── */
.iqamah-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}
.athan-time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  display: block;
  line-height: 1.4;
}
.athan-text {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.iqamah-text {
  font-size: 0.58rem;
  color: var(--clr-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.live-now {
  display: inline-block;
  margin-top: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: pulse 1.5s ease-in-out infinite;
}

.iqamah-countdown {
  font-size: 0.68rem;
  color: var(--clr-gold-light);
  margin-top: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tahajjud-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* Next prayer card accent overrides (night default) */
.prayer-card.next .iqamah-time { color: var(--clr-gold-light); }
.prayer-card.next .prayer-name .arabic { color: var(--clr-gold-light); }

/* ================================================================
   6b. CELESTIAL BODIES — Sun & Moon
================================================================ */
.celestial-sun,
.celestial-moon {
  position: absolute;
  z-index: 1;
  font-size: 2.8rem;
  pointer-events: none;
  transition: opacity 0.6s ease;
  opacity: 0;
}

/* Sun — top right area */
.celestial-sun {
  top: 18%;
  right: 12%;
  filter: drop-shadow(0 0 18px rgba(255,200,50,0.60));
  animation: sunFloat 6s ease-in-out infinite;
}
@keyframes sunFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Moon — top left area */
.celestial-moon {
  top: 14%;
  left: 10%;
  filter: drop-shadow(0 0 14px rgba(200,210,255,0.50));
  animation: moonFloat 8s ease-in-out infinite;
}
@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50%      { transform: translateY(-6px) rotate(-8deg); }
}

/* Show/hide based on theme class */
.pt-section.pt-day  .celestial-sun  { opacity: 1; }
.pt-section.pt-dawn .celestial-sun  { opacity: 0.7; }
.pt-section.pt-dusk .celestial-sun  { opacity: 0.5; }
.pt-section.pt-night .celestial-moon { opacity: 1; }
.pt-section.pt-dawn  .celestial-moon { opacity: 0; }
.pt-section.pt-dusk  .celestial-moon { opacity: 0.4; }

/* ================================================================
   6c. DAWN THEME — warm orange/pink sky
================================================================ */
.pt-section.pt-dawn {
  background: linear-gradient(170deg, #1a1a3e 0%, #6b3a5a 20%, #d4735c 50%, #f0a953 80%, #fcd984 100%);
}
.pt-section.pt-dawn .pt-stars::before,
.pt-section.pt-dawn .pt-stars::after { opacity: 0.25; }

.pt-section.pt-dawn .sky-arc line  { stroke: rgba(255,255,255,0.10); }
.pt-section.pt-dawn .sky-arc path  { stroke: rgba(255,200,100,0.35); }
.pt-section.pt-dawn .arc-dot       { fill: rgba(255,255,255,0.60); }
.pt-section.pt-dawn .arc-dot-active { fill: #fcd984; }
.pt-section.pt-dawn .arc-label     { fill: rgba(255,255,255,0.55); }
.pt-section.pt-dawn .arc-label-active { fill: #fcd984; }

.pt-section.pt-dawn .pt-hijri { color: #fcd984; }
.pt-section.pt-dawn .pt-title { color: #fff; }
.pt-section.pt-dawn .pt-meta  { color: rgba(255,255,255,0.70); }
.pt-section.pt-dawn .pt-clock { color: #fcd984; }

.pt-section.pt-dawn .prayer-card {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
}
.pt-section.pt-dawn .prayer-card:hover {
  background: rgba(255,255,255,0.22);
}
.pt-section.pt-dawn .prayer-card.next {
  border-color: rgba(252,217,132,0.50);
  background: rgba(252,217,132,0.12);
}

/* ================================================================
   6d. DAY THEME — bright blue sky with sun
================================================================ */
.pt-section.pt-day {
  background: linear-gradient(170deg, #3a8fd4 0%, #5ba3d9 25%, #7ec8e3 55%, #a8dff0 85%, #d4eef8 100%);
}
.pt-section.pt-day .pt-stars { display: none; }

.pt-section.pt-day .sky-arc line  { stroke: rgba(0,0,0,0.08); }
.pt-section.pt-day .sky-arc path  { stroke: rgba(7,61,33,0.30); }
.pt-section.pt-day .arc-dot       { fill: var(--clr-primary-dark); }
.pt-section.pt-day .arc-dot-active { fill: var(--clr-gold-dark); }
.pt-section.pt-day .arc-label     { fill: var(--clr-primary-dark); opacity: 0.70; }
.pt-section.pt-day .arc-label-active { fill: var(--clr-gold-dark); opacity: 1; }

.pt-section.pt-day .pt-hijri { color: var(--clr-gold-dark); opacity: 0.9; }
.pt-section.pt-day .pt-title { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.15); }
.pt-section.pt-day .pt-meta  { color: rgba(255,255,255,0.80); }
.pt-section.pt-day .pt-clock { color: #fff; }

.pt-section.pt-day .prayer-card {
  background: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.70);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pt-section.pt-day .prayer-card:hover {
  background: rgba(255,255,255,0.72);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.pt-section.pt-day .prayer-card.night { background: rgba(255,255,255,0.40); }

.pt-section.pt-day .prayer-name .arabic { color: var(--clr-primary-dark); }
.pt-section.pt-day .prayer-name .english { color: rgba(0,0,0,0.50); }
.pt-section.pt-day .iqamah-time { color: var(--clr-primary-dark); }
.pt-section.pt-day .athan-time  { color: rgba(0,0,0,0.45); }
.pt-section.pt-day .iqamah-countdown { color: var(--clr-gold-dark); }
.pt-section.pt-day .tahajjud-label   { color: rgba(0,0,0,0.40); }

.pt-section.pt-day .prayer-card.next {
  background: rgba(255,255,255,0.80);
  border-color: var(--clr-gold);
  animation: cardSlideUp 0.5s ease both, nextGlowDay 3s ease-in-out infinite alternate;
}
.pt-section.pt-day .prayer-card.next .iqamah-time { color: var(--clr-gold-dark); }
.pt-section.pt-day .prayer-card.next .prayer-name .arabic { color: var(--clr-gold-dark); }

@keyframes nextGlowDay {
  0%   { box-shadow: 0 0 16px rgba(201,162,39,0.15), 0 4px 12px rgba(0,0,0,0.08); }
  100% { box-shadow: 0 0 32px rgba(201,162,39,0.30), 0 4px 12px rgba(0,0,0,0.08); }
}

/* ================================================================
   6e. DUSK THEME — warm orange/purple sunset sky
================================================================ */
.pt-section.pt-dusk {
  background: linear-gradient(170deg, #1e1640 0%, #5c2d6e 20%, #c04e3e 50%, #e88a3a 80%, #f0c050 100%);
}
.pt-section.pt-dusk .pt-stars::before,
.pt-section.pt-dusk .pt-stars::after { opacity: 0.20; }

.pt-section.pt-dusk .sky-arc line  { stroke: rgba(255,255,255,0.08); }
.pt-section.pt-dusk .sky-arc path  { stroke: rgba(240,192,80,0.35); }
.pt-section.pt-dusk .arc-dot       { fill: rgba(255,255,255,0.55); }
.pt-section.pt-dusk .arc-dot-active { fill: #f0c050; }
.pt-section.pt-dusk .arc-label     { fill: rgba(255,255,255,0.50); }
.pt-section.pt-dusk .arc-label-active { fill: #f0c050; }

.pt-section.pt-dusk .pt-hijri { color: #f0c050; }
.pt-section.pt-dusk .pt-title { color: #fff; }
.pt-section.pt-dusk .pt-meta  { color: rgba(255,255,255,0.70); }
.pt-section.pt-dusk .pt-clock { color: #f0c050; }

.pt-section.pt-dusk .prayer-card {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
}
.pt-section.pt-dusk .prayer-card:hover {
  background: rgba(255,255,255,0.20);
}
.pt-section.pt-dusk .prayer-card.next {
  border-color: rgba(240,192,80,0.50);
  background: rgba(240,192,80,0.12);
}


/* ================================================================
   8. INNER PAGE BANNER
================================================================ */
.banner {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/gallery/Masjid01.jpeg') center/cover no-repeat;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,61,33,0.76) 0%, rgba(0,0,0,0.66) 100%);
}
.banner .overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: var(--s-8) var(--container-pad);
  width: 100%;
}
.banner h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--clr-gold-light);
  margin-bottom: var(--s-2);
}
.banner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
}


/* ================================================================
   9. ISLAMIC PANEL
================================================================ */
.islamic-panel {
  max-width: 680px;
  margin: var(--s-8) auto;
  background: var(--clr-gold-bg);
  padding: var(--s-6);
  border-radius: var(--r-md);
  border-left: 5px solid var(--clr-gold);
  box-shadow: var(--shadow-sm);
}
.islamic-panel h3 {
  margin-top: 0;
  color: var(--clr-primary);
  font-family: var(--ff-display);
  margin-bottom: var(--s-3);
}
.islamic-panel h4 {
  color: var(--clr-primary);
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}


/* ================================================================
   10. GALLERY PAGE
================================================================ */
.gallery-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--s-10) var(--container-pad);
}

.gallery-header {
  text-align: center;
  margin-bottom: var(--s-8);
}
.gallery-header h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--clr-primary-dark);
  margin-bottom: var(--s-5);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--clr-border);
  background: #fff;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--t);
}
.filter-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.filter-btn.active {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-5);
}

.gallery-item {
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--clr-border);
  transition: transform var(--t), box-shadow var(--t);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-thumb:hover img { transform: scale(1.08); }

.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-weight: 500;
  text-align: center;
}

.loading-indicator {
  text-align: center;
  padding: var(--s-6) 0;
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  display: none;
}


/* ================================================================
   11. LIGHTBOX
================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
}
#lightboxCaption {
  margin-top: var(--s-3);
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--t);
  user-select: none;
  z-index: 9999;
}
.lb-arrow:hover { background: rgba(255,255,255,0.28); }
.lb-left  { left: 16px; }
.lb-right { right: 16px; }

.lb-fullscreen-btn {
  position: absolute;
  bottom: -40px;
  right: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t);
}
.lb-fullscreen-btn:hover { background: rgba(255,255,255,0.28); }


/* ================================================================
   12. PROGRAMS PAGE
================================================================ */
.programs-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-10) var(--container-pad);
  text-align: center;
}
.programs-page h1 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--clr-primary-dark);
  margin-bottom: var(--s-3);
}
.programs-page .intro-text {
  font-size: 1rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--s-10);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-5);
  margin-bottom: var(--s-10);
}
.program-card {
  background: #fff;
  padding: var(--s-6);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  text-align: left;
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-primary);
  transition: transform var(--t), box-shadow var(--t), border-top-color var(--t);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--clr-gold);
}
.program-card h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--clr-primary-dark);
  margin-bottom: var(--s-3);
}
.program-card p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}


/* ================================================================
   13. BOOKS PAGE
================================================================ */
/* Hero banner shared for Books */
.hero {
  background: url('../images/gallery/Masjid01.jpeg') center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,61,33,0.72);
}
.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-gold-light);
  letter-spacing: 2px;
}

/* Book filters */
.filters {
  display: flex;
  justify-content: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--container-pad);
  flex-wrap: wrap;
}
.filters button {
  padding: 9px 20px;
  border: 1.5px solid var(--clr-border);
  background: #fff;
  color: var(--clr-text-muted);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--t);
}
.filters button.active,
.filters button:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

/* Books grid */
.books-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad) var(--s-12);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-5);
}

.book-card {
  display: block;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--clr-border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  text-decoration: none;
  color: inherit;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-gold);
  color: inherit;
}
.book-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--clr-bg);
}
.book-info {
  padding: var(--s-3) var(--s-4);
  text-align: center;
}
.book-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 2px;
}
.book-info p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}


/* ================================================================
   14. ZAKAT / FITRA PAGES
================================================================ */
.tab-container {
  display: flex;
  justify-content: center;
  margin: var(--s-6) auto;
  gap: var(--s-2);
  flex-wrap: wrap;
  padding: 0 var(--container-pad);
}
.tab-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--clr-border);
  background: #fff;
  color: var(--clr-text);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--t);
}
.tab-btn.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.tab-btn:hover:not(.active) { border-color: var(--clr-primary); color: var(--clr-primary); }

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

.zakat-box {
  max-width: 660px;
  margin: var(--s-5) auto;
  background: #fff;
  padding: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
}

.zakat-title {
  text-align: center;
  color: var(--clr-primary-dark);
  font-family: var(--ff-display);
  font-size: 1.4rem;
  margin-bottom: var(--s-5);
}
.zakat-box label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--clr-text);
  margin-top: var(--s-4);
  margin-bottom: var(--s-1);
}
.zakat-box input,
.zakat-box select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  transition: border-color var(--t);
  background: #fff;
}
.zakat-box input:focus,
.zakat-box select:focus { outline: none; border-color: var(--clr-primary); }

.zakat-box button {
  width: 100%;
  margin-top: var(--s-5);
  padding: 12px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--t), transform var(--t);
}
.zakat-box button:hover { background: var(--clr-primary-light); transform: translateY(-1px); }

.result-block, .zakat-result, .hawl-result {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--clr-primary-bg);
  border-radius: var(--r-sm);
  border: 1px solid rgba(15,122,67,0.2);
  color: var(--clr-primary-dark);
  font-weight: 600;
}

.rates-box {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--clr-gold-bg);
  border-radius: var(--r-sm);
  border: 1px solid rgba(201,162,39,0.25);
  color: var(--clr-gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.pay-zakat-btn {
  display: block;
  text-align: center;
  margin-top: var(--s-5);
  padding: 14px;
  background: var(--clr-gold);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--t), transform var(--t);
}
.pay-zakat-btn:hover { background: var(--clr-gold-dark); color: #fff; transform: translateY(-1px); }

.family-row {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-2);
  background: #fafafa;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--clr-border);
}
.family-row input,
.family-row select { flex: 1; margin-top: 0; }

/* Zakat section (about) */
.zakat-section { padding: var(--s-10); text-align: center; }

/* Fitra card */
.fitra-card {
  max-width: 460px;
  margin: var(--s-5) auto;
  padding: var(--s-6);
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
}
.fitra-card h2 {
  text-align: center;
  color: var(--clr-primary-dark);
  font-family: var(--ff-display);
  margin-bottom: var(--s-5);
}
.fitra-card label {
  font-weight: 600;
  margin-top: var(--s-4);
  display: block;
  font-size: 0.875rem;
  color: var(--clr-text);
}
.fitra-card select,
.fitra-card input {
  width: 100%;
  padding: 10px 14px;
  margin-top: 6px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--clr-border);
  font-size: 0.95rem;
  font-family: var(--ff-body);
  transition: border-color var(--t);
}
.fitra-card select:focus,
.fitra-card input:focus { border-color: var(--clr-primary); outline: none; }

.fitra-card button {
  width: 100%;
  margin-top: var(--s-5);
  padding: 12px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--t);
}
.fitra-card button:hover { background: var(--clr-primary-light); }
.fitra-donate  { background: var(--clr-gold) !important; }
.fitra-donate:hover { background: var(--clr-gold-dark) !important; }

#fitra-result {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--clr-primary-bg);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  display: none;
  color: var(--clr-primary-dark);
}

.fitra-info {
  max-width: 820px;
  margin: 0 auto var(--s-6);
  padding: var(--s-6);
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.fitra-info h2 {
  text-align: center;
  font-family: var(--ff-display);
  margin-bottom: var(--s-5);
}
.fitra-info h3 { color: var(--clr-primary); margin-top: var(--s-5); margin-bottom: var(--s-2); }
.fitra-info ul { padding-left: 20px; list-style: disc; }
.fitra-info blockquote {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--clr-gold-bg);
  border-left: 4px solid var(--clr-gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--clr-text);
}

.eid-reminder {
  background: var(--clr-primary);
  color: #fff;
  padding: 12px var(--s-4);
  text-align: center;
  font-weight: 600;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
}
.ramadan-banner {
  background: var(--clr-primary);
  color: #fff;
  padding: 10px var(--s-4);
  text-align: center;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-4);
  font-size: 0.9rem;
}


/* ================================================================
   15. RAMADAN PAGE
================================================================ */
.ramadan-title {
  text-align: center;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--clr-primary-dark);
  margin: var(--s-6) 0 var(--s-5);
  letter-spacing: 1px;
}

/* 3-poster layout */
.ramadan-wrapper {
  max-width: 1000px;
  margin: 0 auto var(--s-10);
  padding: 0 var(--container-pad);
}
.ramadan-wrapper.posters {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
}
.ramadan-wrapper.posters .side-img {
  height: clamp(200px, 35vw, 500px);
  width: auto;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex: 0 0 auto;
}
.ramadan-wrapper.posters .center-img {
  height: clamp(260px, 46vw, 640px);
  width: auto;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex: 0 0 auto;
}

/* Ramadan table */
.table-container {
  overflow-x: auto;
  border-radius: var(--r);
}
#ramadanTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#ramadanTable th,
#ramadanTable td {
  padding: 11px 10px;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.88rem;
}
#ramadanTable thead {
  background: var(--clr-primary);
  color: #fff;
}
#ramadanTable th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}
#ramadanTable tbody tr:hover { background: #f8f6f2; }
#ramadanTable tr.today {
  background: var(--clr-gold-bg) !important;
  font-weight: 700;
  border-left: 3px solid var(--clr-gold);
}

/* Countdown */
.countdown-row {
  display: flex;
  justify-content: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin: var(--s-5) 0;
}
.iftar-countdown {
  padding: 10px 24px;
  background: var(--clr-dark);
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.iftar-countdown strong {
  margin-left: 8px;
  color: var(--clr-gold-light);
  font-size: 1.1rem;
}

/* Special rows */
.ramadan-row { background: var(--clr-primary-bg) !important; border-left: 3px solid var(--clr-primary-light); }
.jumuah-row  { background: var(--clr-gold-bg) !important; border-left: 3px solid var(--clr-gold); font-weight: 600; }

@keyframes softBlink {
  0%, 100% { box-shadow: inset 0 0 0 rgba(0,0,0,0); }
  50%       { box-shadow: inset 0 0 14px rgba(0,0,0,0.12); }
}
#ramadanTable tr.today { animation: softBlink 2.5s ease-in-out infinite; }


/* ================================================================
   16. DONATE PAGE
================================================================ */
.donate-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  padding: var(--s-10) var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}
.donate-card {
  background: #fff;
  padding: var(--s-6);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}
.donate-card-button {
  background: var(--clr-primary);
  color: #fff;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: background var(--t), transform var(--t);
  display: inline-block;
  margin-top: var(--s-4);
  cursor: pointer;
}
.donate-card-button:hover { background: var(--clr-primary-light); transform: translateY(-1px); }


/* ================================================================
   17. CONTACT PAGE
================================================================ */
.section { padding: var(--s-10) 0; }

.card {
  background: #fff;
  border-radius: var(--r-md);
  padding: var(--s-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
}

.contact-section { padding-top: var(--s-8); }
.contact-info p {
  margin: var(--s-2) 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.whatsapp-btn img {
  height: 45px;
  margin-top: var(--s-4);
  display: inline-block;
}
.map-container iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: var(--r-sm);
  margin-top: var(--s-4);
}


/* ================================================================
   18. ABOUT PAGE
================================================================ */
.about-content {
  max-width: 900px;
  margin: var(--s-10) auto;
  line-height: 1.85;
  font-size: 1rem;
  padding: 0 var(--container-pad);
}
.about-content h3 { color: var(--clr-primary-dark); margin-top: var(--s-8); margin-bottom: var(--s-3); }
.about-content h4 { color: var(--clr-primary-dark); margin-top: var(--s-6); margin-bottom: var(--s-2); }
.about-content ul  { padding-left: 24px; list-style: disc; margin: var(--s-3) 0; }
.about-content p   { margin-bottom: var(--s-4); }


/* ================================================================
   19. MONTHLY PRAYER TABLE
================================================================ */
.monthly-wrapper {
  max-width: 1300px;
  margin: var(--s-10) auto;
  padding: 0 var(--container-pad);
}
.monthly-title {
  text-align: center;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--clr-primary-dark);
  margin-bottom: var(--s-3);
}
.month-selector { text-align: center; margin-bottom: var(--s-4); }
.month-selector select,
.month-selector button {
  padding: 8px 14px;
  font-size: 0.9rem;
  margin: 4px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--clr-border);
  cursor: pointer;
}
.month-selector button {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transition: background var(--t);
}
.month-selector button:hover { background: var(--clr-primary-light); }

#monthlyTable { border-radius: var(--r); overflow: hidden; }
#monthlyTable th { background: var(--clr-primary); }

/* Misc / shared */
.footer-row {
  padding: 10px 20px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--clr-text);
  flex-wrap: wrap;
  gap: var(--s-2);
}


/* ================================================================
   20. FOOTER
================================================================ */
footer {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: var(--s-6) var(--container-pad);
  font-size: 0.875rem;
}
footer p { margin: 0; }
footer a { color: var(--clr-gold-light); }
footer a:hover { color: #fff; }

/* Fixed adhan button */
.adhan-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: background var(--t), transform var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adhan-btn:hover { background: var(--clr-primary-light); transform: scale(1.08); }


/* ================================================================
   21. ANIMATIONS
================================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   22. RESPONSIVE — HERO & CARDS
================================================================ */
@media (max-width: 900px) {
  .pt-grid { gap: 14px; }
  .prayer-card { flex: 0 0 140px; }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .top-header { height: 56px; }
  .main-nav { max-height: calc(100dvh - 56px); }

  .hero-bg-img { min-height: 260px; }
  .hero-bismillah { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .hpc-countdown,
  #next-prayer-countdown { font-size: 2rem; letter-spacing: 3px; }

  .pt-section { padding: var(--s-6) var(--s-3) var(--s-8); }
  .sky-arc-wrap { margin-bottom: var(--s-3); max-width: 100%; padding: 0; }
  .pt-grid { gap: 10px; }
  .prayer-card {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: 200px;
    padding: 18px 10px 14px;
    border-radius: 12px;
  }
  .iqamah-time { font-size: 1.25rem; }
  .prayer-name .arabic { font-size: 1.1rem; }

  .ramadan-wrapper.posters {
    flex-wrap: wrap;
    justify-content: center;
  }
  .ramadan-wrapper.posters .side-img,
  .ramadan-wrapper.posters .center-img {
    height: auto;
    width: 100%;
    max-width: 360px;
  }

  .gallery-page { padding: var(--s-6) var(--s-4); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }

  footer { padding: var(--s-5) var(--s-4); }
}

@media (max-width: 400px) {
  .prayer-card { flex: 0 0 calc((100% - 10px) / 2); }
  .grid { grid-template-columns: 1fr; }
}

/* ================================================================
   23. PRINT
================================================================ */
@media print {
  .top-header, footer, .adhan-btn, .hamburger { display: none !important; }
}
