/* ==========================================================================
   FreedomNex — House of Wisdom (Bayt al-Hikma)
   Styles: Digital Manuscript meets Modern Aesthetic
   ========================================================================== */

:root {
  /* Colors - Light Terracotta Theme with High Contrast & Crisp Readability */
  --bg-dark: #e6edf4;
  --bg-dark-surface: #f0f4f9;
  --bg-navy-deep: #0c182a;
  --bg-sapphire-mid: #162a45;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-parchment: #ffffff;
  --bg-parchment-subtle: #f8fafc;
  --text-parchment: #0c182a;
  
  --gold-100: #0a1727;
  --gold-200: #122842;
  --gold-300: #1a3860;
  --gold-400: #25548d;
  --gold-500: #183e6d;
  --gold-600: #0d233e;
  
  --text-main: #0c182a;
  --text-muted: #334760;
  --text-dim: #4d627d;
  
  --border-gold: rgba(37, 84, 141, 0.22);
  --border-gold-strong: rgba(37, 84, 141, 0.55);
  --border-subtle: rgba(37, 84, 141, 0.12);
  
  --glow-gold: 0 4px 25px rgba(37, 84, 141, 0.12);
  --glow-gold-strong: 0 6px 35px rgba(37, 84, 141, 0.22);

  /* Fonts */
  --font-serif-display: 'Cinzel', 'Amiri', Georgia, serif;
  --font-arabic: 'Amiri', 'Scheherazade New', serif;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #f9fbfe 0%, #edf3fa 40%, var(--bg-dark) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-main);
}

/* Arabic Typography Utility */
.arabic-script, [lang="ar"] {
  font-family: var(--font-arabic);
  direction: rtl;
  letter-spacing: 0;
}

/* Geometric Islamic Background Pattern Overlay */
.geometric-bg-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%231A3860' stroke-width='1.2'%3E%3Cpolygon points='40,0 80,40 40,80 0,40'/%3E%3Crect x='11.72' y='11.72' width='56.57' height='56.57' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Cpolygon points='40,8 72,40 40,72 8,40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
}

/* Links & Buttons */
a {
  color: var(--gold-400);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--gold-600);
  text-shadow: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  outline: none;
  background: none;
  transition: var(--transition-smooth);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Header & Top Bar Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Top Strip */
.top-strip {
  width: 100%;
  background-color: #0b1523;
  border-bottom: 1px solid rgba(37, 84, 141, 0.3);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  padding: 0.38rem 0;
  position: relative;
  z-index: 102;
  box-shadow: 0 2px 10px rgba(11, 21, 35, 0.5);
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.top-strip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.top-strip-icon {
  color: #60a5fa;
  font-size: 0.82rem;
}

.top-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.top-strip-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(147, 197, 253, 0.6);
}

.top-strip-label {
  color: #64748b;
  font-weight: 400;
}

.top-strip-value {
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.top-strip-timezone {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  background: rgba(37, 84, 141, 0.18);
  border: 1px solid rgba(37, 84, 141, 0.4);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 500;
  margin-left: 0.25rem;
  letter-spacing: 0.02em;
}

/* Announcement Item in Top Strip */
.top-strip-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #f1f5f9;
  max-width: 620px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.08);
  transition: var(--transition-smooth);
}

.top-strip-announcement:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1523;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
  animation: pulseGoldBadge 3s infinite ease-in-out;
}

@keyframes pulseGoldBadge {
  0%, 100% {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
  }
}

.announcement-msg {
  color: #e2e8f0;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.announcement-details-btn:hover {
  background: #f59e0b;
  color: #0b1523;
  border-color: #f59e0b;
}

/* Main Navbar Wrapper */
.navbar-wrapper {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled .navbar-wrapper {
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 84, 141, 0.2);
  box-shadow: 0 4px 20px rgba(12, 24, 42, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-400);
  object-fit: cover;
  box-shadow: 0 0 15px rgba(37, 84, 141, 0.25);
  transition: transform 0.4s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: rotate(5deg) scale(1.05);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #0c182a 0%, #162a45 50%, #25548d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #1a3860;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-arabic-badge {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: #162a45;
  font-weight: 700;
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #3b1f17;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #25548d;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 84, 141, 0.08);
  transition: var(--transition-smooth);
}

.btn-icon-nav:hover {
  background: rgba(37, 84, 141, 0.2);
  color: var(--gold-600);
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(37, 84, 141, 0.25);
}

.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #1a3860, #0c182a);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(26, 56, 96, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-gold-primary:hover {
  background: linear-gradient(135deg, #25548d, #1a3860);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 56, 96, 0.45);
  color: #ffffff;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold-400);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  border: 1px solid var(--border-gold-strong);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: rgba(37, 84, 141, 0.12);
  color: var(--gold-600);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  color: var(--gold-400);
  font-size: 1.5rem;
  padding: 0.3rem;
}

/* ==========================================================================
   3D Book Hero Section & Scroll Sequence
   ========================================================================== */

.hero-scroll-container {
  position: relative;
  width: 100%;
  height: 320vh; /* Pinned scroll canvas duration for 4+ pages */
  z-index: 10;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #f9fbfe 0%, #edf3fa 55%, var(--bg-dark) 100%);
}

.hero-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 56, 96, 0.18) 0%, rgba(37, 84, 141, 0.1) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* 3D Canvas for Three.js */
#book-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Hero Overlay Typography */
.hero-content-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 165px 2rem 2.5rem;
  pointer-events: none;
}

.hero-header-block {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 6;
}

.bismillah-calligraphy {
  font-family: var(--font-arabic);
  font-size: 1.95rem;
  color: #183e6d;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(37, 84, 141, 0.18);
}

.hero-arabic-title {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: #25548d;
  font-weight: 700;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.hero-main-title {
  font-family: var(--font-serif-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0c182a 0%, #162a45 50%, #25548d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 2px 8px rgba(100, 35, 15, 0.12));
}

.hero-tagline {
  font-family: var(--font-serif-display);
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #162a45;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '❖';
  font-size: 0.8rem;
  color: #25548d;
  opacity: 1;
}

/* Scroll Cue */
.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #162a45;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.hero-scroll-cue .mouse-indicator {
  width: 22px;
  height: 36px;
  border: 2px solid #25548d;
  border-radius: 12px;
  position: relative;
}

.hero-scroll-cue .mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: #25548d;
  border-radius: 2px;
  animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  75% { transform: translate(-50%, 14px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* Revelation Box (Shown mid-scroll when book opens) */
.wisdom-revelation-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 820px;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(37, 84, 141, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(12, 24, 42, 0.15), var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  pointer-events: auto;
  z-index: 6;
}

.wisdom-revelation-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.revelation-filigree-top,
.revelation-filigree-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #25548d;
  font-size: 0.9rem;
  opacity: 1;
}

.revelation-filigree-top::before,
.revelation-filigree-top::after,
.revelation-filigree-bottom::before,
.revelation-filigree-bottom::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, #25548d, transparent);
}

.revelation-arabic {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: #183e6d;
  font-weight: 700;
  line-height: 1.6;
  margin: 1rem 0 0.8rem;
}

.revelation-english {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.revelation-source {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #162a45;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Section Components & Layouts
   ========================================================================== */

section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #183e6d;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.35);
  box-shadow: 0 2px 8px rgba(100, 35, 15, 0.06);
}

.section-eyebrow .arabic-badge {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: #162a45;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-serif-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.section-title span {
  background: linear-gradient(135deg, #6e2710, #25548d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.12rem;
  color: #3b1f17;
  line-height: 1.8;
}

/* Arabesque Section Divider */
.arabesque-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem auto;
  color: #25548d;
  opacity: 0.9;
}

.arabesque-divider::before,
.arabesque-divider::after {
  content: '';
  height: 1px;
  width: 120px;
  background: linear-gradient(90deg, transparent, #25548d, transparent);
}

/* ==========================================================================
   Section 3: About / Bayt al-Hikma Legacy
   ========================================================================== */

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

.about-text-column p {
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
  color: #2a140d;
  line-height: 1.8;
}

.about-text-column p strong {
  color: #183e6d;
  font-weight: 700;
}

.about-quote-box {
  border-left: 4px solid #25548d;
  padding: 1.2rem 1.5rem;
  background: #ffffff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(100, 40, 20, 0.08);
}

.about-quote-box .arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: #183e6d;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.about-quote-box .quote-text {
  font-family: var(--font-serif-display);
  font-style: italic;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.about-quote-box .quote-cite {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #162a45;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-visual-column {
  position: relative;
}

.manuscript-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(100, 42, 20, 0.08);
  overflow: hidden;
}

.manuscript-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(37, 84, 141, 0.2);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.manuscript-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.manuscript-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #25548d;
  box-shadow: 0 0 15px rgba(37, 84, 141, 0.25);
}

.manuscript-header h4 {
  font-family: var(--font-serif-display);
  font-size: 1.3rem;
  color: #1c0d08;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.manuscript-header span {
  font-family: var(--font-arabic);
  color: #183e6d;
  font-weight: 700;
  font-size: 1rem;
}

.heritage-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  background: #fbf5f0;
  border: 1px solid rgba(37, 84, 141, 0.22);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif-display);
  font-size: 2rem;
  font-weight: 800;
  color: #183e6d;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #3b1f17;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Section 4: Core Pillars of Wisdom
   ========================================================================== */

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

.pillar-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(100, 40, 20, 0.06);
  transition: var(--transition-smooth);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #25548d, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: #25548d;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(100, 40, 20, 0.12);
}

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

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fbf3ee;
  border: 1.5px solid rgba(37, 84, 141, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25548d;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.pillar-arabic-title {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  color: #183e6d;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.pillar-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pillar-summary {
  font-size: 0.95rem;
  color: #3b1f17;
  line-height: 1.7;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.pillar-topics-list {
  list-style: none;
  margin-bottom: 1.8rem;
}

.pillar-topics-list li {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #2a140d;
  font-weight: 500;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-topics-list li::before {
  content: '✧';
  color: #25548d;
  font-size: 0.7rem;
}

.pillar-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(37, 84, 141, 0.2);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #183e6d;
  letter-spacing: 0.05em;
  background: none;
  cursor: pointer;
}

.pillar-explore-btn i {
  transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-explore-btn i {
  transform: translateX(4px);
}

/* ==========================================================================
   Section 5: Featured Wisdom Carousel
   ========================================================================== */

.wisdom-carousel-wrapper {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.3);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(100, 42, 20, 0.08);
}

.carousel-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  background: #fbf3ee;
  border: 1px solid rgba(37, 84, 141, 0.25);
  color: #3b1f17;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover,
.filter-tab.active {
  background: #25548d;
  border-color: #25548d;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(140, 50, 20, 0.25);
}

.quote-display-container {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.quote-category-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #183e6d;
  font-weight: 700;
  margin-bottom: 1.2rem;
  display: inline-block;
}

.quote-arabic-text {
  font-family: var(--font-arabic);
  font-size: 2.2rem;
  color: #162a45;
  font-weight: 700;
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.quote-english-text {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.7;
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.quote-source-badge {
  font-family: var(--font-serif-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: #183e6d;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.quote-context-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #3b1f17;
  max-width: 650px;
  line-height: 1.6;
}

.carousel-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(37, 84, 141, 0.2);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 84, 141, 0.35);
  color: #183e6d;
  background: #fbf3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: #25548d;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(37, 84, 141, 0.35);
}

.carousel-indicators {
  display: flex;
  gap: 0.6rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 84, 141, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  width: 28px;
  border-radius: 10px;
  background: #25548d;
  box-shadow: 0 0 10px rgba(37, 84, 141, 0.35);
}

.quote-action-btns {
  display: flex;
  gap: 0.6rem;
}

.btn-copy-quote, .btn-audio-quote {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid rgba(37, 84, 141, 0.3);
  color: #162a45;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fbf3ee;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-copy-quote:hover, .btn-audio-quote:hover {
  background: #25548d;
  color: #ffffff;
}

/* ==========================================================================
   Section 6: Learning Paths & Curriculum
   ========================================================================== */

.paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.path-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(100, 40, 20, 0.06);
  transition: var(--transition-smooth);
}

.path-card:hover {
  transform: translateY(-5px);
  border-color: #25548d;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(100, 40, 20, 0.12);
}

.path-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.path-code-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #162a45;
  background: #fbf3ee;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(37, 84, 141, 0.3);
}

.path-level-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #5c3429;
  font-weight: 600;
}

.path-title {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.path-duration {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #183e6d;
  font-weight: 600;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.path-desc {
  font-size: 0.95rem;
  color: #3b1f17;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.path-modules-box {
  background: #fbf5f0;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(37, 84, 141, 0.2);
}

.path-modules-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #162a45;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

.path-modules-list {
  list-style: none;
}

.path-modules-list li {
  font-size: 0.84rem;
  color: #1c0d08;
  font-weight: 500;
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.path-modules-list li::before {
  content: '▸';
  color: #25548d;
}

/* ==========================================================================
   Section 7: Interactive History Timeline
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, #25548d 20%, #25548d 80%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
  padding: 0 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-node {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid #25548d;
  box-shadow: 0 0 12px rgba(140, 50, 20, 0.35);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-node {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-node {
  left: -9px;
}

.timeline-content-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(100, 40, 20, 0.06);
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #183e6d;
  margin-bottom: 0.3rem;
}

.timeline-title {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  color: #1c0d08;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: #3b1f17;
  line-height: 1.6;
}

/* ==========================================================================
   Section 8: Testimonials / Community Voices
   ========================================================================== */

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

.testimonial-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(100, 40, 20, 0.06);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.05rem;
  color: #1c0d08;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #162a45;
}

.testimonial-role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #5c3429;
  font-weight: 600;
}

/* ==========================================================================
   Section 9: Newsletter & Dispatch Signup
   ========================================================================== */

.newsletter-box {
  background: #ffffff;
  border: 2px solid rgba(37, 84, 141, 0.4);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(100, 40, 20, 0.08);
}

.newsletter-box::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(37, 84, 141, 0.2);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 520px;
  margin: 2rem auto 1rem;
  position: relative;
  z-index: 2;
}

.newsletter-input {
  flex-grow: 1;
  background: #fbf5f0;
  border: 1.5px solid rgba(37, 84, 141, 0.35);
  border-radius: 30px;
  padding: 0.85rem 1.4rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: #25548d;
  box-shadow: 0 0 15px rgba(140, 50, 20, 0.2);
}

.newsletter-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #5c3429;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #08111e;
  border-top: 2px solid rgba(37, 84, 141, 0.4);
  padding: 5rem 0 2.5rem;
  position: relative;
  z-index: 5;
}

.site-footer .brand-name {
  background: linear-gradient(135deg, #ffffff 0%, #c4dcff 50%, #f4ad8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c4dcff;
}

.site-footer .brand-sub {
  color: #c4dcff;
  opacity: 0.9;
}

.site-footer .brand-logo-img {
  border-color: #c4dcff;
  box-shadow: 0 0 15px rgba(255, 214, 196, 0.25);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 1.2rem 0;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  color: #c4dcff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(37, 84, 141, 0.4);
  color: #c4dcff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 197, 253, 0.15);
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background: #1a3860;
  color: #ffffff;
  border-color: #25548d;
}

.footer-bottom-row {
  border-top: 1px solid rgba(147, 197, 253, 0.2);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================================
   Mobile Drawer & Navigation
   ========================================================================== */

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 35, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 380px;
  background: linear-gradient(180deg, #fbf2eb 0%, #f4e1d5 100%);
  border-left: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.8rem;
  box-shadow: -15px 0 40px rgba(60, 25, 15, 0.25), var(--glow-gold);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-backdrop.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 1.5rem;
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  color: #162a45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(37, 84, 141, 0.12);
}

.mobile-drawer-close:hover {
  background: rgba(37, 84, 141, 0.25);
  color: var(--gold-600);
}

.mobile-drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.mobile-nav-link i {
  color: #25548d;
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(37, 84, 141, 0.15);
  border-color: var(--border-gold);
  color: #25548d;
  transform: translateX(4px);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(37, 84, 141, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.mobile-drawer-cta {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
}

.mobile-drawer-arabic {
  font-family: var(--font-arabic);
  color: #162a45;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 1;
}

/* ==========================================================================
   Contact Section Styles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: #ffffff;
  border: 1.5px solid rgba(37, 84, 141, 0.2);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(100, 40, 20, 0.06);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  background: #ffffff;
  border-color: #25548d;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(100, 40, 20, 0.12);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fbf3ee;
  border: 1.5px solid rgba(37, 84, 141, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #25548d;
  margin-bottom: 0.5rem;
}

.contact-card h3 {
  font-family: var(--font-serif-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c0d08;
}

.contact-card-value {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #183e6d;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Modals & Overlay Dialogs
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 21, 35, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-window {
  position: relative;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 2px solid rgba(37, 84, 141, 0.35);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: 0 25px 60px rgba(12, 24, 42, 0.25), var(--glow-gold);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fbf3ee;
  border: 1px solid rgba(37, 84, 141, 0.25);
  color: #162a45;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 5;
}

.modal-close-btn:hover {
  background: #25548d;
  color: #ffffff;
  border-color: #25548d;
  transform: rotate(90deg);
}

/* ==========================================================================
   Under Development Modal Styling
   ========================================================================== */
.dev-modal-backdrop {
  z-index: 1200;
}

.dev-modal-window {
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.2rem 2rem;
  border: 1.5px solid rgba(37, 84, 141, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 65px rgba(12, 24, 42, 0.28), 0 0 40px rgba(37, 84, 141, 0.15);
  background: #ffffff;
  position: relative;
}

.dev-modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #25548d, #f59e0b);
}

.dev-modal-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.dev-modal-icon-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(37, 84, 141, 0.12));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  color: #d97706;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.dev-modal-arabic-tag {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  color: #25548d;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.dev-modal-title {
  font-family: var(--font-serif-display);
  font-size: 1.65rem;
  color: #0c182a;
  margin-bottom: 0.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dev-modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #4d627d;
}

.dev-modal-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: #78350f;
  line-height: 1.55;
}

.notice-banner-icon {
  color: #d97706;
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.dev-modal-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.dev-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(37, 84, 141, 0.12);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.dev-point-item:hover {
  background: #f1f5f9;
  border-color: rgba(37, 84, 141, 0.28);
}

.dev-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(37, 84, 141, 0.1);
  color: #25548d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dev-point-content h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #0c182a;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.dev-point-content p {
  font-size: 0.8rem;
  color: #4d627d;
  line-height: 1.45;
  margin: 0;
}

.dev-modal-footer {
  display: flex;
  justify-content: center;
}

.dev-modal-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #183e6d, #25548d);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 15px rgba(24, 62, 109, 0.25);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.dev-modal-btn:hover {
  background: linear-gradient(135deg, #25548d, #1a3860);
  box-shadow: 0 6px 20px rgba(24, 62, 109, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   Toast Notification Banner
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #0b1523;
  border: 1px solid var(--border-gold-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(11, 21, 35, 0.5), var(--glow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   Accessibility & Responsive Media Queries (Mobile & Tablet Optimizations)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll-container {
    height: auto;
  }
  .hero-sticky-stage {
    position: relative;
    height: auto;
    padding: 8rem 0 5rem;
  }
  .wisdom-revelation-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 3rem;
  }
}

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .top-strip-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .top-strip-announcement {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .paths-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hero-content-layer {
    padding: 150px 1.5rem 2rem;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 1rem;
  }
  
  section {
    padding: 3.5rem 0;
  }

  /* Compact Mobile Header */
  .site-header {
    box-shadow: 0 2px 15px rgba(11, 21, 35, 0.15);
  }

  .top-strip {
    font-size: 0.68rem;
    padding: 0.25rem 0;
  }

  .top-strip-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.5rem;
    align-items: center;
  }

  .top-strip-contact {
    grid-column: 1 / 2;
    justify-content: flex-start;
    font-size: 0.68rem;
  }

  .top-strip-time {
    grid-column: 2 / 3;
    justify-content: flex-end;
    font-size: 0.68rem;
  }

  .top-strip-label {
    display: none;
  }

  .top-strip-timezone {
    font-size: 0.62rem;
    padding: 0.08rem 0.35rem;
    margin-left: 0.2rem;
  }

  .top-strip-announcement {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    border-radius: 6px;
  }

  .announcement-badge {
    font-size: 0.58rem;
    padding: 0.08rem 0.35rem;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  .announcement-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.66rem;
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .announcement-details-btn {
    font-size: 0.62rem;
    padding: 0.06rem 0.35rem;
    flex-shrink: 0;
  }

  .navbar-wrapper {
    height: 56px;
  }

  .brand-wrapper {
    gap: 0.55rem;
  }

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

  .brand-name {
    font-size: 1.12rem;
    letter-spacing: 0.04em;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .brand-arabic-badge {
    display: none;
  }

  .nav-links,
  .nav-cta-desktop {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(37, 84, 141, 0.1);
    color: var(--gold-400);
    font-size: 1.1rem;
  }

  /* Hero Section Mobile */
  .hero-scroll-container {
    height: 160vh;
  }

  .hero-content-layer {
    padding: 135px 1rem 1.8rem;
  }

  .hero-header-block {
    margin-top: 0.4rem;
  }

  .hero-main-title {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
    letter-spacing: 0.05em;
    line-height: 1.18;
    margin-bottom: 0.35rem;
  }

  .hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    gap: 0.5rem;
  }

  .bismillah-calligraphy {
    font-size: 1.18rem;
    margin-bottom: 0.35rem;
  }

  .hero-arabic-title {
    font-size: 0.98rem;
    margin-bottom: 0.15rem;
  }

  .hero-scroll-cue {
    font-size: 0.68rem;
    gap: 0.35rem;
  }

  .hero-scroll-cue .mouse-indicator {
    width: 18px;
    height: 30px;
  }

  .wisdom-revelation-overlay {
    width: 95%;
    max-width: 480px;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .revelation-arabic {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .revelation-english {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .revelation-source {
    font-size: 0.72rem;
  }

  .revelation-filigree-top::before,
  .revelation-filigree-top::after,
  .revelation-filigree-bottom::before,
  .revelation-filigree-bottom::after {
    width: 30px;
  }

  /* Sections Mobile Typography & Cards */
  .section-title {
    font-size: 1.75rem;
    line-height: 1.22;
  }

  .section-desc {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .section-header-block {
    margin-bottom: 2.2rem;
  }

  .pillars-grid,
  .paths-grid,
  .testimonials-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillar-card,
  .path-card,
  .testimonial-card,
  .manuscript-card,
  .contact-card {
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius-md);
  }

  .pillar-title {
    font-size: 1.2rem;
  }

  .pillar-arabic-title {
    font-size: 1.1rem;
  }

  .pillar-summary {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .path-title {
    font-size: 1.18rem;
  }

  .path-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .wisdom-carousel-box {
    padding: 1.6rem 1.1rem;
  }

  .carousel-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.4rem;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .carousel-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  .quote-arabic-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    word-break: break-word;
  }

  .quote-english-text {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }

  .quote-source-badge {
    font-size: 0.78rem;
  }

  .carousel-nav-controls {
    flex-direction: column-reverse;
    gap: 0.9rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .timeline-container::before {
    left: 12px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 36px;
    padding-right: 0;
    margin-bottom: 1.8rem;
  }

  .timeline-node {
    left: 5px !important;
    width: 16px;
    height: 16px;
  }

  .timeline-content-card {
    padding: 1.2rem 1rem;
  }

  .timeline-title {
    font-size: 1.1rem;
  }

  .timeline-desc {
    font-size: 0.85rem;
  }

  .newsletter-box {
    padding: 1.8rem 1.1rem;
  }

  .newsletter-title {
    font-size: 1.45rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.65rem;
  }

  .newsletter-input {
    width: 100%;
    min-height: 48px;
    font-size: 0.88rem;
  }

  .newsletter-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 0.9rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    font-size: 0.8rem;
  }

  /* Under Development & General Modal Mobile Optimization */
  .modal-backdrop {
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .modal-window,
  .dev-modal-window {
    padding: 1.5rem 1.1rem 1.3rem;
    max-height: 88vh;
    max-height: calc(100dvh - 1.5rem);
    border-radius: var(--radius-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }

  .dev-modal-header {
    margin-bottom: 0.85rem;
  }

  .dev-modal-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
  }

  .dev-modal-arabic-tag {
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
  }

  .dev-modal-title {
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 0.2rem;
  }

  .dev-modal-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .dev-modal-notice-banner {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
  }

  .notice-banner-icon {
    font-size: 1rem;
    margin-top: 0.1rem;
  }

  .dev-modal-points {
    gap: 0.5rem;
    margin-bottom: 1.15rem;
  }

  .dev-point-item {
    padding: 0.55rem 0.7rem;
    gap: 0.6rem;
    border-radius: 6px;
  }

  .dev-point-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .dev-point-content h4 {
    font-size: 0.82rem;
    margin-bottom: 0.1rem;
  }

  .dev-point-content p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .dev-modal-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
    min-height: 48px;
    border-radius: 6px;
  }

  .toast-notice {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.85rem;
  }

  .hero-content-layer {
    padding: 125px 0.85rem 1.5rem;
  }

  .hero-main-title {
    font-size: 1.75rem;
  }

  .bismillah-calligraphy {
    font-size: 1.1rem;
  }

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

  .heritage-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .contact-card {
    padding: 1.4rem 0.9rem;
  }

  .contact-card-value {
    font-size: 0.95rem;
  }
}

/* Extra Small Devices (<= 360px) */
@media (max-width: 360px) {
  .top-strip-inner {
    font-size: 0.62rem;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .hero-main-title {
    font-size: 1.55rem;
  }
  .dev-modal-window {
    padding: 1.2rem 0.85rem 1rem;
  }
  .dev-modal-title {
    font-size: 1.15rem;
  }
}

