﻿/* =========================================================
   Al-Burhan Islamic Learning Institute
   Main CSS — Design System + Public Website
   Version 1.0.0
   ========================================================= */

/* =========================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================= */
:root {
  /* Brand Colors */
  --primary:        #1B3A6B;
  --primary-dark:   #122B52;
  --primary-light:  #254E8A;
  --primary-50:     rgba(27, 58, 107, 0.05);
  --primary-100:    rgba(27, 58, 107, 0.1);
  --primary-200:    rgba(27, 58, 107, 0.2);

  --secondary:      #C8A86B;
  --secondary-dark: #b8964d;
  --secondary-light:#d4b97e;
  --secondary-50:   rgba(200, 168, 107, 0.1);

  --accent:         #E6D5B8;
  --light:          #F8F6F1;
  --dark:           #111827;
  --white:          #FFFFFF;

  /* Text */
  --text:           #374151;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --text-dark:      #111827;

  /* UI */
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;
  --surface:        #FFFFFF;
  --surface-alt:    #F9FAFB;

  /* Status */
  --success:        #059669;
  --warning:        #D97706;
  --error:          #DC2626;
  --info:           #2563EB;

  /* Spacing */
  --section-py:     5rem;
  --section-py-sm:  3rem;

  /* Typography */
  --font-sans:      'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-arabic:    'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --font-urdu:      'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.05);
  --shadow-md:      0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-lg:      0 20px 40px -5px rgba(0,0,0,.1), 0 8px 16px -4px rgba(0,0,0,.06);
  --shadow-gold:    0 8px 25px rgba(200, 168, 107, 0.25);

  /* Border Radius */
  --radius-sm:      0.375rem;
  --radius:         0.5rem;
  --radius-md:      0.75rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --radius-full:    9999px;

  /* Transitions */
  --transition:     all 0.3s ease;
  --transition-fast:all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Arabic / Urdu RTL body */
body[dir="rtl"] {
  font-family: var(--font-arabic);
}
body[lang="ur"][dir="rtl"] {
  font-family: var(--font-urdu);
}

/* Force Latin font metrics on Bootstrap Icon wrapper elements in ALL languages.
   The glyph itself comes from ::before { font-family: bootstrap-icons !important }
   and is unaffected. Forcing var(--font-sans) on the <i> element means
   vertical-align is always calculated against predictable Latin metrics,
   eliminating misalignment caused by Noto Nastaliq Urdu's unusual box model. */
i.bi,
i[class^="bi-"],
i[class*=" bi-"],
span.bi,
span[class^="bi-"],
span[class*=" bi-"] {
  font-family: var(--font-sans) !important;
  line-height: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover { color: var(--primary-dark); }

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

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-top: 0;
}

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

.display-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-desc { color: var(--text); line-height: 1.8; margin-bottom: 1rem; }

/* Gold Underline accent for section titles */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
  margin: 0.75rem auto 0;
  border-radius: var(--radius-full);
}
[dir="rtl"] .section-header .section-title::after {
  margin: 0.75rem auto 0;
}

/* =========================================================
   4. UTILITY CLASSES
   ========================================================= */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-gold      { color: var(--secondary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-primary     { background-color: var(--primary) !important; }
.bg-secondary   { background-color: var(--secondary) !important; }
.bg-light-custom{ background-color: var(--light) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-gold    { border-color: var(--secondary) !important; }

.shadow-gold    { box-shadow: var(--shadow-gold) !important; }
.shadow-custom  { box-shadow: var(--shadow-md) !important; }

/* Islamic Geometric Pattern Background */
.pattern-bg {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L0 30l30 30L60 30z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

.pattern-light {
  background-color: var(--light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0L0 20l20 20L40 20z' fill='none' stroke='rgba(27,58,107,0.05)' stroke-width='1'/%3E%3C/svg%3E");
}

/* =========================================================
   5. NAVBAR
   ========================================================= */
.ab-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  background: linear-gradient(180deg, rgba(18,43,82,0.97) 0%, rgba(27,58,107,0.93) 100%);
}

.ab-navbar.scrolled {
  background: rgba(18, 43, 82, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(18,43,82,0.4);
}

.ab-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  transition: padding 0.3s ease;
}
.ab-navbar.scrolled .navbar-inner { padding: 0.625rem 0; }

/* Logo */
.ab-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.ab-logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  transition: var(--transition);
}
.ab-logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.ab-logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.4s;
}
.ab-logo-tagline {
  font-size: 0.6rem;
  color: var(--secondary);
  font-weight: 500;
  line-height: 1.6;
}
.ab-navbar.scrolled .ab-logo-name { color: var(--white); }

/* Nav Links */
.ab-nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ab-nav-links > li > a,
.ab-nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.ab-navbar.scrolled .ab-nav-links > li > a,
.ab-navbar.scrolled .ab-nav-links > li > button { color: rgba(255,255,255,0.92); }

.ab-nav-links > li > a:hover,
.ab-nav-links > li > button:hover {
  color: var(--secondary) !important;
  background: rgba(200,168,107,0.1);
}

.ab-nav-links > li > a.active { color: var(--secondary) !important; }

/* Dropdown */
.ab-dropdown { position: relative; }
.ab-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 9999;
}
.ab-dropdown-menu li { list-style: none; }
[dir="rtl"] .ab-dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .ab-dropdown-menu a { text-align: right; }

.ab-dropdown:hover .ab-dropdown-menu,
.ab-dropdown:focus-within .ab-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ab-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.ab-dropdown-menu a:hover {
  background: var(--primary-50);
  color: var(--primary);
}
.ab-dropdown-menu a i { width: 18px; text-align: center; color: var(--secondary); }

/* Nav Actions */
.ab-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language Switcher Dropdown */
.ab-lang-dropdown { position: relative; }

.ab-lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.ab-lang-toggle:hover,
.ab-lang-toggle[aria-expanded="true"] {
  background: var(--secondary);
  color: var(--dark);
}

.ab-lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 130px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 2000;
}
.ab-lang-menu.open { display: block; }

.ab-lang-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  text-align: start;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.ab-lang-item:hover { background: var(--light); }
.ab-lang-item.active {
  color: var(--primary);
  font-weight: 700;
}

/* Mobile Toggle */
.ab-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: var(--transition-fast);
}
.ab-navbar.scrolled .ab-mobile-toggle { color: var(--white); }
.ab-mobile-toggle:hover { background: rgba(255,255,255,0.15); }
.ab-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  margin: 4px 0;
  transition: var(--transition);
}

/* Mobile Menu */
.ab-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 1050;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.ab-mobile-menu.open { display: flex; }
.ab-mobile-menu .mobile-logo { margin-bottom: 2.5rem; }
.ab-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.ab-mobile-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.ab-mobile-links a:hover {
  color: var(--secondary);
  background: rgba(255,255,255,0.05);
}

/* =========================================================
   6. HERO SLIDER
   ========================================================= */
#hero,
.page-hero,
.scholar-hero,
.hero-section {
  position: relative;
  overflow: hidden;
  margin-top: 88px; /* push hero below fixed navbar (60px logo + 2×14px padding) AND reserve flow space */
}

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-bottom: 90px; /* reserve space for stats bar overlay */
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero slide overlay used on home page */
.hero-slide {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,43,82,0.88) 0%, rgba(27,58,107,0.72) 50%, rgba(18,43,82,0.65) 100%);
  z-index: 1;
}
.hero-geometric {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0L0 40l40 40L80 40z' fill='none' stroke='rgba(200,168,107,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}
.hero-slide .hero-content { position: relative; z-index: 2; }

/* Gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(18, 43, 82, 0.85) 0%,
    rgba(27, 58, 107, 0.75) 50%,
    rgba(18, 43, 82, 0.65) 100%
  );
}

/* Islamic geometric overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0L0 40l40 40L80 40z' fill='none' stroke='rgba(200,168,107,0.08)' stroke-width='1.5'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='rgba(200,168,107,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1rem;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 168, 107, 0.2);
  border: 1px solid rgba(200, 168, 107, 0.4);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.4; }

.hero-title .highlight {
  color: var(--secondary);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
[dir="rtl"] .hero-actions { justify-content: flex-start; }

/* Hero Stats Bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(18, 43, 82, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,168,107,0.25);
}
.hero-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.hero-stat {
  flex: 1 1 120px;
  padding: 1rem 0.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child { border-right: none; }
[dir="rtl"] .hero-stat { border-right: none; border-left: 1px solid rgba(255,255,255,0.08); }
[dir="rtl"] .hero-stat:last-child { border-left: none; }

.hero-stat-number,
.hero-stat .counter,
.hero-stat [data-target] {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: inline-block;
}
.hero-stat-label,
.hero-stat small {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.hero-stat > span:not(.counter):not([data-target]) {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}
[dir="rtl"] .hero-controls { right: auto; left: 2rem; }

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--secondary);
  width: 28px;
}

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.125rem;
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }
.hero-prev:hover, .hero-next:hover {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}
.hero-pause {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}
.hero-pause:hover { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }
/* Skip link — show on focus */
.visually-hidden-focusable:focus,
.visually-hidden-focusable:focus-within { transform: translateY(0) !important; }

/* =========================================================
   7. NEWS TICKER
   ========================================================= */
.news-ticker {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 0.6rem 0;
  overflow: hidden;
  border-bottom: 2px solid var(--secondary);
}

.news-ticker-label {
  background: var(--secondary);
  color: var(--dark);
  padding: 0.2rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  flex-shrink: 0;
  z-index: 1;
}

.news-ticker-track {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  gap: 4rem;
}
.news-ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-ticker-item {
  font-size: 0.875rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.news-ticker-item::before {
  content: '◆';
  color: var(--secondary);
  font-size: 0.6rem;
}

/* RTL: reverse scroll direction + flip label pill */
[dir="rtl"] .news-ticker-label {
  border-radius: var(--radius-full) 0 0 var(--radius-full);
}
[dir="rtl"] .news-ticker-track {
  animation-direction: reverse;
}

/* =========================================================
   8. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(27,58,107,0.3);
}

.btn-gold {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-outline-gold:hover {
  background: var(--secondary);
  color: var(--dark);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* =========================================================
   9. SECTIONS
   ========================================================= */
.section {
  padding: var(--section-py) 0;
}
.section-sm { padding: var(--section-py-sm) 0; }

/* About Strip */
.about-strip {
  background: var(--light);
  padding: 4rem 0;
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
}
.about-strip p { font-size: 1.1rem; line-height: 1.8; color: var(--text); max-width: 800px; }

/* Stats Strip */
.stats-strip { background: var(--primary); padding: 3.5rem 0; }
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; }

/* =========================================================
   10. COURSE CARDS
   ========================================================= */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.course-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.course-card:hover .course-card-img img { transform: scale(1.05); }

.course-card-track {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
[dir="rtl"] .course-card-track { left: auto; right: 1rem; }

.course-card-free {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--success);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
[dir="rtl"] .course-card-free { right: auto; left: 1rem; }

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.625rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.course-card-meta {
  display: flex;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.course-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.course-card-meta i { color: var(--secondary); }

/* Track Badge Colors */
.track-seerat  { background: #1B3A6B; }
.track-shabab  { background: #C8A86B; color: #111827 !important; }
.track-atfal   { background: #E05C1E; }
.track-taleem  { background: #1E40AF; }

/* Course Card Footer & Pricing */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}
.price-free  { font-size: 0.875rem; font-weight: 700; color: var(--success); }
.price-pkr   { font-size: 1rem; font-weight: 700; color: var(--dark); }
.price-usd   { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.25rem; }

/* Track Overview Cards */
.track-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.track-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.track-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.track-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; flex: 1; }

/* Courses Filter Bar */
.courses-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.courses-search { margin-left: auto; }
[dir="rtl"] .courses-search { margin-left: 0; margin-right: auto; }
.courses-filter-bar .filter-tabs { margin-top: 0; justify-content: flex-start; }
.courses-filter-bar .gender-filter-wrap { margin-top: 0; }
.search-input-wrap { position: relative; }
.search-icon {
  position: absolute; top: 50%; left: 0.875rem;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.875rem; pointer-events: none;
}
[dir="rtl"] .search-icon { left: auto; right: 0.875rem; }
.search-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  background: var(--white);
}
[dir="rtl"] .search-input { padding: 0.5rem 2.5rem 0.5rem 1rem; }
.search-input:focus { border-color: var(--primary); }

/* =========================================================
   11. NEWS CARD
   ========================================================= */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.625rem;
}
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}
.news-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  align-items: center;
}

/* =========================================================
   12. PODCAST CARD
   ========================================================= */
.podcast-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.podcast-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
[dir="rtl"] .podcast-card:hover { transform: translateX(-4px); }

.podcast-card-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.podcast-card-img img { width: 100%; height: 100%; object-fit: cover; }

.podcast-card-body { flex: 1; min-width: 0; }
.podcast-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podcast-card-meta { font-size: 0.78rem; color: var(--text-muted); }

.podcast-play-btn {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.podcast-play-btn:hover { background: var(--secondary); color: var(--dark); transform: scale(1.1); }

/* =========================================================
   13. CAMPUS CARD
   ========================================================= */
.campus-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.campus-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
  transform: translateY(-4px);
}
.campus-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.campus-card-icon {
  width: 48px; height: 48px;
  background: rgba(200,168,107,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.campus-card-city { font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 0; }
.campus-card-body { padding: 1.25rem 1.5rem; }
.campus-card-info { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.625rem; }
.campus-card-info i { color: var(--secondary); margin-top: 0.1rem; flex-shrink: 0; }

/* =========================================================
   14. TESTIMONIAL CAROUSEL
   ========================================================= */
.testimonial-section { background: var(--light); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.25;
  font-family: Georgia, serif;
  font-weight: 900;
}
[dir="rtl"] .testimonial-card::before { left: auto; right: 1.5rem; content: '"'; }

.testimonial-rating { color: var(--secondary); font-size: 0.875rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.95rem; line-height: 1.75; color: var(--text); font-style: italic; margin-bottom: 1.5rem; }

.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--secondary);
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* =========================================================
   15. DONATION SECTION
   ========================================================= */
.donation-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}
.donation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,168,107,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.donation-amount-btn {
  padding: 0.75rem;
  text-align: center;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.donation-amount-btn:hover,
.donation-amount-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}

.donation-progress { margin-top: 2rem; }
.donation-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.donation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

/* =========================================================
   16. NEWSLETTER
   ========================================================= */
/* ─── Prayer Times Widget ────────────────────────────────────────────────── */
.prayer-times-section { background: linear-gradient(135deg, var(--primary) 0%, #1B3A6B 100%); padding: 2.5rem 0; }
.prayer-times-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.prayer-times-header { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.prayer-times-icon { font-size: 2rem; line-height: 1; }
.prayer-times-title { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.prayer-times-city { font-size: .78rem; color: rgba(255,255,255,.6); margin: 0; }
.prayer-times-city-select { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: .3rem .6rem; font-size: .8rem; cursor: pointer; }
.prayer-times-city-select option { background: var(--primary); color: #fff; }
.prayer-times-grid { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.prayer-time-item { text-align: center; padding: .6rem 1rem; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); min-width: 80px; transition: background .2s; }
.prayer-time-item.pt-next { background: rgba(200,168,107,.25); border-color: var(--secondary); }
.pt-name { display: block; font-size: .7rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.pt-time { display: block; font-size: .95rem; font-weight: 700; color: #fff; }
.prayer-time-item.pt-next .pt-time { color: var(--secondary); }
@media (max-width: 767px) {
  .prayer-times-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .prayer-times-grid { justify-content: flex-start; gap: .6rem; }
  .prayer-time-item { min-width: 70px; padding: .5rem .6rem; }
}
[dir="rtl"] .prayer-times-grid { justify-content: flex-start; }

.newsletter-section {
  padding: 4rem 0;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
}
.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255,255,255,0.12);
}
[dir="rtl"] .newsletter-form { direction: rtl; }

/* =========================================================
   17. FOOTER
   ========================================================= */
.ab-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  border-top: 3px solid var(--secondary);
}

.ab-footer-main { padding: 4rem 0 3rem; }

.footer-brand .ab-logo-name { color: var(--white); font-size: 1.5rem; }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 4px; }

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.875rem;
}
.footer-contact-item i { color: var(--secondary); margin-top: 0.15rem; flex-shrink: 0; }

.ab-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.ab-footer-bottom a { color: rgba(255,255,255,0.7); }
.ab-footer-bottom a:hover { color: var(--secondary); }

/* =========================================================
   18. FORM ELEMENTS
   ========================================================= */
.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
  line-height: 1.5;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.form-control::placeholder { color: var(--text-light); }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.form-label .required { color: var(--error); }

.form-error { font-size: 0.8rem; color: var(--error); margin-top: 0.35rem; }

.form-group { margin-bottom: 1.25rem; }

/* =========================================================
   19. CARDS (Generic)
   ========================================================= */
.ab-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.ab-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.ab-card-body { padding: 1.5rem; }

/* =========================================================
   20. BADGES & TAGS
   ========================================================= */
.badge-primary { background: var(--primary-100); color: var(--primary); }
.badge-gold    { background: rgba(200,168,107,0.15); color: #8b6914; }
.badge-success { background: rgba(5,150,105,0.1); color: var(--success); }
.badge-warning { background: rgba(217,119,6,0.1); color: var(--warning); }
.badge-danger  { background: rgba(220,38,38,0.1); color: var(--error); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.275rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   21. SCROLL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   22. BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  text-decoration: none;
  font-size: 1.1rem;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--secondary); color: var(--dark); transform: translateY(-3px); }
[dir="rtl"] .back-to-top { right: auto; left: 2rem; }

/* Homepage Highlights Grid */
.highlight-card { border-radius: var(--radius-xl); padding: 2rem; height: 100%; display: flex; flex-direction: column; gap: 0.75rem; transition: transform .2s, box-shadow .2s; }
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.highlight-card-news { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); border: 1px solid #BFDBFE; }
.highlight-card-podcast { background: linear-gradient(135deg, #FFF7ED, #FED7AA); border: 1px solid #FDBA74; }
.highlight-card-testimonial { background: linear-gradient(135deg, #F0FDF4, #BBF7D0); border: 1px solid #86EFAC; }
.highlight-card-icon { font-size: 2rem; }
.highlight-card-news .highlight-card-icon { color: #2563EB; }
.highlight-card-podcast .highlight-card-icon { color: #EA580C; }
.highlight-card-testimonial .highlight-card-icon { color: #16A34A; }
.highlight-card-title { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 0; }
.highlight-card-desc { font-size: 0.87rem; color: #4B5563; line-height: 1.6; margin: 0; flex: 1; }
.highlight-card-link { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; margin-top: auto; }
.highlight-card-link:hover { color: var(--secondary); }
.highlight-card-quote { font-size: 0.9rem; font-style: italic; color: #374151; line-height: 1.7; flex: 1; }
.highlight-card-author { display: flex; align-items: center; gap: 0.75rem; }
.highlight-card-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.highlight-card-avatar-init { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.highlight-card-name { font-weight: 700; font-size: 0.85rem; color: #111827; }
.highlight-card-desig { font-size: 0.75rem; color: #6B7280; }

/* Homepage Apply Now CTA Block */
.home-cta-course { padding-top: 0; padding-bottom: 0; }
.home-cta-course-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
}
.home-cta-course-badge {
  flex-shrink: 0;
  background: rgba(200,168,107,.2);
  color: var(--secondary);
  border: 1px solid rgba(200,168,107,.35);
  border-radius: 100px;
  padding: .3rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  align-self: flex-start;
}
.home-cta-course-info { flex: 1; min-width: 200px; }
.home-cta-course-title { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.home-cta-course-meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }
.home-cta-deadline { color: rgba(255,255,255,.85); }
.home-cta-free { background: rgba(5,150,105,.2); color: #34D399; border-radius: 100px; padding: .2rem .75rem; font-weight: 600; }
.home-cta-course-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
.home-cta-course-actions .btn-outline-light { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.home-cta-course-actions .btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 768px) { .home-cta-course-inner { flex-direction: column; align-items: flex-start; } }

/* Floating Action Buttons */
.wa-float-btn {
  position: fixed;
  bottom: 5rem; /* above back-to-top */
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 1050;
  transition: transform .2s, box-shadow .2s;
}
.wa-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.6); color: #fff; }
[dir="rtl"] .wa-float-btn { right: auto; left: 1.5rem; }
@media (max-width: 576px) { .wa-float-btn { bottom: 4.5rem; right: 1rem; width: 50px; height: 50px; } }

/* Navbar circular donate button */
.btn-donate-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: width 0.25s ease, border-radius 0.25s ease, padding 0.25s ease;
  font-size: 1rem;
  flex-shrink: 0;
}
.btn-donate-nav .donate-nav-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 0.8rem;
  font-weight: 700;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin-left 0.2s ease;
  margin-left: 0;
}
/*.btn-donate-nav:hover {
  width: auto;
  border-radius: 25px;
  padding: 0 0.875rem !important;
}*/
.btn-donate-nav:hover .donate-nav-label {
  max-width: 70px;
  opacity: 1;
  margin-left: 0.35rem;
}

/* Welcome Modal */
.welcome-modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
}
.welcome-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}
[dir="rtl"] .welcome-modal-close { right: auto; left: 1rem; }
.welcome-modal-body {
  padding: 3rem 2.5rem 2.5rem;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}
.welcome-modal-icon {
  width: 70px;
  height: 70px;
  background: rgba(200,168,107,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--secondary);
}
.welcome-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}
.welcome-modal-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.welcome-modal-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.welcome-modal-dismiss { color: rgba(255,255,255,.6); font-size: 0.85rem; }
.welcome-modal-dismiss:hover { color: rgba(255,255,255,.9); }

/* =========================================================
   23. PAGE HEADER
   ========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L0 30l30 30L60 30z' fill='none' stroke='rgba(200,168,107,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-dark), var(--secondary), var(--secondary-dark));
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { color: var(--white); margin-bottom: 0.625rem; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item.active,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb-item a { color: var(--secondary); }

/* =========================================================
   24. AUDIO PLAYER
   ========================================================= */
.audio-player {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.audio-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  margin: 0.75rem 0;
}
.audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
  pointer-events: none;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.audio-btn:hover { color: var(--primary); background: var(--primary-50); }

.audio-play-main {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(27,58,107,0.3);
}
.audio-play-main:hover { background: var(--secondary); color: var(--dark); transform: scale(1.05); }

/* =========================================================
   25. MAPS
   ========================================================= */
.campus-map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}
.campus-map iframe { width: 100%; height: 100%; border: none; }

/* =========================================================
   26. MAJALIS CARD
   ========================================================= */
.majalis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
[dir="rtl"] .majalis-card { border-left: none; border-right: 4px solid var(--secondary); }
.majalis-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
[dir="rtl"] .majalis-card:hover { transform: translateX(-4px); }

.majalis-date-box {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.majalis-date-day   { font-size: 1.75rem; font-weight: 800; line-height: 1; display: block; }
.majalis-date-month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--secondary); }

/* =========================================================
   27. LOADING SKELETON
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #e5e7eb 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   28. ALERTS
   ========================================================= */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}
[dir="rtl"] .alert { border-left: none; border-right: 4px solid; }

.alert-success { background: rgba(5,150,105,0.08); border-color: var(--success); color: #065f46; }
.alert-error   { background: rgba(220,38,38,0.08); border-color: var(--error); color: #7f1d1d; }
.alert-warning { background: rgba(217,119,6,0.08); border-color: var(--warning); color: #78350f; }
.alert-info    { background: rgba(37,99,235,0.08); border-color: var(--info); color: #1e3a8a; }
.alert i       { flex-shrink: 0; margin-top: 0.1rem; }

/* =========================================================
   29. RTL OVERRIDES
   ========================================================= */
[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left !important; }
[dir="rtl"] .ms-auto    { margin-left: unset !important; margin-right: auto !important; }
[dir="rtl"] .me-auto    { margin-right: unset !important; margin-left: auto !important; }
[dir="rtl"] .ps-0, [dir="rtl"] .ps-1, [dir="rtl"] .ps-2, [dir="rtl"] .ps-3, [dir="rtl"] .ps-4 { padding-left: unset; }
[dir="rtl"] .pe-0, [dir="rtl"] .pe-1, [dir="rtl"] .pe-2, [dir="rtl"] .pe-3, [dir="rtl"] .pe-4 { padding-right: unset; }

[dir="rtl"] .float-start { float: right !important; }
[dir="rtl"] .float-end   { float: left !important; }

[dir="rtl"] .border-start { border-left: unset !important; border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
[dir="rtl"] .border-end   { border-right: unset !important; border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }

/* =========================================================
   30. PAGE HERO
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
  filter: brightness(0.45);
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,107,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 5.5rem;
  padding-bottom: 3rem;
}
.page-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
}
.page-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.25rem;
}
.page-breadcrumb .breadcrumb-item { font-size: 0.8rem; }
.page-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-breadcrumb .breadcrumb-item a:hover { color: var(--secondary); }
.page-breadcrumb .breadcrumb-item.active { color: var(--secondary); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* =========================================================
   31. SECTION HELPERS
   ========================================================= */
.section-padding { padding: 5rem 0; }
@media (max-width: 767px) { .section-padding { padding: 3.5rem 0; } }

.bg-light-green { background: var(--light); }
.bg-dark-green  { background: var(--primary); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: rgba(27,58,107,0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
/* =========================================================
   32. FORM CARD (enrollment, contact, donation forms)
   ========================================================= */
.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.form-card-header {
  background: var(--primary);
  color: #fff;
  padding: 1.75rem 2rem;
}
.form-card-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.form-card .row, .form-card form {
  padding: 2rem;
}
.form-card-header p,
.form-card-header .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}
@media (max-width: 767px) {
  .form-card .row, .form-card form { padding: 1.25rem; }
}

/* =========================================================
   33. FILTER TABS (shared)
   ========================================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =========================================================
   34. SEARCH INPUT
   ========================================================= */
.search-input-wrap { position: relative; }
.search-icon { position: absolute; top: 50%; transform: translateY(-50%); left: 1rem; color: #9CA3AF; pointer-events: none; }
.search-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 1rem 0 2.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,58,107,0.1); }
[dir="rtl"] .search-icon { left: auto; right: 1rem; }
[dir="rtl"] .search-input { padding: 0 2.5rem 0 1rem; }

/* =========================================================
   35. ABOUT PAGE COMPONENTS
   ========================================================= */
.about-experience-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.exp-number { display: block; font-size: 2rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.exp-label  { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; margin-top: 0.2rem; }
.about-image-wrap { position: relative; display: inline-block; width: 100%; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.about-feature { display: flex; align-items: flex-start; gap: 0.85rem; }
.about-feature-icon { width: 42px; height: 42px; background: rgba(27,58,107,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }
.about-feature strong { display: block; font-weight: 700; color: #111827; font-size: 0.95rem; margin-bottom: 0.2rem; }
.about-feature p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.stat-box { background: rgba(27,58,107,0.06); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; }
.stat-value { font-size: 2.25rem; font-weight: 800; color: var(--primary); font-family: 'Poppins', sans-serif; display: inline; }
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--secondary); }
.stat-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.vm-card { background: #fff; border-radius: var(--radius-xl); padding: 2rem; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); text-align: center; }
.vm-card-gold { background: linear-gradient(135deg, var(--primary) 0%, #254E8A 100%); color: #fff; }
.vm-card-gold .vm-title { color: var(--secondary); }
.vm-card-gold .vm-desc { color: rgba(255,255,255,0.8); }
.vm-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(27,58,107,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; color: var(--primary); }
.vm-card-gold .vm-icon { background: rgba(255,255,255,0.15); color: var(--secondary); }
.vm-title { font-weight: 700; font-size: 1.25rem; color: var(--primary); margin-bottom: 0.75rem; }
.vm-desc { color: var(--text-muted); line-height: 1.7; }
.value-card { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; text-align: center; border: 1px solid var(--border-light); transition: var(--transition); }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-card i { font-size: 1.75rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
.value-card h4 { font-size: 0.9rem; font-weight: 700; color: #111827; margin: 0 0 0.5rem; }

/* Four Pillars */
.pillar-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(200,168,107,0.25); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; height: 100%; transition: var(--transition); }
.pillar-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(200,168,107,0.5); transform: translateY(-4px); }
.pillar-icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: rgba(200,168,107,0.15); color: var(--secondary); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.5rem; }
.pillar-arabic { font-size: 1.4rem; color: var(--secondary); font-family: 'Noto Naskh Arabic', serif; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.8; }
.pillar-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.pillar-shine { font-size: 0.82rem; color: var(--secondary); font-style: italic; margin-bottom: 0.85rem; font-weight: 500; }
.pillar-desc { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin: 0; }
.founder-blockquote { font-size: 1.15rem; font-style: italic; color: var(--primary); line-height: 1.7; border-left: 4px solid var(--secondary); padding-left: 1.5rem; margin-bottom: 1.25rem; }
[dir="rtl"] .founder-blockquote { border-left: none; border-right: 4px solid var(--secondary); padding-left: 0; padding-right: 1.5rem; }
.founder-name { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 0.25rem; }
.founder-title-badge { display: inline-block; background: rgba(200,168,107,0.12); color: var(--secondary); border-radius: 100px; padding: 0.2rem 0.85rem; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.founder-image-wrap { position: relative; }
.founder-quote-badge { position: absolute; bottom: 1.5rem; left: -1rem; background: var(--secondary); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.founder-qualifications h4 { font-size: 0.875rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem; }
.founder-qual-list { list-style: none; padding: 0; }
.founder-qual-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text); padding: 0.3rem 0; }
.founder-qual-list i { color: var(--secondary); }
.timeline { position: relative; padding: 2rem 0; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(200,168,107,0.3); transform: translateX(-50%); }
.timeline-item { display: flex; justify-content: flex-end; width: 50%; padding-right: 2.5rem; position: relative; margin-bottom: 2rem; }
.timeline-item.right { justify-content: flex-start; align-self: flex-end; width: 50%; padding-left: 2.5rem; padding-right: 0; margin-left: 50%; }
.timeline-content { background: rgba(255,255,255,0.1); border: 1px solid rgba(200,168,107,0.2); border-radius: var(--radius-md); padding: 1rem 1.25rem; max-width: 280px; }
.timeline-year { display: block; font-size: 1.1rem; font-weight: 800; color: var(--secondary); margin-bottom: 0.35rem; }
.timeline-content p { color: rgba(255,255,255,0.8); font-size: 0.85rem; margin: 0; line-height: 1.6; word-break: break-word; overflow-wrap: break-word; }
.timeline-dot { position: absolute; width: 14px; height: 14px; background: var(--secondary); border-radius: 50%; top: 1rem; right: -7px; box-shadow: 0 0 0 4px rgba(200,168,107,0.2); }
.timeline-item.right .timeline-dot { left: -7px; right: auto; }
@media (max-width: 767px) {
  .timeline::before { left: 0; }
  .timeline-item, .timeline-item.right { width: 100%; padding-left: 2rem; padding-right: 0; margin-left: 0; justify-content: flex-start; }
  .timeline-dot, .timeline-item.right .timeline-dot { left: -7px; right: auto; }
  .timeline-content { max-width: none; }
}
/* ─── RTL Timeline ───────────────────────────────────────────────────────────
   Spine stays at left:50%.  We use explicit physical properties + margin:auto
   on the child so the layout doesn't depend on flex-direction RTL reversal,
   which is inconsistent across browsers.

   LTR even (.left)  → left  half  (0–50%),   content pushed RIGHT (near spine)
   LTR odd  (.right) → right half  (50–100%), content pushed LEFT  (near spine)

   RTL even (.left)  → right half  (50–100%), content pushed LEFT  (near spine)
   RTL odd  (.right) → left  half  (0–50%),   content pushed RIGHT (near spine)
─────────────────────────────────────────────────────────────────────────────── */
[dir="rtl"] .timeline::before { left: 50%; right: auto; transform: translateX(-50%); }

/* Even items (.left) → move from left half to right half */
[dir="rtl"] .timeline-item:not(.right) {
  margin-left: 50%;          /* anchor to right half             */
  padding-left: 2.5rem;      /* gap: spine → card (left side)    */
  padding-right: 0;
  justify-content: flex-start; /* not relied on; belt-and-suspenders */
}
/* Push content card to left (spine side) inside the right-half container */
[dir="rtl"] .timeline-item:not(.right) .timeline-content { margin-right: auto; margin-left: 0; text-align: right; }
/* Dot sits on the left edge of the right-half item = the spine */
[dir="rtl"] .timeline-item:not(.right) .timeline-dot { left: -7px; right: auto; }

/* Odd items (.right) → move from right half to left half */
[dir="rtl"] .timeline-item.right {
  margin-left: 0;            /* anchor to left half              */
  padding-right: 2.5rem;     /* gap: spine → card (right side)   */
  padding-left: 0;
  justify-content: flex-end; /* not relied on; belt-and-suspenders */
}
/* Push content card to right (spine side) inside the left-half container */
[dir="rtl"] .timeline-item.right .timeline-content { margin-left: auto; margin-right: 0; text-align: right; }
/* Dot sits on the right edge of the left-half item = the spine */
[dir="rtl"] .timeline-item.right .timeline-dot { right: -7px; left: auto; }

/* Mobile RTL — single column, spine flush to right */
@media (max-width: 767px) {
  [dir="rtl"] .timeline::before { left: auto; right: 0; transform: none; }
  [dir="rtl"] .timeline-item:not(.right),
  [dir="rtl"] .timeline-item.right {
    width: 100%; margin-left: 0; padding-right: 2rem; padding-left: 0;
    justify-content: flex-end;
  }
  [dir="rtl"] .timeline-item:not(.right) .timeline-content,
  [dir="rtl"] .timeline-item.right .timeline-content { margin-left: 0; margin-right: 0; max-width: none; }
  [dir="rtl"] .timeline-item:not(.right) .timeline-dot,
  [dir="rtl"] .timeline-item.right .timeline-dot { right: -7px; left: auto; }
}
.cta-box { background: var(--light); border-radius: var(--radius-xl); padding: 3rem 2rem; border: 1px solid var(--border-light); }
.cta-title { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 0.75rem; }
.cta-desc { color: var(--text-muted); margin-bottom: 2rem; }

/* =========================================================
   36. NEWS CARD
   ========================================================= */
.news-card { background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); height: 100%; display: flex; flex-direction: column; transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-hero .row { height: 100%; }
.news-card-img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.03); }
.news-card-category { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--primary); color: #fff; border-radius: 100px; padding: 0.2rem 0.75rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.news-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.6rem; }
.news-card-meta i { margin-right: 0.2rem; }
.news-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.4; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--primary); }
.news-card-excerpt { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; flex: 1; }
.news-read-more { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-size: 0.82rem; font-weight: 600; text-decoration: none; margin-top: 0.75rem; }
.news-read-more:hover { color: var(--secondary); }

/* =========================================================
   37. STICKY SIDEBAR
   ========================================================= */
.sticky-sidebar { position: sticky; top: 90px; }

/* =========================================================
   38. DONATION PAGE
   ========================================================= */
.donation-section { background: var(--primary); }
.donation-amounts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.donation-amount {
  padding: 0.6rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.donation-amount:hover, .donation-amount.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
}
.donation-custom {
  flex: 1;
  min-width: 160px;
  height: 44px;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0 1.25rem;
  font-size: 0.85rem;
}
.donation-custom::placeholder { color: rgba(255,255,255,0.5); }
.donation-custom:focus { outline: none; border-color: var(--secondary); }
.donation-impact { background: rgba(255,255,255,0.07); border-radius: var(--radius-xl); padding: 2rem; }
.impact-title { color: var(--secondary); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.25rem; }
.impact-items { display: flex; flex-direction: column; gap: 1rem; }
.impact-item { display: flex; align-items: flex-start; gap: 1rem; }
.impact-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 1.1rem; flex-shrink: 0; }
.impact-item strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.impact-item p { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin: 0; }

/* =========================================================
   39. CAMPUS CARD
   ========================================================= */
.campus-card { background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); height: 100%; }
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.campus-card-body { padding: 1.25rem; }
.campus-card-name { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.3rem; }
.campus-card-city { font-size: 0.85rem; color: var(--secondary); font-weight: 600; margin-bottom: 0.3rem; }
.campus-card-address { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.campus-card-phone { display: block; font-size: 0.82rem; color: var(--primary); text-decoration: none; }
.text-gold { color: var(--secondary); }

/* =========================================================
   40. TESTIMONIAL CARD
   ========================================================= */
.testimonial-card { background: #fff; border-radius: var(--radius-xl); padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); height: 100%; }
.testimonial-stars { color: var(--secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-quote { font-style: italic; color: var(--text); line-height: 1.7; font-size: 0.9rem; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-initial { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.testimonial-name { font-weight: 700; color: #111827; font-size: 0.9rem; }
.testimonial-designation { font-size: 0.75rem; color: var(--text-light); }

/* =========================================================
   41. NEWSLETTER SECTION
   ========================================================= */
.newsletter-section { background: var(--light); }
.newsletter-inner { background: #fff; border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.newsletter-title { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.newsletter-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.newsletter-input-group { display: flex; gap: 0; border-radius: var(--radius-full); overflow: hidden; box-shadow: var(--shadow-sm); border: 1.5px solid var(--border); }
.newsletter-input { flex: 1; height: 52px; border: none; padding: 0 1.25rem; font-size: 0.9rem; outline: none; background: #fff; }
.newsletter-btn { height: 52px; padding: 0 1.5rem; background: var(--primary); color: #fff; border: none; font-weight: 600; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: background 0.2s; white-space: nowrap; }
.newsletter-btn:hover { background: var(--primary-dark); }
.newsletter-privacy { font-size: 0.75rem; color: var(--text-light); margin: 0; }
.newsletter-message { font-size: 0.85rem; padding: 0.6rem 1rem; border-radius: var(--radius); }

/* =========================================================
   42. TABLE — Admin (shared public helper)
   ========================================================= */
.table-admin { font-size: 0.875rem; }
.table-admin thead th { background: #F9FAFB; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6B7280; border-bottom: 2px solid #E5E7EB; padding: 0.85rem 1rem; white-space: nowrap; }
.table-admin tbody td { padding: 0.85rem 1rem; vertical-align: middle; border-bottom: 1px solid #F3F4F6; color: #374151; }
.table-admin tbody tr:last-child td { border-bottom: none; }
.table-admin tbody tr:hover td { background: #FAFAFA; }

/* =========================================================
   43. ADMIN CSS — missing vars used in admin layout
   ========================================================= */
:root {
  --admin-sidebar-width: 260px;
}
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
}
.admin-main { margin-left: var(--admin-sidebar-width); flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { height: 60px; background: #fff; border-bottom: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; }
.admin-content { flex: 1; padding: 2rem 1.5rem; }
.sidebar-brand { display: flex; align-items: center; gap: 0.85rem; padding: 1.25rem 1rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo { width: 40px; height: 40px; background: rgba(200,168,107,0.2); border: 1px solid rgba(200,168,107,0.4); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--secondary); flex-shrink: 0; }
.sidebar-brand-text h5 { color: #fff; font-size: 0.95rem; font-weight: 700; margin: 0; line-height: 1.2; }
.sidebar-brand-text span { color: rgba(255,255,255,0.5); font-size: 0.7rem; }
.sidebar-section-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); padding: 0.75rem 1rem 0.3rem; margin: 0; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav-item { margin: 0; }
.sidebar-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.875rem; font-weight: 500; border-radius: 0; transition: color 0.15s, background 0.15s; position: relative; }
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sidebar-link.active { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--secondary); border-radius: 0 3px 3px 0; }
.sidebar-badge { margin-left: auto; background: var(--secondary); color: var(--dark); font-size: 0.65rem; font-weight: 800; border-radius: 100px; padding: 0.1rem 0.45rem; line-height: 1.4; }
.sidebar-footer { margin-top: auto; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-user { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-user-avatar { width: 36px; height: 36px; background: var(--secondary); color: var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.sidebar-user-name { color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.sidebar-user-role { color: rgba(255,255,255,0.45); font-size: 0.7rem; text-transform: capitalize; }
.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }
.admin-overlay.show { display: block; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.topbar-toggle { background: none; border: none; font-size: 1.3rem; color: #374151; cursor: pointer; padding: 0.25rem; display: none; }
.topbar-breadcrumb { font-size: 0.82rem; color: #6B7280; display: flex; align-items: center; }
.topbar-breadcrumb .page-name { font-weight: 600; color: #111827; }
.topbar-btn { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6B7280; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background 0.15s; position: relative; }
.topbar-btn:hover { background: #F9FAFB; border-color: #E5E7EB; color: var(--primary); }
.topbar-notification-badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--error); border-radius: 50%; border: 2px solid #fff; }
.topbar-user { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; padding: 0.25rem 0.5rem; border-radius: 8px; transition: background 0.15s; }
.topbar-user:hover { background: #F9FAFB; }
.topbar-user-avatar { width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.topbar-user-name { font-size: 0.82rem; font-weight: 600; color: #374151; }

@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .topbar-toggle { display: flex; }
}

[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
  text-align: right;
  direction: rtl;
}

/* =========================================================
   30. RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .ab-nav-links { display: none; }
  .ab-mobile-toggle { display: flex; flex-direction: column; justify-content: center; }
  .ab-nav-actions .btn { display: none; }

  :root { --section-py: 3.5rem; }
  .hero-slider { height: 90vh; min-height: 500px; }
  .hero-title  { font-size: clamp(1.75rem, 5vw, 2.5rem); }

  .hero-stats .col { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero-prev, .hero-next { display: none; }

  .news-ticker { font-size: 0.8rem; }
}

@media (max-width: 575.98px) {
  :root { --section-py: 2.5rem; }
  .hero-slider { height: 85vh; }
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section-title { font-size: 1.75rem; }

  .donation-amount-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }

  .ab-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .ab-logo-tagline { display: none; }
  .ab-logo-mark { width: 36px; height: 36px; }
  .ab-logo-name { font-size: 0.95rem; }
  .ab-nav-actions { gap: 0.4rem; }
  .ab-lang-toggle { padding: 0.15rem 0.5rem; font-size: 0.7rem; }
}

/* =========================================================
   31. COURSE DETAIL PAGE
   ========================================================= */
.course-hero-track {
  display: inline-block;
  background: rgba(200,168,107,0.2);
  color: var(--secondary);
  border: 1px solid rgba(200,168,107,0.4);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-price { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1; align-self: center; }
.hero-price.free { color: var(--secondary); font-size: 1rem; }

.course-meta-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; background: var(--light); border-radius: var(--radius-lg); margin-bottom: 2rem; }
.meta-item { display: flex; align-items: center; gap: 0.75rem; }
.meta-item i { font-size: 1.25rem; color: var(--primary); }
.meta-label { display: block; font-size: 0.75rem; color: #6B7280; font-weight: 500; text-transform: uppercase; }
.meta-value { display: block; font-weight: 600; color: #111827; }

.content-section { margin-bottom: 2.5rem; }
.content-section-title { font-size: 1.3rem; font-weight: 700; color: #111827; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }
.prose-content { color: #374151; line-height: 1.8; }

.objectives-list { padding-left: 1.25rem; color: #374151; line-height: 1.8; }
.objectives-list li { margin-bottom: 0.4rem; }

.curriculum-list { display: flex; flex-direction: column; gap: 0.5rem; }
.curriculum-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 1rem; background: var(--light); border-radius: var(--radius-md); }
.curriculum-week { flex-shrink: 0; font-size: 0.75rem; font-weight: 700; color: var(--primary); background: rgba(27,58,107,0.1); border-radius: 4px; padding: 0.2rem 0.5rem; white-space: nowrap; }
.curriculum-topic { color: #374151; font-size: 0.9rem; }

.campus-info-card { background: var(--light); border-radius: var(--radius-md); padding: 1.25rem; }
.campus-info-card h4 { font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }

/* Prerequisites Card */
.prerequisites-card { display: flex; gap: 1rem; background: var(--light); border-radius: var(--radius-md); padding: 1.25rem; border-left: 4px solid var(--secondary); }
.prerequisites-icon { font-size: 1.5rem; color: var(--secondary); flex-shrink: 0; }
.prerequisites-list { margin: 0; padding-inline-start: 1rem; color: #374151; line-height: 1.8; }
.prerequisites-list li { margin-bottom: 0.35rem; }

/* Sidebar Prerequisites */
.sidebar-prerequisites-label { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 0.4rem; }
.sidebar-prerequisites-list { margin: 0; padding-inline-start: 1.1rem; font-size: 0.82rem; color: #374151; }
.sidebar-prerequisites-list li { margin-bottom: 0.25rem; }
.sidebar-feature-highlight { background: rgba(200,168,107,.12); border-radius: var(--radius-sm); padding: 0.35rem 0.6rem; }

.course-sidebar { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.course-sidebar-thumb img { width: 100%; object-fit: cover; max-height: 200px; }
.course-sidebar-body { padding: 1.5rem; }
.course-sidebar-price { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.sidebar-price-free { font-size: 1.1rem; color: #059669; font-weight: 700; }
.sidebar-price-pkr { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.sidebar-feature { display: flex; align-items: center; gap: 0.5rem; color: #374151; font-size: 0.875rem; padding: 0.4rem 0; border-bottom: 1px solid #F3F4F6; }
.sidebar-feature i { color: var(--primary); }
.sidebar-share { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.sidebar-share span { font-size: 0.8rem; color: #6B7280; }
.sidebar-share a, .sidebar-share button { width: 32px; height: 32px; border-radius: 50%; background: var(--light); border: 1px solid #E5E7EB; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.875rem; cursor: pointer; text-decoration: none; transition: background 0.2s; }
.sidebar-share a:hover, .sidebar-share button:hover { background: var(--primary); color: #fff; }

/* =========================================================
   32. PRINT
   ========================================================= */
@media print {
  .ab-navbar, .ab-mobile-menu, .back-to-top, .news-ticker { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
  .hero-slider { height: auto; padding: 2rem; background: #f0f0f0; }
}


