/* ==========================================================================
   QADRI WELFARE MISSION - MASTER STYLESHEET
   Aesthetics: Luxurious Islamic Modern Visual Design with Gold & Deep Navy
   ========================================================================== */

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

/* ==========================================================================
   CUSTOM TYPOGRAPHY (BOMBAY BLACK, MEHR NASTALIQ, QURANIC ARABIC)
   ========================================================================== */
@font-face {
  font-family: 'Bombay Black';
  src: url('../assets/font/Bombay%20Black%20Unicode.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mehr';
  src: url('../assets/font/mehr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quranic';
  src: url('../assets/font/Quran%20(1).ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Custom Typography Utilities */
.font-bombay {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

.font-mehr {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

.font-quranic {
  font-family: 'Quranic', 'Amiri', serif !important;
}

:root {
  /* Color Tokens */
  --bg-page: #FBF8F3;
  --bg-card: #FFFFFF;
  --bg-navy-dark: #07101E;
  --bg-navy-hero: #091728;
  --bg-navy-card: #0D1B2A;
  --bg-navy-light: #112239;
  
  --gold-primary: #C69A43;
  --gold-bright: #D4AF37;
  --gold-light: #FCE09B;
  --gold-hover: #A88132;
  --gold-bg: #FAF3E8;

  --blue-soft: #EBF3FA;
  --blue-accent: #1E3A8A;
  
  --text-dark: #1A2433;
  --text-muted: #64748B;
  --text-light: #E2E8F0;
  --text-gold: #D4AF37;
  
  --border-gold: rgba(198, 154, 67, 0.25);
  --border-light: #E5E7EB;

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-heading: 'Mehr', 'Noto Nastaliq Urdu', serif;
  --font-arabic: 'Quranic', 'Amiri', serif;
  --font-urdu: 'Mehr', 'Noto Nastaliq Urdu', serif;
  --font-sans: 'Outfit', sans-serif;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(7, 16, 30, 0.15);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.25);
}

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

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

#publications,
#magazine,
#blog,
#academy,
#welfare,
#gallery,
#about,
#contact,
#offer {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Headings & Bold Titles */
h1, h2, h3,
.hero-title,
.section-title-large,
.card-title-lg,
.about-title-large,
.darul-english-main-title,
.glass-english-title,
.bold-heading,
.font-bold-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Urdu Bold Headlines - Mehr Nastaliq */
.bombay-black,
.urdu-bold,
[lang="ur"] h1,
[lang="ur"] h2,
[lang="ur"] h3 {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-weight: 700;
}

/* Urdu Typography - Mehr Nastaliq Web with Zero Letter Spacing */
.urdu-text,
[lang="ur"],
.font-urdu,
.writer-showcase-name,
.writer-showcase-role,
.writer-stat-item-label,
.writer-showcase-card p,
.btn-writer-view-profile,
.blog-hero-arabic-title,
.mag-stat-label,
.mag-card-label,
.editorial-role-tag,
.dept-card-urdu-title,
.dept-sub-urdu,
.mag-spotlight-urdu-title,
.mag-card-urdu-title,
.editorial-urdu-name,
.modern-card-urdu-title,
.writer-name,
.writer-card-name,
.urdu-badge,
.mag-pill-btn,
.mag-author-name,
.mag-title-urdu,
.writer-bio-urdu {
  font-family: 'Mehr', serif !important;
  letter-spacing: 0px !important;
  word-spacing: normal !important;
}

/* Arabic Typography - Quranic Font */
.arabic-text,
.quranic-text,
[lang="ar"],
.font-arabic,
.arabic-calligraphy-banner .arabic-text,
.glass-arabic-title,
.darul-arabic-main-title,
.arabic-footer-heading,
.darul-arabic-title,
.quran-ayah {
  font-family: 'Quranic', serif !important;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background-color: var(--bg-navy-dark);
  border-bottom: 1px solid var(--border-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 24px;
}

.brand-logo img {
  height: 52px;
  max-width: 240px;
  object-fit: contain;
}

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

.nav-item {
  color: #CBD5E1;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  padding: 8px 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--gold-bright);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold-bright);
  border-radius: 2px;
}

.nav-dropdown-icon {
  font-size: 0.75rem;
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-login-btn {
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.header-login-btn:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  border-color: var(--gold-bright);
}

/* Facebook-Style Scholar Profile DP in Header */
.header-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  padding: 4px 14px 4px 5px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: none !important;
}

.header-profile-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transform: none !important;
}

.header-profile-btn.logged-in:hover {
  transform: none !important;
}

.header-profile-btn.logged-in .header-avatar-img {
  transform: none !important;
  transition: none !important;
}

.header-profile-btn.logged-in {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: var(--gold-bright);
}

.header-avatar-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.8px solid var(--gold-bright);
  display: block;
  background-color: #07101E;
}

.header-avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: #10B981;
  border: 2px solid #07101E;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.header-profile-name {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-urdu), 'Segoe UI', sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.header-logout-btn {
  padding: 8px 12px;
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.header-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: #EF4444;
}

/* Mobile Drawer Profile Enhancements */
.mobile-btn-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-urdu), 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.mobile-btn-profile:hover {
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.25);
}

.mobile-drawer-dp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-bright);
}

.mobile-btn-write {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-btn-edit-prof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  padding: 9px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.donate-btn {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 50%, var(--gold-primary) 100%);
  color: var(--bg-navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.65) 0%, rgba(9, 23, 40, 0.20) 45%, rgba(7, 16, 30, 0.65) 100%),
              url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 50px 0 24px 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -15px 30px rgba(7, 16, 30, 0.7);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hero Left Column */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 18px;
  color: #FFFFFF;
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero-donate-btn {
  background: linear-gradient(135deg, #FDE68A 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.45);
}

.hero-auth-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition);
}

.hero-auth-btn:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Hero Metrics Row (Opposite to Calligraphy Banner) */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.metric-icon {
  color: var(--gold-bright);
  font-size: 1.25rem;
  margin-top: 2px;
}

.metric-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFFFFF;
  line-height: 1.2;
}

.metric-label {
  font-size: 0.76rem;
  color: #CBD5E1;
}

/* Hero Right Column (Calligraphy Banner placed at bottom right to reveal dome & face metrics) */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: auto;
  padding-bottom: 4px;
}

.arabic-calligraphy-banner {
  background: rgba(13, 27, 42, 0.78);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(14px);
  padding: 8px 22px;
  border-radius: 50px;
  text-align: center;
  margin-bottom: 4px;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 0 12px rgba(212, 175, 55, 0.2);
  max-width: 100%;
  width: auto;
}

.arabic-calligraphy-banner .arabic-text {
  font-family: 'Quranic', serif !important;
  font-size: 1.5rem;
  color: var(--gold-bright);
  line-height: 1.25;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   LATEST PUBLICATIONS SECTION
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-subtitle-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.section-title-large {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.section-desc-text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-top: 10px;
}

.btn-view-all {
  background: var(--gold-bg);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-view-all:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
}

.publications-carousel-container {
  position: relative;
}

/* ==========================================================================
   COMPACT PUBLICATIONS & 50/50 SPLIT LAYOUT
   ========================================================================== */
.publications-section-compact {
  padding-top: 24px !important;
  padding-bottom: 20px !important;
  background-color: var(--bg-page);
  position: relative;
}

#magazine.section-padding,
.magazine-section-compact {
  padding-top: 22px !important;
}

.publications-header-compact {
  margin-bottom: 22px !important;
}

.publications-header-compact .section-title-large {
  font-size: 1.75rem;
}

.publications-header-compact .section-desc-text {
  max-width: 580px;
  font-size: 0.94rem;
  margin-top: 5px;
}

/* 50/50 Split Grid (Retained for legacy if needed) */
.pub-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* Full Grid for Al-Qadri Publications (Clean, balanced multi-card layout) */
.pub-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1100px) {
  .pub-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .pub-full-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Left Half: Single Large Featured Publication Card (Matching Dar-ul-Isha'at) */
.pub-books-half {
  display: flex;
  flex-direction: column;
}

.pub-single-feature-card,
.pub-single-feature-card.glass-card-pub {
  background: transparent;
  border-radius: 24px;
  border: 1.5px solid rgba(212, 175, 55, 0.42);
  box-shadow: 0 16px 42px rgba(7, 16, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 26px 24px;
  height: 100%;
  min-height: 440px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: center;
  position: relative;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  isolation: isolate;
}

.pub-single-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright), var(--gold-primary));
  z-index: 3;
}

.pub-single-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 22px 50px rgba(198, 154, 67, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Glass backdrop layer with antique Islamic books & quill image */
.pub-glass-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.pub-glass-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(10px) saturate(1.12) brightness(1.02);
  transform: scale(1.1);
  opacity: 0.34;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.pub-single-feature-card:hover .pub-glass-bg-img {
  transform: scale(1.15);
  opacity: 0.42;
}

.pub-glass-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(254, 250, 242, 0.78) 55%,
    rgba(251, 244, 230, 0.82) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.pub-glass-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.pub-glass-inner-border {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.38);
  border-radius: 18px;
  pointer-events: none;
  z-index: 1;
}

.pub-single-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pub-single-mockup {
  perspective: 1000px;
  padding: 6px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pub-single-perspective {
  height: 295px !important;
  width: 190px;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pub-single-feature-card:hover .pub-single-perspective {
  transform: rotateY(-8deg) rotateX(3deg) scale(1.04) translateY(-6px);
}

.pub-single-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.pub-tag-badge-gold {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9A7512;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  text-transform: uppercase;
}

.pub-featured-urdu-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.75rem;
  color: var(--bg-navy-dark);
  line-height: 1.4;
  margin: 2px 0 0px;
  letter-spacing: 0px !important;
}

.pub-featured-eng-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px;
}

.pub-featured-author {
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.pub-featured-author i {
  color: var(--gold-primary);
}

.pub-featured-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-featured-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.pub-spec-chip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.74rem;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pub-spec-chip i {
  color: var(--gold-primary);
  font-size: 0.76rem;
}

.pub-featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.btn-pub-preview-main {
  flex: 1;
  text-align: center;
  background: var(--bg-navy-dark);
  border: 1px solid var(--bg-navy-dark);
  color: #FFFFFF;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: 0px !important;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.btn-pub-preview-main:hover {
  background: var(--gold-primary);
  color: var(--bg-navy-dark);
  border-color: var(--gold-primary);
}

.btn-pub-order-main {
  text-align: center;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: 0px !important;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.btn-pub-order-main:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  border-color: var(--gold-bright);
}

@media (max-width: 900px) {
  .pub-single-feature-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pub-single-details {
    align-items: center;
  }
  .pub-featured-author {
    justify-content: center;
  }
}

.pub-half-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.pub-half-pill i {
  color: var(--gold-primary);
  margin-right: 6px;
}

.pub-pill-sub {
  font-size: 0.74rem;
  color: var(--gold-primary);
  font-weight: 600;
  background: var(--gold-bg);
  padding: 2px 10px;
  border-radius: 50px;
  border: 1px solid var(--border-gold);
}

.pub-two-books-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

/* Compact Book Card */
.pub-compact-book-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 16px 14px 14px 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(7, 16, 30, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.pub-compact-book-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 16px 32px rgba(7, 16, 30, 0.1);
}

.pub-compact-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-box.compact-mockup {
  margin-bottom: 12px;
  padding: 8px 6px 18px 6px;
  perspective: 900px;
}

.compact-perspective {
  height: 215px !important;
  max-width: 142px;
  margin: 0 auto;
}

.pub-compact-book-card:hover .compact-perspective {
  transform: rotateY(-6deg) rotateX(2deg) scale(1.03) translateY(-6px);
}

.pub-compact-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pub-tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #9A7512;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.pub-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pub-card-meta {
  font-size: 0.77rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.pub-card-meta i {
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.pub-card-specs {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 12px;
}

.pub-card-specs i {
  color: var(--gold-primary);
  margin-right: 3px;
}

.pub-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-pub-preview {
  flex: 1;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-pub-preview:hover {
  background: var(--gold-primary);
  color: #07101E;
  border-color: var(--gold-primary);
}

.btn-pub-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-pub-action:hover {
  background: var(--gold-bright);
  color: #07101E;
  transform: translateX(2px);
}

/* Right Half: Single Featured Glass Card */
.pub-features-half {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   DAR-UL-ISHA'AT WAT-TAHQEEQ - MEHRAB ARCH GLASS CARD
   ========================================================================== */

/* Outer Mehrab Arched Frame */
.darul-mehrab-arch-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: rgba(212, 175, 55, 0.08);
  border: 2px solid var(--border-gold);
  border-radius: 140px 140px 20px 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.darul-mehrab-arch-wrapper:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 18px 45px rgba(212, 175, 55, 0.28), 0 0 25px rgba(212, 175, 55, 0.3);
  transform: translateY(-4px);
}

.mehrab-corner-tl,
.mehrab-corner-tr {
  position: absolute;
  color: var(--gold-bright);
  font-size: 1.15rem;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  pointer-events: none;
}
.mehrab-corner-tl { top: -6px; left: -6px; }
.mehrab-corner-tr { top: -6px; right: -6px; }

/* The Glass Card Inside with Arch Curvature */
.darul-ishaat-glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 440px;
  border-radius: 134px 134px 16px 16px;
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.35);
  transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  isolation: isolate;
  cursor: pointer;
}

/* Background Image with Zoom on Hover */
.glass-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -2;
}

.darul-ishaat-glass-card:hover .glass-card-bg-img {
  transform: scale(1.05);
}

/* Clear Glass Overlay - High Visibility, NO heavy blur so the library picture is clear */
.glass-card-overlay,
.glass-card-overlay.clear-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.45) 0%,
    rgba(7, 16, 30, 0.20) 35%,
    rgba(7, 16, 30, 0.65) 75%,
    rgba(7, 16, 30, 0.88) 100%
  ) !important;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
  z-index: -1;
  transition: background 0.4s ease;
}

.darul-ishaat-glass-card:hover .glass-card-overlay,
.darul-ishaat-glass-card:hover .glass-card-overlay.clear-glass {
  background: linear-gradient(
    180deg,
    rgba(7, 16, 30, 0.35) 0%,
    rgba(7, 16, 30, 0.15) 35%,
    rgba(7, 16, 30, 0.58) 75%,
    rgba(7, 16, 30, 0.82) 100%
  ) !important;
}

/* Inner Gold Accent Arch Stroke */
.glass-card-inner-border {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 124px 124px 10px 10px;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Gold Shimmer */
.glass-card-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.22) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Inner Content Layout */
.glass-card-inner {
  position: relative;
  z-index: 2;
  padding: 34px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

/* Top Header Bar */
.glass-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.glass-dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(7, 16, 30, 0.72);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.glass-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 16, 30, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Middle Titles & Content */
.glass-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto 0;
  padding: 4px 0;
}

.glass-arabic-title {
  font-family: 'Mehr', var(--font-arabic, 'Amiri', serif) !important;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.3;
  margin-bottom: 6px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 0, 0, 0.85);
  direction: rtl;
  text-align: center;
  letter-spacing: 0px !important;
}

.glass-english-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.glass-desc {
  font-size: 0.92rem;
  color: #F8FAFC;
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

/* Feature Tag Badges */
.glass-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.glass-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #F1F5F9;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.glass-tag-chip i {
  color: var(--gold-bright);
  font-size: 0.82rem;
}

.darul-ishaat-glass-card:hover .glass-tag-chip {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Bottom Enter Action Button */
.glass-enter-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-enter-center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 24px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.darul-ishaat-glass-card:hover .btn-enter-center {
  background: linear-gradient(135deg, #FFE894 0%, var(--gold-bright) 100%);
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.55);
}

.glass-action-hint {
  font-size: 0.82rem;
  color: #CBD5E1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .pub-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .pub-two-books-container {
    grid-template-columns: 1fr;
  }
  .pub-mini-boxes-grid {
    grid-template-columns: 1fr;
  }
}

/* 3D SHOWCASE BANNER & OLD GRID (KEPT FOR COMPATIBILITY) */
.publications-3d-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 45px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--border-gold);
  background: #07101E;
}

.showcase-banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.publications-3d-showcase:hover .showcase-banner-img {
  transform: scale(1.02);
}

.showcase-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 40px;
  background: linear-gradient(to top, rgba(7, 16, 30, 0.92) 0%, rgba(7, 16, 30, 0.6) 60%, transparent 100%);
  color: #FFFFFF;
}

.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.showcase-subtitle {
  font-size: 0.95rem;
  color: #CBD5E1;
  max-width: 600px;
}

/* ==========================================================================
   PURE CSS 3D HARDCOVER BOOK MOCKUP
   ========================================================================== */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.book-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px 16px 16px 16px;
  border: 1px solid #E2E8F0;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(7, 16, 30, 0.12);
  border-color: var(--gold-bright);
}

.book-cover-box.book-mockup-3d {
  position: relative;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  margin-bottom: 20px;
  padding: 10px 10px 25px 10px;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-3d-perspective {
  position: relative;
  width: 100%;
  height: 290px;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(4deg);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 4px 10px 10px 4px;
}

/* Spine thickness (3D left side) */
.book-spine {
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.25) 40%, rgba(0,0,0,0.3) 100%);
  transform: rotateY(-90deg);
  transform-origin: right center;
  border-radius: 3px 0 0 3px;
}

/* Ribbed Pages Stack (3D right side) */
.book-pages-stack {
  position: absolute;
  right: -10px;
  top: 3px;
  bottom: 3px;
  width: 10px;
  background: repeating-linear-gradient(90deg, #F8FAFC 0px, #E2E8F0 1px, #F1F5F9 2px);
  transform: rotateY(90deg);
  transform-origin: left center;
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 3px rgba(0,0,0,0.15);
}

/* Hardcover Front Image */
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: inset 3px 0 8px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.15);
  display: block;
}

/* Glossy Sheen Overlay */
.book-cover-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 35%, transparent 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  border-radius: 3px 8px 8px 3px;
}

/* 3D NEW Ribbon Badge */
.badge-3d-new {
  position: absolute;
  top: -10px;
  right: -8px;
  z-index: 25;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #07101E;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0px !important;
  padding: 3px 14px;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4), 0 2px 4px rgba(0,0,0,0.2);
  border: 1.5px solid #FFFFFF;
  transform: translateZ(25px);
  white-space: nowrap;
}

/* Floor Shadow Under 3D Book */
.book-shadow-3d {
  position: absolute;
  bottom: 8px;
  left: 12%;
  right: 12%;
  height: 14px;
  background: rgba(7, 16, 30, 0.4);
  filter: blur(8px);
  border-radius: 50%;
  transform: rotateX(80deg) scale(0.95);
  transition: all 0.45s ease;
  pointer-events: none;
}

/* Hover 3D Animation */
.book-card:hover .book-3d-perspective {
  transform: rotateY(-4deg) rotateX(0deg) scale(1.04) translateY(-10px);
}

.book-card:hover .book-shadow-3d {
  transform: rotateX(80deg) scale(1.15) translateY(14px);
  opacity: 0.6;
  filter: blur(12px);
}

.book-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.book-info h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.book-category-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-add-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-action:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
}

/* ==========================================================================
   FEATURED BANNERS (MAGAZINE, ACADEMY, WELFARE)
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
}

.featured-card {
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

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

/* Magazine Card */
.card-magazine {
  background: var(--bg-navy-card);
  color: #FFFFFF;
  border: 1px solid var(--border-gold);
}

.card-magazine::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.magazine-preview-box {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.magazine-preview-box img {
  height: 190px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transform: rotate(-3deg);
  transition: var(--transition);
}

.card-magazine:hover .magazine-preview-box img {
  transform: rotate(0deg) scale(1.05);
}

.sub-tag-header {
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.card-title-lg {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-meta-pills {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.card-body-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.card-magazine .card-body-text {
  color: #CBD5E1;
}

/* Shared Frosted Glass Properties for Academy & Welfare */
.featured-card.glass-card-sub {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-glass-specular {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.08) 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.card-glass-inner-border {
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(212, 175, 55, 0.32);
  border-radius: 14px;
  pointer-events: none;
  z-index: 1;
}

.card-glass-content {
  position: relative;
  z-index: 2;
}

/* Academy Glass Card (Light Frosted Blue Glass) */
.card-academy {
  background: linear-gradient(140deg, rgba(240, 248, 255, 0.92) 0%, rgba(224, 239, 254, 0.74) 60%, rgba(219, 234, 254, 0.82) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.09), inset 0 1.5px 0 rgba(255, 255, 255, 0.98);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #07101E;
}

.card-academy:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18), inset 0 1.5px 0 rgba(255, 255, 255, 1);
}

.academy-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.card-academy .card-title-lg {
  color: var(--bg-navy-dark);
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.card-academy .card-accent-tag {
  color: #2563EB;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.card-academy .card-body-text {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-navy-pill {
  background: #07101E;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid rgba(7, 16, 30, 0.2);
  box-shadow: 0 4px 14px rgba(7, 16, 30, 0.12);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-navy-pill:hover {
  background: var(--gold-bright);
  color: #07101E;
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

/* Welfare Glass Card (Light Frosted Warm Amber Glass) */
.card-welfare {
  background: linear-gradient(140deg, rgba(255, 248, 238, 0.92) 0%, rgba(254, 240, 222, 0.74) 60%, rgba(254, 235, 210, 0.82) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(217, 119, 6, 0.35);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 14px 36px rgba(217, 119, 6, 0.09), inset 0 1.5px 0 rgba(255, 255, 255, 0.98);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #07101E;
}

.card-welfare:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 20px 45px rgba(217, 119, 6, 0.18), inset 0 1.5px 0 rgba(255, 255, 255, 1);
}

.welfare-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12);
}

.card-welfare .card-title-lg {
  color: var(--bg-navy-dark);
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.card-welfare .card-accent-tag {
  color: #D97706;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.card-welfare .card-body-text {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-brown-pill {
  background: #D97706;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-brown-pill:hover {
  background: #B45309;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.3);
}

/* ==========================================================================
   TRENDING SLIDES SHOWCASE CARD (مقالات و قلم کار ٹرینڈنگ سلائیڈز)
   ========================================================================== */
.card-trending-slides {
  background: linear-gradient(145deg, #07101E 0%, #0D1A30 100%);
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(7, 16, 30, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
}

.card-trending-slides::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Header & Live Pulse */
.trend-card-header {
  margin-bottom: 12px;
}

.trend-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trend-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 50px;
}

.trend-pulse-dot {
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulseRedDot 1.6s infinite;
}

@keyframes pulseRedDot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.trend-nav-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trend-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.trend-arrow-btn:hover {
  background: var(--gold-bright);
  color: #07101E;
  transform: scale(1.08);
}

.trend-counter {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
}

/* Tabs Bar */
.trend-tabs-bar {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trend-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.trend-tab-btn:hover {
  color: #FFFFFF;
}

.trend-tab-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 700;
}

/* Slides Viewport & Track */
.trend-slides-viewport {
  position: relative;
  height: 226px;
  overflow: hidden;
  margin-bottom: 12px;
}

.trend-slides-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trend-slide-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.22s ease;
  position: relative;
  height: 66px;
  box-sizing: border-box;
  cursor: pointer;
  z-index: 5;
}

.trend-slide-item * {
  pointer-events: none;
}

.trend-slide-item:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.trend-slide-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

.trend-slide-rank.rank-1 {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  color: #07101E;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.trend-slide-rank.rank-2 {
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 100%);
  color: #07101E;
}

.trend-slide-rank.rank-3 {
  background: linear-gradient(135deg, #FDBA74 0%, #EA580C 100%);
  color: #FFFFFF;
}

.trend-slide-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0B192E;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.trend-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trend-slide-thumb.writer-thumb {
  border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
}

.trend-slide-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trend-slide-title {
  font-family: var(--font-urdu), 'Noto Nastaliq Urdu', serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #F8FAFC;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  text-align: right;
}

.trend-slide-item:hover .trend-slide-title {
  color: var(--gold-bright);
}

.trend-slide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #94A3B8;
  direction: rtl;
  justify-content: flex-end;
}

.trend-meta-author {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.trend-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold-bright);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.trend-slide-arrow {
  color: #64748B;
  font-size: 0.72rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.trend-slide-item:hover .trend-slide-arrow {
  color: var(--gold-bright);
  transform: translateX(-3px);
}

/* Card Footer */
.trend-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-gold-pill {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  color: var(--bg-navy-dark);
}

.trend-auto-status {
  font-size: 0.72rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
}

.trend-status-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
}

/* ==========================================================================
   MEHRAB ARCHED ARTICLES SECTION (۱۰ تازہ ترین مقالاتِ علمیہ)
   ========================================================================== */
.mehrab-articles-section {
  background: #F7F3EB;
  position: relative;
  overflow: hidden;
  padding: 34px 0 42px 0;
  border-top: 1px solid rgba(198, 154, 67, 0.2);
  border-bottom: 1px solid rgba(198, 154, 67, 0.2);
}

.mehrab-section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 22px auto;
}

.mehrab-arabic-ayah {
  font-family: 'Quranic', 'Amiri', serif !important;
  font-size: 1.6rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
  direction: rtl;
  letter-spacing: 1px;
}

.mehrab-section-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 2.6rem;
  color: var(--bg-navy-dark);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0px !important;
}

.mehrab-section-subtitle {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  direction: rtl;
  margin-bottom: 14px;
}

.mehrab-section-lead-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ==========================================================================
   MEHRAB ARTICLES SECTION (2-ROW AUTO-SLIDER: 5 CARDS PER LINE)
   ========================================================================== */

/* Slider Controls Bar (Header Right or Top Controls) */
.mehrab-slider-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.mehrab-slider-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.slider-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slider-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.slider-page-counter {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: #FFFFFF;
  border: 1px solid rgba(198, 154, 67, 0.3);
  padding: 5px 14px;
  border-radius: 50px;
}

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

.slider-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(198, 154, 67, 0.4);
  color: #07101E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(7, 16, 30, 0.05);
}

.slider-arrow-btn:hover {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  color: #07101E;
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(198, 154, 67, 0.3);
}

/* Slider Viewport & Moving Track */
.articles-slider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  contain: paint;
  border-radius: 20px;
  padding: 6px 2px 14px 2px;
}

.articles-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  will-change: transform;
}

/* Each Slide Page: Exactly 2 Lines (Rows) with 5 Cards in Each Line */
.articles-slide-page {
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 18px;
  box-sizing: border-box;
}

/* Dots Indicator Bar */
.mehrab-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slider-dot {
  width: 32px;
  height: 6px;
  border-radius: 10px;
  background: #E2E8F0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  width: 48px;
  background: linear-gradient(90deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  box-shadow: 0 2px 8px rgba(198, 154, 67, 0.35);
}

/* 10-Item Unified Grid (5 columns x 2 rows on Desktop) */
.mehrab-articles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .mehrab-articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .mehrab-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .mehrab-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   REFINED MEHRAB ARTICLE CARD (GENTLE ROUNDNESS, CLASSY GOLD BORDER)
   ========================================================================== */
.mehrab-article-card {
  background: #FFFFFF;
  /* Classy Royal Islamic Gold Border */
  border: 1.5px solid rgba(198, 154, 67, 0.38);
  /* Gentle curved top (no aggressive circular dome, preserving full thumbnail) */
  border-radius: 24px 24px 14px 14px;
  box-shadow: 0 4px 18px rgba(7, 16, 30, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: inherit;
  height: 385px;
  box-sizing: border-box;
}

.mehrab-article-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 32px rgba(198, 154, 67, 0.22), 0 4px 10px rgba(7, 16, 30, 0.06);
}

/* Classy Top Accent Trim */
.mehrab-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37 0%, #F59E0B 50%, #D4AF37 100%);
  z-index: 4;
}

/* Mehrab Card Thumbnail Container (Gentle rounded top, properly visible) */
.mehrab-card-arch-top {
  position: relative;
  height: 140px;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #07101E;
  flex-shrink: 0;
}

.mehrab-card-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  opacity: 0.96;
  display: block;
}

.mehrab-article-card:hover .mehrab-card-arch-img {
  transform: scale(1.06);
  opacity: 1;
}

.mehrab-card-arch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.08) 0%, rgba(7, 16, 30, 0.65) 100%);
}

/* Inner Golden Mehrab Border Line */
.mehrab-arch-border-line {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 0;
  border-top: 1.5px solid rgba(255, 215, 0, 0.65);
  border-left: 1.5px solid rgba(255, 215, 0, 0.45);
  border-right: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

/* Badges on Arch Image */
.mehrab-cat-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(7, 16, 30, 0.9);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 3px 9px;
  border-radius: 50px;
  font-family: 'Mehr', serif !important;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
  letter-spacing: 0px !important;
}

.mehrab-views-badge {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #F1F5F9;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Article Body */
.mehrab-card-body {
  padding: 12px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  text-align: right;
  direction: rtl;
}

.mehrab-article-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.02rem;
  font-weight: 700;
  color: #07101E;
  line-height: 1.48;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px;
  transition: color 0.2s ease;
  letter-spacing: 0px !important;
}

.mehrab-article-card:hover .mehrab-article-title {
  color: var(--gold-primary);
}

.mehrab-article-excerpt {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.48;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
  letter-spacing: 0px !important;
}

/* Author Info Row */
.mehrab-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
  margin-bottom: 8px;
}

.mehrab-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
  background: #F8FAFC;
}

.mehrab-author-info {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.mehrab-author-name {
  font-family: 'Mehr', serif !important;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0px !important;
}

.mehrab-meta-info {
  font-size: 0.65rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

/* Bottom Action Read Button */
.btn-mehrab-read {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FBF8F3;
  color: #07101E;
  border: 1px solid #E2E8F0;
  padding: 5px 10px;
  border-radius: 50px;
  font-family: 'Mehr', serif !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0px !important;
}

.mehrab-article-card:hover .btn-mehrab-read {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  color: #07101E;
  border-color: var(--gold-bright);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Footer Section Action Button */
.mehrab-footer-action {
  text-align: center;
  margin-top: 14px;
}

.btn-mehrab-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #07101E;
  color: var(--gold-bright);
  border: 1.5px solid var(--border-gold);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: 'Mehr', serif !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(7, 16, 30, 0.12);
  letter-spacing: 0px !important;
}

.btn-mehrab-view-all:hover {
  background: var(--gold-bright);
  color: #07101E;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35);
}

/* Responsive adjustments for 2-row 5-column grid */
@media (max-width: 1200px) {
  .articles-slide-page {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-slide-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mehrab-article-card {
    height: 360px;
  }
  .mehrab-card-arch-top {
    height: 125px;
  }
}

@media (max-width: 480px) {
  .articles-slide-page {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   EXPLORE OUR SECTIONS / WHAT WE OFFER (COMPACT LIGHT COLORFUL TILES)
   ========================================================================== */
.explore-sections-strip {
  margin: 36px 0 34px 0;
  position: relative;
}

.explore-strip-header {
  text-align: center;
  margin-bottom: 20px;
}

.explore-strip-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
  margin: 4px 0 0 0;
}

.offer-grid-compact {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.offer-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 13px 8px 11px 8px;
  border-radius: 16px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid #E2E8F0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.offer-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 7px;
  transition: transform 0.25s ease;
}

.offer-tile:hover .offer-tile-icon {
  transform: scale(1.12);
}

.offer-tile-title {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.2;
}

.offer-tile-sub {
  font-family: 'Mehr', serif !important;
  font-size: 0.74rem;
  color: #64748B;
  margin-top: 2px;
  letter-spacing: 0px !important;
}

/* Distinct Soft Pastel Light Tint Variations */
.tile-amber {
  background: #FEF9EE;
  border-color: #FDE68A;
}
.tile-amber .offer-tile-icon {
  background: #FEF3C7;
  color: #D97706;
}
.tile-amber:hover {
  background: #FFFDF5;
  border-color: #F59E0B;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.16);
  transform: translateY(-4px);
}

.tile-sky {
  background: #F0F9FF;
  border-color: #BAE6FD;
}
.tile-sky .offer-tile-icon {
  background: #E0F2FE;
  color: #0284C7;
}
.tile-sky:hover {
  background: #F8FCFF;
  border-color: #0284C7;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
  transform: translateY(-4px);
}

.tile-purple {
  background: #FAF5FF;
  border-color: #E9D5FF;
}
.tile-purple .offer-tile-icon {
  background: #F3E8FF;
  color: #7C3AED;
}
.tile-purple:hover {
  background: #FDFAFF;
  border-color: #7C3AED;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.16);
  transform: translateY(-4px);
}

.tile-emerald {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.tile-emerald .offer-tile-icon {
  background: #DCFCE7;
  color: #16A34A;
}
.tile-emerald:hover {
  background: #F7FEFA;
  border-color: #16A34A;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.16);
  transform: translateY(-4px);
}

.tile-rose {
  background: #FFF1F2;
  border-color: #FECDD3;
}
.tile-rose .offer-tile-icon {
  background: #FFE4E6;
  color: #E11D48;
}
.tile-rose:hover {
  background: #FFF8F8;
  border-color: #E11D48;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.16);
  transform: translateY(-4px);
}

.tile-orange {
  background: #FFF7ED;
  border-color: #FED7AA;
}
.tile-orange .offer-tile-icon {
  background: #FFEDD5;
  color: #EA580C;
}
.tile-orange:hover {
  background: #FFFBF7;
  border-color: #EA580C;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.16);
  transform: translateY(-4px);
}

.tile-teal {
  background: #F0FDFA;
  border-color: #99F6E4;
}
.tile-teal .offer-tile-icon {
  background: #CCFBF1;
  color: #0D9488;
}
.tile-teal:hover {
  background: #F7FEFD;
  border-color: #0D9488;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.16);
  transform: translateY(-4px);
}

.tile-indigo {
  background: #EEF2FF;
  border-color: #C7D2FE;
}
.tile-indigo .offer-tile-icon {
  background: #E0E7FF;
  color: #4F46E5;
}
.tile-indigo:hover {
  background: #F7F9FF;
  border-color: #4F46E5;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.16);
  transform: translateY(-4px);
}

/* Backward compatibility for .offer-grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

/* ==========================================================================
   MUST READ & FROM OUR BLOG
   ========================================================================== */
.blog-mustread-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
}

.must-read-card {
  background: radial-gradient(circle at 50% 30%, #11253E 0%, var(--bg-navy-card) 100%);
  border-radius: 24px;
  padding: 40px;
  color: #FFFFFF;
  border: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.must-read-card img {
  border-radius: 12px;
  margin-top: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.blog-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-item-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #E2E8F0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
}

.blog-item-card:hover {
  transform: translateX(6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.blog-thumb-box img {
  width: 140px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.blog-tag-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 8px;
}

.tag-article { background: #FEF3C7; color: #92400E; }
.tag-islamic { background: #E0E7FF; color: #3730A3; }
.tag-welfare { background: #DCFCE7; color: #166534; }

.blog-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   UPGRADED LATEST GALLERY SECTION & BENTO SHOWCASE BOX
   ========================================================================== */
.gallery-section-modern {
  background: var(--bg-page);
  position: relative;
}

.gallery-showcase-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(198, 154, 67, 0.35);
  border-radius: 28px;
  padding: 38px 34px 44px 34px;
  box-shadow: 0 10px 30px rgba(7, 16, 30, 0.05);
  position: relative;
  overflow: hidden;
}

.gallery-showcase-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D4AF37 0%, #F59E0B 50%, #D4AF37 100%);
}

.gallery-box-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F1F5F9;
}

.gallery-header-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--bg-navy-dark);
  margin: 4px 0 4px 0;
}

.gallery-header-meta p {
  font-size: 0.9rem;
  color: #64748B;
  margin: 0;
}

/* Category Filter Tabs */
.gallery-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-filter-btn:hover {
  background: #FFFFFF;
  color: var(--gold-primary);
  border-color: var(--gold-bright);
}

.gallery-filter-btn.active {
  background: #07101E;
  color: var(--gold-bright);
  border-color: var(--border-gold);
  box-shadow: 0 4px 12px rgba(7, 16, 30, 0.15);
}

/* Gallery Settled Grid Layout (Clean 4 Columns) */
.gallery-settled-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .gallery-settled-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .gallery-settled-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gallery-settled-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(198, 154, 67, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(7, 16, 30, 0.05);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-settled-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 30px rgba(198, 154, 67, 0.22);
}

.gallery-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #07101E;
}

.gallery-settled-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-settled-card:hover .gallery-settled-img {
  transform: scale(1.05);
}

.gallery-cat-chip-settled {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-bright);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: 'Mehr', serif !important;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  letter-spacing: 0px !important;
}

.gallery-zoom-badge-settled {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  opacity: 0.8;
  transition: all 0.25s ease;
  z-index: 2;
}

.gallery-settled-card:hover .gallery-zoom-badge-settled {
  opacity: 1;
  background: var(--gold-bright);
  color: #07101E;
  transform: scale(1.08);
}

.gallery-card-details {
  padding: 16px 18px 18px 18px;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #FFFFFF;
}

.gallery-card-title-ur {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: #07101E;
  margin: 0 0 6px 0;
  line-height: 1.45;
  letter-spacing: 0px !important;
  transition: color 0.2s ease;
}

.gallery-settled-card:hover .gallery-card-title-ur {
  color: var(--gold-primary);
}

.gallery-card-title-en {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #64748B;
  margin: 0 0 12px 0;
  direction: ltr;
  text-align: left;
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
  font-size: 0.78rem;
  color: #94A3B8;
  direction: ltr;
}

.gallery-view-hint {
  font-family: 'Mehr', serif !important;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0px !important;
  direction: rtl;
}

/* Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.94);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

.lightbox-content-box {
  max-width: 960px;
  width: 100%;
  background: #0B1728;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--gold-bright);
  color: #07101E;
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 65vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 18px 24px;
  background: #07101E;
  border-top: 1px solid rgba(198, 154, 67, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   OUR LATEST VIDEO SECTION (LIGHT LUXURY THEME MATCHING REST OF SITE)
   ========================================================================== */
.latest-videos-section {
  background: linear-gradient(180deg, #FBF8F3 0%, #F5EFE6 100%);
  color: #07101E;
  padding: 48px 0 60px 0;
  position: relative;
  border-top: 1.5px solid rgba(198, 154, 67, 0.25);
  border-bottom: 1.5px solid rgba(198, 154, 67, 0.25);
}

.videos-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.videos-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.videos-main-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #07101E;
  margin: 0 0 6px 0;
}

.videos-main-desc {
  font-size: 0.92rem;
  color: #64748B;
  max-width: 600px;
  margin: 0;
}

.videos-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-post-video-modal {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  color: #07101E;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
}

.btn-post-video-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.5);
  color: #07101E;
}

.btn-yt-channel-link {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #07101E;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.btn-yt-channel-link:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}

/* Video Section Grid */
.videos-showcase-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 30px;
  position: relative;
  z-index: 2;
}

/* Featured Video Player Card - Light Theme */
.video-featured-player-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(198, 154, 67, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(7, 16, 30, 0.06);
  display: flex;
  flex-direction: column;
}

.video-iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000000;
  overflow: hidden;
}

.video-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-details {
  padding: 22px 24px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  text-align: right;
  direction: rtl;
}

.video-details-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  direction: ltr;
}

.video-active-cat-badge {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Mehr', serif !important;
  letter-spacing: 0px !important;
}

.video-active-meta-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748B;
  font-size: 0.78rem;
}

.video-featured-urdu-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.45rem;
  font-weight: 700;
  color: #07101E;
  margin: 0 0 6px 0;
  line-height: 1.45;
  letter-spacing: 0px !important;
}

.video-featured-eng-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #B45309;
  margin: 0 0 14px 0;
  direction: ltr;
  text-align: left;
}

.video-featured-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 12px;
}

.video-author-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-author-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #92400E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.video-author-speaker-name {
  font-family: 'Mehr', serif !important;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0px !important;
}

/* Playlist Sidebar - Light Theme */
.videos-playlist-sidebar {
  background: #FFFFFF;
  border: 1.5px solid rgba(198, 154, 67, 0.3);
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(7, 16, 30, 0.06);
}

.playlist-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 14px;
}

.playlist-header-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #07101E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-count-badge {
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 700;
}

.playlist-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 480px;
  padding-right: 4px;
}

.playlist-items-scroll::-webkit-scrollbar {
  width: 5px;
}
.playlist-items-scroll::-webkit-scrollbar-thumb {
  background: rgba(198, 154, 67, 0.35);
  border-radius: 10px;
}

/* Playlist Card Item - Light Theme */
.playlist-video-card {
  display: flex;
  gap: 12px;
  background: #FAF8F5;
  border: 1px solid #EAE3D2;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.playlist-video-card:hover {
  background: #FFFBEB;
  border-color: #F59E0B;
  transform: translateX(-3px);
}

.playlist-video-card.active {
  background: #FEF3C7;
  border-color: #D97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.playlist-thumb-box {
  width: 105px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #000;
}

.playlist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: all 0.2s;
}

.playlist-video-card:hover .playlist-play-overlay {
  background: rgba(239, 68, 68, 0.85);
  opacity: 1;
}

.playlist-duration-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #FFF;
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}

.playlist-meta-box {
  flex: 1;
  min-width: 0;
  text-align: right;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-item-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  letter-spacing: 0px !important;
}

.playlist-item-speaker {
  font-family: 'Mehr', serif !important;
  font-size: 0.74rem;
  color: #B45309;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0px !important;
}

/* ==========================================================================
   POST YOUTUBE VIDEO MODAL - LIGHT LUXURY THEME
   ========================================================================== */
.post-video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.post-video-modal-overlay.active {
  display: flex;
}

.post-video-modal-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 34px 30px;
  box-shadow: 0 25px 60px rgba(7, 16, 30, 0.25);
  position: relative;
  color: #07101E;
}

.post-video-modal-box .lightbox-close-btn {
  background: #F1F5F9;
  color: #07101E;
  border: 1px solid #CBD5E1;
}

.post-video-modal-box .lightbox-close-btn:hover {
  background: var(--gold-bright);
  color: #07101E;
}

.post-video-header {
  text-align: center;
  margin-bottom: 24px;
}

.post-video-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #07101E;
  margin: 0 0 6px 0;
}

.post-video-subtitle {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0;
}

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

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

.form-group-yt label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input-yt {
  width: 100%;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  color: #07101E;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-input-yt:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input-yt.urdu-font {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.05rem;
  letter-spacing: 0px !important;
}

/* Live YouTube Preview Box in Modal */
.yt-live-preview-box {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.yt-preview-thumb {
  width: 90px;
  height: 55px;
  border-radius: 6px;
  object-fit: cover;
}

.yt-preview-info {
  flex: 1;
  font-size: 0.8rem;
  color: #059669;
}

.btn-submit-post-video {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
}

.btn-submit-post-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
  .videos-showcase-grid {
    grid-template-columns: 1fr;
  }
  .gallery-settled-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   NEWSLETTER SUBSCRIBE BAR
   ========================================================================== */
.newsletter-section {
  background: var(--bg-navy-dark);
  color: #FFFFFF;
  padding: 48px 0;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.newsletter-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.newsletter-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.newsletter-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: 50px;
  padding: 6px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.newsletter-input {
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-size: 0.92rem;
  width: 100%;
  outline: none;
}

.newsletter-submit-btn {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-submit-btn:hover {
  background: var(--gold-light);
}

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

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
  background-color: var(--bg-navy-dark);
  color: #94A3B8;
  padding-top: 70px;
  padding-bottom: 30px;
}

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

.footer-col-title {
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.footer-links-list a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--gold-bright);
}

.arabic-footer-heading {
  font-family: var(--font-arabic);
  font-size: 2rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.footer-bottom-bar {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.scroll-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-top-btn:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
}

/* ==========================================================================
   MODAL POPUPS (Search & Video)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 600px;
  color: #FFFFFF;
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal-btn:hover {
  color: var(--gold-bright);
}

/* Auth Modal Styles (Registration & Login) */
.auth-modal-box {
  max-width: 540px;
  padding: 32px 30px;
}

.auth-tabs-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.auth-tab-pane {
  display: none;
}

.auth-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-header {
  margin-bottom: 20px;
}

.auth-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.55rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.5;
}

.auth-input-group {
  margin-bottom: 14px;
  text-align: left;
}

.auth-input-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.auth-input-group input,
.auth-input-group select,
.donate-cause-select select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #091728;
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.auth-input-group input:focus,
.auth-input-group select:focus,
.donate-cause-select select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.auth-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #94A3B8;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--gold-bright);
  font-weight: 600;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  font-weight: 700;
  padding: 13px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

/* Donation Modal Styles */
.donate-modal-box {
  max-width: 520px;
  padding: 34px 28px;
}

.donate-cause-select {
  margin-bottom: 16px;
  text-align: left;
}

.donate-cause-select label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.donate-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.donate-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFFFFF;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.donate-chip:hover,
.donate-chip.active {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* ==========================================================================
   MAGAZINE DUAL 3D SHOWCASE SECTION
   ========================================================================== */
.magazine-hero-banner,
.magazine-hero-banner.glass-card-magazine {
  background: transparent;
  border-radius: 26px;
  padding: 40px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 48px rgba(7, 16, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.magazine-hero-banner:hover,
.magazine-hero-banner.glass-card-magazine:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 24px 55px rgba(198, 154, 67, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Glass background with Huzoor Ghaus-e-Azam's Baghdad Sharif dome (Soft mystical blur) */
.magazine-glass-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.magazine-glass-dome-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: blur(10px) saturate(1.15) brightness(1.05);
  transform: scale(1.1);
  opacity: 0.38;
  transition: transform 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.magazine-hero-banner.glass-card-magazine:hover .magazine-glass-dome-img {
  transform: scale(1.15);
  opacity: 0.46;
  filter: blur(8px) saturate(1.22) brightness(1.08);
}

.magazine-glass-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(253, 248, 237, 0.78) 55%,
    rgba(247, 237, 216, 0.82) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.magazine-glass-shimmer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.magazine-glass-border-line {
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;
}

.magazine-hero-text {
  display: flex;
  flex-direction: column;
}

.magazine-meta-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px 0;
}

.meta-feat-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-feat-item i {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.magazine-action-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.magazine-dual-covers-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  padding: 15px 0;
}

.magazine-3d-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1000px;
  flex: 1;
  max-width: 250px;
}

.magazine-3d-card {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7, 16, 30, 0.16);
  border: 2px solid rgba(212, 175, 55, 0.3);
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  background: #07101E;
}

.magazine-3d-wrapper:hover .magazine-3d-card {
  transform: rotateY(-2deg) rotateX(0deg) scale(1.03) translateY(-8px);
  box-shadow: 0 25px 50px rgba(7, 16, 30, 0.25), 0 0 20px rgba(212, 175, 55, 0.3);
  border-color: var(--gold-bright);
}

.magazine-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.magazine-cover-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

.magazine-issue-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-transform: uppercase;
}

.badge-green {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  color: #FFFFFF;
}

.badge-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
}

.magazine-shadow-3d {
  width: 80%;
  height: 12px;
  background: rgba(7, 16, 30, 0.35);
  filter: blur(8px);
  border-radius: 50%;
  margin-top: 10px;
  transition: all 0.4s ease;
}

.magazine-3d-wrapper:hover .magazine-shadow-3d {
  width: 90%;
  opacity: 0.6;
  filter: blur(12px);
  transform: translateY(6px);
}

.magazine-card-label {
  text-align: center;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.magazine-card-label strong {
  font-family: var(--font-arabic), var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
}

.magazine-card-label span {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0px !important;
  color: var(--text-muted);
}

/* ==========================================================================
   AL-QADRI DIGITAL ACADEMY (FULL POWER PORTAL STYLES)
   ========================================================================== */
.academy-master-section {
  background: linear-gradient(180deg, #FDFBF7 0%, #F3EDE2 100%);
  position: relative;
}

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

.academy-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.academy-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(7, 16, 30, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academy-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.08) 0%, rgba(212, 175, 55, 0.15) 100%);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bg-navy-dark);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Academy Navigation Controls */
.academy-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.academy-category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  border-color: var(--bg-navy-dark);
  box-shadow: 0 4px 12px rgba(7, 16, 30, 0.15);
}

.academy-search-box {
  position: relative;
  min-width: 280px;
}

.academy-search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.9rem;
}

.academy-search-box input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: 50px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s ease;
}

.academy-search-box input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Courses Grid */
.academy-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.course-card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(7, 16, 30, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.course-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #07101E;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.badge-level {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-level.beginner { background: #10B981; color: #FFF; }
.badge-level.intermediate { background: #F59E0B; color: #FFF; }
.badge-level.all-levels { background: #3B82F6; color: #FFF; }

.course-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 30, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 3;
}

.course-thumb-wrapper:hover .course-overlay-play {
  opacity: 1;
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 10px;
}

.course-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-navy-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.course-desc {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.course-includes-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.inc-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inc-tag i { color: #F97316; }

.course-footer-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.btn-enroll-primary {
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-enroll-primary:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.btn-ppt-download {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  padding: 10px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-ppt-download:hover {
  background: #EA580C;
  color: #FFF;
  border-color: #EA580C;
}

/* DEDICATED PPT RESOURCE HUB BOX */
.ppt-resource-hub-box {
  background: linear-gradient(135deg, #07101E 0%, #0F2038 100%);
  border-radius: 24px;
  padding: 40px;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(7, 16, 30, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.ppt-hub-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-top: 6px;
  margin-bottom: 8px;
}

.ppt-hub-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  max-width: 600px;
}

.btn-request-ppt-custom {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.btn-request-ppt-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.ppt-decks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.ppt-deck-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s ease;
}

.ppt-deck-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-bright);
  transform: translateY(-4px);
}

.ppt-format-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.15);
  color: #F97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.deck-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.deck-details-bar {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: #94A3B8;
  flex-wrap: wrap;
}

.btn-download-deck {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-download-deck:hover {
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  border-color: var(--gold-bright);
}

/* Modals & Form Styling */
.academy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.academy-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.academy-modal-content {
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.35s ease;
}

.academy-modal-overlay.active .academy-modal-content {
  transform: translateY(0);
}

.modal-close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s ease;
}

.modal-close-icon:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.academy-form-group {
  margin-bottom: 18px;
}

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

.academy-form-group input,
.academy-form-group select,
.academy-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.academy-form-group input:focus,
.academy-form-group select:focus,
.academy-form-group textarea:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
}

/* Toast Notifications */
.academy-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.35s ease;
  pointer-events: none;
}

.academy-toast.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ACADEMY DEDICATED PAGE STYLES (academy.php)
   ========================================================================== */
.academy-hero-section {
  background: linear-gradient(135deg, #07101E 0%, #0F233D 60%, #07101E 100%),
              url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  padding: 60px 0;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.hero-academy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.academy-hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.academy-hero-title em {
  color: var(--gold-bright);
  font-style: normal;
}

.academy-hero-desc {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

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

.academy-hero-stats-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}

.stat-card-glass:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-bright);
}

.stat-glass-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-glass-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
}

.stat-glass-lbl {
  font-size: 0.78rem;
  color: #CBD5E1;
}

/* Dedicated Inline Enrollment Form Container */
.academy-enrollment-container-box {
  background: linear-gradient(135deg, #07101E 0%, #0F2038 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 24px;
  padding: 44px;
  color: #FFFFFF;
  margin-top: 50px;
  box-shadow: 0 20px 50px rgba(7, 16, 30, 0.2);
}

.enrollment-header-box {
  text-align: center;
  margin-bottom: 32px;
}

.academy-inline-form .form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.btn-submit-enrollment-large {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 100%);
  color: var(--bg-navy-dark);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  margin-top: 12px;
  transition: all 0.3s ease;
}

.btn-submit-enrollment-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.5);
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-navy-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question i {
  color: var(--gold-bright);
  font-size: 0.85rem;
}

.faq-answer {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
}

/* Announcement Ticker */
.academy-top-ticker {
  background: var(--bg-navy-dark);
  color: #FFFFFF;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ticker-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 10px;
}

.ticker-wa-link {
  color: #25D366;
  font-weight: 700;
  text-decoration: none;
}

.ticker-wa-link:hover {
  text-decoration: underline;
}

.tagline-pill-gold {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
}

.hero-trust-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #E2E8F0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mass Study Hero Preview Card */
.academy-hero-card-preview {
  position: relative;
}

.hero-preview-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.live-badge-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid #EF4444;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.preview-course-img-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.preview-play-btn:hover {
  transform: scale(1.1);
  color: var(--gold-bright);
}

.preview-info-body {
  display: flex;
  flex-direction: column;
}

.preview-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.price-free-tag {
  background: #10B981;
  color: #FFF;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
}

.preview-course-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.preview-subtext {
  font-size: 0.84rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.btn-hero-quick-enroll {
  width: 100%;
  background: var(--gold-bright);
  color: var(--bg-navy-dark);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-hero-quick-enroll:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Feature Highlights Bar */
.academy-features-highlights-bar {
  background: #FFFFFF;
  padding: 28px 0;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.features-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-highlight-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feat-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-highlight-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-navy-dark);
  margin-bottom: 2px;
}

.feature-highlight-card p {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .hero-academy-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
  .features-highlights-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .courses-catalog-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .faq-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .academy-top-ticker .container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
  }
  .academy-hero-section {
    padding: 24px 0 32px 0 !important;
  }
  .academy-hero-title {
    font-size: clamp(1.4rem, 5vw, 1.85rem) !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
    margin-bottom: 12px !important;
  }
  .academy-hero-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 18px !important;
  }
  .hero-trust-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 18px !important;
  }
  .trust-pill {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
  }
  .academy-hero-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .academy-hero-btns a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .features-highlights-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .courses-catalog-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .academy-inline-form .form-grid-2,
  .academy-inline-form .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .academy-enrollment-container-box {
    padding: 16px 12px !important;
    border-radius: 16px !important;
    margin-top: 28px !important;
  }
  .btn-submit-enrollment-large {
    padding: 12px !important;
    font-size: 0.92rem !important;
  }
}

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

/* ==========================================================================
   DAR-UL-ISHA'AT WAT-TAHQEEQ FULL PAGE STYLES
   ========================================================================== */

/* Hero Section */
.darul-hero-section {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.88) 0%, rgba(11, 25, 44, 0.72) 50%, rgba(7, 16, 30, 0.90) 100%),
              url('../assets/images/darul-ishaat-bg.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 55px 0 65px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
}

.darul-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.darul-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.darul-arabic-main-title {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.35);
  letter-spacing: 1px;
}

.darul-english-main-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: 1.5px;
}

.darul-hero-lead {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 28px auto;
}

.darul-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats Bar */
.darul-stats-bar {
  background: #07101E;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 22px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

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

.darul-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.darul-stat-card i {
  font-size: 1.8rem;
  color: var(--gold-bright);
}

.darul-stat-info {
  text-align: left;
}

.darul-stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.darul-stat-label {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* About Section */
.darul-about-section {
  padding: 60px 0;
  background-color: #FAF7F2;
  position: relative;
  overflow: hidden;
}

.darul-about-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 32px;
  align-items: center;
}

/* Left Arch Frame */
.about-arch-wrapper {
  position: relative;
}

.about-arch-outer {
  border: 2px solid var(--border-gold);
  border-radius: 160px 160px 14px 14px;
  padding: 8px;
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  position: relative;
}

.about-arch-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 152px 152px 8px 8px;
  display: block;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.about-arch-corner-tl,
.about-arch-corner-br {
  position: absolute;
  color: var(--gold-bright);
  font-size: 1.2rem;
}
.about-arch-corner-tl { top: -8px; left: -8px; }
.about-arch-corner-br { bottom: -8px; right: -8px; }

/* Middle About Content */
.about-content-middle {
  display: flex;
  flex-direction: column;
}

.about-title-large {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.28;
  margin-bottom: 8px;
}

.about-ornament-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--gold-primary);
}

.about-ornament-line::before,
.about-ornament-line::after {
  content: '';
  height: 1px;
  width: 50px;
  background: var(--gold-primary);
}

.about-text-lead {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 22px;
}

.btn-about-know {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  align-self: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn-about-know:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Right Objectives Card */
.about-objectives-card {
  background: #FCF9F2;
  border: 1px solid #E8DFCE;
  border-radius: 20px;
  padding: 24px 22px 22px 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  position: relative;
}

.objectives-header-ribbon {
  background: linear-gradient(135deg, #B48D19 0%, #D4AF37 100%);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 18px;
  border-radius: 8px;
  margin: -36px auto 18px auto;
  max-width: 190px;
  box-shadow: 0 4px 12px rgba(180, 141, 25, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #334155;
  font-weight: 600;
}

.objective-item i {
  color: #B48D19;
  font-size: 1.1rem;
}

/* ==========================================================================
   OUR DEPARTMENTS SECTION (DEEP NAVY BACKGROUND)
   ========================================================================== */
.darul-departments-section {
  background: linear-gradient(180deg, #07101E 0%, #0A192C 60%, #07101E 100%);
  padding: 55px 0 65px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.darul-departments-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.dept-header-center {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
  z-index: 2;
}

.dept-ornament-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.dept-ornament-title::before,
.dept-ornament-title::after {
  content: '―❖―';
  font-size: 0.9rem;
  color: var(--gold-primary);
  opacity: 0.8;
}

.dept-sub-urdu {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.25rem;
  color: #CBD5E1;
  margin-top: 4px;
}

/* 5 Department Cards Grid */
.darul-dept-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.dept-gold-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 34px 16px 20px 16px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #E2E8F0;
}

.dept-gold-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-bright);
  box-shadow: 0 16px 35px rgba(212, 175, 55, 0.25);
}

.dept-card-circle-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #07101E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: -58px auto 14px auto;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
  border: 2px solid #FFFFFF;
}

.dept-card-urdu-title {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 2px;
}

.dept-card-eng-sub {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dept-card-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.dept-card-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: auto;
}

.dept-gold-card:hover .dept-card-action-btn {
  background: var(--gold-bright);
  color: #07101E;
}

/* Calligraphy Ribbon Banner */
.darul-quote-ribbon-bar {
  background: #FAF7F2;
  padding: 24px 0;
  border-bottom: 1px solid #E8DFCE;
}

.quote-ribbon-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.quote-arabic-text {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #07101E;
  letter-spacing: 1px;
}

.quote-ornament-star {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   BOOKS SHOWCASE SECTION (NICHE KISMAT MEIN WEL-DESIGNED BOOKS)
   ========================================================================== */
.darul-books-section {
  padding: 60px 0;
  background-color: var(--bg-page);
  position: relative;
}

.books-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.books-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.book-pill-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.book-pill-btn:hover,
.book-pill-btn.active {
  background: var(--gold-primary);
  color: #07101E;
  border-color: var(--gold-primary);
}

.darul-books-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.darul-book-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 18px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.darul-book-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-bright);
  box-shadow: 0 18px 36px rgba(7, 16, 30, 0.12);
}

.darul-book-card .compact-perspective {
  height: 220px !important;
  max-width: 145px;
  margin: 0 auto;
}

.darul-book-card:hover .compact-perspective {
  transform: rotateY(-6deg) rotateX(2deg) scale(1.03) translateY(-6px);
}

.darul-book-card-details {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  flex: 1;
}

.darul-book-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #9A7512;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.darul-book-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
}

.darul-book-meta {
  font-size: 0.78rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.darul-book-specs {
  display: flex;
  gap: 10px;
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 14px;
}

.darul-book-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-book-read {
  flex: 1;
  text-align: center;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-book-read:hover {
  background: var(--gold-primary);
  color: #07101E;
  border-color: var(--gold-primary);
}

.btn-book-order {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-book-order:hover {
  background: var(--gold-bright);
  color: #07101E;
}

/* Catalog Banner */
.darul-catalog-banner {
  margin-top: 45px;
  background: linear-gradient(135deg, #07101E 0%, #0C1E34 60%, #132D4B 100%);
  border-radius: 20px;
  padding: 34px 40px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 12px 35px rgba(7, 16, 30, 0.2);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .darul-dept-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .darul-about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-arch-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }
  .about-ornament-line {
    justify-content: center;
  }
  .btn-about-know {
    align-self: center;
  }
  .darul-books-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .darul-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .darul-dept-grid-5 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .dept-gold-card {
    padding-top: 36px;
  }
  .books-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .darul-books-grid-4 {
    grid-template-columns: 1fr;
  }
  .quote-ribbon-frame {
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   AL-QADRI QUARTERLY MAGAZINE PAGE STYLES
   ========================================================================== */

/* Magazine Top Ticker */
.mag-top-ticker {
  background: #0B192C;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 10px 0;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.mag-ticker-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.mag-ticker-badge {
  background: var(--gold-primary);
  color: #07101E;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mag-ticker-link {
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mag-ticker-link:hover {
  text-decoration: underline;
}

/* Magazine Hero Section */
.magazine-page-hero {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.92) 0%, rgba(9, 23, 40, 0.78) 50%, rgba(7, 16, 30, 0.94) 100%),
              url('../assets/images/darul-ishaat-bg.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 55px 0 65px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
}

.magazine-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.magazine-hero-left {
  display: flex;
  flex-direction: column;
}

.mag-hero-tagline-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border-gold);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  align-self: flex-start;
}

.mag-arabic-hero-title {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.35);
  letter-spacing: 1px;
}

.mag-english-hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
  line-height: 1.25;
}

.mag-english-hero-title em {
  color: var(--gold-bright);
  font-style: italic;
}

.mag-hero-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 24px;
}

.mag-hero-features-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.mag-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #F1F5F9;
  font-weight: 600;
}

.mag-feature-pill i {
  color: var(--gold-bright);
}

.mag-hero-actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Magazine Hero Right: 3D Spotlight Card */
.magazine-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mag-spotlight-box {
  background: rgba(7, 16, 30, 0.75);
  border: 2px solid var(--border-gold);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  width: 100%;
  position: relative;
}

.mag-spotlight-top-badge {
  position: absolute;
  top: -14px;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #07101E;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 5px 18px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  border: 1.5px solid #FFFFFF;
}

.mag-spotlight-cover-wrapper {
  position: relative;
  width: 220px;
  height: 300px;
  margin: 14px 0;
  perspective: 900px;
}

.mag-spotlight-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4), inset 2px 0 6px rgba(0,0,0,0.4);
  transform: rotateY(-12deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.mag-spotlight-box:hover .mag-spotlight-cover-img {
  transform: rotateY(-4deg) rotateX(0deg) scale(1.03);
}

.mag-spotlight-meta {
  text-align: center;
  width: 100%;
}

.mag-spotlight-urdu-title {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 2px;
}

.mag-spotlight-quarter {
  font-size: 0.84rem;
  color: #CBD5E1;
  margin-bottom: 14px;
}

.mag-spotlight-btns {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-spotlight-read {
  flex: 1;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-spotlight-read:hover {
  background: linear-gradient(135deg, #FFE894 0%, var(--gold-bright) 100%);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-spotlight-dl {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s;
}

.btn-spotlight-dl:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Magazine Stats Bar */
.mag-stats-bar {
  background: #07101E;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 22px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

.mag-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.mag-stat-card i {
  font-size: 1.8rem;
  color: var(--gold-bright);
}

.mag-stat-info {
  text-align: left;
}

.mag-stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.mag-stat-label {
  font-size: 0.74rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Upload & Publish Banner Bar */
.mag-upload-banner-section {
  background: #FAF7F2;
  padding: 35px 0;
  border-bottom: 1px solid #E8DFCE;
}

.mag-upload-banner-card {
  background: linear-gradient(135deg, #07101E 0%, #0F2338 60%, #153252 100%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 30px 36px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(7, 16, 30, 0.15);
  position: relative;
  overflow: hidden;
}

.mag-upload-banner-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.mag-upload-text-left h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.mag-upload-text-left p {
  color: #CBD5E1;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0;
  line-height: 1.5;
}

.mag-upload-btns-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-upload-trigger {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: all 0.25s;
}

.btn-upload-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

.btn-submit-article-trigger {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-submit-article-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Magazine Archive Section */
.magazine-archive-section {
  padding: 60px 0;
  background-color: var(--bg-page);
}

.mag-archive-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.mag-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.mag-pill-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mag-pill-btn:hover,
.mag-pill-btn.active {
  background: var(--gold-primary);
  color: #07101E;
  border-color: var(--gold-primary);
}

/* Magazine Issues Grid */
.magazine-issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.magazine-issue-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.magazine-issue-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-bright);
  box-shadow: 0 20px 40px rgba(7, 16, 30, 0.12);
}

.mag-card-cover-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  perspective: 900px;
}

.mag-card-cover-wrapper {
  width: 100%;
  max-width: 210px;
  height: 290px;
  position: relative;
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.magazine-issue-card:hover .mag-card-cover-wrapper {
  transform: rotateY(-2deg) rotateX(0deg) scale(1.03);
}

.mag-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: inset 2px 0 6px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.18);
  display: block;
}

.mag-card-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid #FFFFFF;
  z-index: 5;
}

.badge-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #07101E;
}

.badge-blue {
  background: linear-gradient(135deg, #93C5FD 0%, #2563EB 100%);
  color: #FFFFFF;
}

.badge-maroon {
  background: linear-gradient(135deg, #FDA4AF 0%, #BE123C 100%);
  color: #FFFFFF;
}

.mag-card-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mag-card-urdu-title {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 2px;
}

.mag-card-eng-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.mag-card-quarter {
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mag-card-topics-list {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}

.mag-card-specs {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 14px;
}

.mag-card-actions-row {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-mag-read {
  flex: 1;
  text-align: center;
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mag-read:hover {
  background: var(--gold-primary);
  color: #07101E;
}

.btn-mag-dl {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mag-dl:hover {
  background: #07101E;
  color: #FFFFFF;
  border-color: #07101E;
}

/* Rectangular Download PDF Button (Magazine Section) */
.btn-mag-dl-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #07101E 0%, #1E293B 100%);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
}

.btn-mag-dl-rect:hover {
  background: linear-gradient(135deg, #C69A43 0%, #D4AF37 100%);
  color: #07101E !important;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(198, 154, 67, 0.35);
}

/* Editorial Board Section */
.magazine-editorial-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #07101E 0%, #0C1E34 60%, #07101E 100%);
  color: #FFFFFF;
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.editorial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.editorial-card:hover {
  border-color: var(--gold-bright);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.editorial-avatar-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--border-gold);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px auto;
}

.editorial-role-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.editorial-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.editorial-urdu-name {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.editorial-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.45;
}

/* Writers Guidelines Section */
.magazine-guidelines-section {
  padding: 60px 0;
  background: #FAF7F2;
}

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

.guideline-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.guideline-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: #B48D19;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.guideline-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.guideline-card p {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.5;
}

/* Modal for Magazine Upload */
.mag-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mag-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mag-modal-container {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-gold);
}

.mag-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 14px;
}

.mag-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--text-dark);
}

.mag-modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s;
}

.mag-modal-close-btn:hover {
  background: #E2E8F0;
  color: #07101E;
}

.mag-form-group {
  margin-bottom: 16px;
}

.mag-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.mag-form-input,
.mag-form-select,
.mag-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.mag-form-input:focus,
.mag-form-select:focus,
.mag-form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.mag-dropzone-box {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.25s;
}

.mag-dropzone-box:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.05);
}

.mag-dropzone-icon {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.btn-modal-publish-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: all 0.25s;
}

.btn-modal-publish-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
}

/* Elegant Call To Action for Topic Selection */
.btn-select-topic-vibrant {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-select-topic-vibrant:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

.btn-select-topic-vibrant:active {
  transform: translateY(0);
}

.btn-select-topic-vibrant i {
  color: #FFFFFF;
  transition: transform 0.25s ease;
}

.btn-select-topic-vibrant:hover i.fa-arrow-left {
  transform: translateX(-3px);
}

/* Modal Dynamic Green Button */
.btn-topic-submit-state {
  width: 100%;
  padding: 10px 14px;
  font-size: 1.05rem;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #E2E8F0;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-weight: 700;
}

.btn-topic-submit-state.btn-active-green,
.btn-active-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  cursor: pointer !important;
  transform: translateY(-1px);
}

.btn-topic-submit-state.btn-active-green:hover,
.btn-active-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
}

.btn-select-topic-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* Responsive Media Queries for Magazine */
@media (max-width: 1024px) {
  .magazine-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mag-hero-tagline-bar {
    align-self: center;
  }
  .mag-hero-features-row,
  .mag-hero-actions-row {
    justify-content: center;
  }
  .magazine-issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guidelines-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mag-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .magazine-issues-grid {
    grid-template-columns: 1fr;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .mag-upload-banner-card {
    flex-direction: column;
    text-align: center;
  }
  .mag-upload-btns-group {
    justify-content: center;
  }
}

/* ==========================================================================
   MODERN BLOGS & WRITERS ECOSYSTEM STYLES
   ========================================================================== */

/* Blog Top Hero Section */
.blog-hero-section {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.94) 0%, rgba(11, 25, 44, 0.85) 50%, rgba(7, 16, 30, 0.96) 100%),
              url('../assets/images/darul-ishaat-bg.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 60px 0 55px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
}

.blog-hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border-gold);
  padding: 6px 20px;
  border-radius: 50px;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.blog-hero-arabic-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.5;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.7), 0 0 25px rgba(212, 175, 55, 0.35);
  letter-spacing: 0px !important;
}

.blog-hero-eng-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.blog-hero-eng-title em {
  color: var(--gold-bright);
  font-style: italic;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin: 0 auto 28px auto;
  max-width: 660px;
}

/* Hero Search & Filter Row */
.blog-hero-search-wrapper {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50px;
  padding: 6px 10px 6px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.blog-hero-search-wrapper:focus-within {
  border-color: var(--gold-bright);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.blog-hero-search-wrapper i {
  color: var(--gold-bright);
  font-size: 1.1rem;
}

.blog-hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
}

.blog-hero-search-input::placeholder {
  color: #94A3B8;
}

.btn-blog-search-submit {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-blog-search-submit:hover {
  background: linear-gradient(135deg, #FFE894 0%, var(--gold-bright) 100%);
  transform: translateY(-1px);
}

/* Category Filter Bar */
.blog-nav-bar {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 14px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.blog-cats-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) #F1F5F9;
}

.blog-cats-flex::-webkit-scrollbar {
  height: 4px;
}
.blog-cats-flex::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

.blog-cat-btn {
  white-space: nowrap;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 7px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: #07101E;
  color: var(--gold-bright);
  border-color: #07101E;
  box-shadow: 0 4px 12px rgba(7, 16, 30, 0.15);
}

.blog-cat-btn .cat-badge {
  background: rgba(212, 175, 55, 0.2);
  color: inherit;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 50px;
  font-weight: 700;
}

/* Featured / Spotlight Blog Article */
.blog-featured-section {
  padding: 50px 0 20px 0;
}

.blog-featured-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.35s ease;
  position: relative;
}

.blog-featured-card:hover {
  box-shadow: 0 20px 45px rgba(7, 16, 30, 0.12);
  border-color: var(--gold-bright);
  transform: translateY(-4px);
}

.blog-featured-img-box {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.blog-featured-img-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 16, 30, 0.85) 0%, rgba(7, 16, 30, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.blog-featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 100%);
  color: #07101E;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.blog-featured-views-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(7, 16, 30, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.blog-featured-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-category {
  color: var(--gold-primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-featured-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: 0px !important;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}

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

.blog-featured-excerpt {
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-featured-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-author-info-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
  background: #F1F5F9;
}

.blog-author-meta-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-author-meta-name:hover {
  color: var(--gold-primary);
}

.blog-author-verified-icon {
  color: #1D9BF0;
  font-size: 0.85rem;
}

.blog-post-date-tag {
  font-size: 0.78rem;
  color: #94A3B8;
}

/* Modern Blog Cards Grid */
.blog-cards-grid-section {
  padding: 40px 0 60px 0;
}

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

.modern-blog-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
}

.modern-blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-bright);
  box-shadow: 0 20px 40px rgba(7, 16, 30, 0.1);
}

.modern-card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: #07101E;
}

.modern-card-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 16, 30, 0.88) 0%, rgba(7, 16, 30, 0.15) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modern-blog-card:hover .modern-card-img-wrapper::before {
  opacity: 0.95;
}

.modern-card-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-card-views-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.modern-card-overlay-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  z-index: 2;
}

.modern-card-urdu-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0px !important;
}

.modern-card-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modern-card-excerpt {
  color: #64748B;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modern-card-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
}

.modern-author-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.modern-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  background: #E2E8F0;
  flex-shrink: 0;
}

.modern-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.modern-author-link:hover .modern-author-name {
  color: var(--gold-primary);
}

.modern-post-date {
  font-size: 0.72rem;
  color: #94A3B8;
}

.modern-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.modern-action-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.modern-action-btn:hover {
  background: #07101E;
  color: var(--gold-bright);
  border-color: #07101E;
}

.modern-action-btn.active-like {
  color: #EF4444;
  border-color: #FECACA;
  background: #FEF2F2;
}

.modern-action-btn.active-saved {
  color: var(--gold-primary);
  border-color: var(--gold-bright);
  background: var(--gold-bg);
}

/* Interactive Share Drawer / Menu */
.modern-share-menu {
  position: absolute;
  bottom: 42px;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(7, 16, 30, 0.18);
  padding: 8px;
  display: none;
  min-width: 170px;
  z-index: 50;
  animation: slideUp 0.2s ease;
}

.modern-share-menu.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modern-share-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #1E293B;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.modern-share-item:hover {
  background: #F1F5F9;
  color: var(--gold-primary);
}

/* Become a Writer & Contribute CTA Banner */
.blog-contribute-cta-section {
  padding: 40px 0 60px 0;
}

.blog-contribute-card {
  background: linear-gradient(135deg, #07101E 0%, #0F2642 60%, #153860 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 24px;
  padding: 40px 48px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: 0 15px 40px rgba(7, 16, 30, 0.25);
  position: relative;
  overflow: hidden;
}

.blog-contribute-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.blog-contribute-left h3 {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 2.2rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
  line-height: 1.3;
}

.blog-contribute-left p {
  color: #CBD5E1;
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}

.blog-contribute-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Featured Writers Carousel / Grid */
.blog-writers-showcase-section {
  background: #FAF7F2;
  padding: 60px 0;
  border-top: 1px solid #E8DFCE;
  border-bottom: 1px solid #E8DFCE;
}

.writers-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.writer-showcase-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.writer-showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-bright);
  box-shadow: 0 15px 35px rgba(7, 16, 30, 0.1);
}

.writer-showcase-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px auto;
}

.writer-showcase-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  background: #F1F5F9;
}

.writer-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #1D9BF0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.68rem;
  border: 2px solid #FFFFFF;
}

.writer-showcase-name {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.writer-showcase-role {
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.writer-showcase-stats-bar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  padding: 10px 0;
  margin-bottom: 16px;
}

.writer-stat-item-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #07101E;
}

.writer-stat-item-label {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
}

.btn-writer-view-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: #07101E;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-writer-view-profile:hover {
  background: var(--gold-primary);
  color: #07101E;
}

/* ==========================================================================
   SINGLE ARTICLE (post.php) VIEW STYLES
   ========================================================================== */

.single-post-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-bright) 0%, #F59E0B 100%);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease;
}

.single-post-main {
  max-width: 920px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.single-post-article-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 42px 48px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.single-post-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

.single-post-title {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 2.4rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 22px;
  text-align: right;
  direction: rtl;
  letter-spacing: 0px !important;
}

.single-post-meta-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 22px;
  margin-bottom: 34px;
}

.single-post-author-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.single-post-author-box a {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

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

.single-post-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-font-dropdown {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  direction: rtl;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  outline: none;
}

.btn-reading-control {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

.btn-reading-control:hover {
  background: #07101E;
  color: #FFFFFF;
  border-color: #07101E;
}

/* Calligraphic Ayat & Hadith Box */
.quran-ayah-box {
  background: #FFFDF9;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-right: 5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 30px 0;
  text-align: right;
  direction: rtl;
  position: relative;
}

.quran-ayah-arabic {
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.6rem;
  color: #07101E;
  line-height: 1.8;
  margin-bottom: 10px;
  font-weight: 700;
}

.quran-ayah-translation {
  color: #475569;
  font-size: 1.15rem;
  line-height: 2.1;
  font-style: normal;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  letter-spacing: 0px !important;
}

.quran-ayah-ref {
  color: var(--gold-primary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 8px;
  display: block;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
}

/* Callout Blocks for Editor Cards */
.ayah-box {
  background: #F0FDF4;
  border-right: 5px solid #10B981;
  border-left: 1px solid #BBF7D0;
  border-top: 1px solid #BBF7D0;
  border-bottom: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 18px 24px;
  margin: 22px 0;
  font-family: 'Quranic', 'Amiri', serif !important;
  font-size: 1.45rem;
  line-height: 2.2;
  color: #065F46;
  text-align: center;
  direction: rtl;
}

.quote-box {
  background: #F8FAFC;
  border-right: 5px solid var(--gold-primary);
  border-left: 1px solid #E2E8F0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 22px;
  margin: 20px 0;
  color: #85590E;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.2rem;
  line-height: 2.1;
  direction: rtl;
  text-align: right;
}

/* Article Body Typography - Default Mehr Nastaliq */
.single-post-body {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.38rem;
  line-height: 2.3;
  color: #1E293B;
  text-align: justify;
  direction: rtl;
  letter-spacing: 0px !important;
}

.single-post-body p {
  margin-bottom: 26px;
  line-height: 2.3;
}

.single-post-body h2,
.single-post-body h3 {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  color: #07101E;
  margin: 38px 0 20px 0;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 8px;
  line-height: 1.7;
  letter-spacing: 0px !important;
}

/* Custom Overrides if selected by writer */
.font-choice-jameel,
.font-choice-jameel .single-post-body,
.font-choice-jameel .single-post-title {
  font-family: 'Jameel Noori Nastaleeq', 'Mehr', serif !important;
}

.font-choice-amiri,
.font-choice-amiri .single-post-body,
.font-choice-amiri .single-post-title {
  font-family: 'Amiri', serif !important;
  line-height: 1.95 !important;
}

.font-choice-noto,
.font-choice-noto .single-post-body,
.font-choice-noto .single-post-title {
  font-family: 'Noto Nastaliq Urdu', 'Mehr', serif !important;
}

/* Post Share and Like Bar */
.post-reaction-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 24px;
  margin: 40px 0;
}

.post-share-icons-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-post-share-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.btn-post-share-circle:hover {
  transform: translateY(-2px);
}

.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #000000; }
.share-copy { background: #07101E; color: var(--gold-bright); }

/* Post Author Bio Box */
.post-author-bio-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-gold);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.post-author-bio-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-primary);
  flex-shrink: 0;
}

/* Comments Section */
.post-comments-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  margin-top: 36px;
}

.post-comment-item {
  border-bottom: 1px solid #F1F5F9;
  padding: 18px 0;
}

.post-comment-item:last-child {
  border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .offer-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .modern-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .writers-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mehrab-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .modern-blog-grid {
    grid-template-columns: 1fr;
  }
  .writers-showcase-grid {
    grid-template-columns: 1fr;
  }
  .single-post-article-card {
    padding: 24px 20px;
  }
  .single-post-title {
    font-size: 1.8rem;
  }
  .post-author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  .mehrab-section-title {
    font-size: 2.1rem !important;
  }
}

@media (max-width: 600px) {
  .offer-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mehrab-articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   QADRI WELFARE MISSION - DEDICATED WELFARE SERVICES PAGE STYLES (welfare.php)
   ========================================================================== */

/* 1. Welfare Top Ticker */
.welfare-top-ticker {
  background: linear-gradient(90deg, #07101E 0%, #0F2038 50%, #07101E 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 10px 0;
  font-size: 0.86rem;
  color: #E2E8F0;
}
.welfare-ticker-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.welfare-ticker-badge {
  background: var(--gold-bright);
  color: #07101E;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.welfare-ticker-wa {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}
.welfare-ticker-wa:hover {
  color: #FFF;
  text-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

/* 2. Welfare Hero Section */
.welfare-hero-section {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.91) 0%, rgba(15, 32, 56, 0.85) 50%, rgba(7, 16, 30, 0.94) 100%),
              url('../assets/images/welfare-hero.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 70px 0 85px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border-gold);
}
.welfare-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.welfare-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid var(--border-gold);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.welfare-quranic-verse {
  font-family: var(--font-quranic, 'Amiri', serif);
  font-size: 1.85rem;
  color: var(--gold-bright);
  margin-bottom: 12px;
  line-height: 1.6;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
}
.welfare-quranic-translation {
  font-size: 0.95rem;
  color: #CBD5E1;
  font-style: italic;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.welfare-main-title-ur {
  font-family: var(--font-bombay, serif);
  font-size: 3.4rem;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}
.welfare-main-title-en {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.welfare-hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #E2E8F0;
  max-width: 800px;
  margin: 0 auto 32px auto;
  font-family: var(--font-mehr, serif);
  direction: rtl;
}
.welfare-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3. Welfare Stats Bar */
.welfare-stats-bar {
  background: #FFFFFF;
  margin-top: -38px;
  position: relative;
  z-index: 10;
  padding: 0;
}
.welfare-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(7, 16, 30, 0.12);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
}
.welfare-stat-card {
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.welfare-stat-card:last-child {
  border-right: none;
}
.welfare-stat-card:hover {
  background: #FDFBF7;
  transform: translateY(-2px);
}
.welfare-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.welfare-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-navy-dark);
  line-height: 1.2;
}
.welfare-stat-label {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 4px;
  font-weight: 600;
}
.welfare-stat-sub-ur {
  font-family: var(--font-mehr, serif);
  font-size: 0.88rem;
  color: #0F172A;
  direction: rtl;
  margin-top: 2px;
}

/* 4. Welfare Section Headings */
.welfare-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px auto;
}
.welfare-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  color: #B45309;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.welfare-title-large {
  font-family: var(--font-bombay, serif);
  font-size: 2.7rem;
  color: var(--bg-navy-dark);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.welfare-subtitle-mehr {
  font-family: var(--font-mehr, serif);
  font-size: 1.2rem;
  color: #475569;
  direction: rtl;
  margin: 0;
  line-height: 1.7;
}

/* 5. Welfare Pillars Grid */
.welfare-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.welfare-pillar-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 12px 30px rgba(7, 16, 30, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}
.welfare-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(7, 16, 30, 0.12);
  border-color: var(--gold-bright);
}
.welfare-pillar-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.welfare-pillar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.welfare-pillar-card:hover .welfare-pillar-img {
  transform: scale(1.06);
}
.welfare-pillar-overlay-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(7, 16, 30, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welfare-pillar-category-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: var(--gold-bright);
  color: #07101E;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.welfare-pillar-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.welfare-pillar-title-ur {
  font-family: var(--font-mehr, serif);
  font-size: 1.45rem;
  color: var(--bg-navy-dark);
  margin: 0 0 6px 0;
  direction: rtl;
  text-align: right;
  line-height: 1.4;
}
.welfare-pillar-title-en {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 14px;
}
.welfare-pillar-desc {
  font-family: var(--font-mehr, serif);
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  margin-bottom: 18px;
  flex-grow: 1;
}
.welfare-pillar-meta-row {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #E2E8F0;
}
.welfare-cost-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #B45309;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.welfare-impact-tag {
  font-size: 0.78rem;
  color: #10B981;
  font-weight: 700;
}
.welfare-progress-container {
  margin-bottom: 18px;
}
.welfare-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 6px;
}
.welfare-progress-bar-bg {
  height: 7px;
  background: #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.welfare-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
  border-radius: 10px;
}
.welfare-pillar-btn {
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  width: 100%;
  cursor: pointer;
}
.welfare-pillar-btn:hover {
  background: var(--gold-bright);
  color: #07101E;
  border-color: var(--gold-bright);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* 6. Transparency Process Section */
.welfare-process-section {
  background: #FDFBF7;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 70px 0;
}
.welfare-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.welfare-process-card {
  background: #FFFFFF;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.25);
  text-align: center;
  box-shadow: 0 8px 24px rgba(7, 16, 30, 0.04);
  transition: all 0.3s ease;
  position: relative;
}
.welfare-process-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 32px rgba(7, 16, 30, 0.08);
}
.welfare-process-step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--gold-bright);
}
.welfare-process-icon {
  width: 56px;
  height: 56px;
  margin: 12px auto 16px auto;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.welfare-process-title-ur {
  font-family: var(--font-mehr, serif);
  font-size: 1.3rem;
  color: var(--bg-navy-dark);
  margin-bottom: 6px;
}
.welfare-process-title-en {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 10px;
}
.welfare-process-desc {
  font-family: var(--font-mehr, serif);
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

/* 7. Interactive Donation Hub & Bank Details */
.welfare-donation-hub {
  padding: 70px 0;
  background: #FFFFFF;
}
.welfare-donate-card-wrapper {
  background: linear-gradient(135deg, #07101E 0%, #0F233E 100%);
  border-radius: 24px;
  border: 2px solid rgba(212, 175, 55, 0.45);
  padding: 44px;
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(7, 16, 30, 0.2);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.welfare-donate-left h3 {
  font-family: var(--font-bombay, serif);
  font-size: 2.5rem;
  color: var(--gold-bright);
  margin: 0 0 10px 0;
}
.welfare-donate-left p {
  font-family: var(--font-mehr, serif);
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.8;
  direction: rtl;
  margin-bottom: 24px;
}
.welfare-bank-info-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.welfare-bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}
.welfare-bank-detail-row:last-child {
  border-bottom: none;
}
.welfare-bank-label {
  color: #94A3B8;
}
.welfare-bank-val {
  font-weight: 700;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.welfare-copy-btn {
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-bright);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.welfare-copy-btn:hover {
  background: var(--gold-bright);
  color: #07101E;
}

/* Donation Form on Right */
.welfare-interactive-form-box {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 32px 28px;
  color: #07101E;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
.welfare-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-navy-dark);
  margin-bottom: 6px;
  text-align: center;
}
.welfare-form-sub {
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
  margin-bottom: 20px;
}
.welfare-fund-type-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.welfare-fund-pill {
  padding: 8px 4px;
  text-align: center;
  border-radius: 8px;
  background: #F1F5F9;
  border: 1.5px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
}
.welfare-fund-pill.active {
  background: #FEF3C7;
  border-color: #D97706;
  color: #92400E;
}
.welfare-amount-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.welfare-amt-btn {
  padding: 9px 4px;
  text-align: center;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.2s ease;
}
.welfare-amt-btn.active {
  background: var(--bg-navy-dark);
  color: var(--gold-bright);
  border-color: var(--bg-navy-dark);
}
.welfare-form-field {
  margin-bottom: 14px;
}
.welfare-form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.welfare-form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.welfare-form-input:focus {
  border-color: #B45309;
}
.welfare-submit-donate-btn {
  width: 100%;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  font-weight: 800;
  padding: 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.3);
  transition: all 0.25s ease;
}
.welfare-submit-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(180, 83, 9, 0.4);
}

/* 8. Volunteer Callout Banner */
.welfare-volunteer-banner {
  background: linear-gradient(135deg, #F8FAFC 0%, #FEF9EE 100%);
  border-radius: 20px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 50px;
}

/* Responsive queries */
@media (max-width: 992px) {
  .welfare-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .welfare-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welfare-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welfare-donate-card-wrapper {
    grid-template-columns: 1fr;
  }
  .welfare-volunteer-banner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .welfare-main-title-ur {
    font-size: clamp(1.15rem, 5.2vw, 1.85rem) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    margin: 6px 0 2px 0 !important;
    font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  }
  .welfare-main-title-en {
    font-size: clamp(0.7rem, 3vw, 1.05rem) !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    margin-bottom: 10px !important;
  }
  .welfare-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    overflow-x: auto !important;
    padding: 6px 2px !important;
    border-radius: 12px !important;
  }
  .welfare-stat-card {
    padding: 8px 3px !important;
    border-right: 1px solid #F1F5F9 !important;
    border-bottom: none !important;
    min-width: 58px !important;
  }
  .welfare-stat-card:last-child {
    border-right: none !important;
  }
  .welfare-stat-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.78rem !important;
    margin-bottom: 4px !important;
    border-radius: 6px !important;
  }
  .welfare-stat-num {
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
  }
  .welfare-stat-label {
    display: none !important;
  }
  .welfare-stat-sub-ur {
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
    margin-top: 2px !important;
    white-space: normal !important;
  }
  .welfare-pillars-grid {
    grid-template-columns: 1fr;
  }
  .welfare-process-grid {
    grid-template-columns: 1fr;
  }

  /* Welfare Donation Hub Mobile Polish */
  .welfare-donation-hub {
    padding: 30px 0 !important;
  }
  .welfare-donate-card-wrapper {
    padding: 16px 14px !important;
    border-radius: 18px !important;
    gap: 22px !important;
  }
  .welfare-donate-left h3 {
    font-size: 1.35rem !important;
    line-height: 1.4 !important;
  }
  .welfare-donate-left p {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
  }
  .welfare-bank-info-box {
    padding: 12px 14px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
  }
  .welfare-bank-detail-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 8px 0 !important;
    font-size: 0.84rem !important;
  }
  .welfare-bank-val {
    width: 100% !important;
    justify-content: space-between !important;
    font-size: 0.92rem !important;
  }
  .welfare-copy-btn {
    padding: 3px 10px !important;
    font-size: 0.74rem !important;
  }
  .welfare-interactive-form-box {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .welfare-form-title {
    font-size: 1.25rem !important;
  }
  .welfare-fund-type-pills {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .welfare-fund-pill {
    padding: 7px 4px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0px !important;
  }
  .welfare-amount-pills {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
  }
  .welfare-amt-btn {
    padding: 8px 2px !important;
    font-size: 0.82rem !important;
  }
  .welfare-form-field {
    margin-bottom: 12px !important;
  }
  .welfare-form-input {
    padding: 9px 12px !important;
    font-size: 0.9rem !important;
  }
  .welfare-submit-donate-btn {
    padding: 12px !important;
    font-size: 0.92rem !important;
  }
  .welfare-volunteer-banner {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    gap: 18px !important;
    margin-top: 30px !important;
  }
  .welfare-volunteer-banner h3 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
  }
  .welfare-volunteer-banner p {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
  }
}

/* ==========================================================================
   MASTER RESPONSIVE & MOBILE MODE SYSTEM
   (Strict Zero-Regression Desktop Guarantee: min-width: 993px untouched)
   ========================================================================== */

/* 1. DESKTOP SAFETY SHIELD (Desktop nav intact, mobile drawer hidden) */
@media (min-width: 993px) {
  .mobile-nav-toggle {
    display: none !important;
  }
  .mobile-nav-backdrop {
    display: none !important;
  }
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* 2. MOBILE NAVIGATION DRAWER & TOGGLE COMPONENT */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  z-index: 1001;
}

.mobile-nav-toggle .hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--gold-bright);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-nav-toggle:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86vw;
  max-width: 350px;
  background: linear-gradient(180deg, #07101E 0%, #0B192C 55%, #07101E 100%);
  border-left: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.65);
  z-index: 1999;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: drawerSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(7, 16, 30, 0.95);
}

.mobile-drawer-brand img {
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-bright);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-drawer-close:hover {
  background: var(--gold-bright);
  color: #07101E;
  transform: rotate(90deg);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-arabic-badge {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-size: 1.15rem;
  color: var(--gold-bright);
  text-align: center;
  padding: 7px 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  letter-spacing: 0px !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #E2E8F0;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.mobile-nav-item i {
  color: var(--gold-bright);
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  transform: translateX(-4px);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.mobile-btn-login:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.mobile-btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(135deg, #FDE68A 0%, var(--gold-bright) 100%);
  color: #07101E;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
}

.mobile-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.5);
}

.mobile-btn-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transition: all 0.25s ease;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.mobile-drawer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mobile-drawer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.mobile-drawer-socials a:hover {
  background: var(--gold-bright);
  color: #07101E;
}

.mobile-drawer-footer p {
  font-size: 0.74rem;
  color: #94A3B8;
  margin: 0;
}

/* 3. TABLET & MEDIUM SCREENS (max-width: 992px) */
@media (max-width: 992px) {
  /* Navigation */
  .nav-menu {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 45px 0 26px 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.2vw, 2.25rem);
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
    width: 100%;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hero-visual {
    align-items: center;
    margin-top: 8px;
    width: 100%;
  }
  .arabic-calligraphy-banner {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    padding: 7px 18px;
  }

  /* Publications Split Grid */
  .pub-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pub-single-feature-card,
  .pub-single-feature-card.glass-card-pub {
    min-height: auto;
  }

  /* Magazine Showcase Hero */
  .magazine-hero-banner,
  .magazine-hero-banner.glass-card-magazine {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 22px;
    text-align: center;
  }
  .magazine-hero-text {
    align-items: center;
  }
  .magazine-action-btns {
    justify-content: center;
  }
  .magazine-dual-covers-wrapper {
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
  }
  .magazine-3d-wrapper {
    max-width: 180px;
  }
  .magazine-3d-card {
    height: 250px;
  }

  /* What We Offer */
  .offer-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  /* Featured Cards (Academy, Welfare, Trending) */
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Two-Row Arched Articles Slider */
  .articles-slide-page {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 16px;
  }

  /* Video Section */
  .videos-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gallery-settled-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Newsletter & Footer */
  .newsletter-flex {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .newsletter-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* 4. SMARTPHONES & COMPACT TABLETS (max-width: 768px) */
@media (max-width: 768px) {
  /* Header adjustments */
  .header-container {
    height: 64px;
    padding: 0 14px;
  }
  .brand-logo {
    margin-right: 0 !important;
    gap: 0;
    flex-shrink: 1;
    min-width: 0;
  }
  .brand-logo img {
    height: 38px !important;
    max-width: 160px !important;
    width: auto;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .header-actions .register-header-btn {
    display: none !important;
  }
  .header-actions .header-login-btn {
    display: inline-flex !important;
    padding: 6px 12px !important;
    font-size: 0.82rem !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
    width: 38px;
    height: 38px;
    padding: 8px 7px;
  }
  .header-profile-btn {
    display: none !important;
  }
  .header-profile-btn.logged-in {
    display: inline-flex !important;
    padding: 1px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
  }
  .header-profile-btn.logged-in:hover {
    transform: none !important;
  }
  .header-profile-btn.logged-in .header-avatar-img {
    transform: none !important;
    transition: none !important;
  }
  .header-profile-name {
    display: none !important;
  }
  .header-avatar-wrapper {
    width: 38px !important;
    height: 38px !important;
  }

  /* Hero Section: Proportional, scaled-down desktop look on mobile */
  .hero-section {
    padding: 34px 0 20px 0;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .hero-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    line-height: 1.25;
    margin-bottom: 14px;
    text-align: center;
  }
  .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
  }
  .hero-donate-btn,
  .hero-auth-btn {
    flex: 0 1 auto;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px;
    padding-top: 14px;
    margin-top: 6px;
    width: 100%;
  }
  .metric-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .metric-icon {
    font-size: 1rem;
    margin: 0;
  }
  .metric-number {
    font-size: 0.98rem;
    line-height: 1.1;
  }
  .metric-label {
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .hero-visual {
    align-items: center;
    margin-top: 4px;
    width: 100%;
  }
  .arabic-calligraphy-banner {
    margin: 0 auto;
    max-width: 290px;
    padding: 6px 16px;
  }
  .arabic-calligraphy-banner .arabic-text {
    font-size: 1.05rem;
  }

  /* Publications Single Feature Card: Full 3D Book Picture & Side-by-Side Buttons */
  .pub-single-feature-card,
  .pub-single-feature-card.glass-card-pub {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 14px;
    gap: 16px;
    border-radius: 24px !important;
    overflow: hidden !important;
  }
  .pub-single-visual {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .book-3d-perspective.pub-single-perspective {
    width: 200px !important;
    max-width: 90% !important;
    height: 290px !important;
    margin: 0 auto;
  }
  .pub-single-perspective .book-cover-img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
  }
  .pub-single-details {
    align-items: center;
    text-align: center;
    gap: 10px !important;
  }
  .pub-featured-urdu-title {
    font-size: 1.45rem !important;
    margin-bottom: 2px;
  }
  /* Buttons side-by-side (aamne saamne), not stacked (tal-uppar) */
  .pub-featured-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  .btn-pub-preview-main,
  .btn-pub-order-main {
    flex: 1 1 50% !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
    font-size: 0.98rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 8px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  /* Dar-ul-Isha'at Mehrab Card */
  .darul-ishaat-glass-card {
    padding: 20px 14px !important;
  }
  .glass-arabic-title {
    font-size: 1.7rem !important;
  }
  .glass-english-title {
    font-size: 1.2rem !important;
  }
  .glass-enter-action {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .btn-enter-center {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  /* Magazine Showcase: Compact Box, Hidden Badges/Action Button, 1-line Title */
  .magazine-hero-banner,
  .magazine-hero-banner.glass-card-magazine {
    padding: 20px 14px !important;
    border-radius: 16px !important;
    gap: 16px !important;
  }
  .magazine-issue-badge {
    display: none !important;
  }
  .magazine-action-btns {
    display: none !important;
  }
  .magazine-hero-title,
  .magazine-hero-banner .section-title-large {
    font-size: clamp(1.25rem, 5vw, 1.65rem) !important;
    white-space: nowrap !important;
    margin: 4px 0 14px 0 !important;
    letter-spacing: -0.3px !important;
    text-align: center !important;
  }
  .magazine-dual-covers-wrapper {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }
  .magazine-3d-wrapper {
    flex: 0 1 135px !important;
    max-width: 135px !important;
  }
  .magazine-3d-card {
    height: 185px !important;
  }

  /* Compact Digital Academy & Welfare Services Cards */
  .card-academy,
  .card-welfare {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }
  .academy-icon-box,
  .welfare-icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
  }
  .card-academy .card-title-lg,
  .card-welfare .card-title-lg {
    font-size: 1.25rem !important;
    margin-bottom: 4px !important;
  }
  .card-academy .card-accent-tag,
  .card-welfare .card-accent-tag {
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
  }
  .card-academy .card-body-text,
  .card-welfare .card-body-text {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .btn-navy-pill,
  .btn-brown-pill {
    padding: 8px 18px !important;
    font-size: 0.78rem !important;
    border-radius: 50px !important;
  }

  /* Articles Section: Clean Unobstructed Thumbnails & 2 Rows (Lines) Slider */
  .articles-slider-viewport {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    border-radius: 16px !important;
    padding: 6px 2px 10px 2px !important;
    scrollbar-width: none !important;
  }
  .articles-slider-viewport::-webkit-scrollbar {
    display: none !important;
  }
  .articles-slider-track {
    display: flex !important;
    width: max-content !important;
    transform: none !important;
    gap: 12px !important;
  }
  .articles-slide-page {
    display: grid !important;
    grid-template-columns: repeat(5, 175px) !important;
    grid-template-rows: repeat(2, 235px) !important;
    gap: 10px !important;
    width: max-content !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
  }
  .mehrab-article-card {
    width: 175px !important;
    height: 235px !important;
    border-radius: 14px 14px 10px 10px !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Clean Unobstructed Thumbnail - No overlays or clutter */
  .mehrab-card-arch-top {
    height: 95px !important;
    min-height: 95px !important;
    border-radius: 12px 12px 0 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }
  .mehrab-card-arch-img {
    border-radius: 12px 12px 0 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .mehrab-card-arch-overlay,
  .mehrab-arch-border-line,
  .mehrab-cat-badge,
  .mehrab-card-arch-top .mehrab-views-badge {
    display: none !important;
  }
  .mehrab-card-body {
    padding: 8px 8px !important;
    gap: 4px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .mehrab-article-title {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .mehrab-article-excerpt {
    display: none !important;
  }
  .mehrab-author-row {
    margin-top: 3px !important;
    padding-top: 3px !important;
    gap: 5px !important;
  }
  .mehrab-author-avatar {
    width: 20px !important;
    height: 20px !important;
  }
  .mehrab-author-name {
    font-size: 0.68rem !important;
  }
  .mehrab-meta-info {
    font-size: 0.62rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .btn-mehrab-read {
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
    margin-top: 3px !important;
  }
  .mehrab-section-title {
    font-size: 1.95rem !important;
  }
  .mehrab-section-subtitle {
    font-size: 0.9rem !important;
  }

  /* Gallery: Centered Title, Reduced Gap, 1 Single Line Slider */
  .gallery-section-modern {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .gallery-header-box {
    text-align: center !important;
    margin-bottom: 14px !important;
  }
  .gallery-heading,
  .gallery-section-modern .section-title-large {
    text-align: center !important;
    font-size: 1.45rem !important;
    margin: 0 auto !important;
  }
  .gallery-settled-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 12px !important;
    padding: 6px 2px 14px 2px !important;
    scrollbar-width: none !important;
  }
  .gallery-settled-grid::-webkit-scrollbar {
    display: none !important;
  }
  .gallery-settled-card {
    flex: 0 0 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    scroll-snap-align: start !important;
    border-radius: 14px !important;
  }
  .gallery-card-img-wrap {
    height: 140px !important;
  }
  .gallery-card-details {
    padding: 10px 10px !important;
  }
  .gallery-card-title-ur {
    font-size: 0.92rem !important;
    margin-bottom: 2px !important;
  }
  .gallery-card-title-en {
    font-size: 0.7rem !important;
  }

  /* Video Section: Centered Title, Big Player Hidden, 1-Line Clean Slider */
  .latest-videos-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .videos-header-flex {
    text-align: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
  }
  .videos-main-heading {
    text-align: center !important;
    font-size: 1.45rem !important;
    margin: 0 auto !important;
  }
  .videos-header-actions {
    display: none !important;
  }
  .videos-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Hide the big video player card on mobile */
  .video-featured-player-card {
    display: none !important;
  }
  .videos-playlist-sidebar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
  }
  .playlist-sidebar-header {
    display: none !important;
  }
  .playlist-items-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 10px !important;
    padding: 2px 2px 10px 2px !important;
    max-height: none !important;
    scrollbar-width: none !important;
  }
  .playlist-items-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .playlist-video-card {
    flex: 0 0 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(13, 27, 42, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    gap: 6px !important;
  }
  .playlist-thumb-box {
    width: 100% !important;
    height: 105px !important;
    border-radius: 8px !important;
  }
  .playlist-meta-box {
    width: 100% !important;
  }
  .playlist-item-title {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    white-space: normal !important;
  }
  .playlist-item-speaker {
    font-size: 0.68rem !important;
    color: var(--gold-bright) !important;
  }

  /* Hide separate newsletter section on mobile */
  .newsletter-section {
    display: none !important;
  }

  /* Ultra-Compact Footer: Accordion Links, 1-Line Contact, Compact Newsletter */
  .footer-main {
    padding-top: 24px !important;
    padding-bottom: 16px !important;
  }
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 14px !important;
    margin-bottom: 12px !important;
  }
  .footer-brand-col {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
  .footer-logo-img {
    height: 38px !important;
    margin: 0 auto 6px auto !important;
    display: block !important;
  }
  .footer-brand-desc {
    font-size: 0.76rem !important;
    line-height: 1.4 !important;
    color: #94A3B8 !important;
    max-width: 320px !important;
    margin: 0 auto 8px auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .footer-stay-connected {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 6px auto !important;
  }
  .newsletter-form-compact {
    display: flex !important;
    flex-direction: row !important;
    border-radius: 50px !important;
    border: 1px solid var(--border-gold) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 3px !important;
    width: 100% !important;
    max-width: 300px !important;
  }
  .newsletter-input-compact {
    background: transparent !important;
    border: none !important;
    color: #FFFFFF !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    flex: 1 !important;
    outline: none !important;
    text-align: right !important;
  }
  .newsletter-btn-compact {
    background: var(--gold-bright) !important;
    border: none !important;
    border-radius: 50px !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #07101E !important;
  }
  .social-links-compact {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    margin-top: 4px !important;
  }
  .social-icon-btn-sm {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    color: var(--gold-bright) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    text-decoration: none !important;
  }

  /* Footer Links Accordion */
  .footer-links-col,
  .footer-explore-col {
    text-align: right !important;
  }
  .footer-acc-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding-bottom: 4px !important;
    margin-bottom: 4px !important;
  }
  .acc-icon {
    font-size: 0.7rem !important;
    color: var(--gold-bright) !important;
    transition: transform 0.25s ease !important;
  }
  .footer-acc-toggle.is-open .acc-icon {
    transform: rotate(180deg) !important;
  }
  .footer-acc-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.35s ease, opacity 0.25s ease !important;
    opacity: 0 !important;
  }
  .footer-acc-content.is-open {
    max-height: 250px !important;
    opacity: 1 !important;
    padding-top: 6px !important;
  }
  .footer-links-list li {
    margin-bottom: 4px !important;
    font-size: 0.76rem !important;
  }

  .footer-slogan-col {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    margin-top: 2px !important;
  }
  .arabic-footer-heading {
    font-size: 1.15rem !important;
    margin-bottom: 2px !important;
  }
  .arabic-footer-sub {
    font-size: 0.65rem !important;
    letter-spacing: 1px !important;
  }

  /* Contact Single Line */
  .footer-contact-single-line {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px 8px !important;
    font-size: 0.72rem !important;
    color: #CBD5E1 !important;
    margin: 8px auto !important;
    text-align: center !important;
  }
  .dot-sep {
    color: var(--gold-bright) !important;
  }

  /* Bottom Bar */
  .footer-bottom-bar {
    padding-top: 8px !important;
    margin-top: 8px !important;
    font-size: 0.68rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .copyright-line {
    color: #94A3B8;
  }

  /* Sub-page Tickers & Announcement Bars */
  .welfare-ticker-inner,
  .mag-ticker-flex,
  .academy-top-ticker .flex-between {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .welfare-top-ticker,
  .mag-top-ticker,
  .academy-top-ticker {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* 5. SMALL SMARTPHONES (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  /* Header */
  .header-container {
    height: 58px;
    padding: 0 10px;
  }
  .brand-logo img {
    height: 34px !important;
    max-width: 140px !important;
  }
  .header-actions {
    gap: 4px;
  }
  .search-btn {
    width: 32px;
    height: 32px;
    padding: 4px;
    font-size: 0.98rem;
  }
  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    padding: 7px 6px;
  }

  /* Hero Section: Compact scaled-down desktop look on small screens */
  .hero-section {
    padding: 24px 0 16px 0;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }
  .hero-donate-btn,
  .hero-auth-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 50px;
    white-space: nowrap;
    justify-content: center;
  }
  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px;
    padding-top: 10px;
    margin-top: 4px;
    width: 100%;
  }
  .metric-item {
    gap: 2px;
    align-items: center;
    text-align: center;
  }
  .metric-icon {
    font-size: 0.85rem;
    margin: 0;
  }
  .metric-number {
    font-size: 0.88rem;
    line-height: 1.1;
  }
  .metric-label {
    font-size: 0.62rem;
    white-space: nowrap;
  }
  .arabic-calligraphy-banner {
    max-width: 260px;
    padding: 4px 12px;
  }
  .arabic-calligraphy-banner .arabic-text {
    font-size: 0.95rem;
  }

  /* Section Title Scaler */
  .section-title-large {
    font-size: 1.45rem !important;
  }
  .section-subtitle-tag {
    font-size: 0.68rem !important;
  }

  /* Publications: Full-size 3D Book & Buttons Side-by-Side */
  .pub-single-feature-card,
  .pub-single-feature-card.glass-card-pub {
    padding: 14px 10px !important;
    border-radius: 14px !important;
    gap: 12px !important;
  }
  .book-3d-perspective.pub-single-perspective {
    width: 170px !important;
    height: 245px !important;
    margin: 0 auto !important;
  }
  .pub-featured-urdu-title {
    font-size: 1.25rem !important;
    margin-bottom: 3px !important;
  }
  .pub-featured-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }
  .btn-pub-preview-main,
  .btn-pub-order-main {
    flex: 1 1 50% !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 8px 6px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 8px !important;
    gap: 4px !important;
  }
  .glass-arabic-title {
    font-size: 1.5rem !important;
  }
  .glass-english-title {
    font-size: 1.05rem !important;
  }

  /* Magazine Hero Banner & Dual Covers */
  .magazine-hero-banner,
  .magazine-hero-banner.glass-card-magazine {
    padding: 16px 10px !important;
    border-radius: 14px !important;
    gap: 14px !important;
  }
  .magazine-hero-title,
  .magazine-hero-banner .section-title-large {
    font-size: clamp(1.12rem, 4.8vw, 1.38rem) !important;
    white-space: nowrap !important;
    margin: 4px 0 10px 0 !important;
    letter-spacing: -0.3px !important;
  }
  .magazine-dual-covers-wrapper {
    gap: 8px !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
  }
  .magazine-3d-wrapper {
    flex: 0 1 115px !important;
    max-width: 115px !important;
  }
  .magazine-3d-card {
    height: 160px !important;
    border-radius: 8px !important;
  }
  .magazine-issue-badge,
  .btn-mag-primary {
    display: none !important;
  }
  .magazine-card-label strong {
    font-size: 0.95rem !important;
  }
  .magazine-card-label span {
    font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    letter-spacing: 0px !important;
  }

  /* What We Offer 4x2 Grid (4 per row across 2 lines on mobile) */
  .offer-grid-compact {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px 5px !important;
  }
  .offer-tile {
    padding: 7px 3px !important;
    border-radius: 8px !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .offer-tile-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    margin: 0 auto 3px auto !important;
  }
  .offer-tile-title {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
  }
  .offer-tile-sub {
    font-size: 0.60rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    letter-spacing: 0px !important;
    font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
    display: block !important;
  }

  /* Compact Featured Cards (Academy & Welfare) */
  .featured-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }
  .card-academy,
  .card-welfare {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }
  .card-title-lg {
    font-size: 1.15rem !important;
  }
  .card-body-text {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Maqala Header Spacing & Single Line Subtitle on Mobile */
  .mehrab-section-header {
    margin-bottom: 16px !important;
  }
  .mehrab-arabic-ayah {
    font-size: 1.25rem !important;
    margin-bottom: 14px !important;
    line-height: 1.6 !important;
    display: block !important;
  }
  .mehrab-section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.95rem) !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: 0px !important;
  }
  .mehrab-section-subtitle {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.5 !important;
    letter-spacing: 0px !important;
    margin-bottom: 10px !important;
  }

  /* Articles Section: 2 Rows (Lines) Horizontal Slider on Small Screens */
  .articles-slider-viewport {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    border-radius: 14px !important;
    padding: 4px 0 8px 0 !important;
    scrollbar-width: none !important;
  }
  .articles-slider-viewport::-webkit-scrollbar {
    display: none !important;
  }
  .articles-slider-track {
    display: flex !important;
    width: max-content !important;
    transform: none !important;
    gap: 10px !important;
  }
  .articles-slide-page {
    display: grid !important;
    grid-template-columns: repeat(5, 155px) !important;
    grid-template-rows: repeat(2, 220px) !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: max-content !important;
    flex: 0 0 auto !important;
  }
  .mehrab-section-title {
    font-size: 1.65rem !important;
  }
  .mehrab-section-subtitle {
    font-size: 0.82rem !important;
  }
  .mehrab-article-card {
    width: 155px !important;
    height: 220px !important;
    border-radius: 12px 12px 8px 8px !important;
    scroll-snap-align: start !important;
  }
  .mehrab-card-arch-top {
    height: 85px !important;
    min-height: 85px !important;
    border-radius: 10px 10px 0 0 !important;
  }
  .mehrab-card-arch-top::after,
  .mehrab-arch-border,
  .mehrab-category-badge-floating,
  .mehrab-views-badge-floating {
    display: none !important;
  }
  .mehrab-card-body {
    padding: 6px 7px !important;
    gap: 3px !important;
  }
  .mehrab-article-title {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }
  .mehrab-author-avatar {
    width: 18px !important;
    height: 18px !important;
  }
  .mehrab-author-name {
    font-size: 0.65rem !important;
  }
  .btn-mehrab-read {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
  }

  /* Gallery: 1 Single Line Slider on Small Screens */
  .gallery-settled-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 10px !important;
    padding: 4px 2px 10px 2px !important;
    scrollbar-width: none !important;
  }
  .gallery-settled-grid::-webkit-scrollbar {
    display: none !important;
  }
  .gallery-settled-card {
    flex: 0 0 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    scroll-snap-align: start !important;
    border-radius: 12px !important;
  }
  .gallery-card-img-wrap {
    height: 125px !important;
  }
  .gallery-card-details {
    padding: 8px 8px !important;
  }
  .gallery-card-title-ur {
    font-size: 0.88rem !important;
  }

  /* Video Section: Big Player Box Hidden, 1 Single Line Slider */
  .video-featured-player-card {
    display: none !important;
  }
  .playlist-sidebar-header {
    display: none !important;
  }
  .btn-gold-channel {
    display: none !important;
  }
  .videos-playlist-sidebar {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 4px !important;
  }
  .playlist-items-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    gap: 8px !important;
    padding: 2px 2px 8px 2px !important;
    max-height: none !important;
    scrollbar-width: none !important;
  }
  .playlist-items-scroll::-webkit-scrollbar {
    display: none !important;
  }
  .playlist-video-card {
    flex: 0 0 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    scroll-snap-align: start !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(13, 27, 42, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    gap: 5px !important;
  }
  .playlist-thumb-box {
    width: 100% !important;
    height: 95px !important;
    border-radius: 6px !important;
  }
  .playlist-item-title {
    font-size: 0.74rem !important;
  }

  /* Newsletter Section (Hidden on mobile; integrated into footer) */
  .newsletter-section {
    display: none !important;
  }

  /* Global Modals on Mobile */
  .lightbox-content-box,
  .post-video-modal-box,
  .search-modal-content,
  .academy-modal-content {
    width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 20px 14px !important;
    border-radius: 16px !important;
  }
}

/* ==========================================================================
   HOMEPAGE: SLIM AHLE QALAM INVITATION BANNER (اہل قلم کا پلیٹ فارم)
   ========================================================================== */
.index-author-invite-strip {
  padding: 0;
  margin-top: 24px;
  background: transparent;
  position: relative;
  z-index: 5;
}

.index-invite-box {
  background: linear-gradient(135deg, rgba(7, 16, 30, 0.96) 0%, rgba(16, 42, 67, 0.94) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: rtl;
  box-shadow: 0 10px 28px rgba(7, 16, 30, 0.22);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.index-invite-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.index-invite-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  text-align: right;
  min-width: 0;
}

.index-invite-title {
  font-size: 1.35rem;
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-invite-desc {
  font-size: 0.96rem;
  color: #CBD5E1;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0px !important;
}

.btn-index-compose {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.btn-index-compose:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55);
  color: #07101E !important;
}

@media (max-width: 820px) {
  .index-invite-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
    gap: 16px;
  }
  .index-invite-text {
    text-align: center;
    align-items: center;
  }
  .index-invite-title {
    justify-content: center;
    font-size: 1.25rem;
  }
  .index-invite-desc {
    font-size: 0.92rem;
  }
  .btn-index-compose {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   DAR-UL-ISHA'AT WAT-TAHQEEQ PAGE ENHANCEMENTS
   ========================================================================== */
.darul-hero-compact {
  padding: 24px 0 28px 0 !important;
}

.darul-hero-topbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.btn-darul-back-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 5px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-darul-back-compact:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.darul-singleline-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 18px 0;
  line-height: 1.2;
}

.darul-singleline-title .darul-ar-part {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}

.darul-singleline-title .darul-sep {
  color: rgba(212, 175, 55, 0.5);
  font-size: 1.4rem;
}

.darul-singleline-title .darul-en-part {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1.5px;
}

/* Integrated Header Stats Row */
.darul-header-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(7, 16, 30, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 12px 20px;
  backdrop-filter: blur(8px);
  max-width: 820px;
  margin: 0 auto;
}

.darul-header-stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: left;
}

.darul-header-stat-item i {
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.darul-header-stat-item .stat-val {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
}

.darul-header-stat-item .stat-lbl {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* About Clean 2-Column */
.darul-about-grid-clean {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

/* Departments Section Compact */
.darul-departments-section-compact {
  background: linear-gradient(180deg, #07101E 0%, #0A192C 60%, #07101E 100%);
  padding: 30px 0 34px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.darul-hero-metrics-bar {
  max-width: 760px;
  margin: 18px auto 0 auto !important;
  background: rgba(7, 16, 30, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 50px !important;
  padding: 10px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.darul-hero-metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.darul-hero-metric-item i {
  font-size: 1.35rem;
  color: var(--gold-bright);
}

.darul-hero-metric-item .metric-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.darul-hero-metric-item .metric-lbl {
  font-size: 0.68rem;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.darul-about-centered-box {
  text-align: center;
}

.darul-dept-tiles-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.darul-dept-tiles-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.darul-mini-tile {
  padding: 14px 10px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
}

.darul-mini-tile .offer-tile-icon {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.15rem !important;
  margin-bottom: 6px !important;
}

.darul-mini-tile .offer-tile-title {
  font-size: 0.82rem !important;
  margin-bottom: 2px !important;
}

.darul-mini-tile .offer-tile-sub {
  font-size: 0.82rem !important;
}

/* Books Header Clean */
.darul-books-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.btn-darul-viewall-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: var(--gold-bg);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-darul-viewall-compact:hover {
  background: var(--gold-bright);
  color: #07101E;
}

/* Centered Book Cards Details */
.darul-book-card-centered {
  text-align: center;
}

.darul-details-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  margin-top: 12px;
  flex: 1;
}

.darul-book-urdu-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.45;
  margin: 0 0 6px 0;
  text-align: center;
  direction: rtl;
  letter-spacing: 0px !important;
}

.darul-book-author-centered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.84rem;
  color: #64748B;
  margin: 0 0 12px 0;
  text-align: center;
  direction: rtl;
  letter-spacing: 0px !important;
}

/* Book Action Row - Single Download Button */
.darul-book-actions-single,
.darul-book-actions-triple {
  display: flex;
  width: 100%;
  margin-top: auto;
}

.darul-book-actions-single .btn-darul-action,
.btn-darul-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-action-order {
  display: none !important;
}

.btn-action-view {
  display: none !important;
}

.btn-action-download {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.22) 100%);
  border: 1.5px solid #10B981;
  color: #065F46;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
}
.btn-action-download:hover {
  background: #10B981;
  color: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

/* Slim & Long Catalog Download Banner */
.darul-catalog-banner-slim {
  margin-top: 32px;
  background: linear-gradient(135deg, #07101E 0%, #0F233A 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 12px 24px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(7, 16, 30, 0.15);
}

.catalog-slim-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-slim-icon {
  font-size: 1.6rem;
  color: #EF4444;
}

.catalog-slim-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 2px 0;
}

.catalog-slim-sub {
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif;
  font-size: 0.84rem;
  color: #CBD5E1;
  margin: 0;
  direction: rtl;
}

.btn-catalog-download-mini {
  padding: 8px 20px !important;
  font-size: 0.82rem !important;
  border-radius: 50px !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .darul-dept-tiles-row,
  .darul-dept-tiles-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .darul-about-grid-clean {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .darul-header-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .darul-hero-metrics-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px 10px !important;
    border-radius: 16px !important;
    padding: 10px 12px !important;
    justify-content: center !important;
  }
  .darul-hero-metrics-bar .metric-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 3px 4px !important;
    white-space: nowrap !important;
  }
  .darul-hero-metrics-bar .metric-icon {
    font-size: 1rem !important;
    color: var(--gold-bright) !important;
    flex-shrink: 0 !important;
  }
  .metric-text-inline {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    white-space: nowrap !important;
  }
  .darul-hero-metrics-bar .metric-number {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1 !important;
  }
  .darul-hero-metrics-bar .metric-label {
    font-size: 0.72rem !important;
    color: #CBD5E1 !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }
  .darul-singleline-title .darul-ar-part {
    font-size: 1.8rem;
  }
  .darul-singleline-title .darul-en-part {
    font-size: 1.15rem;
  }
  .darul-catalog-banner-slim {
    flex-direction: column;
    text-align: center;
    padding: 16px 18px;
  }
  .catalog-slim-info {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 580px) {
  .darul-dept-tiles-row,
  .darul-dept-tiles-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .darul-header-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   REFURBISHED WELFARE SERVICES PORTAL STYLES
   ========================================================================== */
.welfare-hero-clean {
  padding: 38px 0 48px 0 !important;
}

.welfare-ayah-singleline {
  font-size: 1.8rem;
  color: var(--gold-bright);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
  margin-bottom: 4px;
  line-height: 1.4;
  white-space: nowrap;
}

.welfare-ayah-trans-singleline {
  font-size: 0.96rem;
  color: #CBD5E1;
  margin-bottom: 12px;
  white-space: nowrap;
}

.welfare-hadith-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(7, 16, 30, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  padding: 7px 24px;
  margin: 4px auto 18px auto;
  backdrop-filter: blur(8px);
}

.welfare-hero-actions-triple {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-welfare-action-mini {
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  font-family: var(--font-mehr, serif) !important;
}

/* 3x2 Grid for Welfare Programs */
.welfare-programs-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.welfare-pillar-card-compact {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 8px 24px rgba(7, 16, 30, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.welfare-pillar-card-compact:hover {
  transform: translateY(-5px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.2);
}

.welfare-pillar-img-box-compact {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.welfare-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.welfare-pillar-card-compact:hover .welfare-compact-img {
  transform: scale(1.05);
}

.welfare-compact-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(7, 16, 30, 0.85);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.welfare-compact-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.welfare-pillar-body-compact {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: right;
  direction: rtl;
}

.welfare-compact-title {
  font-size: 1.15rem;
  color: var(--bg-navy-dark);
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: 0px !important;
}

.welfare-compact-desc {
  font-size: 0.86rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 12px 0;
  flex: 1;
  letter-spacing: 0px !important;
}

.welfare-compact-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.welfare-progress-container-compact {
  margin-bottom: 12px;
}

.welfare-progress-labels-compact {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 4px;
}

.btn-welfare-compact-donate {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%);
  color: #07101E;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-welfare-compact-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

@media (max-width: 960px) {
  .welfare-programs-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .welfare-ayah-singleline,
  .welfare-ayah-trans-singleline,
  .welfare-main-title-ur,
  .welfare-main-title-en {
    white-space: normal !important;
  }
}

@media (max-width: 640px) {
  .welfare-programs-grid-3x2 {
    grid-template-columns: 1fr;
  }
  .welfare-hero-actions-triple {
    flex-direction: column;
  }
  .btn-welfare-action-mini {
    width: 100%;
    justify-content: center;
  }
}

/* About Page Responsive Core Values Grid */
.about-core-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-value-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.about-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 10px auto;
}
.about-value-title {
  font-size: 1.15rem;
  color: var(--bg-navy-dark);
  margin: 0 0 6px 0;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  font-weight: 700;
}
.about-value-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
  direction: rtl;
  margin: 0;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
}

@media (max-width: 768px) {
  .about-core-values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .about-value-card {
    padding: 16px 16px;
    text-align: center;
  }
}

/* ==========================================================================
   GLOBAL MOBILE-FIRST RESPONSIVENESS & GOLD BUTTON STANDARDS (POINTS 1-4)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Global Primary Gold Button - High-Visibility on Mobile & Desktop */
.btn-primary-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #D4AF37 50%, #C69A43 100%) !important;
  color: #07101E !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
  transition: all 0.25s ease !important;
}
.btn-primary-gold:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FDE68A 50%, #D4AF37 100%) !important;
  color: #07101E !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

/* Mobile Item Details (تفصیل) Expandable Utilities */
.mobile-details-btn {
  display: none;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-family: 'Mehr', 'Noto Nastaliq Urdu', serif !important;
  color: #0F172A;
  cursor: pointer;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.mobile-details-content {
  display: block;
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow on any container */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Point 2: Expandable Details on Mobile */
  .mobile-details-btn {
    display: inline-flex;
  }
  .mobile-details-collapsible:not(.is-open) {
    display: none !important;
  }
  .mobile-details-collapsible.is-open {
    display: block !important;
    width: 100% !important;
    animation: fadeInDown 0.25s ease;
  }

  /* Point 3: Stack action buttons vertically on mobile if too many */
  .mobile-stack-actions,
  .action-buttons-wrap {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .mobile-stack-actions > *,
  .action-buttons-wrap > * {
    width: 100% !important;
  }

  /* Point 4: Latest Publications Card - Restored original round shape top & bottom, shifted badge down */
  .pub-single-feature-card,
  .pub-single-feature-card.glass-card-pub {
    border-radius: 24px !important;
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    padding: 24px 16px !important;
  }
  .pub-single-mockup {
    overflow: visible !important;
    padding-top: 18px !important;
    padding-bottom: 8px !important;
    display: flex !important;
    justify-content: center !important;
  }
  .book-3d-perspective.pub-single-perspective {
    width: 200px !important;
    max-width: 90% !important;
    height: 290px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  /* Shift small "نئی اشاعت" badge down so it does not collide with the top */
  .pub-single-perspective .badge-3d-new {
    top: 12px !important;
    right: 6px !important;
    transform: translateZ(30px) !important;
  }
  .pub-single-perspective .book-cover-img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 4px 8px 8px 4px !important;
  }
}

/* ==========================================================================
   ACADEMY LEVEL BANNERS CAROUSEL (POINTS 17 & 18)
   Fixed size on mobile (never shrink / narrow), smooth continuous auto-scroll
   ========================================================================== */
.academy-levels-carousel-section {
  padding: 55px 0 65px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-top: 1px solid #E2E8F0;
  overflow: hidden;
  position: relative;
  direction: ltr; /* Keeps carousel scrolling predictable across directions */
}

.academy-levels-carousel-section .container {
  direction: rtl; /* Urdu content inside stays RTL */
}

.levels-carousel-viewport {
  width: 100%;
  overflow: hidden; /* Crucial: no horizontal scroll on page itself */
  position: relative;
  padding: 10px 0 20px;
}

.levels-carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* FIXED SIZE BANNERS (Point 17 & 18): MUST NOT SHRINK, SAME WIDTH ON MOBILE AS ON DESKTOP */
.level-banner-card {
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  flex: 0 0 360px !important; /* DO NOT SHRINK ON MOBILE */
  background: #0F172A;
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
}

.banner-olevel {
  background: linear-gradient(145deg, #07101E 0%, #152238 100%);
  border-color: rgba(212, 175, 55, 0.6);
}

.banner-alevel {
  background: linear-gradient(145deg, #0B192C 0%, #1E3E62 100%);
  border-color: rgba(59, 130, 246, 0.55);
}

.banner-intermediate {
  background: linear-gradient(145deg, #1C1917 0%, #292524 100%);
  border-color: rgba(245, 158, 11, 0.55);
}

.banner-nizami {
  background: linear-gradient(145deg, #06281E 0%, #064E3B 100%);
  border-color: rgba(16, 185, 129, 0.55);
}

.banner-takhassus {
  background: linear-gradient(145deg, #1E1035 0%, #2E1065 100%);
  border-color: rgba(168, 85, 247, 0.55);
}

.banner-top-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-primary);
  color: #07101E;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.banner-title {
  font-size: 1.4rem;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.35;
}

.banner-sub-tag {
  color: var(--gold-bright);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.banner-desc {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.banner-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.banner-perks span i {
  color: var(--gold-primary);
  margin-left: 6px;
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #C69A43 0%, #D4AF37 100%);
  color: #07101E !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(198, 154, 67, 0.3);
}

.banner-cta-btn:hover {
  background: #FFFFFF;
  color: #07101E !important;
  transform: translateY(-2px);
}

.levels-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  direction: ltr;
}

.levels-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.levels-dot.active {
  width: 28px;
  border-radius: 10px;
  background: var(--gold-primary);
}





