/* ==========================================================================
   JAMIA ISLAMIC CENTER & SERVICES - MODERN ISLAMIC THEME
   Palette: Royal Emerald (#004936), Luminous Gold (#dc9d31, #f3be58), Cream (#faf8f5)
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #004936;
  --color-primary-dark: #003628;
  --color-primary-deep: #00261c;
  --color-primary-light: #0d5f48;
  --color-primary-surface: #eaf3f0;
  
  --color-gold: #dc9d31;
  --color-gold-hover: #c48824;
  --color-gold-light: #f6d179;
  --color-gold-pale: #fdf6e6;
  --color-gold-gradient: linear-gradient(135deg, #f5c767 0%, #dc9d31 50%, #b87b1c 100%);
  --color-emerald-gradient: linear-gradient(135deg, #025740 0%, #004936 60%, #003023 100%);

  /* Neutral Backgrounds & Surfaces */
  --bg-page: #faf8f5;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3efe8;
  --border-light: rgba(220, 157, 49, 0.22);
  --border-subtle: #e8e2d8;

  /* Typography Colors */
  --text-main: #1b2621;
  --text-muted: #5e6d66;
  --text-light: #8a9992;
  --text-white: #ffffff;
  --text-gold: #c88a20;

  /* Fonts */
  --font-serif: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-arabic: 'Amiri', 'Lateef', 'Scheherazade New', 'Traditional Arabic', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 73, 54, 0.12);
  --shadow-gold: 0 8px 24px rgba(220, 157, 49, 0.32);

  /* Spacing & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Islamic Geometric Background Watermark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(220, 157, 49, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   TOP NOTIFICATION & INFO BAR
   ========================================================================== */
.topbar {
  background-color: #002f23;
  color: #d1dfd9;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(220, 157, 49, 0.25);
  padding-block: 0.6rem;
  position: relative;
  z-index: 40;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e4eee9;
  font-weight: 500;
}

.topbar-item svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.topbar-item a:hover {
  color: var(--color-gold-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hijri-badge {
  background: rgba(220, 157, 49, 0.15);
  border: 1px solid rgba(220, 157, 49, 0.35);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--color-gold-light);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.social-links a {
  color: #c7ded5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER (Calm, Serene & Authentic Islamic Aesthetic)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(220, 157, 49, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(1, 38, 27, 0.98) 0%, rgba(0, 24, 17, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 157, 49, 0.32);
  box-shadow: 0 4px 20px rgba(0, 18, 12, 0.45);
  z-index: 50;
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.55rem;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
}

/* Authentic Hanging Islamic Arch Crest Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.brand-hanging-crest {
  width: 58px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  filter: drop-shadow(0 4px 10px rgba(220, 157, 49, 0.35));
  margin-top: -4px;
}

.brand-link:hover .brand-hanging-crest {
  transform: translateY(2px) scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(220, 157, 49, 0.5));
}

.brand-crest-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--color-gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Islamic Kalam / Sacred Calligraphy Badge in Navbar */
.navbar-islamic-kalam {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(220, 157, 49, 0.09);
  border: 1px solid rgba(220, 157, 49, 0.28);
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 12px rgba(220, 157, 49, 0.08);
  transition: var(--transition);
}

.navbar-islamic-kalam:hover {
  background: rgba(220, 157, 49, 0.16);
  border-color: rgba(220, 157, 49, 0.5);
  box-shadow: 0 0 16px rgba(220, 157, 49, 0.25);
}

.kalam-arabic {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fae29c;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(220, 157, 49, 0.4);
}

.kalam-ornament {
  color: var(--color-gold);
  font-size: 0.75rem;
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .navbar-islamic-kalam {
    display: none;
  }
}
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--color-gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Nav Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.45rem, 0.9vw, 1.15rem);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  color: #e5f0ec;
  font-size: clamp(0.78rem, 0.88vw, 0.92rem);
  font-weight: 500;
  padding: 0.35rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold-light);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-arrow {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 200px;
  background: #003628;
  border: 1px solid rgba(220, 157, 49, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #d1dfd9;
  font-size: 0.88rem;
}

.dropdown-menu li a:hover {
  background: rgba(220, 157, 49, 0.15);
  color: var(--color-gold-light);
  padding-left: 1.5rem;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Gold Pill Namaz Timings Button */
.btn-namaz {
  background: var(--color-gold-gradient);
  color: #002f23;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(220, 157, 49, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-namaz:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(220, 157, 49, 0.5);
  color: #002219;
}

.btn-namaz svg {
  flex-shrink: 0;
}

.namaz-clock-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-gold-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO / BANNER SECTION (Faithful to Reference Image)
   ========================================================================== */
.hero-section {
  position: relative;
  background: 
    radial-gradient(ellipse at 50% 100%, rgba(220, 157, 49, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 15% 30%, rgba(13, 95, 72, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(13, 95, 72, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #012419 0%, #00120d 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 157, 49, 0.25);
}

.hero-ambient-layer {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

/* Glowing Mosque Silhouettes */
.hero-overlay-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 220px;
  background: radial-gradient(ellipse at bottom, rgba(220, 157, 49, 0.3) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5.5rem 1.5rem 4.8rem 1.5rem;
  max-width: 850px;
}

.rub-el-hizb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
  filter: drop-shadow(0 0 10px rgba(220, 157, 49, 0.7));
  animation: pulse-glow 3.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(246, 209, 121, 0.95)); }
}


section[id], footer[id] {
  scroll-margin-top: 80px;
}

.hero-title a,
.hero-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.hero-title a:hover,
.hero-title-link:hover {
  color: var(--color-gold-light);
  text-shadow: 0 0 25px rgba(246, 209, 121, 0.8), 0 4px 24px rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.breadcrumbs a.current-crumb {
  color: #f0e6d6;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 1.5px dashed rgba(220, 157, 49, 0.5);
  padding-bottom: 1px;
}

.breadcrumbs a.current-crumb:hover {
  color: var(--color-gold-light);
  border-bottom-color: var(--color-gold-light);
  text-shadow: 0 0 10px rgba(220, 157, 49, 0.6);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.9);
  line-height: 1.15;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.breadcrumbs a {
  color: #dfa63b;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: #f6d179;
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: rgba(220, 157, 49, 0.7);
  font-size: 0.9rem;
}

.breadcrumbs .current-crumb {
  color: #e5ded2;
}

/* Live Prayer Ticker below Hero */
.prayer-ticker-bar {
  background: #002d21;
  border-top: 1px solid rgba(220, 157, 49, 0.2);
  border-bottom: 1px solid rgba(220, 157, 49, 0.2);
  padding: 0.75rem 0;
  color: #dbebe3;
  font-size: 0.88rem;
}

.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ticker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker-countdown {
  font-weight: 700;
  color: var(--color-gold-light);
  font-family: monospace;
  font-size: 0.96rem;
}

.ticker-schedule-quick {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quick-prayer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-prayer-item.active {
  color: var(--color-gold-light);
  font-weight: 700;
  background: rgba(220, 157, 49, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   SECTION 1: WHAT WE PROVIDE (House of Allah)
   ========================================================================== */
.section-provide {
  padding-block: 5.5rem 4.5rem;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.provide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

/* Header label */
.section-subtitle-label {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #7b8f84;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: #11281e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 2.2rem;
  position: relative;
}

/* 4 Feature Items Grid (2x2) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 1.8rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: var(--transition);
  background: #ffffff;
}

.feature-item:hover {
  border-color: rgba(220, 157, 49, 0.3);
  box-shadow: 0 10px 30px rgba(0, 73, 54, 0.06);
  transform: translateY(-4px);
  background: #fdfbf7;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

.feature-item:hover .feature-icon-wrapper {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 8px rgba(220, 157, 49, 0.4));
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #152d22;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right Side: Mosque Dome 3D Composition */
.mosque-dome-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dome-backdrop-arch {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 440px;
  background: linear-gradient(135deg, #e5a73b 0%, #dc9d31 100%);
  border-radius: 200px 200px 30px 30px;
  opacity: 0.92;
  z-index: 1;
  box-shadow: 0 16px 40px rgba(220, 157, 49, 0.25);
}

.dome-backdrop-arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 190px 190px 20px 20px;
}

.mosque-dome-img {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  transition: transform 0.5s ease;
}

.mosque-dome-card:hover .mosque-dome-img {
  transform: scale(1.03) translateY(-6px);
}

/* Floating Badges */
.floating-stat-badge {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-gold);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-stat-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1;
}

.floating-stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   DAILY NAMAZ PRAYER SCHEDULE COMPONENT (Interactive)
   ========================================================================== */
.section-prayer-times {
  padding-block: 4.5rem;
  background: #003324;
  position: relative;
  color: #ffffff;
}

.prayer-times-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.prayer-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 24, 18, 0.65);
  border: 1px solid rgba(220, 157, 49, 0.35);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  color: #dbebe3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-top: 0.5rem;
}

.prayer-ticker-pill .ticker-dot {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: blink 2s infinite ease-in-out;
}

.prayer-ticker-pill .ticker-countdown {
  font-weight: 700;
  color: var(--color-gold-light);
  font-family: monospace;
}

.prayer-times-header .section-subtitle-label {
  color: var(--color-gold-light);
}

.prayer-times-header .section-title {
  color: #ffffff;
}

.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.prayer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(220, 157, 49, 0.25);
  border-radius: var(--radius-md);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prayer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.prayer-card.current {
  background: linear-gradient(180deg, rgba(220, 157, 49, 0.25) 0%, rgba(0, 49, 35, 0.8) 100%);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 24px rgba(220, 157, 49, 0.35);
}

.prayer-card.current::before {
  content: "ACTIVE PRAYER";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-gold);
  color: #002d21;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 0;
}

.prayer-arabic-name {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  color: var(--color-gold-light);
  margin-bottom: 0.2rem;
}

.prayer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prayer-azan {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.prayer-iqamah {
  font-size: 0.78rem;
  color: #bcd4cb;
}

.prayer-times-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-adhan-listen {
  background: rgba(220, 157, 49, 0.15);
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-adhan-listen:hover {
  background: var(--color-gold);
  color: #002d21;
}

/* ==========================================================================
   SECTION 2: OUR SERVICES (Student in Arch + 4 Diamond Badges)
   ========================================================================== */
.section-services {
  padding-block: 6rem;
  background: #faf8f5;
  position: relative;
  overflow: hidden;
}

/* Geometric Mandala Watermark behind Arch */
.services-mandala-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
  position: relative;
  z-index: 2;
}

.services-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Flanking Column of Service Cards */
.services-col {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.service-card-item {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.service-card-item:hover {
  transform: translateY(-4px);
}

.service-card-item.align-right {
  text-align: right;
  align-items: flex-end;
}

.service-card-item.align-left {
  text-align: left;
  align-items: flex-start;
}

/* Octagonal / Diamond Gold Badge Icon */
.gold-diamond-badge {
  width: 64px;
  height: 64px;
  background: var(--color-gold-gradient);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 18px rgba(220, 157, 49, 0.35);
  transition: var(--transition);
}

.service-card-item:hover .gold-diamond-badge {
  transform: rotate(45deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(220, 157, 49, 0.5);
}

.gold-diamond-badge svg {
  transition: var(--transition);
}

.service-card-item:hover .gold-diamond-badge svg {
  transform: rotate(-45deg);
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #11281e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.service-card-item:hover .service-card-title {
  color: var(--color-gold-hover);
}

.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 290px;
}

/* Center Arch with Islamic Student */
.student-arch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.arch-ornament-ring {
  display: none !important;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.student-arch-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  transition: var(--transition);
}

.student-arch-wrapper:hover {
  transform: scale(1.02);
}

.student-arch-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 45, 33, 0.12));
  transition: filter 0.3s ease;
}

.student-arch-wrapper:hover .student-arch-img {
  filter: drop-shadow(0 18px 36px rgba(220, 157, 49, 0.3));
}

/* ==========================================================================
   HADITH OF THE DAY & COMMUNITY QUOTATION TICKER
   ========================================================================== */
.hadith-quote-banner {
  background: #ffffff;
  border-block: 1px solid rgba(220, 157, 49, 0.25);
  padding-block: 2.5rem;
  text-align: center;
}

.hadith-arabic {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  direction: rtl;
}

.hadith-translation {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #3b4d45;
  font-style: italic;
  max-width: 750px;
  margin: 0 auto 0.4rem auto;
}

.hadith-source {
  font-size: 0.82rem;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   CTA BANNER: INSPIRED? JOIN US RIGHT NOW!
   ========================================================================== */
.section-cta-join {
  background-color: #004936;
  background-image: 
    radial-gradient(ellipse at 85% 50%, rgba(220, 157, 49, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, #004936 0%, #003628 100%);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(220, 157, 49, 0.3);
}

.cta-join-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-crescent-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  color: var(--color-gold);
  filter: drop-shadow(0 4px 12px rgba(220, 157, 49, 0.4));
}

.cta-text-group {
  display: flex;
  flex-direction: column;
}

.cta-subtitle {
  font-size: 0.92rem;
  color: #c0ded4;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.btn-join-community {
  background: var(--color-gold-gradient);
  color: #002f23;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(220, 157, 49, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.btn-join-community:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(220, 157, 49, 0.6);
  color: #002219;
}

/* ==========================================================================
   FOOTER (Clean, Deep Emerald & 24k Gold - No Ghost Watermarks)
   ========================================================================== */
.site-footer {
  background: 
    radial-gradient(circle at 85% 20%, rgba(220, 157, 49, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #003628 0%, #002217 100%);
  position: relative;
  color: #d1ded8;
  overflow: hidden;
  border-top: 2px solid rgba(220, 157, 49, 0.35);
}

.footer-watermark-bg {
  display: none !important;
  background-image: none !important;
}

.footer-top {
  position: relative;
  z-index: 2;
  padding-block: 4.5rem 3.5rem;
  border-bottom: 1px solid rgba(220, 157, 49, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.25fr 1fr;
  gap: 3rem 2.2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Col 1: Authentic Golden Arch Crest Logo */
.footer-logo-badge {
  width: 92px;
  height: 102px;
  background: var(--color-gold-gradient);
  border-radius: 46px 46px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  box-shadow: 0 8px 24px rgba(220, 157, 49, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: var(--transition);
}

.footer-logo-badge:hover {
  transform: translateY(-2px) scale(1.03);
}

.footer-logo-badge-inner {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border: 1.5px dashed rgba(255, 255, 255, 0.65);
  border-radius: 41px 41px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-arabic {
  font-family: var(--font-arabic);
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.footer-about-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #c0d8ce;
  margin-bottom: 1.25rem;
}

/* Footer Section Headings */
.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Information & Quick Links */
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links-list li a {
  color: #c7ded5;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
}

.footer-links-list li a:hover {
  color: var(--color-gold-light);
  transform: translateX(4px);
}

.footer-links-list .arrow-bullet {
  color: var(--color-gold);
  font-size: 0.85rem;
  line-height: 1;
}

/* Contact Info list */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(220, 157, 49, 0.15);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-detail {
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-detail strong {
  display: block;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-detail span {
  color: #b5cdc3;
  font-size: 0.82rem;
}
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail {
  font-size: 0.88rem;
  line-height: 1.5;
}

.contact-detail strong {
  display: block;
  color: #ffffff;
}

.contact-detail span {
  color: #b7ceca;
  font-size: 0.82rem;
}

/* Footer Bottom Bar */
.footer-bottom {
  position: relative;
  z-index: 2;
  padding-block: 1.2rem;
  background: #00281e;
  font-size: 0.84rem;
  color: #a4bdb4;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--color-gold-light);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   MODALS & DIALOGS (Compliant with Modern Web Guidance)
   - dialog:modal { overscroll-behavior: contain; }
   - dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
   - closedby="any" light-dismiss
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(0, 24, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
  padding: 0;
  border: 1px solid rgba(220, 157, 49, 0.4);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--text-main);
  width: 90%;
  max-width: 620px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: var(--color-emerald-gradient);
  color: #ffffff;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-gold);
}

.modal-header-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

.btn-close-modal:hover {
  background: var(--color-gold);
  color: #002f23;
}

.modal-body {
  padding: 1.8rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Modal Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2a22;
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d2ded7;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.94rem;
  background: #fdfdfd;
  color: #15241d;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(220, 157, 49, 0.2);
}

.donation-preset-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.btn-preset {
  padding: 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #1e362b;
  background: #faf8f5;
  text-align: center;
}

.btn-preset.active, .btn-preset:hover {
  background: var(--color-gold);
  color: #002d21;
  border-color: var(--color-gold);
}

.modal-footer {
  padding: 1.2rem 1.8rem;
  background: #f7f4ee;
  border-top: 1px solid #e7dfd3;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-secondary {
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid #c7d5cd;
  color: #3e5248;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #eae5dc;
}

.btn-primary {
  background: var(--color-gold-gradient);
  color: #00281e;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220, 157, 49, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1360px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 1.12rem;
  }
  .brand-hanging-crest {
    width: 44px;
    height: 52px;
  }
  .nav-list {
    gap: 0.55rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.15rem;
  }
}

@media (max-width: 1024px) {
  .provide-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .mosque-dome-card {
    order: -1;
  }

  .dome-backdrop-arch {
    right: auto;
    position: relative;
    top: auto;
    transform: none;
    margin: 0 auto;
  }

  .services-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .student-arch-container {
    order: -1;
  }

  .service-card-item.align-right,
  .service-card-item.align-left {
    text-align: left;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 1360px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 1.12rem;
  }
  .brand-hanging-crest {
    width: 44px;
    height: 52px;
  }
  .nav-list {
    gap: 0.55rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.15rem;
  }
}

@media (max-width: 1200px) {
  .topbar {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-join-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .cta-left {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .prayers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 24, 18, 0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-close {
  align-self: flex-end;
  color: var(--color-gold-light);
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #ffffff;
  display: block;
}

.mobile-nav-link:hover {
  color: var(--color-gold-light);
}

/* ==========================================================================
   SUBPAGES STYLING: DUAS, ZIKR & SCHOLARS
   ========================================================================== */

/* Subpage Category Tabs */
.filter-tabs-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 2.5rem 3.5rem;
}

.filter-tab-btn {
  background: #ffffff;
  color: #31443a;
  border: 1px solid #d8e2dc;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-tab-btn:hover {
  background: var(--color-primary-surface);
  border-color: var(--color-gold);
  color: var(--color-primary);
}

.filter-tab-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 73, 54, 0.25);
}

/* Duas Grid & Cards */
.duas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.dua-card {
  background: #ffffff;
  border: 1px solid rgba(220, 157, 49, 0.25);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  position: relative;
}

.dua-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 73, 54, 0.1);
  border-color: var(--color-gold);
}

.dua-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dua-badge {
  background: rgba(220, 157, 49, 0.12);
  color: #a46d12;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(220, 157, 49, 0.3);
}

.dua-repeat-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dua-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #12281e;
  margin-bottom: 1rem;
}

.dua-arabic-box {
  background: #faf8f5;
  border: 1px dashed rgba(220, 157, 49, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.2rem;
  text-align: right;
  direction: rtl;
}

.dua-arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  line-height: 2.2;
  color: #0b3d2e;
  font-weight: 700;
}

.dua-translit {
  font-style: italic;
  font-size: 0.88rem;
  color: #4f6358;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.dua-meaning {
  font-size: 0.92rem;
  color: #21352a;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.dua-urdu-translation {
  font-family: 'Amiri', 'Noto Nastaliq Urdu', serif;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #3b5044;
  text-align: right;
  direction: rtl;
  margin-bottom: 1.2rem;
  border-top: 1px solid #f0e9df;
  padding-top: 0.6rem;
}

.dua-reference-tag {
  font-size: 0.78rem;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.dua-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ede7dc;
  padding-top: 1rem;
  margin-top: auto;
}

.btn-dua-counter {
  background: #fdfaf4;
  border: 1px solid var(--color-gold);
  color: #9b6910;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-dua-counter:hover {
  background: var(--color-gold);
  color: #002d20;
}

.btn-dua-counter.completed {
  background: #004936;
  border-color: #004936;
  color: #ffffff;
}

.btn-dua-copy {
  background: none;
  border: none;
  color: #63776e;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-dua-copy:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   DIGITAL SMART TASBIH & ZIKR APP STYLING
   ========================================================================== */
.tasbih-hero-section {
  padding-block: 4rem 5rem;
  background: 
    radial-gradient(circle at 50% 30%, rgba(220, 157, 49, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #012b1f 0%, #001f15 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.tasbih-app-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(220, 157, 49, 0.35);
  border-radius: 36px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(220, 157, 49, 0.08);
  text-align: center;
  position: relative;
}

/* Preset Dhikr Selector Pills */
.tasbih-dhikr-selector {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.btn-dhikr-choice {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(220, 157, 49, 0.3);
  color: #d1ded8;
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-dhikr-choice:hover,
.btn-dhikr-choice.active {
  background: var(--color-gold);
  color: #002a1d;
  font-weight: 700;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* Active Dhikr Display */
.active-dhikr-card {
  margin-bottom: 2rem;
}

.active-dhikr-arabic {
  font-family: var(--font-arabic);
  font-size: 2.6rem;
  color: #fae29c;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 16px rgba(220, 157, 49, 0.5);
}

.active-dhikr-meaning {
  font-size: 0.92rem;
  color: #bcd4cb;
}

/* Digital Counter Display Screen */
.tasbih-screen {
  background: #031c13;
  border: 2px solid #dfa63b;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(220, 157, 49, 0.2);
}

.tasbih-count-num {
  font-family: 'Cinzel', monospace;
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 14px rgba(246, 209, 121, 0.6);
  letter-spacing: 0.04em;
}

.tasbih-target-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(220, 157, 49, 0.3);
  font-size: 0.82rem;
  color: #8faea1;
}

/* Big Interactive Round Tap Button */
.tasbih-tap-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--color-gold-gradient);
  color: #00281b;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(220, 157, 49, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 3px solid #fae29c;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
}

.tasbih-tap-btn:active {
  transform: scale(0.92);
  box-shadow: 0 4px 12px rgba(220, 157, 49, 0.3);
}

.tasbih-tap-subtext {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
  color: #4b360a;
}

/* Counter Tools (Reset, Target, Sound) */
.tasbih-tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.btn-tasbih-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1ded8;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-tasbih-tool:hover {
  background: rgba(220, 157, 49, 0.2);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

/* ==========================================================================
   SCHOLARS & ADVISORY PAGE STYLING
   ========================================================================== */
.scholars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-block: 3.5rem;
}

.scholar-card {
  background: #ffffff;
  border: 1px solid rgba(220, 157, 49, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.scholar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.scholar-img-wrapper {
  height: 280px;
  background: linear-gradient(180deg, #003628 0%, #001f15 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.scholar-arch-ornament {
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(220, 157, 49, 0.4);
  border-radius: 120px 120px 0 0;
  pointer-events: none;
}

.scholar-avatar-icon {
  width: 90px;
  height: 90px;
  color: var(--color-gold-light);
  filter: drop-shadow(0 4px 12px rgba(220, 157, 49, 0.4));
}

.scholar-info-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.scholar-role-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #a06b12;
  background: rgba(220, 157, 49, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.scholar-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #12281e;
  margin-bottom: 0.35rem;
}

.scholar-creds {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.scholar-bio {
  font-size: 0.88rem;
  color: #3b4e44;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.scholar-contact-btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.scholar-card:hover .scholar-contact-btn {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #00281b;
}

/* ==========================================================================
   CLEAN VECTOR MOSQUE SILHOUETTE (Hero Background)
   ========================================================================== */
.hero-mosque-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

/* ==========================================================================
   CHARITY & DONATION PAGE STYLES
   ========================================================================== */
.donation-page-section {
  padding-block: 4.5rem 5.5rem;
  background: #faf8f5;
}

.donation-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-bottom: 5rem;
}

/* Main Donation Box */
.donation-interactive-card {
  background: #ffffff;
  border: 1px solid rgba(220, 157, 49, 0.3);
  border-top: 5px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.donation-freq-toggle {
  display: flex;
  background: #edf4f0;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
}

.btn-freq {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: #3b5046;
  cursor: pointer;
  transition: var(--transition);
}

.btn-freq.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 73, 54, 0.25);
}

.donation-grid-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-amount-chip {
  padding: 0.85rem;
  border: 1px solid #d5ded8;
  border-radius: var(--radius-sm);
  background: #fdfdfd;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3026;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-amount-chip:hover {
  border-color: var(--color-gold);
  background: #fdfaf4;
}

.btn-amount-chip.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #002c1f;
  box-shadow: 0 4px 12px rgba(220, 157, 49, 0.35);
}

/* Zakat Calculator Widget */
.zakat-calc-box {
  background: linear-gradient(135deg, #003628 0%, #002217 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 54, 40, 0.35);
}

.zakat-calc-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.zakat-calc-sub {
  font-size: 0.84rem;
  color: #b7ceca;
  margin-bottom: 1.5rem;
}

.zakat-input-group {
  margin-bottom: 1.1rem;
}

.zakat-input-group label {
  display: block;
  font-size: 0.82rem;
  color: #d1ded8;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.zakat-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 157, 49, 0.35);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.zakat-input:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.12);
}

.zakat-result-card {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
  border: 1px dashed rgba(220, 157, 49, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zakat-result-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

/* Campaigns Grid */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-top: 3rem;
}

.campaign-card {
  background: #ffffff;
  border: 1px solid rgba(220, 157, 49, 0.25);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.campaign-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a06b12;
  background: rgba(220, 157, 49, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.campaign-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #12281e;
  margin-bottom: 0.75rem;
}

.campaign-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.progress-track {
  width: 100%;
  height: 9px;
  background: #e4eee8;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-fill {
  height: 100%;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-pill);
  transition: width 1s ease-in-out;
}

.campaign-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #556960;
  margin-bottom: 1.5rem;
}

.campaign-meta strong {
  color: var(--color-primary);
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .donation-main-grid {
    grid-template-columns: 1fr;
  }
}


/* Responsive Overhaul for Services Section */
@media (max-width: 992px) {
  .services-layout-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2.5rem !important;
    width: 100% !important;
  }

  .services-centerpiece, .student-arch-container {
    order: -1 !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 320px !important;
  }

  .services-mandala-bg {
    width: 360px !important;
    height: 360px !important;
  }

  .services-col {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .service-card-item {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem 1.25rem !important;
    background: #ffffff !important;
    border: 1px solid rgba(220, 157, 49, 0.22) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 18px rgba(0, 45, 33, 0.05) !important;
  }

  .service-card-item.align-right,
  .service-card-item.align-left {
    text-align: center !important;
    align-items: center !important;
  }

  .gold-diamond-badge {
    margin: 0 auto 1rem auto !important;
  }

  .service-card-title {
    text-align: center !important;
    font-size: 1.15rem !important;
  }

  .service-card-desc {
    text-align: center !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 600px) and (max-width: 992px) {
  .services-col {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ==========================================================================
   CENTERPIECE SACRED MIHRAB SHOWCASE (Replacing student image cutout)
   ========================================================================== */
.services-centerpiece {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.centerpiece-mihrab-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 350px;
  background: radial-gradient(circle at 50% 20%, #024b37 0%, #002319 100%);
  border-radius: 175px 175px 24px 24px;
  padding: 7px;
  box-shadow: 0 16px 40px rgba(0, 39, 28, 0.22), 0 0 28px rgba(220, 157, 49, 0.22);
  border: 1.5px solid rgba(220, 157, 49, 0.5);
  transition: var(--transition);
}

.centerpiece-mihrab-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 39, 28, 0.32), 0 0 36px rgba(220, 157, 49, 0.4);
}

.mihrab-gold-border {
  width: 100%;
  height: 100%;
  border: 1.5px dashed rgba(246, 209, 121, 0.65);
  border-radius: 168px 168px 18px 18px;
  padding: 2.2rem 1.25rem 1.8rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mihrab-lantern-icon {
  margin-bottom: 0.75rem;
  animation: float-lantern 4s infinite ease-in-out;
}

@keyframes float-lantern {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.centerpiece-ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fae29c;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.centerpiece-ayah-trans {
  font-size: 0.86rem;
  color: #e3ede8;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.centerpiece-surah-ref {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  opacity: 0.85;
}

.centerpiece-divider {
  color: var(--color-gold);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.2em;
}

.centerpiece-feature-badge {
  background: rgba(220, 157, 49, 0.15);
  border: 1px solid rgba(220, 157, 49, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.1rem;
}

.btn-centerpiece-action {
  background: var(--color-gold-gradient);
  color: #002219;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 157, 49, 0.35);
  transition: var(--transition);
}

.btn-centerpiece-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 157, 49, 0.55);
  color: #00120d;
}


/* ==========================================================================
   GLOBAL SECURITY SHIELD: ANTI-INSPECT, ANTI-COPY & ANTI-DRAG
   ========================================================================== */
*:not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

img {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none !important;
}

a img, button img, .interactive-img, .nav-logo-img, .brand-logo img, [role="button"] img {
  pointer-events: auto !important;
}
