/* ==========================================================================
   ادارہ تعلیماتِ دینیہ، لاہور - Master Stylesheet
   Typography: Mehr Nastaliq Web (Urdu) & Uthmanic Naskh / Amiri (Arabic)
   Color Palette: Exact Logo Colors (Royal Blue #0b72ba, Gold #c49a38, Deep Navy #074776, Sky Blue #92b5e8)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

/* Mehr Nastaliq Web Font (with Aliases for All Variations) */
@font-face {
  font-family: 'Mehr Nastaliq Web';
  src: local('Mehr Nastaliq Web'),
       local('MehrNastaliqWeb'),
       local('Mehr Nastaliq'),
       local('mehr nastaliq'),
       url('../assets/fonts/Mehr_Nastaliq_Web-v.-2.0.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN/MehrNastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mehr Nastaliq';
  src: local('Mehr Nastaliq Web'),
       local('MehrNastaliqWeb'),
       local('Mehr Nastaliq'),
       local('mehr nastaliq'),
       url('../assets/fonts/Mehr_Nastaliq_Web-v.-2.0.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN/MehrNastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'mehr nastaliq';
  src: local('Mehr Nastaliq Web'),
       local('MehrNastaliqWeb'),
       local('Mehr Nastaliq'),
       local('mehr nastaliq'),
       url('../assets/fonts/Mehr_Nastaliq_Web-v.-2.0.ttf') format('truetype'),
       url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN/MehrNastaleeq.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Arabic Uthmanic Script HAFS */
@font-face {
  font-family: 'KFGQPC Uthmanic Script HAFS';
  src: local('KFGQPC Uthmanic Script HAFS'),
       url('../assets/fonts/KFGQPC-Uthmanic-Script-HAFS-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Fallback Jameel Noori Nastaleeq */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN/JameelNooriNastaleeq.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Exact Logo Palette */
  --color-primary: #0b72ba;          /* Dominant Logo Royal Blue */
  --color-primary-dark: #074776;     /* Deep Navy / Header Blue */
  --color-primary-light: #1e8ee6;    /* Bright Accent Blue */
  --color-sky: #92b5e8;              /* Logo Inner Arch Sky Blue */
  --color-sky-soft: #eaf4fb;         /* Soft Sky Background Tint */
  --color-gold: #c49a38;             /* Logo Rays & Base Radiant Gold */
  --color-gold-light: #dfb54e;       /* Light Warm Gold */
  --color-gold-dark: #9e7922;        /* Deep Ochre */
  
  --bg-page: #faf9f6;                /* Warm refined ivory background */
  --bg-card: #ffffff;
  --text-dark: #12283f;              /* Deep navy-charcoal for crisp text */
  --text-muted: #4e657e;
  --text-light: #ffffff;
  --border-light: #d4e4f5;
  --border-gold: rgba(196, 154, 56, 0.35);

  /* Vibrant & Rich Color Spectrum */
  --color-emerald: #059669;
  --color-emerald-light: #10b981;
  --color-teal: #0d9488;
  --color-teal-light: #14b8a6;
  --color-amber: #d97706;
  --color-amber-light: #f59e0b;
  --color-ruby: #e11d48;
  --color-ruby-light: #f43f5e;
  --color-indigo: #4f46e5;
  --color-indigo-light: #6366f1;
  --color-purple: #7c3aed;
  --color-purple-light: #8b5cf6;
  --color-cyan: #0891b2;
  --color-cyan-light: #06b6d4;
  
  /* Vibrant Gradients */
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --grad-royal: linear-gradient(135deg, #2563eb 0%, #0b72ba 50%, #074776 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --grad-ruby: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  --grad-teal: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
  --grad-sunset: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --grad-ocean: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --grad-aurora: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);

  --font-urdu: 'Mehr Nastaliq Web', 'Mehr Nastaliq', 'mehr nastaliq', 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  --font-arabic: 'KFGQPC Uthmanic Script HAFS', 'Amiri', serif;

  --shadow-sm: 0 2px 8px rgba(11, 114, 186, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 114, 186, 0.11);
  --shadow-lg: 0 14px 36px rgba(7, 71, 118, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: all 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  color: var(--text-dark);
  line-height: 1.85;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
  background-color: #faf9f6;
  background-image: 
    url("../assets/bg_pattern_lotus_blue_gold.svg?v=2.0"),
    radial-gradient(at 0% 0%, rgba(196, 154, 56, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(223, 181, 78, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(196, 154, 56, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(223, 181, 78, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(196, 154, 56, 0.03) 0px, transparent 60%);
  background-size: 110px 110px, auto, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll;
}

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

ul {
  list-style: none;
}

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

.font-arabic {
  font-family: var(--font-arabic) !important;
  direction: rtl;
}

/* Typography Constraints */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-urdu);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: 65px 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 26px;
  background: #ffffff !important;
  color: #0b72ba !important;
  border: 1.5px solid #c49a38 !important;
  border-radius: 30px;
  font-family: var(--font-urdu) !important;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: normal !important;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(196, 154, 56, 0.22), 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

.section-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196, 154, 56, 0.32);
}

.section-title {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 14px rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 2;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 300px;
  margin: 0 auto 14px;
  position: relative;
  z-index: 2;
}

.section-divider .line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section-divider .icon {
  color: var(--color-gold);
  font-size: 1rem;
}

.section-subtitle {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0c2b48 !important;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.85;
  max-width: 820px;
  margin: 10px auto 0;
  padding: 8px 26px;
  border-radius: 25px;
  border: 1.5px solid rgba(196, 154, 56, 0.45);
  box-shadow: 0 6px 20px rgba(11, 114, 186, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Top Announcement Bar & Animated Live Date Sliding Ticker
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--color-primary-dark), #095286);
  color: #ffffff;
  padding: 6px 0;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--color-gold);
  width: 100%;
  overflow: hidden;
}

.top-bar .container {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 38px;
  max-width: 100%;
}

.top-bar-right-group {
  display: contents;
}

.top-bar-bismillah {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #fae19c;
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.top-bar-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Date Ticker Badge & Animated Sliding Ticker */
.top-bar-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #fae19c;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(196, 154, 56, 0.4);
  font-weight: 600;
  height: 30px;
  line-height: 1;
  overflow: hidden;
  box-sizing: border-box;
}

.top-bar-date-badge i {
  color: #dfb54e;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.date-ticker-viewport {
  position: relative;
  overflow: hidden;
  height: 22px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.date-ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: none;
}

.date-ticker-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform 0.52s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.52s ease;
}

.date-ticker-item.exit-down {
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.52s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.52s ease;
}

.top-bar-date-badge .hijri-date {
  font-family: var(--font-urdu);
  font-size: 0.95rem;
}

.top-bar-date-badge .date-sep {
  opacity: 0.6;
  margin: 0 5px;
}

.top-bar-date-badge .greg-date-en {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fef08a;
  direction: ltr !important;
  unicode-bidi: isolate;
  letter-spacing: 0.2px;
}

/* Language Switcher Button (Urdu & English) */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(196, 154, 56, 0.22), rgba(11, 114, 186, 0.25));
  color: #fae19c !important;
  border: 1px solid rgba(196, 154, 56, 0.6);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  height: 30px;
  box-sizing: border-box;
}

.lang-switch-btn:hover {
  background: var(--color-gold);
  color: #07233c !important;
  border-color: var(--color-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 154, 56, 0.35);
}

.lang-btn-short {
  display: none;
}

.top-bar-lang-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-contact {
  display: none !important;
}

.top-phone-link,
.top-email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.top-phone-link {
  direction: ltr !important;
  unicode-bidi: isolate;
}

.top-phone-link:hover,
.top-email-link:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.top-contact-text {
  display: none !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(11, 114, 186, 0.08);
  border-bottom: 2px solid var(--border-gold);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 6px 22px rgba(7, 71, 118, 0.14);
  height: 66px;
}

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

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

.brand-logo-badge {
  width: 50px;
  height: 50px;
  min-width: 50px;
  max-width: 50px;
  max-height: 50px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: translateY(-2px);
}

.brand-logo-badge img.emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-calligraphy-wrap {
  display: flex;
  align-items: center;
  transform: translateY(1px);
}

.brand-calligraphy-wrap img.calligraphy-img {
  height: 52px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer-header,
.mobile-drawer-footer,
.nav-backdrop,
.nav-item-icon,
.nav-item-arrow {
  display: none;
}

.drawer-menu-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-menu-list a,
.nav-links a {
  padding: 7px 16px;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.drawer-menu-list a:hover,
.drawer-menu-list a.active,
.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-color: var(--color-gold);
  box-shadow: 0 3px 10px rgba(11, 114, 186, 0.25);
}

.drawer-menu-list a:hover .nav-item-label,
.drawer-menu-list a.active .nav-item-label,
.nav-links a:hover .nav-item-label,
.nav-links a.active .nav-item-label {
  color: #ffffff !important;
}

.nav-btn {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-gold);
  padding: 7px 18px !important;
  border-radius: 25px !important;
  box-shadow: 0 3px 8px rgba(11, 114, 186, 0.25);
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #053355) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Floating Quick Nav Bar (As per original site)
   ========================================================================== */
.quick-nav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--border-gold);
  box-shadow: 0 2px 8px rgba(11, 114, 186, 0.08);
  padding: 8px 0;
}

.quick-nav-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-nav-items a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--color-sky-soft);
  color: var(--color-primary-dark);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.quick-nav-items a i {
  color: var(--color-gold);
  font-size: 0.85rem;
}

.quick-nav-items a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.quick-nav-items a:hover i {
  color: #ffffff;
}

/* ==========================================================================
   Hero Slider / Carousel
   ========================================================================== */
.hero-slider {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-content {
  max-width: 820px;
  color: #ffffff;
  padding: 20px;
  animation: fadeInUp 0.8s ease forwards;
}

.slide-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(196, 154, 56, 0.25);
  border: 1px solid var(--color-gold);
  color: #fae19c;
  border-radius: 30px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 2.8rem;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 18px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.slide-desc {
  font-size: 1.25rem;
  color: #e5f0fc;
  line-height: 1.85;
  margin-bottom: 26px;
  max-width: 740px;
}

.slide-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(196, 154, 56, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.slider-prev { right: 20px; }
.slider-next { left: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-gold);
  width: 32px;
  border-radius: 10px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTION 1: ادارے کا تفصیلی تعارف (About Idarah)
   ========================================================================== */
.intro-box-premium {
  background: #ffffff;
  border: 1.5px solid rgba(196, 154, 56, 0.28);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 28px rgba(11, 114, 186, 0.08);
  position: relative;
  overflow: hidden;
}

.intro-box-premium::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold), var(--color-primary));
}

.lead-paragraph {
  font-size: 1.35rem;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
  margin-bottom: 35px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--color-sky-soft);
  border: 1px solid var(--border-light);
  border-right: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.objectives-container {
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
}

.objectives-title {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.objective-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.objective-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.obj-num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-sky-soft);
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.objective-card h4 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  padding-left: 36px;
}

.objective-card p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SECTION 2: بانیِ ادارہ کا تعارف (Founder Biography)
   ========================================================================== */
.bio-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-sky-soft) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  gap: 26px;
  align-items: center;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.bio-avatar-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  border: 3px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.bio-hero-text h3 {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.bio-lead-quote {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.9;
  margin-bottom: 14px;
}

.bio-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bio-credentials span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.92rem;
  color: var(--color-primary);
  font-weight: 600;
}

.bio-credentials span i {
  color: var(--color-gold);
}

/* Tabs */
.bio-tabs-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.bio-tab-nav {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-sky-soft);
  border-bottom: 1px solid var(--border-light);
}

.bio-tab-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  background: none;
  border: none;
  border-left: 1px solid var(--border-light);
  cursor: pointer;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.bio-tab-btn:hover {
  background: #ffffff;
  color: var(--color-primary);
}

.bio-tab-btn.active {
  background: #ffffff;
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-gold);
}

.bio-tab-content {
  display: none;
  padding: 34px;
  animation: fadeIn 0.4s ease;
}

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

.bio-tab-content h3 {
  font-size: 1.45rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.bio-tab-content p {
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 16px;
  text-align: justify;
}

.teachers-box {
  background: var(--color-sky-soft);
  border-right: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-top: 20px;
}

.teachers-box h4 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.teachers-box ul {
  padding-right: 18px;
}

.teachers-box li {
  list-style: disc;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.bio-action-banner {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--color-primary-dark), #095286);
  color: #ffffff;
  padding: 26px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.bio-action-banner p {
  font-size: 1.25rem;
  margin: 0;
}

/* ==========================================================================
   SECTION 3: فہمِ دین کورس (Fahm-e-Deen Course)
   ========================================================================== */
.course-intro-box {
  background: var(--bg-card);
  border-right: 5px solid var(--color-gold);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 34px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.course-lead {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
}

.course-level-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.level-header {
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.level-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-gold);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.level-header h3 {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

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

.level-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.level-cards-grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.curriculum-card {
  background: var(--color-sky-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.curriculum-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary);
}

.curr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11, 114, 186, 0.12);
}

.curr-card-header h4 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin: 0;
}

.curr-pages {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  background: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.curr-card-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.topics-list {
  padding: 0;
  margin: 0;
}

.topics-list li {
  position: relative;
  padding-right: 18px;
  margin-bottom: 6px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
}

.topics-list li::before {
  content: "◆";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 0.75rem;
}

.level-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff9e6;
  border-right: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: #5c4e1f;
  font-size: 1.05rem;
}

/* ==========================================================================
   SECTION 4: دیگر کورسز (Other Courses)
   ========================================================================== */
.other-courses-intro {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.other-courses-intro p {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 14px;
  text-align: justify;
}

.other-courses-intro p:last-child {
  margin-bottom: 0;
}

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

.course-card-custom {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.course-card-custom:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.course-card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--color-gold);
}

.course-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-sky-soft);
  color: var(--color-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.course-card-custom h3 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.course-card-custom p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  text-align: justify;
}

.course-card-custom.highlight {
  background: linear-gradient(135deg, #074776, #0b72ba);
  color: #ffffff;
  border: 1px solid var(--color-gold);
}

.course-card-custom.highlight h3 {
  color: #fae19c;
}

.course-card-custom.highlight p {
  color: #edf4fc;
}

.course-card-custom.highlight .course-icon-wrap {
  background: rgba(255, 255, 255, 0.15);
  color: #fae19c;
  border-color: var(--color-gold);
}

/* ==========================================================================
   SECTION 5: کتب و رسائل (Complete 19 Books Catalog & Live Search)
   ========================================================================== */
/* Books Search Bar */
.books-search-container {
  max-width: 680px;
  margin: 0 auto 28px auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.books-search-box {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.8px solid rgba(196, 154, 56, 0.45);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(11, 114, 186, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.books-search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 6px 26px rgba(11, 114, 186, 0.18), 0 0 0 3px rgba(196, 154, 56, 0.22);
  transform: translateY(-2px);
}

.books-search-icon {
  position: absolute;
  right: 20px;
  color: var(--color-gold);
  font-size: 1.25rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.books-search-box:focus-within .books-search-icon {
  color: var(--color-primary);
}

.books-search-input {
  width: 100%;
  padding: 13px 54px 13px 48px;
  font-family: var(--font-urdu);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  background: transparent;
  border: none;
  outline: none;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}

.books-search-input::placeholder {
  color: #7d93a8;
  font-size: 1.05rem;
  font-weight: normal;
  opacity: 0.9;
}

.books-search-clear-btn {
  position: absolute;
  left: 14px;
  width: 32px;
  height: 32px;
  background: #eef3f9;
  border: none;
  border-radius: 50%;
  color: #5d758f;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.books-search-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.1);
}

.books-search-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 12px;
}

.books-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: rgba(146, 181, 232, 0.18);
  border: 1px solid rgba(11, 114, 186, 0.2);
  border-radius: 20px;
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}

.books-count-badge strong {
  color: var(--color-primary);
  font-family: var(--font-primary, sans-serif);
  font-size: 1rem;
}

/* No Results State */
.books-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 25px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px dashed rgba(196, 154, 56, 0.45);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 4px 20px rgba(11, 114, 186, 0.06);
  margin: 20px auto;
  max-width: 600px;
  width: 100%;
}

.books-no-results-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px auto;
  background: linear-gradient(135deg, rgba(146, 181, 232, 0.25), rgba(196, 154, 56, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-primary);
}

.books-no-results h3 {
  font-family: var(--font-urdu);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.books-no-results p {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.books-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 9px 22px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  border: 1.5px solid rgba(196, 154, 56, 0.4);
  border-radius: 25px;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  border-color: var(--color-gold);
  box-shadow: 0 4px 15px rgba(11, 114, 186, 0.35);
}

@media (max-width: 600px) {
  .books-search-container {
    margin-bottom: 20px;
  }
  .books-search-input {
    font-size: 1.05rem;
    padding: 12px 46px 12px 42px;
  }
  .books-search-input::placeholder {
    font-size: 0.92rem;
  }
  .books-search-icon {
    right: 15px;
    font-size: 1.1rem;
  }
}

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

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.book-cover-img {
  width: 100%;
  height: 320px;
  background: #eef3f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}

.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover-img img {
  transform: scale(1.04);
}

.book-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  background: var(--color-sky-soft);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.book-title {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.book-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.book-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 10px;
}

.btn-book-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px 6px;
  border-radius: 9px;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.btn-book-action i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.btn-book-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-book-action:hover i {
  transform: scale(1.15);
}

/* 1. مطالعہ: نفیس ہلکا اسکائی بلیو ٹنٹ (Soft Sky Blue) */
.btn-book-action.btn-read {
  background: #f0f7ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.btn-book-action.btn-read:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
}

/* 2. ڈاؤن لوڈ: نفیس ہلکا امبر / وارم گولڈ ٹنٹ (Soft Warm Gold) */
.btn-book-action.btn-download {
  background: #fefce8;
  color: #b45309;
  border-color: #fde68a;
}

.btn-book-action.btn-download:hover {
  background: #fef9c3;
  color: #92400e;
  border-color: #fcd34d;
}

/* 3. خریدیں: نفیس ہلکا منٹ / ایمرلڈ ٹنٹ (Soft Mint / Emerald) */
.btn-book-action.btn-buy {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn-book-action.btn-buy:hover {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* 4. شیئر کریں: نفیس ہلکا لیونڈر / پرپل ٹنٹ (Soft Lavender / Purple) */
.btn-book-action.btn-share {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.btn-book-action.btn-share:hover {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}


/* ==========================================================================
   SECTION 7: رابطہ اور سوشل لنکس (Contact & Social Links)
   ========================================================================= */
#contact {
  scroll-margin-top: 85px;
}

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

.contact-info-card,
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid rgba(196, 154, 56, 0.35);
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3,
.contact-form-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.info-list {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-sky-soft);
  color: var(--color-primary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.info-item p {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 0;
}

.info-item p a {
  color: var(--color-primary-dark, #074776);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.info-item p a:hover {
  color: var(--color-primary, #0b72ba);
  text-decoration: underline;
}

/* فون و واٹس ایپ نمبر کا نمایاں اور واضح لے آؤٹ */
.contact-phone-link,
.info-item .top-phone-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--color-primary-dark, #074776) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px;
  direction: ltr !important;
  unicode-bidi: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-decoration: none !important;
  margin-top: 2px;
  transition: all 0.22s ease !important;
}

.contact-phone-link i,
.info-item .top-phone-link i {
  color: #25d366 !important;
  font-size: 1.35rem !important;
  transition: transform 0.22s ease;
}

.contact-phone-link:hover,
.info-item .top-phone-link:hover {
  color: #128c7e !important;
  transform: translateX(-3px) !important;
}

.contact-phone-link:hover i,
.info-item .top-phone-link:hover i {
  transform: scale(1.18);
}

.social-channels-box h4 {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.social-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 25px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-badge.whatsapp { background: #25d366; }
.social-badge.facebook { background: #1877f2; }
.social-badge.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-urdu);
  font-size: 1rem;
  background: var(--bg-page);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 114, 186, 0.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 1.15rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-primary-dark);
  color: #e2effd;
  padding: 60px 0 20px;
  border-top: 3px solid var(--color-gold);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-logo-badge {
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  max-height: 58px;
  border-radius: 50%;
  border: 2.5px solid var(--color-gold);
  background: #ffffff;
  padding: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.footer-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-calligraphy-wrap {
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-calligraphy-img {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.footer-social-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--color-gold);
  color: #fae19c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.footer-social-icon:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(223, 181, 78, 0.4);
}

.footer-phone-link {
  direction: ltr !important;
  unicode-bidi: isolate;
  display: inline-block;
  color: inherit;
  font-family: inherit;
}

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

.footer-col h4 {
  font-size: 1.25rem;
  color: #fae19c;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--color-gold);
}

.footer-mission {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cadff4;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #cadff4;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fae19c;
  transform: translateX(-4px);
}

.footer-col p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: #9cb9d8;
}

/* ==========================================================================
   WHATSAPP CHOICE MODAL (Regular vs Business)
   ========================================================================== */
.wa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 35, 60, 0.78);
  backdrop-filter: blur(5px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}

.wa-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.wa-modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  border: 2px solid var(--color-gold);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: waModalPop 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes waModalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wa-modal-header {
  background: linear-gradient(135deg, #07233c 0%, #0b72ba 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-gold);
}

.wa-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-modal-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
}

.wa-modal-title {
  margin: 0;
  font-size: 1.2rem;
  color: #fae19c;
  font-family: var(--font-urdu);
  line-height: 1.3;
}

.wa-modal-subtitle {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: #cadff4;
}

.wa-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.wa-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.wa-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-app-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  background: #f8fafc;
  transition: all 0.25s ease;
  cursor: pointer;
}

.wa-app-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.wa-app-option.option-regular:hover {
  border-color: #25d366;
  background: #f0fdf4;
}

.wa-app-option.option-business:hover {
  border-color: #0d9488;
  background: #f0fdfa;
}

.wa-app-option.option-clone:hover {
  border-color: #f59e0b;
  background: #fffbeb;
}

.wa-app-icon-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.55rem;
  position: relative;
}

.wa-app-icon-wrap.regular-bg {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.wa-app-icon-wrap.business-bg {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.wa-app-icon-wrap.clone-bg {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.business-tag {
  position: absolute;
  bottom: -4px;
  left: -4px;
  background: #ffffff;
  color: #0f766e;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid #0d9488;
}

.wa-app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wa-app-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.wa-app-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 2px;
}

.wa-app-arrow {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.wa-app-option:hover .wa-app-arrow {
  transform: translateX(-4px);
  color: var(--color-primary);
}

.wa-modal-footer {
  padding: 10px 20px 16px;
  text-align: center;
  border-top: 1px solid #f1f5f9;
}

.wa-direct-web-link {
  font-size: 0.84rem;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.wa-direct-web-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   FULL BIOGRAPHY MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 41, 79, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gold);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--color-primary-dark), #095286);
  color: #ffffff;
  border-bottom: 2px solid var(--color-gold);
}

.modal-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: #fae19c;
  margin-bottom: 2px;
}

.modal-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0;
}

.modal-author {
  display: block;
  font-size: 0.88rem;
  color: #cadff4;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--color-gold-light);
  transform: rotate(9deg);
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-dark);
  text-align: justify;
}

.modal-body h3 {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.bio-note {
  background: #fff9e6;
  border-right: 4px solid var(--color-gold);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: #5c4e1f;
  margin: 14px 0;
}

.modal-footer {
  padding: 16px 28px;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

.back-to-top.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .audio-player-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .slide-title {
    font-size: 2.3rem;
  }
}

/* Backdrop Overlay (Crystal Clear, Zero Blur, Below Menu) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 35, 60, 0.42);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 9990 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.open {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .header {
    z-index: 10000 !important;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(11, 114, 186, 0.08);
    border: 1px solid rgba(11, 114, 186, 0.2);
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .mobile-toggle:hover,
  .mobile-toggle:active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-gold);
  }

  /* Left-Anchored Mobile Navigation Drawer (On Top, 100% Crisp & Clear) */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 84% !important;
    max-width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 10px 0 35px rgba(7, 35, 60, 0.25) !important;
    border-right: 2.5px solid var(--color-gold) !important;
    border-left: none !important;
    z-index: 10005 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(-105%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.32s ease,
                visibility 0.38s ease !important;
  }

  .nav-links.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Drawer Top Brand Header */
  .mobile-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, #07233c 0%, #0b72ba 100%);
    border-bottom: 2px solid var(--color-gold);
    color: #ffffff;
    flex-shrink: 0;
  }

  .drawer-brand-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .drawer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    background: #ffffff;
    padding: 2.5px;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  }

  .drawer-brand-text {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  .drawer-title {
    font-family: var(--font-urdu);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fae19c;
    line-height: 1.3;
    margin: 0;
  }

  .drawer-subtitle {
    font-size: 0.76rem;
    color: #e2effd;
    opacity: 0.85;
  }

  .drawer-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(250, 225, 156, 0.4);
    color: #fae19c;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .drawer-close-btn:hover,
  .drawer-close-btn:active {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    transform: rotate(90deg);
  }

  /* Drawer Menu List */
  .drawer-menu-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 14px 14px !important;
    gap: 8px !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
  }

  .drawer-menu-list a,
  .nav-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2ecf7 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .nav-item-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
  }

  /* Distinct Jewel-Colored Badges */
  .icon-home { background: rgba(11, 114, 186, 0.12) !important; color: #0b72ba !important; }
  .icon-about { background: rgba(5, 150, 105, 0.12) !important; color: #059669 !important; }
  .icon-founder { background: rgba(196, 154, 56, 0.15) !important; color: #b45309 !important; }
  .icon-fahm { background: rgba(7, 71, 118, 0.12) !important; color: #074776 !important; }
  .icon-courses { background: rgba(79, 70, 229, 0.12) !important; color: #4f46e5 !important; }
  .icon-books { background: rgba(225, 29, 72, 0.12) !important; color: #e11d48 !important; }
  .icon-contact { background: rgba(22, 163, 74, 0.12) !important; color: #16a34a !important; }

  .nav-item-label {
    font-family: var(--font-urdu) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f2d4a !important;
    flex-grow: 1 !important;
    margin-right: 12px !important;
    text-align: right !important;
    line-height: 1.4 !important;
  }

  .nav-item-arrow {
    display: inline-block !important;
    color: #94a3b8 !important;
    font-size: 0.82rem !important;
    transition: transform 0.25s ease, color 0.25s ease !important;
  }

  /* Hover & Touch Feedback */
  .drawer-menu-list a:hover,
  .drawer-menu-list a:active,
  .nav-links a:hover,
  .nav-links a:active {
    background: #edf5fd !important;
    border-color: #b9d7f6 !important;
    transform: translateX(-3px) !important;
  }

  .drawer-menu-list a:hover .nav-item-arrow,
  .drawer-menu-list a:active .nav-item-arrow,
  .nav-links a:hover .nav-item-arrow,
  .nav-links a:active .nav-item-arrow {
    color: #0b72ba !important;
    transform: translateX(-3px) !important;
  }

  /* Active Menu Item */
  .drawer-menu-list a.active,
  .nav-links a.active {
    background: linear-gradient(135deg, #074776 0%, #0b72ba 100%) !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 4px 14px rgba(11, 114, 186, 0.28) !important;
    transform: translateX(-3px) !important;
  }

  .drawer-menu-list a.active .nav-item-label,
  .nav-links a.active .nav-item-label {
    color: #ffffff !important;
  }

  .drawer-menu-list a.active .nav-item-icon,
  .nav-links a.active .nav-item-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fae19c !important;
  }

  .drawer-menu-list a.active .nav-item-arrow,
  .nav-links a.active .nav-item-arrow {
    color: #fae19c !important;
    transform: translateX(-4px) !important;
  }

  /* Drawer Footer */
  .mobile-drawer-footer {
    display: flex !important;
    padding: 14px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2ecf7 !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
  }

  .drawer-wa-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 14px !important;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25) !important;
    transition: all 0.25s ease !important;
  }

  .drawer-wa-btn:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
  }

  .drawer-social-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
  }

  .drawer-social-icons a {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #d4e4f5 !important;
    color: var(--color-primary-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .drawer-social-icons a:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-gold) !important;
  }
  .hero-slider {
    height: 480px;
  }
  .slide-title {
    font-size: 1.85rem;
  }
  .slide-desc {
    font-size: 1.05rem;
  }
  .bio-hero-card {
    flex-direction: column;
    text-align: center;
  }
  .bio-credentials {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BENTO PORTAL GRID & COURSE ADS SLIDER (Multi-Color Vibrant Redesign)
   ========================================================================== */
.bento-portal-section {
  padding: 50px 0 35px;
  position: relative;
}

.portal-grand-header {
  text-align: center;
  margin-bottom: 35px;
}

.portal-main-heading {
  font-size: 2.3rem;
  color: var(--color-primary-dark);
  margin: 10px 0 14px;
  font-weight: 700;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.bento-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  border: 1.5px solid rgba(196, 154, 56, 0.28);
  box-shadow: 0 8px 28px rgba(11, 114, 186, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 114, 186, 0.14);
}

/* Row 1 - Col 1: Main Hero Card */
.bento-card-main {
  grid-column: span 6;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
  border-top: 4px solid var(--color-primary);
}

.main-card-banner {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(7, 71, 118, 0.12);
  border: 1px solid var(--border-light);
}

.main-card-banner img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  display: block;
}

.bento-card-main h2 {
  font-size: 1.55rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.bento-card-main p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.btn-bento-royal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(11, 114, 186, 0.25);
  transition: var(--transition);
}

.btn-bento-royal:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #053355);
  transform: translateY(-2px);
}

.btn-bento-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(196, 154, 56, 0.28);
  transition: var(--transition);
}

.btn-bento-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
}

/* Row 1 - Col 2: Course Ads Slider */
.bento-card-ad-slider {
  grid-column: span 6;
  background: linear-gradient(145deg, #093c66 0%, #062641 100%);
  color: #ffffff;
  border-top: 4px solid var(--color-gold);
  min-height: 420px;
}

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

.ad-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 154, 56, 0.25);
  color: #fae19c;
  border: 1px solid var(--color-gold);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ad-slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ad-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.ad-dot.active {
  width: 26px;
  border-radius: 12px;
  background: var(--color-gold);
}

.ad-slides-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ad-slide {
  display: none;
  opacity: 0;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  transition: opacity 0.35s ease;
}

.ad-slide.active {
  display: flex;
  opacity: 1;
  animation: fadeInSlide 0.4s ease;
}

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

.ad-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ad-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 700;
}

.ad-status-chip {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: #fae19c;
}

.theme-aqaid .ad-course-chip {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.theme-usool .ad-course-chip {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border: 1px solid #f59e0b;
}

.theme-tafseer .ad-course-chip {
  background: rgba(14, 165, 233, 0.25);
  color: #7dd3fc;
  border: 1px solid #0ea5e9;
}

.theme-hadees .ad-course-chip {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  border: 1px solid #a855f7;
}

.ad-slide-title {
  font-size: 1.85rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 700;
}

.ad-slide-sub {
  font-size: 1.05rem;
  color: #fae19c;
  margin-bottom: 14px;
  line-height: 1.6;
}

.ad-features-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: #e2effd;
}

.ad-features-list li i {
  color: #34d399;
  font-size: 0.9rem;
}

.ad-slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-ad-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(196, 154, 56, 0.4);
  transition: var(--transition);
}

.btn-ad-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
}

.btn-ad-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-ad-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

/* Row 2: Fahm-e-Deen & Other Courses */
.bento-card-fahm {
  grid-column: span 6;
  background: #ffffff;
  border-top: 4px solid var(--color-emerald);
}

.bento-card-courses {
  grid-column: span 6;
  background: #ffffff;
  border-top: 4px solid var(--color-purple);
}

.bento-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bento-card-icon.icon-emerald {
  background: #d1fae5;
  color: #059669;
}

.bento-card-icon.icon-indigo {
  background: #ede9fe;
  color: #7c3aed;
}

.bento-card-icon.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.bento-chip-emerald {
  background: #ecfdf5;
  color: #047857;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}

.bento-chip-indigo {
  background: #f5f3ff;
  color: #6d28d9;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #ddd6fe;
}

.bento-chip-amber {
  background: #fffbeb;
  color: #b45309;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #fde68a;
}

.bento-card h3 {
  font-size: 1.45rem;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.bento-card p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.bento-features-list {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.bento-features-list li i {
  color: var(--color-emerald);
  font-size: 0.88rem;
}

.btn-bento-emerald {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-emerald), #047857);
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: var(--transition);
}

.btn-bento-emerald:hover {
  background: linear-gradient(135deg, var(--color-emerald-light), var(--color-emerald));
  transform: translateY(-2px);
}

.btn-bento-purple {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-purple), #5b21b6);
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: var(--transition);
}

.btn-bento-purple:hover {
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple));
  transform: translateY(-2px);
}

/* Row 3: Founder Spotlight & Books */
.bento-card-founder {
  grid-column: span 6;
  background: #ffffff;
  border-top: 4px solid var(--color-gold);
}

.founder-bento-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.founder-bento-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fef3c7;
  color: var(--color-gold-dark);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.founder-bento-title {
  display: flex;
  flex-direction: column;
}

.founder-bento-badge {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-weight: 700;
}

.founder-bento-title h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--color-primary-dark);
}

.founder-bento-quote {
  background: var(--color-sky-soft);
  border-right: 3px solid var(--color-gold);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.founder-bento-quote p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-style: normal; font-weight: 500;
  line-height: 1.75;
}

.founder-credentials-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cred-pill i {
  color: var(--color-gold-dark);
  font-size: 0.8rem;
}

.bento-card-books {
  grid-column: span 6;
  background: #ffffff;
  border-top: 4px solid var(--color-ruby);
}

.bento-mini-books-strip {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  justify-content: space-around;
}

.bento-mini-book {
  width: 72px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
  transition: transform 0.25s ease;
}

.bento-mini-book:hover {
  transform: translateY(-4px) scale(1.05);
}

.bento-mini-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-bento-ruby {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-ruby), #be123c);
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
  transition: var(--transition);
}

.btn-bento-ruby:hover {
  background: linear-gradient(135deg, var(--color-ruby-light), var(--color-ruby));
  transform: translateY(-2px);
}

/* Row 4: Digital Hub */
.bento-card-hub {
  grid-column: span 12;
  background: linear-gradient(135deg, #074776 0%, #0b72ba 50%, #095286 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 28px 36px;
}

.bento-hub-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bento-hub-text {
  max-width: 500px;
}

.bento-hub-text h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.bento-hub-text p {
  color: #e2effd;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}

.bento-hub-channels {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hub-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.hub-channel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   6-BOOK CONTINUOUS CHAIN CAROUSEL
   ========================================================================== */
.colorful-books-section {
  padding: 55px 0 40px;
  position: relative;
}

.books-chain-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
  width: 100%;
  overflow: hidden;
}

.books-chain-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  padding: 10px 4px;
}

.books-chain-track {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* Desktop: 6 books visible simultaneously */
.shelf-book-card {
  flex: 0 0 calc((100% - (18px * 5)) / 6);
  min-width: 155px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 20px rgba(11, 114, 186, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.shelf-book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(11, 114, 186, 0.16);
  border-color: var(--color-gold);
}

.shelf-book-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 2;
}

.badge-aqaid {
  background: #d1fae5;
  color: #047857;
}

.badge-tafseer {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-hadees {
  background: #f3e8ff;
  color: #6b21a8;
}

.badge-fiqh {
  background: #fef3c7;
  color: #92400e;
}

.shelf-book-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.shelf-book-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shelf-book-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  width: 100%;
  margin-top: auto;
}

.shelf-btn {
  padding: 6px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* 1. Ù…Ø·Ø§Ù„Ø¹Û: ÛÙ„Ú©Ø§ ÙˆÙ‚Ø§Ø± Ø¯Ø§Ø± Ù†ÛŒÙˆÛŒ / Ø³Ù„ÛŒÙ¹ Ù¹Ù†Ù¹ */
.shelf-btn-read {
  background: #f1f5f9;
  color: #1e3a8a !important;
  border: 1px solid #cbd5e1;
}

.shelf-btn-read:hover {
  background: #1e3a8a;
  color: #ffffff !important;
  border-color: #1e3a8a;
}

/* 2. ÚˆØ§Ø¤Ù† Ù„ÙˆÚˆ: ÛÙ„Ú©Ø§ Ú¯Ø±Ù… Ø§Ù…Ø¨Ø± / Ú¯ÙˆÙ„Úˆ Ù¹Ù†Ù¹ */
.shelf-btn-download {
  background: #fef7ea;
  color: #92400e !important;
  border: 1px solid #fde68a;
}

.shelf-btn-download:hover {
  background: #92400e;
  color: #ffffff !important;
  border-color: #92400e;
}

/* 3. Ø®Ø±ÛŒØ¯ÛŒÚº: ÛÙ„Ú©Ø§ Ø§ÙˆØ± Ø®ÙˆØ´Ù†Ù…Ø§ Ø³ÛŒØ¬ / Ù¾Ø³ØªÛ Ú¯Ø±ÛŒÙ† Ù¹Ù†Ù¹ */
.shelf-btn-buy {
  grid-column: span 2;
  background: #f0fdf4;
  color: #166534 !important;
  border: 1px solid #bbf7d0;
}

.shelf-btn-buy:hover {
  background: #166534;
  color: #ffffff !important;
  border-color: #166534;
}

/* 4. شیئر کریں: ہلکا لیونڈر ٹنٹ */
.shelf-btn-share {
  background: #faf5ff;
  color: #7e22ce !important;
  border: 1px solid #e9d5ff;
}

.shelf-btn-share:hover {
  background: #7e22ce;
  color: #ffffff !important;
  border-color: #7e22ce;
}

/* Chain Carousel Arrows */
.chain-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 14px rgba(11, 114, 186, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.chain-nav-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.chain-prev {
  right: 6px;
}

.chain-next {
  left: 6px;
}

/* Responsive Breakpoints for Bento Grid & Books Carousel */
@media (max-width: 992px) {
  .bento-card-main,
  .bento-card-ad-slider,
  .bento-card-fahm,
  .bento-card-courses,
  .bento-card-founder,
  .bento-card-books,
  .bento-card-hub {
    grid-column: span 12;
  }

  .shelf-book-card {
    flex: 0 0 calc((100% - (18px * 2)) / 3);
  }

  .chain-prev { right: 4px; }
  .chain-next { left: 4px; }
}

@media (max-width: 640px) {
  .shelf-book-card {
    flex: 0 0 calc((100% - 18px) / 2);
    min-width: 140px;
  }

  .portal-main-heading {
    font-size: 1.7rem;
  }

  .bento-card {
    padding: 20px 16px;
  }

  .ad-slide-title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Gentle Float Up)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Perfection
   ========================================================================== */
@media (max-width: 820px) {
  /* Top Bar Mobile & Tablet: Bismillah on Top; Date Ticker & Language Switcher Below */
  .top-bar {
    padding: 7px 0 8px !important;
  }
  .top-bar .container,
  .top-bar-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 12px !important;
    min-height: auto !important;
    position: static !important;
    width: 100% !important;
  }
  .top-bar-right-group {
    display: contents !important;
  }
  /* 1. BISMILLAH ON TOP! */
  .top-bar-bismillah {
    order: 1 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 1.18rem !important;
    text-align: center !important;
    margin: 0 auto !important;
    white-space: nowrap !important;
    color: #fae19c !important;
    line-height: 1.35 !important;
    display: block !important;
  }
  .top-bar-contact {
    display: none !important;
  }
  /* 2. DATE TICKER & LANGUAGE SWITCHER BELOW BISMILLAH */
  .top-bar-actions-row {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    position: static !important;
  }
  .top-bar-date-badge {
    position: static !important;
    text-align: center !important;
    margin: 0 !important;
    font-size: 0.82rem !important;
    padding: 2px 10px !important;
    height: 28px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    gap: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(196, 154, 56, 0.35) !important;
    flex: 0 1 auto !important;
  }
  .date-ticker-viewport {
    height: 20px !important;
    min-width: 110px !important;
  }
  .lang-switch-btn {
    height: 28px !important;
    padding: 2px 12px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* Header & Logo Mobile */
  .header {
    height: 64px;
  }
  .header.scrolled {
    height: 58px;
  }
  .brand {
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 46px);
  }
  .brand-logo-badge {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
    max-width: 39px !important;
    max-height: 39px !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: translateY(-2px) !important;
  }
  .brand-calligraphy-wrap {
    flex-shrink: 1;
    min-width: 0;
    transform: translateY(1px) !important;
  }
  .brand-calligraphy-wrap img.calligraphy-img {
    height: 40px !important;
    max-width: 210px !important;
    width: auto !important;
    object-fit: contain !important;
  }
  .mobile-toggle {
    font-size: 1.3rem;
    padding: 6px;
    flex-shrink: 0;
  }

  /* Quick Nav Bar Mobile */
  .quick-nav-bar {
    padding: 6px 0;
  }
  .quick-nav-items {
    gap: 6px;
  }
  .quick-nav-items a {
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 16px;
  }

  /* Portal & Bento Grid Mobile */
  .bento-portal-section {
    padding: 30px 0 20px;
  }
  .portal-grand-header {
    margin-bottom: 20px;
  }
  .portal-main-heading {
    font-size: 1.45rem;
    line-height: 1.45;
    margin: 8px 0 10px;
  }
  .bento-grid {
    gap: 16px;
    margin-bottom: 20px;
  }
  .bento-card {
    padding: 18px 14px;
    border-radius: 18px;
  }
  .main-card-banner {
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .main-card-banner img {
    max-height: 190px;
  }
  .bento-card-main h2 {
    font-size: 1.25rem;
  }
  .bento-card-main p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* Course Ads Slider Mobile */
  .bento-card-ad-slider {
    min-height: auto;
    padding: 18px 14px;
  }
  .ad-slider-header {
    margin-bottom: 12px;
  }
  .ad-slide-title {
    font-size: 1.4rem;
  }
  .ad-slide-sub {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }
  .ad-features-list {
    gap: 6px;
    margin-bottom: 14px;
  }
  .ad-features-list li {
    font-size: 0.86rem;
    gap: 6px;
  }
  .ad-slide-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-ad-primary,
  .btn-ad-wa {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  /* Founder & Books Bento Mobile */
  .founder-bento-header {
    gap: 10px;
  }
  .founder-bento-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .founder-bento-title h3 {
    font-size: 1.2rem;
  }
  .founder-bento-quote {
    padding: 10px 12px;
  }
  .bento-mini-books-strip {
    gap: 8px;
    justify-content: center;
  }
  .bento-mini-book {
    width: 60px;
    height: 84px;
  }

  /* Hub Section Mobile */
  .bento-card-hub {
    padding: 20px 16px;
    border-radius: 18px;
  }
  .bento-hub-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .bento-hub-text h3 {
    font-size: 1.3rem;
  }
  .bento-hub-text p {
    font-size: 0.95rem;
  }
  .bento-hub-channels {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hub-channel-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  /* Books Chain Carousel Mobile */
  .colorful-books-section {
    padding: 35px 0 25px;
  }
  .books-chain-carousel-wrapper {
    padding: 4px 0;
  }
  .shelf-book-card {
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: 135px;
    padding: 10px 8px;
  }
  .shelf-book-cover {
    height: 165px;
  }
  .shelf-book-card h4 {
    font-size: 0.92rem;
    height: 34px;
  }
  .shelf-btn {
    padding: 5px 2px;
    font-size: 0.78rem;
  }
  .chain-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .chain-prev { right: 2px; }
  .chain-next { left: 2px; }

  /* Contact Section Mobile */
  .contact-section {
    padding: 35px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }
  .channel-card {
    min-width: 0 !important;
    width: 100%;
    padding: 16px 18px !important;
  }
  .section-title {
    font-size: 1.7rem !important;
    line-height: 1.4 !important;
  }
  .section-subtitle {
    font-size: 1.05rem !important;
    padding: 8px 18px !important;
    max-width: 95% !important;
    line-height: 1.75 !important;
    margin: 8px auto 0 !important;
  }
}

@media (max-width: 480px) {
  .section-tag {
    font-size: 1.02rem !important;
    padding: 5px 18px !important;
  }
  .section-title {
    font-size: 1.45rem !important;
  }
  .section-subtitle {
    font-size: 0.95rem !important;
    padding: 6px 14px !important;
  }
  .lang-btn-text {
    display: none !important;
  }
  .lang-btn-short {
    display: inline !important;
  }
  .lang-switch-btn {
    padding: 2px 9px !important;
    font-size: 0.8rem !important;
    gap: 5px !important;
  }
  .top-bar-date-badge {
    padding: 2px 8px !important;
    gap: 5px !important;
    font-size: 0.78rem !important;
  }
  .date-ticker-viewport {
    min-width: 100px !important;
  }
  .shelf-book-card {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: 130px;
  }
  .portal-main-heading {
    font-size: 1.3rem;
  }
}

.home-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}

.channel-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1.5px solid rgba(196, 154, 56, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  flex: 1;
}

.channel-info strong {
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.channel-info a {
  color: #0b72ba;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  line-height: 1.4;
  direction: ltr;
  text-align: right;
  display: inline-block;
}

.channel-info span {
  color: #4e657e;
  font-size: 0.95rem;
  line-height: 1.4;
}
/* ==========================================================================
   New Asymmetrical Bento Grid & Dynamic Layout Styles (v9.0)
   ========================================================================== */

/* Hero Duo: 7 cols + 5 cols */
.bento-card-main {
  grid-column: span 7;
}

.bento-card-ad-slider {
  grid-column: span 5;
  background: linear-gradient(145deg, #074776 0%, #03233c 100%);
  color: #ffffff;
  border-top: 4px solid var(--color-gold);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-slides-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
}

.ad-slide {
  display: none;
  opacity: 0;
  width: 100%;
  transition: opacity 0.4s ease;
}

.ad-slide.active {
  display: block;
  opacity: 1;
}

.ad-poster-frame {
  width: 100%;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081d30;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  cursor: zoom-in;
}

.ad-poster-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.ad-poster-frame:hover .ad-poster-img {
  transform: scale(1.025);
}

/* Hover Zoom Pill on Course Ad */
.ad-poster-frame::after {
  content: 'بڑا کر کے دیکھیں 🔍';
  font-family: var(--font-urdu), sans-serif;
  font-weight: 600;
  position: absolute;
  bottom: 14px;
  right: 50%;
  transform: translateX(50%) translateY(8px);
  background: rgba(7, 71, 118, 0.92);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  border: 1px solid rgba(196, 154, 56, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  white-space: nowrap;
  direction: rtl;
  z-index: 5;
}

.ad-poster-frame:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* ==========================================================================
   COURSE AD POSTER ENLARGED LIGHTBOX (اشتہار بڑا کر کے دیکھنے کی ونڈو)
   صرف اشتہار سامنے بڑا نظر آئے گا، کوئی بٹن یا بارڈر نہیں ہوگا
   دائیں یا بائیں کلک کرنے سے اشتہار واپس چھوٹا ہو جائے گا
   ========================================================================== */
.ad-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  cursor: zoom-out;
  user-select: none;
  -webkit-user-select: none;
  direction: ltr;
}

.ad-preview-overlay.open {
  opacity: 1;
  visibility: visible;
}

.ad-preview-pure-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 96vw;
  max-height: 96vh;
}

.ad-preview-pure-img {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  outline: none;
  border-radius: 8px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  transform: scale(0.85);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: zoom-out;
  display: block;
}

.ad-preview-overlay.open .ad-preview-pure-img {
  transform: scale(1);
}

@media (max-width: 768px) {
  .ad-preview-overlay {
    padding: 10px;
  }
  .ad-preview-pure-img {
    max-width: 96vw;
    max-height: 92vh;
    border-radius: 6px;
  }
}


.ad-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.ad-nav-btn:hover {
  background: var(--color-gold);
  color: #074776;
}

.ad-nav-prev {
  right: 10px;
}

.ad-nav-next {
  left: 10px;
}

/* Two Action Buttons required by user */
.ad-action-buttons-bar {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-ad-apply {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-ad-apply:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}

.btn-ad-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 25px;
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-ad-whatsapp:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Triad Cards (Row 2): 4 cols + 4 cols + 4 cols */
.bento-card-founder {
  grid-column: span 4;
}

.bento-card-fahm {
  grid-column: span 4;
}

.bento-card-courses {
  grid-column: span 4;
}

/* Asymmetric Feature Duo (Row 3): 8 cols + 4 cols */
.bento-card-books-wide {
  grid-column: span 8;
  background: #ffffff;
  border-top: 4px solid var(--color-ruby);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 28px rgba(11, 114, 186, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card-books-wide:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 114, 186, 0.13);
}

.bento-card-helpline {
  grid-column: span 4;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border-top: 4px solid #10b981;
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card-helpline:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.13);
}

.bento-card-icon.icon-teal {
  background: #d1fae5;
  color: #059669;
}

.bento-chip-teal {
  background: #ecfdf5;
  color: #047857;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}

.bento-helpline-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.helpline-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.helpline-chip.wa {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 700;
}

.helpline-chip.email {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.btn-bento-teal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: var(--transition);
}

.btn-bento-teal:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  transform: translateY(-2px);
}

/* ==========================================================================
   Online Admission Modal Dialog
   ========================================================================== */
.admission-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 25, 45, 0.88);
  /* Removed GPU heavy blur filter for instantaneous 60fps/120fps scrolling */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.admission-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admission-modal.open .admission-modal-dialog {
  transform: scale(1) translateY(0);
}

.admission-modal-close {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.admission-modal-close:hover {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
  transform: rotate(90deg);
}

.admission-modal-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}

.adm-header-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.admission-modal-header h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  color: #ffffff;
}

.adm-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #fef08a;
  opacity: 0.95;
}

.admission-modal-body {
  padding: 24px 22px;
  max-height: calc(85vh - 120px);
  overflow-y: auto;
}

.admission-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.adm-form-group label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.required-star {
  color: #dc2626;
  font-weight: 700;
  margin-right: 2px;
}

.optional-tag {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
  margin-right: 4px;
}

.adm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.adm-input-icon {
  position: absolute;
  right: 14px;
  color: var(--color-primary);
  font-size: 0.95rem;
  pointer-events: none;
}

.adm-input-wrap input,
.adm-input-wrap select {
  width: 100%;
  padding: 9px 38px 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s ease;
}

.adm-input-wrap input:focus,
.adm-input-wrap select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 114, 186, 0.15);
}

.adm-form-actions {
  margin-top: 6px;
}

.btn-adm-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-family: var(--font-urdu);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(11, 114, 186, 0.3);
  transition: all 0.25s ease;
}

.btn-adm-submit:hover {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 154, 56, 0.4);
}

/* Success Box inside modal */
.admission-success-box {
  padding: 30px 22px;
  text-align: center;
}

.adm-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 2.2rem;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.admission-success-box h4 {
  font-size: 1.35rem;
  color: #047857;
  margin-bottom: 10px;
}

.adm-success-desc {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.adm-success-note {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 20px;
}

.adm-success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-adm-wa-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.btn-adm-wa-confirm:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.btn-adm-done {
  padding: 9px;
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-adm-done:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

/* Responsive Rules for Asymmetric Bento Grid */
@media (max-width: 992px) {
  .bento-card-main,
  .bento-card-ad-slider,
  .bento-card-founder,
  .bento-card-fahm,
  .bento-card-courses,
  .bento-card-books-wide,
  .bento-card-helpline,
  .bento-card-hub {
    grid-column: span 12 !important;
  }
}
/* Standalone Helpline Box below Books Slider */
.bento-card-helpline-standalone {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-radius: 20px;
  border: 1.5px solid #14b8a6;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.08);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.helpline-main-info {
  flex: 1;
}

.helpline-action-col {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .bento-card-helpline-standalone {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px 16px;
  }
  .bento-card-helpline-standalone .bento-header-row {
    justify-content: center;
  }
  .bento-card-helpline-standalone .bento-helpline-badges {
    justify-content: center;
  }
  .helpline-action-col a {
    width: 100%;
    justify-content: center;
  }
}

/* Arabic Poetry & Quotations Typography */
.arabic-poetry, .founder-bio .arabic-poetry {
  font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SECTION 14: Book Title & Cover Enlarged Preview Modal (بمع بٹن)
   ========================================================================== */
/* Clickable indicators for book titles and covers */
.shelf-book-card .shelf-book-cover,
.shelf-book-card h4,
.book-card .book-cover-img,
.book-card .book-title {
  cursor: pointer;
  transition: transform 0.3s ease, color 0.25s ease;
}

.shelf-book-card h4:hover,
.book-card .book-title:hover {
  color: var(--color-primary-light, #1e8ee6);
  text-decoration: underline;
  text-decoration-color: var(--color-gold, #c49a38);
  text-underline-offset: 6px;
}

.shelf-book-card .shelf-book-cover:hover {
  transform: scale(1.03);
}

.book-card .book-cover-img:hover img {
  transform: scale(1.04);
}

/* Hover Zoom Pill on Covers */
.book-cover-img,
.shelf-book-card {
  position: relative;
}

.book-cover-img::after {
  content: 'بڑا کر کے دیکھیں';
  font-family: var(--font-urdu), sans-serif;
  font-weight: 600;
  position: absolute;
  bottom: 12px;
  right: 50%;
  transform: translateX(50%) translateY(8px);
  background: rgba(7, 71, 118, 0.88);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  border: 1px solid rgba(196, 154, 56, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  white-space: nowrap;
  direction: rtl;
  z-index: 2;
}

.book-card:hover .book-cover-img::after {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* Modal Overlay */
.book-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 26, 46, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.book-preview-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.book-preview-container {
  background: #ffffff;
  border: 2px solid rgba(196, 154, 56, 0.5);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(11, 114, 186, 0.15);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  direction: rtl;
}

.book-preview-overlay.open .book-preview-container {
  transform: scale(1) translateY(0);
}

.book-preview-close {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  color: #475569;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.book-preview-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
  transform: rotate(90deg) scale(1.08);
}

.book-preview-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 30px;
  gap: 28px;
}

.book-preview-cover-col {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-preview-cover-wrap {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1.5px solid rgba(196, 154, 56, 0.35);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.book-preview-img {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.book-preview-img:hover {
  transform: scale(1.02);
}

.book-preview-zoom-tag {
  margin-top: 10px;
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-preview-info-col {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
}

.book-preview-badge-wrap {
  margin-bottom: 8px;
}

.book-preview-badge {
  display: inline-block;
  padding: 3px 14px;
  background: var(--color-sky-soft, #eaf4fb);
  color: var(--color-primary, #0b72ba);
  border: 1px solid rgba(11, 114, 186, 0.25);
  border-radius: 14px;
  font-family: var(--font-urdu);
  font-size: 0.95rem;
  font-weight: 600;
}

.book-preview-title {
  font-family: var(--font-urdu);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary-dark, #074776);
  line-height: 1.5;
  margin: 0 0 10px 0;
  border-bottom: 2px solid rgba(196, 154, 56, 0.3);
  padding-bottom: 8px;
}

.book-preview-author {
  font-family: var(--font-urdu);
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.6;
}

.book-preview-author strong {
  color: var(--text-dark, #12283f);
}

.book-preview-author i {
  color: var(--color-gold, #c49a38);
  margin-left: 6px;
}

.book-preview-desc {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  color: var(--text-muted, #4e657e);
  line-height: 1.8;
  margin: 0 0 18px 0;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  border-right: 3px solid var(--color-primary);
}

.book-preview-actions-title {
  font-family: var(--font-urdu);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-urdu), 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  border: 1px solid transparent;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.bp-btn i {
  font-size: 1.05rem;
}

/* Modal 1. مطالعہ (Soft Sky Blue) */
.bp-btn-read {
  background: #f0f7ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.bp-btn-read:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.15);
  transform: translateY(-2px);
}

/* Modal 2. ڈاؤن لوڈ (Soft Warm Gold) */
.bp-btn-download {
  background: #fefce8;
  color: #b45309;
  border-color: #fde68a;
}

.bp-btn-download:hover {
  background: #fef9c3;
  color: #92400e;
  border-color: #fcd34d;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.15);
  transform: translateY(-2px);
}

/* Modal 3. خریدیں (Soft Mint / Emerald) */
.bp-btn-buy {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.bp-btn-buy:hover {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
  transform: translateY(-2px);
}

/* Modal 4. شیئر کریں (Soft Lavender / Purple) */
.bp-btn-share {
  background: #faf5ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.bp-btn-share:hover {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.15);
  transform: translateY(-2px);
}

/* ==========================================================================
   DEEP LINK HIGHLIGHTING & SHARE TOAST
   ========================================================================== */
.book-highlight-glow {
  position: relative;
  border-color: #0b72ba !important;
  box-shadow: 0 0 0 4px rgba(11, 114, 186, 0.35), 0 16px 36px rgba(11, 114, 186, 0.28) !important;
  animation: bookGlowPulse 2.4s infinite alternate ease-in-out;
  transform: translateY(-4px);
  z-index: 10;
}

@keyframes bookGlowPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(11, 114, 186, 0.3), 0 10px 25px rgba(11, 114, 186, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(196, 154, 56, 0.5), 0 18px 40px rgba(196, 154, 56, 0.38);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(11, 114, 186, 0.3), 0 10px 25px rgba(11, 114, 186, 0.2);
  }
}

.book-highlight-glow::before {
  content: '✨ منتخب کردہ کتاب';
  position: absolute;
  top: -14px;
  right: 18px;
  background: linear-gradient(135deg, #074776, #0b72ba);
  color: #fae19c;
  font-family: var(--font-urdu), serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1.5px solid #c49a38;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 5;
  animation: floatBounce 2s infinite ease-in-out;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Toast Notification for Book Link Copy */
.book-share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #ffffff;
  border: 1.5px solid #0b72ba;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 16px 45px rgba(7, 35, 60, 0.28);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10005;
  direction: rtl;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 92vw;
  width: 480px;
}

.book-share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.book-share-toast-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.book-share-toast-content {
  flex: 1 1 auto;
  text-align: right;
}

.book-share-toast-title {
  margin: 0;
  font-family: var(--font-urdu), serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #074776;
  line-height: 1.4;
}

.book-share-toast-text {
  margin: 2px 0 0;
  font-family: var(--font-urdu), serif;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
}

.book-share-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.book-share-toast-wa-btn {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-urdu), serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.book-share-toast-wa-btn:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.book-share-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.book-share-toast-close:hover {
  color: #dc2626;
  background: #fee2e2;
}

.book-preview-hint {
  margin-top: 14px;
  font-family: var(--font-urdu);
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Mobile Responsive Preview Modal */
@media (max-width: 768px) {
  .book-preview-body {
    flex-direction: column;
    padding: 24px 18px;
    gap: 18px;
  }
  .book-preview-cover-col {
    flex: 0 0 auto;
  }
  .book-preview-img {
    max-height: 280px;
  }
  .book-preview-title {
    font-size: 1.5rem;
  }
  .bp-btn {
    font-size: 1.05rem;
    padding: 10px 16px;
  }
}