/* ==========================================================================
   MDM DARUL ULOOM MOHAMMADIYA MADANI MASJID TRUST (MDMDMT) GADARPUR
   International Premium Design System & Enhanced Stylesheet
   Version 2.5 — Ultra-Fast, Responsive, Luxury Emerald & Champagne Gold
   ========================================================================== */

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

/* ==========================================================================
   JAMEEL NOORI NASTALEEQ FONT SYSTEM
   ========================================================================== */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src: local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       local('Jameel Noori Nastaleeq Regular'),
       url('../fonts/jameel-noori-nastaleeq.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/jameel-noori/fonts/jameel-noori-nastaleeq4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JameelNooriNastaliq';
  src: local('Jameel Noori Nastaleeq'),
       local('JameelNooriNastaleeq'),
       url('../fonts/jameel-noori-nastaleeq.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/jameel-noori/fonts/jameel-noori-nastaleeq4.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette */
  --primary: #044e3b;          /* Deep Imperial Islamic Emerald */
  --primary-dark: #022c22;     /* Forest Obsidian */
  --primary-darker: #011d16;
  --primary-light: #0d9488;    /* Luminous Teal */
  --primary-subtle: #ecfdf5;   /* Mint Dew */
  --primary-border: #a7f3d0;
  
  --gold: #b45309;             /* Royal Antique Gold */
  --gold-hover: #92400e;
  --gold-light: #fef3c7;       /* Gold Tint */
  --gold-vibrant: #d97706;     /* Bright Gold Accent */
  --gold-champagne: #fbbf24;   /* Champagne Shimmer */
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
  --gold-glow: 0 0 25px rgba(217, 119, 6, 0.35);

  --slate-900: #0f172a;        /* High Contrast Charcoal */
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  
  --white: #ffffff;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  
  /* Status Colors */
  --success: #15803d;
  --warning: #b45309;
  --danger: #b91c1c;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-arabic: 'Amiri', serif;
  --font-urdu: 'Jameel Noori Nastaleeq', 'JameelNooriNastaliq', 'Noto Nastaliq Urdu', 'Amiri', -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -6px rgba(0, 0, 0, 0.06);
  --shadow-emerald: 0 12px 30px -5px rgba(4, 78, 59, 0.35);
  --shadow-gold: 0 10px 25px -4px rgba(217, 119, 6, 0.35);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1320px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--slate-700);
  line-height: 1.65;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--gold-vibrant);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   TOP BAR (INTERNATIONAL CONTACT & NOTIFICATION)
   ========================================================================== */
.top-bar {
  background: var(--primary-darker);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  padding: 0.5rem 0;
  position: relative;
  z-index: 101;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.top-bar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-badge {
  background: rgba(217, 119, 6, 0.25);
  color: #fbbf24;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid rgba(217, 119, 6, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.top-bar-swift {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.75rem;
  color: #fbbf24;
  white-space: nowrap;
}

/* ==========================================================================
   NAVIGATION HEADER & SOPHISTICATED DROPDOWNS
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.site-header .container {
  max-width: 1440px;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Dropdown Menu System - 3-4 Parent Categories Only */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap !important;
  line-height: 1;
}

.nav-link svg.dropdown-arrow {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link,
.nav-link.active {
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.nav-item:hover > .nav-link svg.dropdown-arrow {
  transform: rotate(180deg);
}

/* Luxury Dropdown Panel */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #d97706;
  min-width: 310px;
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-item:hover {
  background: #f0fdf4;
  transform: translateX(4px);
}

.dropdown-item .item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.dropdown-item:hover .item-title {
  color: var(--primary);
}

.dropdown-item .item-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.45rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #065f46 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(4, 78, 59, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #065f46 0%, var(--primary-dark) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 78, 59, 0.4);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45);
}

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

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

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.48rem 1.1rem;
  font-size: 0.84rem;
  white-space: nowrap !important;
  line-height: 1;
}

.btn-lg {
  padding: 0.95rem 2.15rem;
  font-size: 1.05rem;
}

/* Header Actions Bar */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--slate-800);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1.25rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--slate-500);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-link:hover, .mobile-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-sublinks {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.mobile-sublink {
  font-size: 0.85rem;
  color: var(--slate-600);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
}

.mobile-sublink:hover {
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION (LUXURY ISLAMIC PRESENTATION)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-ornament {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: 
    radial-gradient(rgba(217, 119, 6, 0.25) 1.5px, transparent 0), 
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 0);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-badge-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(254, 243, 199, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: 3.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats-chips {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.5rem;
}

.stat-chip {
  display: flex;
  flex-direction: column;
}

.stat-chip-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
}

.stat-chip-lbl {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(251, 191, 36, 0.35);
  background: var(--slate-900);
}

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

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.floating-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.floating-title {
  font-weight: 800;
  font-size: 0.975rem;
  color: var(--white);
}

.floating-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   STATS BANNER
   ========================================================================== */
.stats-banner {
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 0;
  position: relative;
  margin-top: -2rem;
  z-index: 10;
  border-radius: var(--radius-xl);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 3rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 0 1.25rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--slate-200);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-heading);
}

.stat-number span {
  color: var(--gold-vibrant);
}

.stat-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-top: 0.4rem;
}

/* ==========================================================================
   ABOUT JAMIA SPOTLIGHT (PRESTIGIOUS CLUSTER & EDITORIAL)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: center;
}

.about-images-cluster {
  position: relative;
  padding: 1.5rem 1.5rem 2.5rem 0;
}

.about-img-main {
  width: 90%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(4, 78, 59, 0.25);
  border: 4px solid var(--white);
  display: block;
  transition: transform var(--transition-smooth);
}

.about-img-main:hover {
  transform: scale(1.02);
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 54%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.35);
  border: 4px solid var(--white);
  transition: transform var(--transition-smooth);
}

.about-img-sub:hover {
  transform: scale(1.04);
}

.about-experience-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background: var(--gold-gradient);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  z-index: 3;
}

.badge-years {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text-content h3 {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--primary);
  font-weight: 600;
}

.about-quote {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
}

.history-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 0.5rem 0;
}

.highlight-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--slate-50);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}

.highlight-item:hover {
  background: var(--white);
  border-color: var(--primary-border);
  box-shadow: 0 6px 18px rgba(4, 78, 59, 0.08);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.highlight-text p {
  font-size: 0.825rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--slate-400);
  line-height: 1.65;
  margin-top: 1rem;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-muted {
  background-color: #f1f5f9;
}

.section-white {
  background-color: var(--white);
}

.section-emerald {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-vibrant);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 1.075rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   ENHANCED PHOTO GALLERY (FULL BACKUP INTEGRATION)
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(4, 78, 59, 0.25);
  transform: translateY(-1px);
}

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

.gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.09);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  height: 380px; /* STRICT UNIFORM HEIGHT FOR ALL CARDS - NO CHOTI BADI CARDS */
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -8px rgba(4, 78, 59, 0.25);
  border-color: #fbbf24;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px; /* EXACT SAME HEIGHT FOR ALL PHOTOS */
  min-height: 260px;
  max-height: 260px;
  overflow: hidden;
  background: #0f172a;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* CROPPED UNIFORMLY AT CENTER WITH ZERO DISTORTION */
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.08);
}

.gallery-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(2, 44, 34, 0.8);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  z-index: 2;
}

.gallery-zoom-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.gallery-card-body {
  padding: 1rem 1.25rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-card-badge {
  font-size: 0.725rem;
  color: #d97706;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-desc {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(251, 191, 36, 0.4);
}

.lightbox-caption-text {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.25rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Navigation buttons in Lightbox */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--gold-vibrant);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* ==========================================================================
   ACADEMIC COURSES & PILLARS
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(4, 78, 59, 0.25);
  border-color: var(--gold-vibrant);
}

.course-card-top {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1.85rem;
  border-bottom: 3px solid var(--gold-vibrant);
}

.course-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gold-gradient);
  color: var(--white);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.course-category {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.course-title {
  font-size: 1.35rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

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

.course-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.course-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.885rem;
  color: var(--slate-700);
  font-weight: 500;
}

.course-feat-item svg {
  width: 17px;
  height: 17px;
  fill: var(--primary);
  flex-shrink: 0;
}

.course-meta-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.825rem;
  color: var(--slate-500);
  font-weight: 600;
}

.modern-curriculum-banner {
  margin-top: 3.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 5px solid var(--gold-vibrant);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.modern-banner-text h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.4rem;
}

.modern-banner-text p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin: 0;
  max-width: 680px;
  line-height: 1.6;
}

.modern-subject-chips {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.subject-chip {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-border);
}

.course-feat-item svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  flex-shrink: 0;
}

.course-meta-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.825rem;
  color: var(--slate-500);
}

.badge-free {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* ==========================================================================
   4 INSTITUTIONAL PILLARS
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-champagne);
}

.pillar-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.pillar-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-vibrant);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   SPIRITUAL BOX (QURAN & HADITH)
   ========================================================================== */
.spiritual-box {
  background: linear-gradient(135deg, #022c22 0%, #044e3b 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-emerald);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.25);
}

.spiritual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.spiritual-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.spiritual-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(217, 119, 6, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.spiritual-heading {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.spiritual-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}

.spiritual-ref {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #fbbf24;
  font-weight: 700;
}

/* ==========================================================================
   DONATION & ACCOUNTS SECTION
   ========================================================================== */
.donation-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.donation-details-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
}

.donation-header h3 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.bank-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
}

.bank-detail-row {
  background: var(--slate-50);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.bank-detail-row:hover {
  background: #f1f5f9;
}

.bank-label {
  padding: 0.95rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate-600);
  width: 35%;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.bank-value {
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.copy-btn {
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.donation-qr-box {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 45%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  color: var(--white);
  text-align: center;
  border: 2px solid rgba(251, 191, 36, 0.45);
  box-shadow: var(--shadow-emerald);
  position: relative;
  overflow: hidden;
}

.donation-qr-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.qr-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.donation-qr-box h4 {
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.merchant-name-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.15rem;
}

.qr-white-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 0.85rem;
  margin: 0 auto 1.25rem;
  max-width: 270px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(251, 191, 36, 0.5);
  transition: transform var(--transition-base);
}

.qr-white-card:hover {
  transform: translateY(-2px);
}

.qr-code-img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.qr-card-caption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.upi-id-pill {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.45);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.15rem;
  max-width: 100%;
}

.upi-pill-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.upi-pill-val {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.upi-apps-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.upi-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}

.upi-app-badge:hover {
  transform: translateY(-1px);
}

.gpay-badge {
  background: #ffffff;
  color: #3c4043;
}

.phonepe-badge {
  background: #5f259f;
  color: #ffffff;
}

.phonepe-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: bold;
}

.paytm-badge {
  background: #ffffff;
  color: #002970;
  letter-spacing: -0.02em;
}

.paytm-brand {
  color: #00b9f5;
  font-weight: 900;
}

.bhim-badge {
  background: #ffffff;
  color: #005b9f;
}

.upi-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.donation-causes-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cause-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
}

.cause-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ==========================================================================
   VIDEO & BAYANAAT
   ========================================================================== */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--slate-900);
  cursor: pointer;
}

.video-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}

.video-thumbnail-wrap:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #dc2626;
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 3px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-size: 0.775rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.video-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-speaker {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #011d16;
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--gold-vibrant);
  margin-top: auto;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.footer-col h4 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.35rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--gold-champagne);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.925rem;
}

.site-footer svg,
footer svg {
  max-width: 22px;
  max-height: 22px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: #fbbf24;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #fbbf24;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--slate-900);
  color: var(--white);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  pointer-events: none;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIP INNER PAGE HERO SYSTEM
   ========================================================================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 45%, #044e3b 85%, #065f46 100%);
  color: var(--white);
  padding: 4.5rem 0 5.25rem;
  overflow: hidden;
  border-bottom: 2px solid rgba(251, 191, 36, 0.25);
  text-align: left;
}

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

.page-hero .hero-ornament {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: 
    radial-gradient(rgba(217, 119, 6, 0.25) 1.5px, transparent 0), 
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 0);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.85;
  pointer-events: none;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-hero-top-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  margin: 0;
}

.page-hero .breadcrumbs a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-hero .breadcrumbs a:hover {
  color: #fde68a;
  text-decoration: underline;
}

.page-hero .breadcrumb-sep {
  opacity: 0.5;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(254, 243, 199, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.page-hero-title span.highlight-gold,
.page-hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.page-hero-lead {
  font-size: 1.16rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 650px;
}

.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.25rem;
}

.page-hero-chips {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0.25rem;
}

.page-hero-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.page-hero-chip .chip-icon {
  font-size: 1.15rem;
}

.page-hero-visual {
  position: relative;
}

.page-hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(4, 78, 59, 0.4);
  border: 2.5px solid rgba(251, 191, 36, 0.45);
  background: var(--slate-900);
}

.page-hero-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.page-hero-card:hover img {
  transform: scale(1.03);
}

.page-hero-floating-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.page-hero-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.page-hero-badge-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.3;
}

.page-hero-badge-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 2px;
}

/* RTL (Urdu) Overrides */
[dir="rtl"] .page-hero-title {
  font-size: 3.25rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
}

[dir="rtl"] .page-hero-lead {
  font-size: 1.45rem !important;
  line-height: 2.15 !important;
}

[dir="rtl"] .page-hero .breadcrumbs {
  font-size: 1.15rem !important;
}

[dir="rtl"] .page-hero-badge {
  font-size: 1.15rem !important;
  padding: 0.45rem 1.25rem;
}

[dir="rtl"] .page-hero-badge-title {
  font-size: 1.2rem !important;
}

[dir="rtl"] .page-hero-badge-desc {
  font-size: 1.05rem !important;
}

[dir="rtl"] .page-hero-chip {
  font-size: 1.18rem !important;
}

@media (max-width: 991px) {
  .page-hero {
    padding: 3.5rem 0 4rem;
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .page-hero-card img {
    height: 270px;
  }
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.45rem;
}

.form-control,
.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 2px solid #cbd5e1;
  background: var(--white);
  color: var(--slate-900);
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(4, 78, 59, 0.18);
  background: #ffffff;
}

/* High-Visibility Zakat & Form Inputs */
.zakat-calc-input {
  width: 100%;
  padding: 1rem 1.25rem !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  border: 2.5px solid #94a3b8 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: right;
  direction: ltr;
}

[dir="rtl"] .zakat-calc-input {
  text-align: right !important;
  direction: ltr !important;
}

.zakat-calc-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.zakat-calc-input:hover {
  border-color: #475569 !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1) !important;
}

.zakat-calc-input:focus {
  outline: none !important;
  border-color: #047857 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.22), 0 4px 12px rgba(4, 120, 87, 0.12) !important;
}

.zakat-field-wrap {
  margin-bottom: 1.35rem;
}

.zakat-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 0.5rem !important;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.zakat-field-hint {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

[dir="rtl"] .zakat-field-label {
  font-family: var(--font-urdu);
  font-size: 1.45rem !important;
}

[dir="rtl"] .zakat-field-hint {
  font-family: var(--font-urdu);
  font-size: 1.15rem !important;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & CONTROLS
   ========================================================================== */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  color: var(--slate-800);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--slate-100);
  color: var(--primary);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.mobile-nav-close {
  background: var(--slate-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.mobile-link-sub {
  padding-left: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

.mobile-section-title {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding-left: 0.9rem;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { gap: 3rem; }
  .courses-grid, .pillars-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1140px) {
  .nav-links, .header-actions .btn-sm { display: none; }
  .mobile-toggle { display: flex; }
  .top-bar { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-images-cluster { padding-bottom: 2rem; }
  .about-img-main { width: 100%; height: 380px; }
  .about-img-sub { width: 50%; height: 210px; bottom: -1rem; right: 0; }
  .modern-curriculum-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.35rem; }
  .stats-banner { width: calc(100% - 2rem); margin-top: -1rem; padding: 1.5rem 0.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat-item:nth-child(2)::after { display: none; }
  .about-img-main { height: 290px; }
  .about-img-sub { height: 165px; width: 55%; }
  .about-experience-badge { right: 0.5rem; top: -0.5rem; padding: 0.85rem 1.1rem; }
  .badge-years { font-size: 1.75rem; }
  .history-highlights { grid-template-columns: 1fr; }
  .courses-grid, .pillars-grid, .videos-grid, .spiritual-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .donation-grid { grid-template-columns: 1fr; }
  .donation-details-card, .donation-qr-box { padding: 1.75rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.95rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-img-main { height: 240px; }
  .about-img-sub { height: 140px; width: 60%; }
}

/* ==========================================================================
   PREMIUM BILINGUAL LANGUAGE TOGGLE SWITCH (ENGLISH / URDU)
   ========================================================================== */
.lang-toggle-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 5px rgba(0, 0, 0, 0.04);
  position: relative;
  user-select: none;
  transition: all 0.25s ease;
  vertical-align: middle;
  gap: 2px;
}

.lang-toggle-switch:hover {
  border-color: #94a3b8;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 10px rgba(0, 0, 0, 0.07);
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.32rem 0.82rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap !important;
  line-height: 1.1;
  cursor: pointer;
  border: none;
  outline: none;
}

.lang-toggle-btn:hover:not(.active) {
  color: #064e3b;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.lang-toggle-btn.active {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
  cursor: default;
  pointer-events: none;
}

.lang-toggle-btn[data-lang="en"] {
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.lang-toggle-btn[data-lang="ur"] {
  font-family: var(--font-urdu, 'Jameel Noori Nastaleeq', serif);
  font-size: 1.18rem;
  padding-top: 0.2rem;
  padding-bottom: 0.26rem;
}

[dir="rtl"] .lang-toggle-btn[data-lang="ur"] {
  font-size: 1.25rem;
  padding-top: 0.18rem;
  padding-bottom: 0.25rem;
}

[dir="rtl"] .lang-toggle-btn[data-lang="en"] {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* Mobile Responsiveness for Language Toggle */
@media (max-width: 600px) {
  .lang-toggle-switch {
    padding: 2px;
  }
  .lang-toggle-btn {
    padding: 0.28rem 0.65rem;
    font-size: 0.8rem;
  }
  .lang-toggle-btn[data-lang="ur"] {
    font-size: 1.05rem;
    padding-top: 0.15rem;
    padding-bottom: 0.2rem;
  }
}

/* Drawer Version inside Mobile Navigation Drawer */
.mobile-lang-box .lang-toggle-switch {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mobile-lang-box .lang-toggle-btn {
  padding: 0.4rem 1.1rem;
}

/* Fallback legacy .lang-switch-btn */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(254, 243, 199, 0.95);
  color: #92400e;
  border: 1.5px solid rgba(217, 119, 6, 0.45);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  white-space: nowrap !important;
  line-height: 1;
}

.lang-switch-btn:hover {
  background: #fef3c7;
  color: #78350f;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.top-bar-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--primary-border);
}

.top-bar-lang a {
  color: var(--gold-champagne);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.top-bar-lang a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================================
   URDU & RIGHT-TO-LEFT (RTL) DESIGN SYSTEM
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: var(--font-urdu);
}

[dir="rtl"] body {
  font-family: var(--font-urdu);
  font-size: 1.52rem !important; /* +25% from 1.22rem */
  line-height: 2.0 !important;
  word-spacing: normal;
  letter-spacing: 0;
}

/* Top bar text size */
[dir="rtl"] .top-bar {
  font-size: 1.22rem !important; /* +25% from 0.98rem */
  padding: 0.6rem 0;
}

[dir="rtl"] .top-bar-left,
[dir="rtl"] .top-bar-right {
  gap: 1.5rem;
  font-size: 1.22rem !important;
}

[dir="rtl"] .top-bar a,
[dir="rtl"] .top-bar span {
  font-size: 1.22rem !important;
}

[dir="rtl"] .top-bar-badge {
  font-size: 1.1rem !important; /* +25% from 0.88rem */
  padding: 3px 12px;
}

[dir="rtl"] .top-bar-swift {
  font-size: 1.05rem !important;
  padding: 3px 10px;
}

[dir="rtl"] .top-bar svg {
  width: 17px;
  height: 17px;
}

/* Header & Brand Sizing */
[dir="rtl"] .site-header .container {
  max-width: 1680px;
}

[dir="rtl"] .brand-logo {
  width: 58px;
  height: 58px;
}

[dir="rtl"] .brand-title {
  font-family: var(--font-urdu);
  font-size: 2.12rem !important; /* +25% from 1.7rem */
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  white-space: nowrap;
}

[dir="rtl"] .brand-subtitle {
  display: none !important; /* User explicitly requested removing address under logo */
}

/* Nav Links & Parent Menus */
[dir="rtl"] .nav-links {
  gap: 0.5rem;
}

[dir="rtl"] .nav-link {
  font-family: var(--font-urdu);
  font-size: 1.56rem !important; /* +25% from 1.25rem */
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  line-height: 1.25;
  white-space: nowrap !important;
}

[dir="rtl"] .nav-link svg.dropdown-arrow {
  width: 15px;
  height: 15px;
}

/* Dropdown Menu & Dropdown Items */
[dir="rtl"] .dropdown-menu {
  min-width: 390px;
  padding: 0.85rem;
  border-radius: 14px;
  gap: 0.45rem;
}

[dir="rtl"] .dropdown-item {
  padding: 0.75rem 1.15rem;
  gap: 0.85rem;
}

[dir="rtl"] .dropdown-item .item-title {
  font-family: var(--font-urdu);
  font-size: 1.56rem !important; /* +25% from 1.25rem */
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
}

[dir="rtl"] .dropdown-item .item-sub {
  font-family: var(--font-urdu);
  font-size: 1.25rem !important; /* +25% from 1.0rem */
  font-weight: normal;
  line-height: 1.6;
  color: #475569;
  margin-top: 3px;
}

/* Header Actions & Buttons */
[dir="rtl"] .header-actions {
  flex-direction: row;
  gap: 0.75rem;
}

[dir="rtl"] .lang-switch-btn {
  font-size: 1.3rem !important; /* +25% from 1.05rem */
  padding: 0.5rem 1.15rem;
  line-height: 1.2;
}

[dir="rtl"] .header-actions .btn,
[dir="rtl"] .btn {
  font-family: var(--font-urdu);
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  font-weight: 700;
  padding: 0.55rem 1.55rem;
  line-height: 1.35;
  white-space: nowrap !important;
}

[dir="rtl"] .btn-lg {
  font-size: 1.6rem !important; /* +25% from 1.28rem */
  padding: 0.85rem 2.1rem;
}

[dir="rtl"] .btn-sm {
  font-size: 1.3rem !important;
  padding: 0.45rem 1.1rem;
}

/* Headings & Titles - Tight, natural, no excessive gaps! */
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6,
[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .card-title,
[dir="rtl"] .stat-label {
  font-family: var(--font-urdu);
  font-weight: 700;
  line-height: 1.45 !important;
  letter-spacing: 0;
  word-spacing: normal;
  margin-bottom: 0.75rem;
}

[dir="rtl"] h1 { font-size: 4.0rem !important; }
[dir="rtl"] h2 { font-size: 3.12rem !important; }
[dir="rtl"] h3 { font-size: 2.25rem !important; }
[dir="rtl"] h4 { font-size: 1.85rem !important; }
[dir="rtl"] h5 { font-size: 1.55rem !important; }
[dir="rtl"] h6 { font-size: 1.35rem !important; }

[dir="rtl"] .hero-badge {
  font-size: 1.4rem !important; /* +25% from 1.12rem */
  padding: 0.55rem 1.45rem;
  line-height: 1.4;
  margin-bottom: 0.95rem;
}

[dir="rtl"] .hero-title {
  font-size: 4.0rem !important; /* +25% from 3.2rem */
  line-height: 1.35 !important;
  margin-bottom: 0.95rem;
  word-spacing: 0.02em;
}

[dir="rtl"] .section-title {
  font-size: 3.12rem !important; /* +25% from 2.5rem */
  line-height: 1.4 !important;
  margin-bottom: 0.85rem;
  word-spacing: 0.02em;
}

[dir="rtl"] .section-tag,
[dir="rtl"] .section-badge {
  font-size: 1.25rem !important;
  padding: 0.35rem 1.15rem;
}

[dir="rtl"] .page-hero-title {
  font-size: 3.25rem !important;
  line-height: 1.35 !important;
}

[dir="rtl"] .breadcrumbs {
  font-size: 1.18rem !important;
}

[dir="rtl"] .hero-lead,
[dir="rtl"] .section-lead,
[dir="rtl"] .about-lead,
[dir="rtl"] p {
  font-family: var(--font-urdu);
  font-size: 1.56rem !important; /* +25% from 1.25rem */
  line-height: 2.0 !important;
  word-spacing: normal;
  margin-bottom: 1.15rem;
}

[dir="rtl"] .bismillah-calligraphy {
  font-family: 'Amiri', serif;
  font-size: 2.25rem !important; /* +25% from 1.8rem */
  line-height: 1.6;
  word-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

/* Cards & Grid Items */
[dir="rtl"] .card-title,
[dir="rtl"] .pillar-title,
[dir="rtl"] .course-title {
  font-size: 2.0rem !important; /* +25% from 1.6rem */
  line-height: 1.45 !important;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

[dir="rtl"] .card-desc,
[dir="rtl"] .pillar-desc,
[dir="rtl"] .course-desc {
  font-size: 1.48rem !important; /* +25% from 1.18rem */
  line-height: 1.95 !important;
}

[dir="rtl"] .course-feat-item {
  font-size: 1.4rem !important; /* +25% from 1.12rem */
  line-height: 1.8;
}

[dir="rtl"] .stat-label {
  font-size: 1.5rem !important; /* +25% from 1.2rem */
  line-height: 1.5;
}

[dir="rtl"] .stat-chip-label,
[dir="rtl"] .stat-chip-lbl {
  font-size: 1.38rem !important; /* +25% from 1.1rem */
}

[dir="rtl"] .stat-chip-num {
  font-size: 1.5rem !important;
}

/* Bank Details Table - Proper sizing & spacing */
[dir="rtl"] .bank-detail-row {
  padding: 1rem 1.15rem;
}

[dir="rtl"] .bank-label {
  font-size: 1.48rem !important; /* +25% from 1.18rem */
  font-weight: 700;
  line-height: 1.5;
}

[dir="rtl"] .bank-value {
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 1.5;
}

[dir="rtl"] .bank-value .copy-btn {
  font-size: 1.25rem !important; /* +25% from 1.0rem */
  padding: 0.45rem 1rem;
}

/* RTL Donation QR Box */
[dir="rtl"] .donation-qr-box h4 {
  font-family: var(--font-urdu);
  font-size: 1.95rem !important; /* +25% from 1.55rem */
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

[dir="rtl"] .qr-header-badge {
  font-family: var(--font-urdu);
  font-size: 1.32rem !important; /* +25% from 1.05rem */
  line-height: 1.35;
}

[dir="rtl"] .merchant-name-title {
  font-size: 1.18rem !important;
  letter-spacing: 0.03em;
}

[dir="rtl"] .qr-card-caption {
  font-family: var(--font-urdu);
  font-size: 1.2rem !important; /* +25% from 0.95rem */
  line-height: 1.45;
}

[dir="rtl"] .upi-pill-label {
  font-family: var(--font-urdu);
  font-size: 1.32rem !important; /* +25% from 1.05rem */
}

[dir="rtl"] .upi-pill-val {
  font-size: 1.25rem !important;
}

[dir="rtl"] .upi-id-pill .copy-btn {
  font-size: 1.2rem !important;
  padding: 0.35rem 0.95rem;
}

[dir="rtl"] .upi-app-badge {
  font-size: 1.02rem !important; /* +25% from 0.82rem */
  padding: 0.35rem 0.85rem;
}

[dir="rtl"] .cause-item {
  font-family: var(--font-urdu);
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 1.95;
}

/* Footer Sizing & Spacing */
[dir="rtl"] .footer-title {
  font-size: 1.7rem !important; /* +25% from 1.35rem */
  font-weight: 700;
  margin-bottom: 1.15rem;
}

[dir="rtl"] .footer-desc {
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 1.95;
}

[dir="rtl"] .footer-links a {
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 2.1;
}

[dir="rtl"] .footer-contact-item {
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 1.9;
}

[dir="rtl"] .footer-bottom {
  font-size: 1.32rem !important; /* +25% from 1.05rem */
}

/* Mobile Navigation */
[dir="rtl"] .mobile-link {
  font-family: var(--font-urdu);
  font-size: 1.56rem !important; /* +25% from 1.25rem */
  line-height: 1.6;
}

[dir="rtl"] .mobile-section-title {
  font-family: var(--font-urdu);
  padding-left: 0;
  padding-right: 0.9rem;
  font-size: 1.32rem !important; /* +25% from 1.05rem */
  letter-spacing: 0.02em;
}

[dir="rtl"] .mobile-link-sub {
  font-family: var(--font-urdu);
  padding-left: 0.9rem;
  padding-right: 1.75rem;
  font-size: 1.44rem !important; /* +25% from 1.15rem */
  line-height: 1.65;
}

/* Form Inputs & Controls */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  font-size: 1.35rem !important;
  font-family: var(--font-urdu);
}

[dir="rtl"] label {
  font-size: 1.38rem !important;
  font-family: var(--font-urdu);
}

[dir="rtl"] .filter-btn {
  font-size: 1.38rem !important;
  font-family: var(--font-urdu);
}

[dir="rtl"] .about-experience-badge {
  right: auto;
  left: 1.5rem;
  text-align: center;
}

[dir="rtl"] .about-img-sub {
  right: auto;
  left: -1.75rem;
}

[dir="rtl"] .stat-item:not(:last-child)::after {
  right: auto;
  left: 0;
}

[dir="rtl"] .history-card {
  border-left: none;
  border-right: 3px solid var(--gold);
}

[dir="rtl"] .table-accounts th,
[dir="rtl"] .table-accounts td,
[dir="rtl"] .styled-table th,
[dir="rtl"] .styled-table td {
  text-align: right;
}

[dir="rtl"] .copy-btn {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .bank-acc-badge {
  margin-left: 0;
  margin-right: 0.5rem;
}

[dir="rtl"] .badge-icon,
[dir="rtl"] .btn svg,
[dir="rtl"] .hero-badge svg {
  margin-right: 0;
  margin-left: 0.4rem;
}

[dir="rtl"] .lightbox-prev {
  left: auto;
  right: 20px;
}

[dir="rtl"] .lightbox-next {
  right: auto;
  left: 20px;
}

[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
  direction: rtl;
  font-family: var(--font-urdu);
}

[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="number"]:not(.zakat-calc-input),
[dir="rtl"] .account-num-display,
[dir="rtl"] .ifsc-code-display {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .zakat-calc-input {
  direction: ltr !important;
  text-align: right !important;
}

[dir="rtl"] .modern-curriculum-banner {
  text-align: right;
}

[dir="rtl"] .footer-links a svg {
  transform: scaleX(-1);
  margin-right: 0;
  margin-left: 0.35rem;
}

[dir="rtl"] .hero-floating-badge {
  right: auto;
  left: -1rem;
}

[dir="rtl"] .floating-icon {
  margin-right: 0;
  margin-left: 0.85rem;
}

[dir="rtl"] .highlight-item {
  flex-direction: row;
}

[dir="rtl"] .highlight-icon {
  margin-right: 0;
  margin-left: 0.75rem;
}

[dir="rtl"] .course-feat-item svg {
  margin-right: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

[dir="rtl"] .bank-detail-row {
  flex-direction: row;
}

[dir="rtl"] .bank-label {
  text-align: right;
  border-right: none;
  border-left: 1px solid var(--slate-200);
}

[dir="rtl"] .bank-value {
  text-align: right;
}

[dir="rtl"] .bank-value .copy-btn {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .cause-item {
  text-align: right;
}

[dir="rtl"] .cause-bullet {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .footer-contact-item svg {
  margin-right: 0;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

[dir="rtl"] .spiritual-card-badge {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .spiritual-ref {
  text-align: left;
  direction: ltr;
}

[dir="rtl"] .top-bar-lang {
  direction: ltr;
}

/* RTL Mobile Drawer */
[dir="rtl"] .mobile-nav-panel {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0) !important;
}

/* Numerals & Aims Badges - Geometric Centering */
.aim-num-badge,
.dept-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  font-family: 'Amiri', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 1.32rem !important;
  font-weight: 700;
  line-height: 1 !important;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.aim-badge-primary {
  background: var(--primary);
  color: #ffffff;
}

.aim-badge-gold {
  background: var(--gold-vibrant);
  color: #1a1a1a;
}

/* Mobile Responsive Bank Detail Table */
@media (max-width: 640px) {
  .bank-detail-table,
  .bank-detail-table tbody,
  .bank-detail-row,
  .bank-label,
  .bank-value {
    display: block !important;
    width: 100% !important;
  }
  .bank-label {
    padding-bottom: 0.35rem !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    border-left: none !important;
    border-right: none !important;
  }
  .bank-value {
    padding-top: 0.35rem !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .bank-value .copy-btn {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   CONSTRUCTION & DONATION PROJECT BREAKDOWN STYLES (ENGLISH & URDU)
   ========================================================================== */
.project-box {
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.project-box-masjid {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
}

.project-box-tahfeez {
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
}

.project-box-land {
  background: #fffbeb;
  border: 2px solid #fde68a;
}

.project-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-tag-badge {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

.project-cost-display {
  text-align: right;
}

.project-cost-amount {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  font-family: monospace, var(--font-sans);
}

.project-cost-words {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--slate-600);
}

.project-desc-para {
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
}

/* Project Items Grid */
.project-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.15rem;
}

.project-item-card {
  background: #ffffff;
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.project-item-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.5;
}

.project-item-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: monospace, var(--font-sans);
  white-space: nowrap;
}

/* RTL (Urdu) Overrides for Enhanced Readability */
[dir="rtl"] .project-box {
  padding: 2.75rem;
}

[dir="rtl"] .project-tag-badge {
  font-size: 1.35rem !important;
  padding: 0.45rem 1.35rem;
}

[dir="rtl"] .project-title {
  font-size: 2.6rem !important;
  line-height: 1.4 !important;
}

[dir="rtl"] .project-cost-display {
  text-align: left;
}

[dir="rtl"] .project-cost-amount {
  font-size: 2.4rem !important;
  font-weight: 800;
}

[dir="rtl"] .project-cost-words {
  font-size: 1.45rem !important;
  font-weight: 600;
  color: var(--slate-700);
}

[dir="rtl"] .project-desc-para {
  font-size: 1.55rem !important;
  line-height: 2.2 !important;
  color: var(--slate-800);
  margin-bottom: 1.75rem;
}

[dir="rtl"] .project-breakdown-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

[dir="rtl"] .project-item-card {
  padding: 1.25rem 1.6rem;
  border: 1.5px solid #cbd5e1;
}

[dir="rtl"] .project-item-name {
  font-size: 1.55rem !important;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.85;
}

[dir="rtl"] .project-item-amount {
  font-size: 1.6rem !important;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

/* General Typography Elevation for Readability */
[dir="rtl"] .section-title {
  font-size: 3.2rem !important;
}

[dir="rtl"] .section-lead {
  font-size: 1.55rem !important;
  line-height: 2.1 !important;
}

[dir="rtl"] .bank-detail-table .bank-label {
  font-size: 1.45rem !important;
}

[dir="rtl"] .bank-detail-table .bank-value span {
  font-size: 1.55rem !important;
}

[dir="rtl"] .bank-detail-table .bank-value .copy-btn {
  font-size: 1.2rem !important;
}

/* English Readability Improvements */
p, li {
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-lead {
  font-size: 1.25rem !important;
  line-height: 1.9 !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE-FIRST RESPONSIVE OPTIMIZATION SYSTEM (ENGLISH & URDU)
   ========================================================================== */

/* 1. Global Viewport & Horizontal Overflow Prevention */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

/* 2. Container Mobile Width & Padding */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* 3. Header & Navigation Bar on Mobile */
@media (max-width: 1140px) {
  .site-header {
    width: 100% !important;
    max-width: 100vw !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .site-header .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .header-inner {
    padding: 0.45rem 0 !important;
    gap: 0.4rem !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .brand-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }

  .brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    object-fit: contain;
  }

  .brand-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .brand-title {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    color: var(--primary) !important;
  }

  .brand-subtitle {
    display: none !important;
  }

  [dir="rtl"] .brand-title {
    font-family: var(--font-urdu) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  [dir="rtl"] .brand-logo {
    width: 44px !important;
    height: 44px !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    flex-shrink: 0 !important;
  }

  .header-actions .btn-sm {
    display: none !important;
  }

  .mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    border-radius: 8px !important;
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    color: #064e3b !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .mobile-toggle svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.35rem 0 !important;
    gap: 0.35rem !important;
  }

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

  .brand-title {
    font-size: 0.78rem !important;
  }

  [dir="rtl"] .brand-title {
    font-size: 1.15rem !important;
  }

  [dir="rtl"] .brand-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .mobile-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 6px !important;
  }
}

@media (max-width: 360px) {
  .brand-title {
    font-size: 0.7rem !important;
  }
  [dir="rtl"] .brand-title {
    font-size: 1.02rem !important;
  }
}

/* 4. Language Toggle Mobile Adaptation */
@media (max-width: 768px) {
  .lang-toggle-switch {
    padding: 2px !important;
    gap: 1px !important;
  }

  .lang-toggle-btn {
    padding: 0.28rem 0.58rem !important;
    font-size: 0.76rem !important;
  }

  .lang-toggle-btn[data-lang="ur"] {
    font-size: 1.05rem !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.2rem !important;
  }

  .lang-toggle-btn svg {
    display: none !important; /* Hide tiny translate icon on small screens to save width */
  }
}

@media (max-width: 400px) {
  .lang-toggle-btn {
    padding: 0.24rem 0.42rem !important;
    font-size: 0.72rem !important;
  }
  .lang-toggle-btn[data-lang="ur"] {
    font-size: 0.95rem !important;
  }
}

/* 5. Hero Sections, Page Heros & Breadcrumbs */
@media (max-width: 991px) {
  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-visual,
  .page-hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .hero-card img,
  .page-hero-card img {
    width: 100% !important;
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: var(--radius-lg, 16px) !important;
  }

  /* Prevent floating badges from pushing screen out horizontally */
  .hero-floating-badge,
  .page-hero-floating-badge {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  .hero,
  .page-hero {
    padding: 2.25rem 0 2.5rem !important;
  }

  .page-hero-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .page-hero .breadcrumbs {
    flex-wrap: wrap !important;
    white-space: normal !important;
    gap: 0.35rem 0.5rem !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }

  [dir="rtl"] .page-hero .breadcrumbs {
    font-size: 1.05rem !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }

  [dir="rtl"] .hero-title {
    font-size: 2.25rem !important;
    line-height: 1.35 !important;
  }

  .page-hero-title {
    font-size: 2.05rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
  }

  [dir="rtl"] .page-hero-title {
    font-size: 2.25rem !important;
    line-height: 1.35 !important;
  }

  .section-title {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }

  [dir="rtl"] .section-title {
    font-size: 2.15rem !important;
    line-height: 1.35 !important;
  }

  .hero-lead,
  .page-hero-lead,
  .section-lead,
  .about-lead {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.25rem !important;
  }

  [dir="rtl"] .hero-lead,
  [dir="rtl"] .page-hero-lead,
  [dir="rtl"] .section-lead,
  [dir="rtl"] .about-lead,
  [dir="rtl"] p {
    font-size: 1.32rem !important;
    line-height: 1.85 !important;
  }

  [dir="rtl"] .bismillah-calligraphy {
    font-size: 1.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Full-width Stacked Action Buttons on Mobile */
  .hero-ctas,
  .page-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-ctas .btn,
  .page-hero-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1.05rem !important;
  }

  [dir="rtl"] .hero-ctas .btn,
  [dir="rtl"] .page-hero-actions .btn {
    font-size: 1.35rem !important;
  }

  /* Hero Stats Chips 2x2 Grid */
  .hero-stats-chips {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding-top: 1.25rem !important;
    width: 100% !important;
  }

  .stat-chip {
    width: 100% !important;
  }

  .stat-chip-num {
    font-size: 1.45rem !important;
  }

  .stat-chip-lbl {
    font-size: 0.78rem !important;
  }

  [dir="rtl"] .stat-chip-lbl {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  /* Page Hero Chips */
  .page-hero-chips {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }

  .page-hero-chip {
    font-size: 0.8rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  [dir="rtl"] .page-hero-chip {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
  [dir="rtl"] .hero-title {
    font-size: 1.95rem !important;
  }

  .page-hero-title {
    font-size: 1.7rem !important;
  }
  [dir="rtl"] .page-hero-title {
    font-size: 1.95rem !important;
  }

  .section-title {
    font-size: 1.6rem !important;
  }
  [dir="rtl"] .section-title {
    font-size: 1.85rem !important;
  }

  [dir="rtl"] p,
  [dir="rtl"] .hero-lead,
  [dir="rtl"] .page-hero-lead,
  [dir="rtl"] .section-lead {
    font-size: 1.22rem !important;
    line-height: 1.8 !important;
  }
}

/* 6. Zakat Calculator & Form Controls on Mobile */
@media (max-width: 768px) {
  .zakat-calculator-card,
  .zakat-calc-card,
  .calc-card,
  .tool-card {
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .zakat-calc-input,
  .form-control,
  .form-input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1.15rem !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
  }

  .zakat-actions-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  #btnCalculateZakat,
  #btnResetZakat {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .zakat-result-card,
  #zakatResultBox {
    padding: 1.25rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .nisab-badge-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1rem !important;
    gap: 0.5rem !important;
  }
}

/* 7. Grid Systems, Cards, Tables & Projects on Mobile */
@media (max-width: 768px) {
  .courses-grid,
  .pillars-grid,
  .videos-grid,
  .spiritual-grid,
  .gallery-grid,
  .aims-grid,
  .donation-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .project-box {
    padding: 1.5rem 1.15rem !important;
  }

  .project-item-card {
    padding: 1rem 1.15rem !important;
  }

  [dir="rtl"] .project-item-name {
    font-size: 1.35rem !important;
  }

  [dir="rtl"] .project-item-amount {
    font-size: 1.4rem !important;
  }

  /* Table Cards on Mobile */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* 8. Mobile Navigation Drawer Enhancements */
.mobile-nav-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-nav-drawer.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-nav-panel {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 320px !important;
  max-width: 86vw !important;
  background: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
}

.mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0) !important;
}

[dir="rtl"] .mobile-nav-panel {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important;
}

[dir="rtl"] .mobile-nav-drawer.open .mobile-nav-panel {
  transform: translateX(0) !important;
}

.mobile-nav-header {
  padding: 1rem 1.25rem !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

.mobile-nav-close {
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e2e8f0 !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 1.5rem !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.mobile-nav-close:hover {
  background: #cbd5e1 !important;
  color: #0f172a !important;
}

.mobile-link {
  display: flex !important;
  align-items: center !important;
  padding: 0.85rem 1.25rem !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  text-decoration: none !important;
  min-height: 48px !important;
  transition: all 0.15s ease !important;
}

[dir="rtl"] .mobile-link {
  font-family: var(--font-urdu) !important;
  font-size: 1.38rem !important;
  line-height: 1.4 !important;
  padding: 0.75rem 1.25rem !important;
}

.mobile-link:hover,
.mobile-link.active {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.mobile-link-sub {
  padding-left: 2rem !important;
  font-size: 0.92rem !important;
  color: #475569 !important;
}

[dir="rtl"] .mobile-link-sub {
  padding-left: 1.25rem !important;
  padding-right: 2rem !important;
  font-size: 1.28rem !important;
}

.mobile-section-title {
  padding: 0.65rem 1.25rem 0.35rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: #f8fafc !important;
}

[dir="rtl"] .mobile-section-title {
  font-family: var(--font-urdu) !important;
  font-size: 1.15rem !important;
  color: #64748b !important;
  letter-spacing: 0 !important;
}

/* 9. Mobile Sticky Bottom Quick-Action Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px !important;
  }

  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #e2e8f0 !important;
    z-index: 9999 !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  .mobile-bar-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    gap: 3px !important;
    flex: 1 !important;
    padding: 6px 4px !important;
    transition: color 0.15s ease !important;
  }

  [dir="rtl"] .mobile-bar-item {
    font-family: var(--font-urdu) !important;
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
  }

  .mobile-bar-item svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
  }

  .mobile-bar-item:hover,
  .mobile-bar-item:active {
    color: #047857 !important;
  }

  .mobile-bar-item.mobile-bar-donate {
    color: #b45309 !important;
  }

  .mobile-bar-item.mobile-bar-donate:hover {
    color: #92400e !important;
  }
}


