/*
Theme Name: MominHub - Islamic App Official Theme
Theme URI: https://mominhub.in
Author: Maulana Mohammad Asad
Description: A premium, ultra-fast, responsive WordPress theme & landing page for MominHub Islamic Super-App.
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: mominhub
*/

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@500;600;700;800&family=Gulzar&family=Inter:wght@300;400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Scheherazade+New:wght@400;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root, html[data-theme="dark"] {
  /* Brand Midnight & Gold Palette (MominHub App Dark Theme) */
  --color-bg-deep: #020617;              /* AppTheme.dBackground (Darkest Navy / Slate 950) */
  --color-bg-primary: #0b1329;           /* Deep Midnight Base */
  --color-bg-surface: #0f172a;           /* AppTheme.dSurface (Deep Midnight Blue / Slate 900) */
  --color-bg-surface-elevated: #1e293b;  /* AppTheme.primaryLight / dDivider (Slate 800) */
  --color-bg-card: rgba(15, 23, 42, 0.78);
  --color-bg-card-hover: rgba(30, 41, 59, 0.88);
  --color-surface: var(--color-bg-surface);
  --color-bg-base: var(--color-bg-primary);
  
  /* Brand Gold / Accent */
  --color-gold: #d4af37;                 /* AppTheme.accent (Royal Gold) */
  --color-gold-light: #f5d77f;
  --color-gold-dark: #a67c1e;
  --color-gold-glow: rgba(212, 175, 55, 0.25);
  --color-gold-subtle: rgba(212, 175, 55, 0.12);

  /* Status Colors */
  --color-emerald-light: #10b981;        /* AppTheme.success */
  --color-emerald-glow: rgba(16, 185, 129, 0.2);

  /* Text & Neutral */
  --color-text-title: #f8fafc;           /* AppTheme.dTextPrimary */
  --color-text-body: #cbd5e1;            /* AppTheme.dTextSecondary */
  --color-text-muted: #94a3b8;           /* Slate 400 */
  --color-border: rgba(212, 175, 55, 0.2);
  --color-border-subtle: rgba(148, 163, 184, 0.14);

  /* Header & Shadows */
  --header-bg: rgba(2, 6, 23, 0.85);
  --header-scrolled: rgba(2, 6, 23, 0.98);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.05);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.22);
  --shadow-gold-button: 0 8px 24px -4px rgba(212, 175, 55, 0.4);

  /* Ambient Gradient & Pattern */
  --bg-ambient-grad: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(30, 58, 138, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-primary) 50%, var(--color-bg-deep) 100%);
  --pattern-color: rgba(212, 175, 55, 0.04);

  /* Typography Tokens */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-inter: 'Inter', system-ui, -apple-system, sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --font-cinzel: 'Cinzel', serif;
  
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-quran: 'Scheherazade New', 'Amiri', serif;
  --font-naskh: 'Noto Naskh Arabic', 'Amiri', serif;
  
  --font-urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  --font-gulzar: 'Gulzar', 'Noto Nastaliq Urdu', serif;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --glass-blur: blur(16px);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  /* Brand Clean Slate & White & Gold Palette (MominHub App Light Theme) */
  --color-bg-deep: #f1f5f9;              /* AppTheme.sidebarColorLight (Slate 100) */
  --color-bg-primary: #f8fafc;           /* AppTheme.lBackground (Clean Slate 50) */
  --color-bg-surface: #ffffff;           /* AppTheme.lSurface (Pure White) */
  --color-bg-surface-elevated: #f1f5f9;  /* Slate 100 */
  --color-bg-card: rgba(255, 255, 255, 0.95);
  --color-bg-card-hover: #ffffff;
  --color-surface: var(--color-bg-surface);
  --color-bg-base: var(--color-bg-primary);

  /* Brand Gold / Accent */
  --color-gold: #b38e1b;                 /* High-contrast Gold for light backgrounds */
  --color-gold-light: #d4af37;
  --color-gold-dark: #8c6a0e;
  --color-gold-glow: rgba(212, 175, 55, 0.2);
  --color-gold-subtle: rgba(212, 175, 55, 0.1);

  /* Status Colors */
  --color-emerald-light: #059669;
  --color-emerald-glow: rgba(5, 150, 105, 0.15);

  /* Text & Neutral */
  --color-text-title: #0f172a;           /* AppTheme.lTextPrimary (Deep Midnight Blue / Slate 900) */
  --color-text-body: #334155;            /* AppTheme.lTextSecondary (Slate 700) */
  --color-text-muted: #64748b;           /* Slate 500 */
  --color-border: rgba(212, 175, 55, 0.3);
  --color-border-subtle: #e2e8f0;        /* AppTheme.lDivider (Slate 200) */

  /* Header & Shadows */
  --header-bg: rgba(248, 250, 252, 0.92);
  --header-scrolled: rgba(255, 255, 255, 0.98);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.15);
  --shadow-gold-button: 0 8px 24px -4px rgba(212, 175, 55, 0.35);

  /* Ambient Gradient & Pattern */
  --bg-ambient-grad: 
    radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(226, 232, 240, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(212, 175, 55, 0.05) 0%, transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --pattern-color: rgba(15, 23, 42, 0.03);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-deep);
  color: var(--color-text-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  background-image: var(--bg-ambient-grad);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 80px;
}

/* Islamic Geometric Subtle Background Overlay */
.islamic-pattern-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--pattern-color) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-title);
  font-weight: 700;
  line-height: 1.25;
}

.text-gold {
  color: var(--color-gold);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fff2cc 0%, var(--color-gold) 60%, #b3861b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-gold-light);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}

.badge i {
  color: var(--color-gold);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, #e8c55e 0%, var(--color-gold) 65%, #a67c1e 100%);
  color: #05140e;
  box-shadow: var(--shadow-gold-button);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f4d47c 0%, #dfb841 65%, #b58925 100%);
}

.btn-outline-gold {
  background: rgba(10, 37, 26, 0.6);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  backdrop-filter: var(--glass-blur);
}

.btn-outline-gold:hover {
  background: var(--color-gold-subtle);
  transform: translateY(-2px);
  border-color: var(--color-gold-light);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header.scrolled {
  background: var(--header-scrolled);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* -------------------------------------------------------------
 * Islamic Top Bar: Live Hijri Lunar Date & Quick Helpline
 * ----------------------------------------------------------- */
.islamic-top-bar {
  background: rgba(6, 78, 59, 0.4);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  transition: all var(--transition-normal);
}

.top-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1540px;
  padding: 0 28px;
  margin: 0 auto;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-bar-divider {
  color: var(--color-border);
  opacity: 0.5;
}

.top-bar-link {
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.top-bar-link:hover {
  color: var(--color-gold);
}

.hijri-date-item {
  font-weight: 600;
  color: var(--color-gold);
}

[data-theme="light"] .islamic-top-bar {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

@media (max-width: 820px) {
  .top-bar-wrap {
    justify-content: center;
    text-align: center;
  }
  .top-bar-right {
    display: none;
  }
}

.site-header .container {
  max-width: 1540px;
  padding: 0 28px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand-name span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  margin: 0 10px;
}

/* Mobile CTA is hidden on Desktop */
.nav-menu-cta {
  display: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-body);
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.08);
}

.nav-link.active {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.14);
  font-weight: 700;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 9px 18px;
  font-size: 0.86rem;
  height: 40px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Theme Toggle Button (Dark / Light) */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--color-gold-subtle);
  color: var(--color-gold-light);
  transform: rotate(18deg) scale(1.06);
  box-shadow: 0 0 14px var(--color-gold-glow);
}

.menu-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-border);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: var(--color-gold);
  color: #05140e;
}

/* ==========================================================================
   HERO SECTION & 6-SLIDE FLAGSHIP CAROUSEL
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 24px 0 36px;
  overflow: hidden;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
}

.hero-slides-track {
  position: relative;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px) scale(0.985);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  pointer-events: none;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

html[dir="rtl"] .hero-slide {
  transform: translateX(-30px) scale(0.985);
}

html[dir="rtl"] .hero-slide.active {
  transform: translateX(0) scale(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  letter-spacing: -0.5px;
  margin: 12px 0 14px;
  line-height: 1.25;
}

.hero-content .hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  max-width: 600px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--color-text-title);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-chip i {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-title);
  transition: var(--transition-smooth);
}

.hero-store-btn:hover {
  background: var(--color-bg-surface-elevated);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25), 0 0 15px var(--color-gold-glow);
}

.btn-hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-hero-explore:hover {
  background: var(--color-gold);
  color: #020617;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--color-gold-glow);
}

/* Staggered Animations for Active Slide */
.hero-slide.active .hero-content .badge {
  animation: heroItemFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}
.hero-slide.active .hero-content h1 {
  animation: heroItemFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards;
}
.hero-slide.active .hero-content .hero-lead {
  animation: heroItemFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.24s backwards;
}
.hero-slide.active .hero-content .hero-chips {
  animation: heroItemFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.32s backwards;
}
.hero-slide.active .hero-content .hero-cta-group {
  animation: heroItemFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}
.hero-slide.active .hero-mockup-wrapper {
  animation: heroMockupZoom 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}

@keyframes heroItemFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroMockupZoom {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Slider Bottom Control Bar */
.hero-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

.slider-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.slider-arrow-btn:hover {
  background: var(--color-gold);
  color: #020617;
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

html[dir="rtl"] .slider-prev-btn i {
  transform: rotate(180deg);
}

html[dir="rtl"] .slider-next-btn i {
  transform: rotate(180deg);
}

.slider-tabs-track {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.slider-tabs-track::-webkit-scrollbar {
  display: none;
}

.slider-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.slider-tab-btn:hover {
  color: var(--color-text-title);
  border-color: var(--color-gold);
  background: var(--color-bg-surface-elevated);
}

.slider-tab-btn.active {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.16);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

.slider-tab-btn .tab-num {
  font-size: 0.74rem;
  color: var(--color-gold);
  font-weight: 800;
}

.slider-tab-btn .tab-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold) 0%, #fff 100%);
  border-radius: 2px;
}

.slider-tab-btn.active .tab-progress-line {
  animation: heroTabProgress 6s linear forwards;
}

@keyframes heroTabProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.hero-slider-wrapper.paused .slider-tab-btn.active .tab-progress-line {
  animation-play-state: paused;
}

/* Play/Pause Toggle */
.slider-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-border-subtle);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.slider-play-btn:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-subtle);
}

/* Audio Waveform Bars in Slide 2 */
.audio-wave-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
}
.audio-wave-bar {
  width: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  animation: waveBarPulse 1.2s infinite ease-in-out;
}
.audio-wave-bar:nth-child(1) { height: 35%; animation-delay: 0.0s; }
.audio-wave-bar:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.audio-wave-bar:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.audio-wave-bar:nth-child(4) { height: 50%; animation-delay: 0.45s; }
.audio-wave-bar:nth-child(5) { height: 90%; animation-delay: 0.6s; }
.audio-wave-bar:nth-child(6) { height: 40%; animation-delay: 0.75s; }
.audio-wave-bar:nth-child(7) { height: 80%; animation-delay: 0.9s; }
@keyframes waveBarPulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Stats Ribbon */
.hero-stats-ribbon {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
}

.hero-stat-box {
  text-align: center;
  padding: 2px 10px;
}

.hero-stat-box h4 {
  font-size: 1.55rem;
  color: var(--color-gold);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}

.hero-stat-box p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.store-icon {
  font-size: 1.8rem;
  color: var(--color-gold);
}

.store-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.store-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--color-text-title);
}

/* ==========================================================================
   PHONE MOCKUP 3D SHOWCASE
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-glow {
  position: absolute;
  width: 380px;
  height: 520px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, rgba(30, 58, 138, 0.15) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.phone-device {
  position: relative;
  width: 295px;
  height: 535px;
  background: #020617;
  border-radius: 40px;
  border: 8px solid #1e293b;
  box-shadow: 
    0 20px 50px -15px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(212, 175, 55, 0.35),
    inset 0 0 15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Scoped App Variables: Ensures authentic dark app simulation in both Light & Dark website modes */
  --color-bg-card: rgba(15, 23, 42, 0.88);
  --color-bg-surface: #0b1329;
  --color-bg-surface-elevated: rgba(30, 41, 59, 0.75);
  --color-text-title: #f8fafc;
  --color-text-body: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-border: rgba(212, 175, 55, 0.35);
  --color-border-subtle: rgba(255, 255, 255, 0.1);
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-subtle: rgba(212, 175, 55, 0.15);
}

.phone-device:hover {
  transform: translateY(-6px) rotate(1deg);
}

.phone-speaker {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #0f172a;
  border-radius: 3px;
  z-index: 10;
}

.phone-camera {
  position: absolute;
  top: 8px;
  left: calc(50% + 34px);
  width: 7px;
  height: 7px;
  background: #020617;
  border-radius: 50%;
  border: 1px solid #1e293b;
  z-index: 10;
}

/* Interactive App UI inside Phone */
.app-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0b1329 0%, #020617 100%);
  color: #fff;
  padding: 24px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  font-size: 0.82rem;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.app-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-gold-light);
}

.app-hijri {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* Prayer Time Card Inside App */
.app-prayer-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 14px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.app-prayer-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.prayer-label {
  font-size: 0.72rem;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.prayer-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.prayer-time {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.prayer-countdown {
  font-size: 0.7rem;
  color: var(--color-gold-light);
  margin-top: 4px;
}

/* App Quick Actions */
.app-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.app-quick-item {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 8px 4px;
  transition: 0.2s;
}

.app-quick-item i {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 4px;
  display: block;
}

.app-quick-item span {
  font-size: 0.65rem;
  display: block;
  color: #e2e8f0;
}

/* App Quran Feature Card */
.app-daily-ayah {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  border-left: 3px solid var(--color-gold);
  padding: 12px;
}

.daily-ayah-title {
  font-size: 0.68rem;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.daily-ayah-arabic {
  font-family: var(--font-arabic);
  font-size: 1rem;
  text-align: right;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 6px;
}

.daily-ayah-trans {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Floating feature tags on mockup */
.floating-badge {
  position: absolute;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  backdrop-filter: var(--glass-blur);
  padding: 8px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-title);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2;
  animation: floatAnim 4s infinite ease-in-out alternate;
}

.floating-badge-1 {
  top: 15%;
  left: -25px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 22%;
  right: -25px;
  animation-delay: 2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* ==========================================================================
   LIVE PRAYER TIMES BAR (TOP OF PAGE / INTERACTIVE)
   ========================================================================== */
.prayer-ribbon-section {
  padding: 0 0 60px;
}

.prayer-ribbon-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
}

.prayer-ribbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.prayer-ribbon-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.prayer-box {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: var(--transition-fast);
}

.prayer-box.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid var(--color-gold);
  box-shadow: 0 0 25px var(--color-gold-glow);
  transform: translateY(-2px);
}

.prayer-box .name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prayer-box.active .name {
  color: var(--color-gold-light);
  font-weight: 700;
}

.prayer-box .time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-title);
  margin-top: 4px;
}

.prayer-box.active .time {
  color: #ffffff;
}

/* Light Mode Overrides for Prayer Ribbon */
html[data-theme="light"] .prayer-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .prayer-box .name {
  color: #64748b;
  font-weight: 600;
}

html[data-theme="light"] .prayer-box .time {
  color: #0f172a;
}

html[data-theme="light"] .prayer-box.active {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 45%, #ffffff 100%);
  border: 2px solid var(--color-gold);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.22), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

html[data-theme="light"] .prayer-box.active .name {
  color: #92400e;
  font-weight: 800;
}

html[data-theme="light"] .prayer-box.active .time {
  color: #0f172a;
  font-weight: 800;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  padding: 90px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 30px var(--color-gold-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(30, 58, 138, 0.25) 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 22px;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, var(--color-gold) 0%, #99751e 100%);
  color: #03120b;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   SPOTLIGHT: QURAN & RECITERS SECTION
   ========================================================================== */
.reciters-section {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent 0%, var(--color-gold-subtle) 50%, transparent 100%);
}

.reciters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.reciter-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
}

.reciter-card:hover {
  background: var(--color-bg-surface-elevated);
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 15px var(--color-gold-glow);
}

.reciter-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.reciter-info h4 {
  font-size: 1rem;
  margin-bottom: 3px;
  color: var(--color-text-title);
}

.reciter-info p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.reciter-action {
  margin-left: auto;
  color: var(--color-gold);
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.reciter-card:hover .reciter-action {
  background: var(--color-gold);
  color: #020617;
  transform: scale(1.1);
}

/* ==========================================================================
   SPOTLIGHT: NOORANI QAIDA & KIDS ZONE
   ========================================================================== */
.qaida-section {
  padding: 90px 0;
}

.qaida-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.qaida-content h2 {
  font-size: 2.4rem;
  margin: 16px 0;
}

.qaida-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qaida-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.025rem;
}

.qaida-list li i {
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.qaida-interactive-preview {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.arabic-alphabet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.arabic-tile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--color-gold);
  cursor: pointer;
  transition: var(--transition-fast);
}

.arabic-tile:hover {
  background: var(--color-gold);
  color: #020617;
  transform: scale(1.08);
  box-shadow: 0 8px 20px var(--color-gold-glow);
}

/* ==========================================================================
   SIMULATED RECEIPT CARD (MANAGEMENT PAGE)
   ========================================================================== */
.receipt-sim-card {
  text-align: left;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.receipt-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-sim-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.receipt-sim-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.receipt-sim-title {
  color: var(--color-gold);
  font-size: 0.95rem;
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.receipt-sim-reg {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.receipt-sim-verified {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.receipt-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.receipt-sim-item {
  min-width: 0;
  overflow: hidden;
}

.receipt-sim-item span {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.receipt-sim-item strong {
  color: var(--color-text-title);
  word-break: break-word;
  display: block;
}

.receipt-sim-amount-box {
  background: var(--color-gold-subtle);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.receipt-sim-amount-left {
  min-width: 0;
  flex: 1 1 auto;
}

.receipt-sim-amount-left .sim-label {
  font-size: 0.78rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 2px;
}

.receipt-sim-amount-left strong {
  font-size: 1.05rem;
  color: var(--color-text-title);
  word-break: break-word;
}

.receipt-sim-amount-right {
  text-align: right;
  flex-shrink: 0;
}

.receipt-sim-amount-right .sim-label {
  font-size: 0.78rem;
  color: var(--color-gold);
  display: block;
  margin-bottom: 2px;
}

.receipt-sim-amount-right strong {
  font-size: 1.35rem;
  color: var(--color-gold);
}

.receipt-sim-whatsapp-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #25d366;
  color: #03180e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   HADITH & MASAIL / ASK MUFTI SECTION
   ========================================================================== */
.hadith-masail-section {
  padding: 90px 0;
}

.dual-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.card-pillar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.card-pillar:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.card-pillar h3 {
  font-size: 1.75rem;
  margin: 16px 0 12px;
}

.hadith-books-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.book-chip {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.85rem;
  color: var(--color-text-body);
}

.book-chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 90px 0;
}

.faq-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-title);
  transition: 0.2s;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding-bottom: 22px;
}

/* ==========================================================================
   CTA DOWNLOAD BANNER
   ========================================================================== */
.download-cta-section,
.cta-section {
  padding: 80px 0 100px;
}

.download-cta-box,
.cta-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 40px var(--color-gold-glow);
}

.download-cta-box h2,
.cta-box h2 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
  color: #fff;
}

.download-cta-box p,
.cta-box p {
  font-size: 1.15rem;
  color: var(--color-text-body);
  max-width: 640px;
  margin: 0 auto 36px;
}

.download-buttons-wrap,
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border-subtle);
  padding: 70px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  color: var(--color-text-muted);
  margin-top: 16px;
  font-size: 0.925rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--color-gold-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   LANGUAGE SWITCHER & RTL (URDU) SUPPORT
   ========================================================================== */
.lang-switcher-wrap {
  display: flex;
  align-items: center;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--color-gold-light);
}

.lang-btn.active {
  background: linear-gradient(135deg, #e8c55e 0%, var(--color-gold) 100%);
  color: #020617;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* RTL Specific Styles for Urdu */
html[dir="rtl"] body {
  font-family: var(--font-urdu), var(--font-arabic), var(--font-main);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
}

html[dir="rtl"] .brand-logo {
  margin-left: 14px;
  margin-right: 0;
}

html[dir="rtl"] .nav-menu {
  gap: 8px;
}

html[dir="rtl"] .nav-link {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  padding: 6px 12px;
  line-height: 1.8;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4 {
  font-family: var(--font-urdu), var(--font-arabic), serif;
  line-height: 1.95;
}

html[dir="rtl"] .hero-section {
  padding-top: 30px;
}

html[dir="rtl"] .hero-content h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 2.05;
  letter-spacing: normal;
  word-spacing: 2px;
  padding-top: 8px;
  margin: 8px 0 16px;
}

html[dir="rtl"] .hero-content .hero-lead {
  line-height: 2.1;
  font-size: 1.1rem;
}

html[dir="rtl"] .pillar-card-link i {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  html[dir="rtl"] .hero-content h1 {
    font-size: clamp(1.6rem, 5.2vw, 2.05rem);
    line-height: 2.2;
    margin: 14px 0 16px;
  }

  html[dir="rtl"] .hero-content .hero-lead {
    font-size: 0.98rem;
    line-height: 2.08;
    margin-bottom: 22px;
  }

  html[dir="rtl"] .nav-link {
    font-size: 1.05rem;
    line-height: 2;
  }
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .hero-cta-group {
  justify-content: flex-start;
}

html[dir="rtl"] .hero-stats {
  justify-content: flex-start;
}

html[dir="rtl"] .section-header {
  text-align: center;
}

html[dir="rtl"] .feature-card {
  text-align: right;
}

html[dir="rtl"] .qaida-list li {
  justify-content: flex-start;
  text-align: right;
}

html[dir="rtl"] .faq-question {
  text-align: right;
}

html[dir="rtl"] .footer-about p {
  text-align: right;
}

html[dir="rtl"] .footer-links {
  text-align: right;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .store-text {
  text-align: right;
}

html[dir="rtl"] .reciter-info {
  text-align: right;
}

html[dir="rtl"] .daily-ayah-trans {
  font-family: var(--font-urdu), serif;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ==========================================================================
   MISSION & VISION SECTION
   ========================================================================== */
.mission-section {
  padding: 60px 0 80px;
}

.mission-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  text-align: center;
}

.mission-box.governance-box {
  text-align: left;
}

html[dir="rtl"] .mission-box.governance-box {
  text-align: right;
  direction: rtl;
}

.mission-box h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

.mission-lead {
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 860px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.mission-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}

.mission-card {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition-smooth);
}

.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 20px var(--color-gold-glow);
}

.mission-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.mission-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.mission-card p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   PILLARS TAB BAR (INTERACTIVE JUMP BAR)
   ========================================================================== */
.pillars-nav-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.pillar-chip {
  padding: 9px 18px;
  border-radius: 9999px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-body);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pillar-chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   SHARAI CALCULATORS SECTION (8 CARDS)
   ========================================================================== */
.calculators-section {
  padding: 90px 0;
  background: transparent;
}

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.calc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.calc-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 25px var(--color-gold-glow);
}

.calc-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(30, 58, 138, 0.3) 100%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.calc-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.calc-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  background: var(--color-gold-subtle);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  width: fit-content;
}

/* ==========================================================================
   TRACKERS & WORSHIP CARDS
   ========================================================================== */
.trackers-section {
  padding: 90px 0;
}

.trackers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.tracker-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: var(--transition-smooth);
}

.tracker-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.tracker-card h3 {
  font-size: 1.35rem;
  margin: 16px 0 10px;
}

.tracker-card p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ==========================================================================
   WHAT'S NEW / CHANGELOG BOX
   ========================================================================== */
.whats-new-section {
  padding: 60px 0 80px;
}

.whats-new-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: var(--shadow-card), 0 0 35px var(--color-gold-glow);
}

.whats-new-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 20px;
}

.whats-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.whats-new-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--color-text-body);
}

.whats-new-item i {
  color: var(--color-gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* RTL Adjustments for New Sections */
html[dir="rtl"] .mission-cards-grid {
  text-align: right;
}

html[dir="rtl"] .calc-card {
  text-align: right;
}

html[dir="rtl"] .tracker-card {
  text-align: right;
}

html[dir="rtl"] .whats-new-item {
  text-align: right;
  flex-direction: row-reverse;
}

/* ==========================================================================
   INNER PAGE HERO BANNER & BREADCRUMBS
   ========================================================================== */
.page-hero-banner {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, var(--color-gold-subtle) 0%, transparent 100%);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
  text-align: center;
}

.page-hero-banner h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin: 14px 0 12px;
}

.page-hero-banner p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: var(--color-gold);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav i {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Pillar Card Link Effect on Homepage */
.pillar-overview-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  backdrop-filter: var(--glass-blur);
}

.pillar-overview-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-card), 0 0 25px var(--color-gold-glow);
}

.pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold);
  transition: var(--transition-fast);
}

.pillar-overview-card:hover .pillar-card-link {
  color: var(--color-gold-light);
  gap: 12px;
}

html[dir="rtl"] .page-hero-banner {
  text-align: center;
}

html[dir="rtl"] .pillar-overview-card {
  text-align: right;
}

html[dir="rtl"] .pillar-card-link {
  flex-direction: row-reverse;
}

html[dir="rtl"] .calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-direction: row-reverse;
}

html[dir="rtl"] .qaida-interactive-preview {
  direction: rtl;
}

html[dir="rtl"] .receipt-sim-card {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .receipt-sim-amount-right {
  text-align: left;
}

html[dir="rtl"] .card-pillar {
  text-align: right;
}

html[dir="rtl"] .breadcrumb-nav i {
  transform: rotate(180deg);
}

/* ==========================================================================
   THEME REFINEMENTS & ALTERNATE SECTIONS
   ========================================================================== */
.section-alternate {
  background: var(--color-bg-surface) !important;
  padding: 80px 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Light Mode Specific Enhancements */
html[data-theme="light"] .download-cta-box,
html[data-theme="light"] .cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15), 0 0 35px var(--color-gold-glow);
}

html[data-theme="light"] .download-cta-box h2,
html[data-theme="light"] .cta-box h2 {
  color: #ffffff;
}

html[data-theme="light"] .download-cta-box p,
html[data-theme="light"] .cta-box p {
  color: #cbd5e1;
}

html[data-theme="light"] .hero-store-btn {
  background: #ffffff;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .hero-store-btn:hover {
  background: #f8fafc;
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 0 15px var(--color-gold-glow);
}

html[data-theme="light"] .arabic-tile {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .qaida-interactive-preview {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .qaida-interactive-preview h4 {
  color: var(--color-gold-dark);
}

html[data-theme="light"] .btn-outline {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

html[data-theme="light"] .btn-outline:hover {
  background: var(--color-gold);
  color: #ffffff;
}

html[data-theme="light"] .hero-slider-controls {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: #e2e8f0;
}

html[data-theme="light"] .slider-tab-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

html[data-theme="light"] .slider-tab-btn:hover {
  background: #f8fafc;
  border-color: var(--color-gold);
  color: #0f172a;
}

html[data-theme="light"] .slider-tab-btn.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--color-gold);
  color: #0f172a;
}

html[data-theme="light"] .slider-arrow-btn {
  background: #ffffff;
  border-color: #e2e8f0;
}

html[data-theme="light"] .hero-stats-ribbon {
  background: rgba(255, 255, 255, 0.85);
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .hero-chip {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .badge,
html[data-theme="light"] .calc-badge {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--color-gold-dark);
}

html[data-theme="light"] .nav-link {
  color: var(--color-text-body);
}

html[data-theme="light"] .nav-link:hover {
  color: var(--color-gold-dark);
  background: rgba(212, 175, 55, 0.1);
}

html[data-theme="light"] .nav-link.active {
  color: var(--color-gold-dark);
  background: rgba(212, 175, 55, 0.16);
}

html[data-theme="light"] .mgmt-role-tab {
  background: #ffffff;
  border-color: #e2e8f0;
  color: var(--color-text-title);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .mgmt-role-tab:hover {
  background: #ffffff;
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

html[data-theme="light"] .mgmt-role-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18) 0%, rgba(5, 150, 105, 0.22) 100%);
  border-color: var(--color-gold);
  color: var(--color-text-title);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

html[data-theme="light"] .builder-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--color-text-body);
}

html[data-theme="light"] .builder-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

html[data-theme="light"] .builder-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

html[data-theme="light"] .whats-new-box {
  background: #ffffff;
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 0 25px rgba(212, 175, 55, 0.1);
}

html[data-theme="light"] .whats-new-item {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: var(--color-text-body);
}

html[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .faq-item.active {
  border-color: var(--color-gold);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .footer-links h4,
html[data-theme="light"] .footer-links a:hover {
  color: var(--color-gold-dark);
}

html[data-theme="light"] .founder-section {
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, rgba(241, 245, 249, 0.8) 50%, var(--color-bg-primary) 100%);
}

html[data-theme="light"] .mission-box h3 {
  color: var(--color-text-title);
}

html[data-theme="light"] .contact-input-box input,
html[data-theme="light"] .contact-input-box select,
html[data-theme="light"] .contact-input-box textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--color-text-title);
}

html[data-theme="light"] .phone-device {
  border-color: #0f172a;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content .hero-lead {
    margin: 0 auto 32px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .qaida-box {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .dual-columns-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1220px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--header-scrolled);
    backdrop-filter: var(--glass-blur);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 30px 24px;
    gap: 12px;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
    margin: 0;
    z-index: 999;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 14px 18px;
    border-radius: 10px;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu-cta {
    display: block;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border-subtle);
  }

  .nav-menu-cta .btn {
    width: 100%;
    justify-content: center;
  }

  html[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html[dir="rtl"] .nav-menu.open {
    right: 0;
    left: auto;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-top: 68px;
  }

  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 16px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .site-header .container {
    padding: 0 14px;
  }

  .nav-wrap {
    height: 68px;
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
  }

  .brand-logo img {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }

  .lang-switcher-wrap {
    padding: 2px;
    gap: 1px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  /* Hide download button in top header on mobile - already inside hamburger menu */
  .btn-header-download {
    display: none !important;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .nav-menu {
    top: 68px;
    height: calc(100vh - 68px);
    padding: 24px 18px;
  }

  .hero-section {
    padding: 40px 0 50px;
    overflow: hidden;
  }

  .hero-content h1 {
    font-size: clamp(1.85rem, 5.8vw, 2.5rem);
    line-height: 1.35;
    margin: 16px 0 18px;
  }

  .hero-content .hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  .hero-mockup-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    overflow: hidden;
    transform: none !important;
  }

  .phone-device {
    width: 290px;
    height: 580px;
    border-width: 8px;
    border-radius: 40px;
    box-sizing: border-box;
    margin: 0 auto;
    transform: none !important;
  }

  .phone-device:hover {
    transform: none !important;
  }

  .mockup-glow {
    width: 280px;
    height: 420px;
  }

  .hero-slides-track {
    min-height: auto;
  }

  .hero-slider-controls {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }

  .slider-tabs-track {
    order: 2;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .slider-tabs-track::-webkit-scrollbar {
    display: none;
  }

  .slider-tab-btn {
    padding: 7px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .slider-arrow-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .slider-play-btn {
    display: none;
  }

  .hero-chips {
    gap: 6px;
    margin-bottom: 20px;
  }

  .hero-chip {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .btn-hero-explore {
    padding: 11px 18px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }

  .hero-stats-ribbon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 14px 10px;
  }

  .hero-stat-box h4 {
    font-size: 1.35rem;
  }

  .hero-stat-box p {
    font-size: 0.72rem;
  }

  .floating-badge {
    display: none;
  }

  .prayer-times-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .prayer-box {
    padding: 10px 6px;
  }

  .prayer-box .name {
    font-size: 0.76rem;
  }

  .prayer-box .time {
    font-size: 0.92rem;
  }

  .prayer-ribbon-card {
    padding: 20px 14px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
  }

  .hero-stats {
    gap: 16px;
    justify-content: space-around;
  }

  .stat-item h4 {
    font-size: 1.45rem;
  }

  .stat-item p {
    font-size: 0.78rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Grids Collapse to 1 Column on Mobile */
  .features-grid,
  .calculators-grid,
  .trackers-grid,
  .reciters-grid,
  .mission-cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .card-pillar,
  .pillar-overview-card,
  .calc-card,
  .tracker-card,
  .reciter-card,
  .mission-card {
    width: 100%;
    box-sizing: border-box;
  }

  .qaida-box {
    grid-template-columns: 1fr;
    padding: 24px 14px;
    gap: 24px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .qaida-content h2 {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
    line-height: 1.3;
  }

  .qaida-content p {
    font-size: 0.95rem;
  }

  .qaida-content .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .qaida-list {
    margin: 18px 0 24px;
    gap: 12px;
  }

  .qaida-list li {
    font-size: 0.92rem;
    align-items: flex-start;
  }

  .qaida-list li i {
    margin-top: 3px;
  }

  .qaida-interactive-preview {
    padding: 18px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Simulated Receipt Mobile */
  .receipt-sim-card {
    padding: 18px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .receipt-sim-grid {
    gap: 10px;
  }

  .breadcrumb-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn {
    white-space: normal;
    max-width: 100%;
  }

  .download-cta-box,
  .cta-box {
    padding: 36px 18px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
  }

  /* What's New Mobile Responsive */
  .whats-new-section {
    padding: 50px 0 60px;
  }

  .whats-new-box {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .whats-new-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .whats-new-header h2 {
    font-size: 1.55rem;
  }

  .whats-new-grid {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .whats-new-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 0.88rem;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding: 0 10px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .hero-content h1 {
    font-size: clamp(1.68rem, 6.2vw, 2.1rem);
  }

  .prayer-times-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    padding-top: 16px;
  }

  .stat-item h4 {
    font-size: 1.25rem;
  }

  .stat-item p {
    font-size: 0.7rem;
  }

  .phone-device {
    width: 275px;
    height: 550px;
    border-width: 6px;
  }

  .app-quick-item {
    padding: 6px 2px;
  }

  .app-quick-item i {
    font-size: 0.95rem;
  }

  .app-quick-item span {
    font-size: 0.6rem;
  }

  .arabic-alphabet-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .arabic-tile {
    font-size: 1.5rem;
    padding: 10px 4px;
  }

  .whats-new-box {
    padding: 20px 14px;
  }

  .whats-new-item {
    padding: 10px 12px;
    font-size: 0.84rem;
    gap: 10px;
  }

  .download-cta-box h2,
  .cta-box h2 {
    font-size: 1.7rem;
  }

  .download-cta-box p,
  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  /* Simulated Receipt Card 480px */
  .receipt-sim-card {
    padding: 14px 12px;
  }

  .receipt-sim-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .receipt-sim-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .receipt-sim-amount-box {
    padding: 10px 12px;
  }

  .receipt-sim-amount-left strong {
    font-size: 0.95rem;
  }

  .receipt-sim-amount-right strong {
    font-size: 1.2rem;
  }
}

@media (max-width: 375px) {
  .brand-name {
    font-size: 1rem;
  }

  .site-header .container {
    padding: 0 8px;
  }

  .phone-device {
    width: 260px;
    height: 520px;
  }
}

/* ==========================================================================
   MADARSA & INSTITUTIONAL MANAGEMENT SYSTEM STYLES
   ========================================================================== */
.mgmt-hero-highlight {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin-bottom: 48px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.mgmt-tabs-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 40px;
  flex-wrap: wrap;
}

.mgmt-role-tab {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mgmt-role-tab i {
  color: var(--color-gold);
  font-size: 1.05rem;
  transition: transform 0.3s ease;
}

.mgmt-role-tab:hover {
  border-color: var(--color-gold);
  color: var(--color-text-title);
  transform: translateY(-2px);
}

.mgmt-role-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(9, 44, 31, 0.95) 100%);
  border-color: var(--color-gold);
  color: #fff;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.mgmt-role-tab.active i {
  transform: scale(1.15);
}

.mgmt-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mgmt-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Feature Grid with Step Numbers */
.mgmt-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.mgmt-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
}

.mgmt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  transition: height 0.3s ease;
}

[dir="rtl"] .mgmt-card::before {
  left: auto;
  right: 0;
}

.mgmt-card:hover {
  border-color: var(--color-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.mgmt-card:hover::before {
  height: 100%;
}

.mgmt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mgmt-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.25rem;
}

.mgmt-card-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold);
  opacity: 0.7;
  letter-spacing: 1px;
}

.mgmt-card h3 {
  font-size: 1.15rem;
  color: var(--color-text-title);
  margin-bottom: 10px;
  line-height: 1.4;
}

.mgmt-card p {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* Sharai Tamleek Matrix Cards */
.tamleek-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.tamleek-box {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1px solid var(--color-border-subtle);
  position: relative;
}

.tamleek-box.zakat-box {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.tamleek-box.lillah-box {
  border-color: rgba(46, 204, 113, 0.4);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.04) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.tamleek-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tamleek-box.zakat-box .tamleek-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tamleek-box.lillah-box .tamleek-badge {
  background: rgba(46, 204, 113, 0.15);
  color: #4ade80;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.tamleek-box h3 {
  font-size: 1.35rem;
  color: var(--color-text-title);
  margin-bottom: 12px;
}

.tamleek-box p {
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.65;
  margin-bottom: 18px;
}

.tamleek-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tamleek-rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.tamleek-rules-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Interactive Live Receipt Builder */
.receipt-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 32px;
}

.builder-controls-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.builder-controls-card h3 {
  font-size: 1.3rem;
  color: var(--color-text-title);
  margin-bottom: 8px;
}

.builder-controls-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.builder-form-group {
  margin-bottom: 20px;
}

.builder-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 8px;
}

.builder-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-surface-elevated);
  color: var(--color-text-title);
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.builder-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.builder-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-pill {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.builder-pill:hover {
  border-color: var(--color-gold);
  color: var(--color-text-title);
}

.builder-pill.active {
  background: var(--color-gold-subtle);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  font-weight: 700;
}

/* Responsive adjustments for Madarsa system */
@media (max-width: 992px) {
  .mgmt-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tamleek-matrix-grid {
    grid-template-columns: 1fr;
  }

  .receipt-builder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mgmt-features-grid {
    grid-template-columns: 1fr;
  }

  .mgmt-role-tab {
    padding: 10px 18px;
    font-size: 0.86rem;
    width: 100%;
    justify-content: center;
  }

  .mgmt-hero-highlight {
    padding: 24px 18px;
  }
}

/* =============================================================
 * REALISTIC MOBILE MOCKUP COMPONENTS (Matching Flutter App Screens)
 * =========================================================== */
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #cbd5e1;
}

.phone-nav-bar {
  margin-top: auto;
  padding: 10px 8px 6px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 15, 29, 0.95);
  border-top: 1px solid var(--color-border-subtle);
  border-radius: 18px;
}

.pnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--color-text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.pnav-item i {
  font-size: 0.88rem;
}

.pnav-item.active {
  color: var(--color-gold);
}

.pnav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--color-gold-glow));
}

/* =============================================================
 * FOUNDER & SYSTEM ARCHITECT (MOHAMMAD ASAD) STYLING
 * =========================================================== */
.founder-section {
  padding: 90px 0;
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-base) 0%, rgba(15, 23, 42, 0.75) 50%, var(--color-bg-base) 100%);
  overflow: hidden;
}

.founder-card-box {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 14, 26, 0.98) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.12);
  position: relative;
}

html[data-theme="light"] .founder-card-box {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 0 25px rgba(212, 175, 55, 0.15);
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}

.founder-media-column {
  text-align: center;
  position: relative;
}

.founder-portrait-frame {
  position: relative;
  display: inline-block;
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(145deg, var(--color-gold) 0%, rgba(212, 175, 55, 0.2) 50%, var(--color-gold) 100%);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.4);
}

.founder-img {
  width: 320px;
  height: 380px;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
  display: block;
  background: #020617;
}

.founder-seal-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-gold) 0%, #b8860b 100%);
  color: #020617;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-gold-glow);
  display: flex;
  align-items: center;
  gap: 6px;
}

.founder-content-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.founder-name-header {
  margin-bottom: 8px;
}

.founder-name-header h2 {
  font-size: 2.35rem;
  color: var(--color-text-title);
  margin-bottom: 6px;
  line-height: 1.25;
}

.founder-name-header h2 span {
  color: var(--color-gold);
}

.founder-role-subtitle {
  font-size: 1.05rem;
  color: var(--color-gold-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.founder-bio-text {
  font-size: 0.96rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

.founder-quote-card {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 16px 16px 0;
  padding: 16px 20px;
  font-style: italic;
  color: var(--color-text-title);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  margin: 8px 0;
}

html[dir="rtl"] .founder-quote-card {
  border-left: none;
  border-right: 4px solid var(--color-gold);
  border-radius: 16px 0 0 16px;
}

.founder-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 10px 0;
}

.founder-hl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-title);
}

.founder-hl-item i {
  color: var(--color-gold);
  font-size: 1.1rem;
}

.founder-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-whatsapp-direct {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.btn-founder-call {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-title) !important;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-founder-call:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light) !important;
  transform: translateY(-2px);
}

/* =============================================================
 * FOUNDER SLIDE IN HERO SLIDER (SLIDE 7)
 * =========================================================== */
.founder-slide-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 28px;
  padding: 18px 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.2);
  text-align: center;
  max-width: 310px;
  margin: 0 auto;
}

.founder-slide-img-wrap {
  position: relative;
  width: 155px;
  height: 155px;
  margin: 0 auto 10px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--color-gold) 0%, rgba(212, 175, 55, 0.2) 50%, var(--color-gold) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.35);
}

.founder-slide-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #020617;
}

.founder-slide-meta h4 {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.founder-slide-meta p {
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.founder-slide-tags {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

html[dir="rtl"] .founder-slide-tags {
  text-align: right;
}

.founder-slide-tags div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

/* Light Theme Overrides for Founder Slide Card */
html[data-theme="light"] .founder-slide-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 25px rgba(212, 175, 55, 0.15);
}

html[data-theme="light"] .founder-slide-img-wrap {
  background: linear-gradient(135deg, var(--color-gold) 0%, rgba(212, 175, 55, 0.3) 50%, var(--color-gold) 100%);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.22);
}

html[data-theme="light"] .founder-slide-img {
  background: #f1f5f9;
}

html[data-theme="light"] .founder-slide-meta h4 {
  color: #0f172a;
  font-weight: 800;
}

html[data-theme="light"] .founder-slide-meta p {
  color: #92400e;
  font-weight: 700;
}

html[data-theme="light"] .founder-slide-tags {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .founder-slide-tags div {
  color: #334155;
  font-weight: 600;
}

/* =============================================================
 * INTERACTIVE CONTACT SECTION & FORM STYLING
 * =========================================================== */
.contact-section {
  padding: 90px 0;
  position: relative;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-channels-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.contact-channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-gold-glow);
}

.channel-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.channel-icon-phone {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #38bdf8;
}

.channel-icon-whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.channel-icon-email {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
}

.channel-icon-support {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.channel-info h4 {
  font-size: 0.95rem;
  color: var(--color-text-title);
  margin-bottom: 2px;
}

.channel-info strong {
  font-size: 1.05rem;
  color: var(--color-gold);
  display: block;
  letter-spacing: 0.5px;
}

.channel-info small {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* Contact Form Card */
.contact-form-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 14, 26, 0.98) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .contact-form-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-header h3 {
  font-size: 1.6rem;
  color: var(--color-text-title);
  margin-bottom: 6px;
}

.contact-form-header p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-full {
  grid-column: 1 / -1;
}

.contact-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-title);
}

.contact-input-box {
  position: relative;
}

.contact-input-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

html[dir="rtl"] .contact-input-box i {
  left: auto;
  right: 14px;
}

.contact-input-box input,
.contact-input-box select,
.contact-input-box textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  color: var(--color-text-body);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

html[dir="rtl"] .contact-input-box input,
html[dir="rtl"] .contact-input-box select,
html[dir="rtl"] .contact-input-box textarea {
  padding: 12px 42px 12px 14px;
}

.contact-input-box textarea {
  resize: vertical;
  min-height: 110px;
  padding-top: 12px;
}

.contact-input-box input:focus,
.contact-input-box select:focus,
.contact-input-box textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold-glow);
  background: var(--color-bg-surface-elevated);
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.contact-form-actions button[type="submit"] {
  flex: 1;
}

/* Responsive adjustments for Founder & Contact */
@media (max-width: 992px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-media-column {
    margin-bottom: 20px;
  }

  .founder-highlights-grid {
    grid-template-columns: 1fr;
  }

  .founder-actions-row {
    justify-content: center;
  }

  .founder-quote-card {
    text-align: left;
  }

  html[dir="rtl"] .founder-quote-card {
    text-align: right;
  }

  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .founder-card-box {
    padding: 24px 18px;
  }

  .founder-img {
    width: 240px;
    height: 290px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    flex-direction: column;
  }

  .contact-form-actions button,
  .contact-form-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   ISLAMIC BLOG & ARTICLE SYSTEM (NATIVE WORDPRESS COMPATIBLE)
   ========================================================================== */

/* Readable Container for long-form reading */
.container-readable {
  max-width: 920px;
  margin: 0 auto;
}

/* Blog Search Bar */
.blog-search-bar {
  display: flex;
  align-items: center;
  max-width: 580px;
  margin: 24px auto 0;
  position: relative;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 4px 6px 4px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.blog-search-bar:focus-within {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.blog-search-bar .search-icon {
  color: var(--color-gold);
  font-size: 1rem;
  margin-right: 10px;
}

.blog-search-bar .search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-title);
  font-size: 0.95rem;
  font-family: inherit;
  padding: 8px 0;
}

.blog-search-bar .search-input::placeholder {
  color: var(--color-text-muted);
}

.blog-search-bar .btn-search {
  padding: 8px 20px;
  font-size: 0.88rem;
  border-radius: 50px;
}

/* Category Filter Pills */
.blog-category-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.blog-category-filter .filter-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pills-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--color-gold);
  color: #020617;
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Blog Grid & Cards */
.blog-section {
  padding: 50px 0 90px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px var(--color-gold-glow);
}

.blog-card-media {
  display: block;
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #03140e;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(3, 20, 14, 0.95) 100%);
  border-bottom: 1px solid var(--color-border);
}

.blog-card-placeholder .placeholder-logo {
  width: 52px;
  height: 52px;
  opacity: 0.85;
}

.blog-card-placeholder .placeholder-icon {
  position: absolute;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.08);
}

.blog-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 20, 14, 0.88);
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.18rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: var(--color-text-title);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card-title a:hover {
  color: var(--color-gold);
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.82rem;
}

.blog-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-body);
  font-weight: 600;
}

.blog-read-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.blog-read-link:hover {
  color: var(--color-gold-light);
  transform: translateX(4px);
}

/* Blog Empty State */
.blog-empty-state {
  text-align: center;
  padding: 60px 30px;
  background: var(--color-bg-card);
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius-xl);
  max-width: 650px;
  margin: 30px auto;
}

.blog-empty-state .empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-gold-subtle);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-gold);
}

.blog-empty-state h3 {
  font-size: 1.45rem;
  color: var(--color-text-title);
  margin-bottom: 10px;
}

.blog-empty-state p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.blog-empty-state .empty-instructions {
  background: var(--color-bg-surface-elevated);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--color-text-body);
  border: 1px solid var(--color-border-subtle);
}

.blog-empty-state .empty-instructions ol {
  margin: 8px 0 0 18px;
  line-height: 1.6;
}

/* Numeric Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-title);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--color-gold);
  color: #020617;
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   SINGLE ARTICLE / POST READING MODE STYLES
   ========================================================================== */
.single-article-hero {
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
}

.single-article-title {
  font-size: 2.35rem;
  line-height: 1.35;
  color: var(--color-text-title);
  margin: 16px 0 20px;
  font-weight: 800;
}

.single-article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.single-article-meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-share-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.btn-share-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-title);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-share-icon.whatsapp {
  color: #25d366;
}

.btn-share-icon:hover {
  background: var(--color-gold);
  color: #020617;
  border-color: var(--color-gold);
  transform: translateY(-2px);
}

/* Featured Frame */
.single-featured-frame {
  margin: 20px 0 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.single-featured-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Typography for Article Content (Gutenberg / Classic) */
.single-content-typography {
  font-size: 1.12rem;
  line-height: 1.95;
  color: var(--color-text-body);
}

.single-content-typography p {
  margin-bottom: 24px;
}

.single-content-typography h2 {
  font-size: 1.85rem;
  color: var(--color-text-title);
  margin: 44px 0 18px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.single-content-typography h3 {
  font-size: 1.45rem;
  color: var(--color-gold-light);
  margin: 36px 0 16px;
}

.single-content-typography blockquote {
  background: var(--color-bg-surface-elevated);
  border-left: 4px solid var(--color-gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-style: italic;
  color: var(--color-text-title);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.single-content-typography ul,
.single-content-typography ol {
  margin: 20px 0 28px 24px;
  line-height: 1.8;
}

.single-content-typography li {
  margin-bottom: 10px;
}

.single-content-typography img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px solid var(--color-border-subtle);
}

/* Article Tags */
.article-tags-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.article-tags-wrap .tags-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-title);
}

.tags-list a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 6px;
  margin-bottom: 4px;
  transition: all var(--transition-fast);
}

.tags-list a:hover {
  background: var(--color-gold);
  color: #020617;
  border-color: var(--color-gold);
}

/* Share Box */
.article-share-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.share-box-content h4 {
  font-size: 1.15rem;
  color: var(--color-text-title);
  margin-bottom: 4px;
}

.share-box-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

.share-box-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share-brand {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-share-brand.whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-share-brand.telegram {
  background: #0088cc;
  color: #fff;
}

.btn-share-brand.twitter {
  background: #000;
  border: 1px solid var(--color-border);
  color: #fff;
}

.btn-share-brand.copy {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-share-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Author Card */
.article-author-card {
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 36px 0;
}

.author-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  object-fit: cover;
}

.author-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.author-name {
  font-size: 1.25rem;
  color: var(--color-text-title);
  margin: 2px 0 6px;
}

.author-bio {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Post Navigation (Prev / Next) */
.post-navigation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.post-nav-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.post-nav-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  background: var(--color-bg-card-hover);
}

.post-nav-card .nav-direction {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-nav-card.next .nav-direction {
  justify-content: flex-end;
}

.post-nav-card.next {
  text-align: right;
}

.post-nav-card .nav-title {
  font-size: 1rem;
  color: var(--color-text-title);
  line-height: 1.4;
}

/* Related Articles Grid */
.related-articles-section {
  margin: 50px 0 20px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border-subtle);
}

.related-header {
  margin-bottom: 24px;
}

.related-header h3 {
  font-size: 1.45rem;
  color: var(--color-text-title);
  margin-top: 6px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.related-card-media {
  display: block;
  width: 100%;
  height: 130px;
  background: #03140e;
  overflow: hidden;
}

.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.related-card:hover .related-card-img {
  transform: scale(1.06);
}

.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-gold);
  background: var(--color-bg-surface-elevated);
}

.related-card-body {
  padding: 14px 16px;
}

.related-card-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.related-card-title {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 4px;
}

.related-card-title a {
  color: var(--color-text-title);
  text-decoration: none;
}

.related-card-title a:hover {
  color: var(--color-gold);
}

/* Responsive Breakpoints for Blog & Single */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .single-article-title {
    font-size: 1.85rem;
  }
  .article-share-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-author-card {
    flex-direction: column;
    text-align: center;
  }
  .post-navigation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  .blog-search-bar {
    border-radius: 14px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .blog-search-bar .btn-search {
    width: 100%;
    justify-content: center;
  }
}
/* ==========================================================================
   ISLAMIC PROSE & POST FORMAT BOXES (MATCHING EDITOR & FRONTEND)
   ========================================================================== */
.islamic-ayat-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.09) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: var(--radius-lg, 16px);
  padding: 26px 30px;
  margin: 32px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.islamic-ayat-box .arabic-text {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  line-height: 2.2;
  color: var(--color-gold);
  direction: rtl;
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.islamic-ayat-box .translation {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.8;
  display: block;
  margin-bottom: 10px;
}

.islamic-ayat-box .reference {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold-light, #f3e5ab);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
}

.islamic-hadith-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--color-emerald, #10b981);
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
  padding: 24px 28px;
  margin: 28px 0;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
}

[dir="rtl"] .islamic-hadith-box {
  border-left: 1px solid rgba(16, 185, 129, 0.2);
  border-right: 4px solid var(--color-emerald, #10b981);
  border-radius: var(--radius-md, 12px) 0 0 var(--radius-md, 12px);
}

.islamic-fatwa-box {
  background: rgba(212, 175, 55, 0.07);
  border: 1.5px dashed var(--color-gold);
  border-radius: var(--radius-lg, 16px);
  padding: 24px 28px;
  margin: 28px 0;
}

.islamic-alert-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
  padding: 20px 24px;
  margin: 24px 0;
  color: #fca5a5;
}

.urdu-nastaliq {
  font-family: 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  line-height: 2.3;
}

.arabic-amiri {
  font-family: 'Amiri', serif;
  direction: rtl;
  line-height: 2.1;
  font-size: 1.4em;
  color: var(--color-gold);
}

/* Post Meta Audio Recitation Player in single post */
.article-audio-player-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.article-audio-player-box audio {
  width: 100%;
  outline: none;
}

.article-fatwa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   ADVANCED TYPOGRAPHY UTILITY CLASSES (QURANIC, NASTALIQ & ENGLISH FONTS)
   ========================================================================== */
.font-quran-scheherazade,
.font-quran {
  font-family: var(--font-quran, 'Scheherazade New', serif);
  direction: rtl;
  font-size: 1.55em;
  line-height: 2.3;
}

.font-quran-naskh {
  font-family: var(--font-naskh, 'Noto Naskh Arabic', serif);
  direction: rtl;
  font-size: 1.3em;
  line-height: 2.1;
}

.font-arabic-amiri {
  font-family: var(--font-arabic, 'Amiri', serif);
  direction: rtl;
  line-height: 2.0;
  font-size: 1.35em;
}

.font-urdu-nastaliq {
  font-family: var(--font-urdu, 'Noto Nastaliq Urdu', serif);
  direction: rtl;
  line-height: 2.3;
}

.font-urdu-gulzar {
  font-family: var(--font-gulzar, 'Gulzar', serif);
  direction: rtl;
  font-size: 1.25em;
  line-height: 2.4;
}

.font-inter {
  font-family: var(--font-inter, 'Inter', sans-serif);
}

.font-poppins {
  font-family: var(--font-poppins, 'Poppins', sans-serif);
}

.font-cinzel {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   GALLERIES, PHOTO FRAMES & MEDIA GRIDS (100% NATIVE WP COMPATIBLE)
   ========================================================================== */
.islamic-image-frame {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 28px 0;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.islamic-image-frame:hover {
  transform: translateY(-3px);
  border-color: var(--color-gold);
}

.islamic-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

/* Multi-Column Responsive Media Grids */
.islamic-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.islamic-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

/* WordPress Core Gallery & MominHub Gallery */
.wp-block-gallery,
.gallery,
.islamic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.wp-block-gallery .wp-block-image,
.gallery-item,
.islamic-gallery-grid .gallery-item {
  position: relative;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  background: var(--color-bg-card);
  padding: 8px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wp-block-gallery .wp-block-image:hover,
.gallery-item:hover,
.islamic-gallery-grid .gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-glow);
}

.wp-block-gallery img,
.gallery-item img,
.islamic-gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img,
.islamic-gallery-grid .gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption,
.wp-block-gallery figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 8px 4px 4px;
}

/* Islamic Book / PDF Download Card */
.islamic-book-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg, 18px);
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.islamic-book-card:hover {
  border-color: var(--color-gold);
}

.islamic-book-card .book-icon {
  font-size: 3rem;
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Jamia & Trust Notice / Ilan Card */
.islamic-notice-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg, 18px);
  padding: 26px 30px;
  margin: 30px 0;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   BUILT-IN ISLAMIC LIGHTBOX MODAL (ZERO EXTERNAL PLUGINS)
   ========================================================================== */
.islamic-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.islamic-lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.islamic-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.islamic-lightbox-backdrop.active .islamic-lightbox-content {
  transform: scale(1);
}

.islamic-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-lg, 18px);
  border: 2px solid var(--color-gold);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
  object-fit: contain;
}

.islamic-lightbox-caption {
  margin-top: 14px;
  color: var(--color-gold-light);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.islamic-lightbox-close {
  position: absolute;
  top: -46px;
  right: -10px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-gold);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.islamic-lightbox-close:hover {
  background: var(--color-gold);
  color: #000;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .islamic-grid-2col,
  .islamic-grid-3col {
    grid-template-columns: 1fr;
  }
  .islamic-book-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   READING PROGRESS BAR & FLOATING BACK TO TOP BUTTON
   ========================================================================== */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-emerald) 100%);
  z-index: 99999;
  transition: width 0.1s ease;
}

.btn-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  z-index: 9998;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--color-gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   PRINT FRIENDLY STYLESHEET (FOR FATAWA, CALCULATOR RECEIPTS & ARTICLES)
   ========================================================================== */
@media print {
  .site-header,
  .site-footer,
  .nav-menu,
  .nav-actions,
  .btn-back-to-top,
  .reading-progress-bar,
  .islamic-lightbox-backdrop,
  .article-share-box,
  .download-cta-section,
  .post-navigation-grid {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt !important;
    line-height: 1.6 !important;
  }

  .single-article-title,
  .single-content-typography h1,
  .single-content-typography h2,
  .single-content-typography h3 {
    color: #000000 !important;
  }

  .islamic-ayat-box,
  .islamic-hadith-box,
  .islamic-fatwa-box {
    border: 1px solid #333 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
  }

  .arabic-text,
  .arabic-amiri {
    color: #000 !important;
  }
}



