/* 1. Hide Astra & WordPress Default Header, Title & Copyright Footer */
header.entry-header,
h1.entry-title,
.ast-single-post-order,
#masthead,
.main-header-bar-wrap,
.ast-primary-header-bar,
#ast-desktop-header,
#ast-mobile-header,
footer,
#colophon,
.site-footer,
.ast-footer-builder,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-below-footer-wrap,
.ast-builder-footer-grid-wrap,
.ast-small-footer,
.aimplb-footer-address,
[class*="footer-address"],
[id*="footer-address"],
.aimplb-logo-title span {
  display: none !important;
  visibility: hidden !important;
}

/* 2. Force Full-Width Across Page & Containers Without Breaking Spacing */
html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #f6f4ee !important;
}

.ast-container,
#primary,
#content,
.site-content,
.elementor-section,
.elementor-section > .elementor-container,
.e-con,
.e-con.e-parent,
.e-con > .e-con-inner,
.elementor-widget-html,
.elementor-widget-container {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Urdu Nastaliq Fonts & Animations */
@font-face {
  font-family: 'Jameel Noori Nastaleeq';
  src:
    url('../fonts/Jameel-Noori-Nastaleeq-Regular.woff2') format('woff2'),
    url('../fonts/Jameel-Noori-Nastaleeq-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu-VariableFont_wght.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@keyframes aimplbHeaderFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aimplbTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

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

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

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

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

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

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

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

/* Base Urdu Font Across Shell, Wrappers & Footer */
.aimplb-header-shell,
.aimplb-header-shell *,
.aimplb-header-ticker-wrap,
.aimplb-header-ticker-wrap *,
.aimplb-home-wrapper,
.aimplb-home-wrapper *,
.aimplb-footer-wrap,
.aimplb-footer-wrap * {
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  box-sizing: border-box !important;
}

/* Explicit English Font Override for English Blocks, Tables & Addresses */
.aimplb-en-block,
.aimplb-en-block *,
.aimplb-ohdedaran-eng-wrap,
.aimplb-ohdedaran-eng-wrap *,
.aimplb-aamla-eng-wrap,
.aimplb-aamla-eng-wrap *,
.aimplb-founder-final-wrap,
.aimplb-founder-final-wrap *,
.aimplb-qaza-addr-wrap,
.aimplb-qaza-addr-wrap * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.aimplb-legal-quote {
  font-family: Georgia, "Times New Roman", serif !important;
}

.aimplb-header-shell a,
.aimplb-nav-item > a,
.aimplb-dropdown li a,
.aimplb-lang-box a,
.aimplb-read-more-btn,
.aimplb-social-link,
.aimplb-book-slide-card {
  text-decoration: none !important;
}

/* 4. Top Pattern Strip, Header & Navbar */
.aimplb-header-pattern-strip {
  width: 100% !important;
  max-width: 100% !important;
  height: 38px;
  background-color: #0d3824 !important;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.3) 1px, transparent 1px);
  background-size: 16px 16px;
  border-bottom: 2px solid #b8860b;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  animation: aimplbHeaderFadeDown 0.6s ease forwards;
}

.aimplb-header-shell {
  direction: rtl !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background-color: #f6f4ee !important;
}

.aimplb-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 10px auto;
  padding: 15px 14px 14px 14px !important;
  animation: aimplbHeaderFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aimplb-header-spacer { width: 145px; }
.aimplb-logo-title { flex: 1; text-align: center; padding: 0 12px; }
.aimplb-logo-title h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 54px;
  font-weight: 400;
  color: #0d3824;
  line-height: 1.35 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.aimplb-lang-capsule {
  width: auto !important;
  min-width: 145px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.aimplb-lang-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fdfcf9;
  border: 1.5px solid #c8baa0;
  padding: 6px 20px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.aimplb-lang-box a.aimplb-lang-urdu,
.aimplb-lang-box a:first-child {
  font-size: 21px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  line-height: 1.45 !important;
}

.aimplb-lang-box a.aimplb-lang-en,
.aimplb-lang-box a:last-child {
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #7d7362 !important;
  line-height: 1.3 !important;
}

.aimplb-lang-box span {
  color: #9c9584;
  font-size: 15px;
  margin: 0 2px;
}

.aimplb-navbar {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 14px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-top: 1px solid #08291a;
  border-bottom: 2px solid #b8860b;
  animation: aimplbHeaderFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
  width: 100% !important;
  max-width: 100% !important;
}

button.aimplb-mobile-toggle,
.aimplb-mobile-toggle { display: none !important; }

.aimplb-nav-list {
  list-style: none;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px 12px !important;
}

.aimplb-nav-item { position: relative; }
.aimplb-nav-item > a {
  display: block;
  color: #ffffff !important;
  padding: 9px 14px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  transition: all 0.2s ease;
}

.aimplb-nav-item:hover > a,
.aimplb-nav-item.active-page > a {
  background-color: #072517 !important;
  color: #f7e7ce !important;
  box-shadow: inset 0 -3px 0 #d4af37;
}

/* Global Header Bottom Ticker Wrapper */
.aimplb-header-ticker-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px 0 14px !important;
  direction: rtl !important;
  background-color: #f6f4ee !important;
}

.aimplb-header-ticker-wrap .aimplb-news-ticker {
  margin-bottom: 0 !important;
}

/* 5. Homepage Wrapper, Full-Width Hero Slider, News Ticker & 3-Column Grid */
.aimplb-home-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px 14px 28px 14px !important;
  direction: rtl !important;
}

.aimplb-news-ticker {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #fdfbf7 !important;
  border: 1.5px solid #d4c5a3 !important;
  border-radius: 10px !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 10px rgba(13, 56, 36, 0.06);
}

.aimplb-ticker-badge {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #f7e7ce !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  padding: 6px 18px !important;
  white-space: nowrap !important;
  border-left: 2px solid #d4af37 !important;
  flex-shrink: 0 !important;
  z-index: 2;
}

.aimplb-ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden !important;
  padding: 6px 0 !important;
}

.aimplb-ticker-track {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  will-change: transform;
  animation: aimplbTickerScroll 22s linear infinite;
}

.aimplb-news-ticker:hover .aimplb-ticker-track {
  animation-play-state: paused;
}

.aimplb-ticker-item {
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  word-spacing: 3px !important;
  color: #0d3824 !important;
  padding: 0 12px;
}

.aimplb-ticker-sep {
  color: #b8860b !important;
  font-size: 16px !important;
  padding: 0 6px;
}

/* Full-Width Hero Slider Above 3-Column Grid (Desktop Near Full-Screen) */
.aimplb-hero-slider {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 560px;
  min-height: 440px;
  max-height: 74vh;
  background: #efebe2;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 5px 18px rgba(13, 56, 36, 0.1);
}

.aimplb-hero-slider img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.aimplb-hero-slider img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.aimplb-grid {
  display: grid !important;
  grid-template-columns: 1.22fr 1.14fr 1.22fr !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.aimplb-col-side,
.aimplb-col-center {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 16px 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.aimplb-col-side:hover,
.aimplb-col-center:hover {
  box-shadow: 0 7px 20px rgba(13, 56, 36, 0.1);
  border-color: #b8860b;
}

.aimplb-ribbon-title {
  display: block !important;
  width: 88% !important;
  padding: 6px 18px !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #f7e7ce !important;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  border-radius: 20px !important;
  border: 1.5px solid #d4af37 !important;
  text-align: center !important;
  margin: 0 auto 14px auto !important;
  box-shadow: 0 2px 8px rgba(13, 56, 36, 0.16);
}

.aimplb-bio-card {
  background: #ffffff;
  border: 1px solid #dfd7c7;
  border-right: 3.5px solid #0d3824;
  border-radius: 10px;
  margin-bottom: 14px !important;
  direction: rtl !important;
  overflow: hidden;
  width: 100% !important;
  box-shadow: 0 2px 7px rgba(13, 56, 36, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aimplb-bio-card:hover {
  transform: translateY(-2px);
  border-color: #b8860b;
  box-shadow: 0 5px 14px rgba(13, 56, 36, 0.09);
}

.aimplb-bio-card:last-child { margin-bottom: 0 !important; }

.aimplb-bio-card.is-present {
  background: linear-gradient(180deg, #fffdf8 0%, #faf5e8 100%);
  border: 2px solid #b8860b !important;
  border-right: 4px solid #b8860b !important;
  box-shadow: 0 5px 15px rgba(184, 134, 11, 0.16);
}

.aimplb-present-ribbon { text-align: center; padding: 9px 10px 5px 10px; }
.aimplb-badge-present {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #f7e7ce !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  padding: 4px 24px;
  border-radius: 14px;
  border: 1px solid #d4af37;
  display: inline-block;
  line-height: 1.72 !important;
  word-spacing: 3px;
  box-shadow: 0 2px 6px rgba(13, 56, 36, 0.18);
}

.aimplb-bio-top-grid {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  padding: 9px 12px !important;
}

.aimplb-bio-card.is-present .aimplb-bio-top-grid {
  grid-template-columns: 104px minmax(0, 1fr) !important;
  padding-top: 7px !important;
}

.aimplb-portrait-box {
  width: 74px !important;
  height: 92.5px !important;
  aspect-ratio: 4 / 5 !important;
  padding: 0 !important;
  border-radius: 6px;
  border: 1.5px solid #0d3824;
  background-color: #efebe2 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3824;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-align: center;
  margin-top: 4px;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.aimplb-bio-card.is-present .aimplb-portrait-box {
  width: 104px !important;
  height: 130px !important;
  border: 2px solid #b8860b;
  box-shadow: 0 3px 8px rgba(184, 134, 11, 0.22);
}

.aimplb-portrait-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  border-radius: 0 !important;
}

.aimplb-kv-group { display: flex; flex-direction: column; gap: 6px !important; min-width: 0; }
.aimplb-kv-row {
  display: grid !important;
  grid-template-columns: 58px 10px minmax(0, 1fr) !important;
  align-items: baseline !important;
  font-size: 21px !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
  text-align: right !important;
}

.aimplb-f-lbl {
  font-weight: 400 !important;
  color: #0d3824 !important;
  white-space: nowrap !important;
  font-size: 21px !important;
}
.aimplb-f-colon {
  font-weight: 400 !important;
  color: #0d3824 !important;
  text-align: center !important;
  font-size: 21px !important;
}
.aimplb-f-val {
  color: #1e293b !important;
  font-weight: 400 !important;
  font-size: 21px !important;
  word-spacing: 4px !important;
  min-width: 0;
  overflow-wrap: break-word;
}
.aimplb-f-val.name-bold {
  font-weight: 400 !important;
  font-size: 22px !important;
  word-spacing: 5px !important;
  color: #000000 !important;
}

.aimplb-bio-footer-strip {
  background-color: #f7f4eb;
  border-top: 1px solid #ece4d3;
  padding: 9px 12px 10px 12px !important;
  display: flex;
  flex-direction: column;
  gap: 5px !important;
}

.aimplb-bio-card.is-present .aimplb-bio-footer-strip {
  background-color: #f3ecda;
  border-top-color: #e2d3ae;
}

.aimplb-kv-row-wide {
  display: grid !important;
  grid-template-columns: 126px 10px minmax(0, 1fr) !important;
  align-items: baseline !important;
  font-size: 21px !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
  text-align: right !important;
}

.aimplb-past-separator {
  text-align: center;
  margin: 16px 0 12px 0;
  padding: 4px 10px;
  background: linear-gradient(90deg, transparent 0%, #f4efe2 20%, #f4efe2 80%, transparent 100%);
  border-radius: 12px;
  font-size: 22px !important;
  color: #0d3824;
  font-weight: 400 !important;
  line-height: 1.72 !important;
  word-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100% !important;
}

.aimplb-past-separator::before,
.aimplb-past-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d4af37;
  opacity: 0.55;
}

.aimplb-center-illus {
  position: relative;
  width: 100%;
  height: 220px;
  background: #efebe2;
  border: 1.5px solid #d4c5a3;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px rgba(13, 56, 36, 0.08);
}

.aimplb-center-illus img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.aimplb-center-illus img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.aimplb-intro-text {
  font-size: 21px !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
  color: #1e293b;
  font-weight: 400 !important;
  text-align: justify !important;
  margin: 0 0 18px 0 !important;
}

.aimplb-col-center .aimplb-intro-text:last-of-type {
  margin-bottom: 12px !important;
}

.aimplb-read-more-box { text-align: center; margin-top: 14px; padding-bottom: 6px; }
.aimplb-read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  padding: 8px 30px !important;
  font-size: 21px !important;
  line-height: 1.65 !important;
  word-spacing: 3px !important;
  border-radius: 25px;
  border: 1.5px solid #d4af37;
  box-shadow: 0 3px 8px rgba(13, 56, 36, 0.16);
  transition: all 0.3s ease;
}

.aimplb-read-more-btn:hover {
  background: #072517 !important;
  color: #f7e7ce !important;
  transform: translateY(-1px);
}

/* Homepage Left Column Bottom YouTube Video Box */
.aimplb-yt-box {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 16px 14px !important;
  margin-top: 14px !important;
  width: 100% !important;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.aimplb-yt-box:hover {
  box-shadow: 0 7px 20px rgba(13, 56, 36, 0.1);
  border-color: #b8860b;
}

.aimplb-yt-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #efebe2;
  border: 1.5px solid #0d3824;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 56, 36, 0.08);
}

.aimplb-yt-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

/* Homepage Bottom Books Slider Section */
.aimplb-home-books-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 22px !important;
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 18px 16px 20px 16px !important;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
  direction: rtl !important;
}

.aimplb-books-sec-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.aimplb-books-sec-title {
  margin: 0 auto !important;
  padding: 5px 28px !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #f7e7ce !important;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  border: 1.5px solid #d4af37 !important;
  border-radius: 20px !important;
  display: inline-block;
  text-align: center !important;
  box-shadow: 0 2px 8px rgba(13, 56, 36, 0.16);
}

.aimplb-books-slider-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.aimplb-books-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 2px 8px 2px;
}

.aimplb-books-track {
  display: flex;
  gap: 14px;
  width: max-content;
  transition: transform 0.45s ease;
}

.aimplb-book-slide-card {
  width: 215px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dfd7c7;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 8px rgba(13, 56, 36, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.aimplb-book-slide-card:hover {
  transform: translateY(-3px);
  border-color: #b8860b;
  box-shadow: 0 6px 16px rgba(13, 56, 36, 0.12);
}

.aimplb-book-slide-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #efebe2;
  overflow: hidden;
}

.aimplb-book-slide-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.aimplb-books-nav-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #b8860b !important;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #f7e7ce !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 56, 36, 0.16);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.aimplb-books-nav-btn:hover {
  transform: scale(1.06);
}

/* Darul Qaza Committee Page Styling */
.aimplb-qaza-page {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.aimplb-qaza-hero {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 20px 16px 18px 16px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
}

.aimplb-qaza-main-title {
  margin: 0 0 8px 0 !important;
  font-size: 36px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #0d3824 !important;
}

.aimplb-qaza-subhead {
  margin: 20px 0 10px 0 !important;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed #d4c5a3;
  font-size: 26px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #0d3824 !important;
  text-align: right !important;
}

.aimplb-qaza-sub-ribbon {
  display: inline-block;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%);
  color: #f7e7ce;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  padding: 4px 26px;
  border-radius: 20px;
  border: 1.5px solid #d4af37;
}

/* Darul Qaza Interactive Menu Tabs */
.aimplb-qaza-menu-bar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}

.aimplb-qaza-menu-btn {
  appearance: none;
  background: #ffffff !important;
  color: #0d3824 !important;
  border: 1.5px solid #c8baa0 !important;
  border-radius: 24px !important;
  padding: 6px 24px !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  font-size: 22.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(13, 56, 36, 0.06);
}

.aimplb-qaza-menu-btn:hover {
  border-color: #b8860b !important;
  background: #faf5e8 !important;
  transform: translateY(-1px);
}

.aimplb-qaza-menu-btn.is-active {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #f7e7ce !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 10px rgba(13, 56, 36, 0.18);
}

.aimplb-qaza-panel {
  display: none !important;
}

.aimplb-qaza-panel.is-active {
  display: block !important;
  animation: aimplbPageReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aimplb-qaza-card {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 22px 24px !important;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
}

.aimplb-qaza-card .aimplb-intro-text:last-of-type {
  margin-bottom: 12px !important;
}

.aimplb-legal-quote {
  margin: 14px 0 18px 0 !important;
  padding: 14px 18px !important;
  background: #f7f4eb !important;
  border-left: 4px solid #0d3824 !important;
  border-right: none !important;
  border-top: 1px solid #dfd7c7 !important;
  border-bottom: 1px solid #dfd7c7 !important;
  border-radius: 8px;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
  text-align: left !important;
}

.aimplb-qaza-closing {
  margin: 10px 0 0 0 !important;
  padding: 12px 16px;
  background: #faf5e8;
  border: 1px solid #d4af37;
  border-radius: 8px;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
  color: #0d3824 !important;
  text-align: center !important;
}

.aimplb-committee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.aimplb-member-row {
  display: grid;
  grid-template-columns: 42px auto auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 14px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e5dcc9;
  border-right: 3.5px solid #0d3824;
  border-radius: 8px;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
}

.aimplb-member-no {
  color: #0d3824 !important;
  text-align: center;
}

.aimplb-member-name {
  color: #000000 !important;
  text-align: right;
  min-width: 0;
}

.aimplb-member-role {
  color: #0d3824 !important;
  font-size: 20px !important;
}

.aimplb-member-city {
  color: #475569 !important;
  white-space: nowrap;
}

.aimplb-organizer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #faf5e8 100%);
  border: 1.5px solid #b8860b;
  border-radius: 10px;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
}

.aimplb-organizer-title {
  color: #0d3824 !important;
  white-space: nowrap;
}

.aimplb-organizer-name {
  color: #000000 !important;
  white-space: nowrap;
}

.aimplb-organizer-phone {
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  color: #0d3824 !important;
  font-weight: normal !important;
  white-space: nowrap;
}

/* Darul Qaza Addresses Tab & Red Highlight Box */
.aimplb-qaza-addr-wrap {
  direction: ltr !important;
  text-align: left !important;
  margin-top: 14px;
}

.aimplb-qaza-state-head {
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  margin: 24px 0 12px 0 !important;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #d4af37;
  text-align: left !important;
}

.aimplb-qaza-state-head:first-child {
  margin-top: 6px !important;
}

.aimplb-qaza-addr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.aimplb-qaza-addr-card {
  background: #ffffff;
  border: 1px solid #e2d8c3;
  border-left: 4px solid #0d3824;
  border-radius: 10px;
  padding: 15px 17px;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 7px rgba(13, 56, 36, 0.04);
  overflow-wrap: anywhere;
}

.aimplb-qaza-addr-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.aimplb-qaza-addr-no {
  color: #0d3824 !important;
  font-size: 16.5px !important;
  flex-shrink: 0;
}

.aimplb-qaza-addr-name {
  color: #0f172a !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
}

.aimplb-qaza-addr-line {
  margin-bottom: 3px;
  padding-left: 24px;
}

.aimplb-qaza-addr-line:last-child {
  margin-bottom: 0;
}

.aimplb-qaza-addr-card a {
  color: #0d3824 !important;
  text-decoration: underline !important;
}

/* Red Highlighted Darul Qaza Boxes */
.aimplb-qaza-addr-card.is-red-box {
  background-color: #b91c1c !important;
  border-color: #7f1d1d !important;
  border-left-color: #fef08a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
}

.aimplb-qaza-addr-card.is-red-box .aimplb-qaza-addr-no,
.aimplb-qaza-addr-card.is-red-box .aimplb-qaza-addr-name {
  color: #ffffff !important;
}

.aimplb-qaza-addr-card.is-red-box a {
  color: #fef08a !important;
}

/* Tafseeli Tarruf Page Styling */
.aimplb-tarruf-page {
  max-width: 1180px !important;
  margin: 0 auto !important;
  animation: aimplbFadeUp 0.8s ease forwards;
}

.aimplb-tarruf-card {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 28px 30px !important;
  box-shadow: 0 4px 15px rgba(13, 56, 36, 0.06);
}

.aimplb-tarruf-title {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 auto 24px auto !important;
  padding: 6px 36px !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 26px !important;
  text-align: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.aimplb-tarruf-illus {
  width: 100%;
  height: 340px;
  background: #efebe2;
  border: 1.5px solid #d4c5a3;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 3px 10px rgba(13, 56, 36, 0.08);
}

.aimplb-tarruf-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Aghraaz-o-Maqaasid Page Styling */
.aimplb-maqasid-page {
  max-width: 1180px !important;
  margin: 0 auto !important;
  animation: aimplbMaqasidReveal 0.65s ease forwards;
}

.aimplb-maqasid-header {
  text-align: center;
  margin-bottom: 18px;
}

.aimplb-maqasid-pill {
  display: inline-block;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  border: 2px solid #d4af37;
  border-radius: 26px;
  padding: 6px 36px;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.aimplb-maqasid-card {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
}

.aimplb-maqasid-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
}

.aimplb-maqasid-list > li {
  position: relative;
  padding: 12px 38px 14px 12px;
  margin-bottom: 10px;
  font-size: 21px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  word-spacing: 3px !important;
  color: #1e293b !important;
  text-align: justify;
  border-bottom: 1px dashed #e2d9c5;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.aimplb-maqasid-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.aimplb-maqasid-list > li:hover {
  background-color: #f7f3e8;
}

.aimplb-maqasid-list > li::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d3824;
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 2px rgba(13, 56, 36, 0.14);
}

/* Ohdedaran, Aamla & Founder English Table Pages Styling */
.aimplb-ohdedaran-eng-wrap,
.aimplb-aamla-eng-wrap,
.aimplb-founder-final-wrap {
  direction: ltr !important;
  max-width: 1280px !important;
  width: 100% !important;
  margin: 14px auto 32px auto !important;
  padding: 0 15px !important;
  animation: aimplbEngTableFadeUp 0.55s ease forwards;
}

.aimplb-ohdedaran-eng-hero,
.aimplb-aamla-eng-hero,
.aimplb-founder-final-hero {
  text-align: center;
  margin-bottom: 18px;
}

.aimplb-ohdedaran-eng-pill,
.aimplb-aamla-eng-pill,
.aimplb-founder-final-pill {
  display: inline-block;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  border: 2px solid #d4af37;
  border-radius: 26px;
  padding: 6px 36px;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.aimplb-ohdedaran-sec-head,
.aimplb-founder-final-state-head {
  font-size: 17px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  margin: 22px 0 10px 0 !important;
  padding-bottom: 5px;
  border-bottom: 1.5px solid #d4af37;
  text-align: left !important;
}

.aimplb-eng-table-responsive,
.aimplb-founder-final-responsive {
  width: 100%;
  overflow-x: auto;
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
}

.aimplb-ohdedaran-eng-table,
.aimplb-aamla-eng-table,
.aimplb-founder-final-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  min-width: 780px;
}

.aimplb-ohdedaran-eng-table thead th,
.aimplb-aamla-eng-table thead th,
.aimplb-founder-final-table thead th {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 12px 14px !important;
  border: 1px solid #b8860b !important;
  text-align: left !important;
  line-height: 1.4 !important;
}

.aimplb-ohdedaran-eng-table thead th.col-center,
.aimplb-aamla-eng-table thead th.col-center,
.aimplb-founder-final-table thead th.col-center {
  text-align: center !important;
}

.aimplb-ohdedaran-eng-table tbody tr,
.aimplb-aamla-eng-table tbody tr,
.aimplb-founder-final-table tbody tr {
  background: #ffffff;
  transition: background-color 0.2s ease;
}

.aimplb-ohdedaran-eng-table tbody tr:nth-child(even),
.aimplb-aamla-eng-table tbody tr:nth-child(even),
.aimplb-founder-final-table tbody tr:nth-child(even) {
  background: #fbf8f1;
}

.aimplb-ohdedar-eng-row-key {
  background: #fffdf7 !important;
}

.aimplb-ohdedaran-eng-table tbody tr:hover,
.aimplb-aamla-eng-table tbody tr:hover,
.aimplb-founder-final-table tbody tr:hover {
  background: #f5efe0;
}

.aimplb-ohdedaran-eng-table tbody td,
.aimplb-aamla-eng-table tbody td,
.aimplb-founder-final-table tbody td {
  border: 1px solid #e2d8c3 !important;
  padding: 11px 14px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
}

.aimplb-eng-num,
.aimplb-ff-num {
  width: 72px;
  text-align: center !important;
  color: #0d3824 !important;
  font-size: 14px !important;
}

.aimplb-eng-photo-td,
.aimplb-ff-photo-td {
  width: 88px;
  text-align: center !important;
}

.aimplb-eng-photo-box,
.aimplb-ff-photo-box {
  width: 64px !important;
  height: 80px !important;
  aspect-ratio: 600 / 750;
  margin: 0 auto !important;
  border-radius: 6px;
  border: 1.5px solid #0d3824;
  background: #efebe2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3824;
  font-size: 12px;
}

.aimplb-ff-photo-box.is-empty {
  background: #f6f3ec;
  border-style: dashed;
  border-color: #cbbd9f;
  color: #94a3b8;
}

.aimplb-eng-photo-box img,
.aimplb-ff-photo-box img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: top center !important;
  background: #efebe2;
}

.aimplb-eng-name,
.aimplb-ff-name {
  width: 265px;
  text-align: left !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
}

.aimplb-eng-post {
  width: 155px;
  text-align: left !important;
  font-size: 13.5px !important;
  color: #0d3824 !important;
}

.aimplb-eng-details,
.aimplb-ff-details {
  text-align: left !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #1e293b !important;
  overflow-wrap: anywhere;
}

.aimplb-eng-line,
.aimplb-ff-line {
  margin-bottom: 2px;
}

.aimplb-eng-line:last-child,
.aimplb-ff-line:last-child {
  margin-bottom: 0;
}

.aimplb-eng-sep,
.aimplb-ff-sep {
  border: 0;
  border-top: 1px dashed #d8ccb4;
  margin: 5px 0;
}

.aimplb-eng-contact,
.aimplb-ff-contact {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e5dcc9;
}

.aimplb-eng-details a,
.aimplb-ff-details a {
  color: #0d3824 !important;
  text-decoration: underline !important;
}

/* Highlighted Rows -> Dark Grey / Charcoal Styling */
.aimplb-founder-final-table tbody tr.is-deceased {
  background-color: #33373d !important;
}

.aimplb-founder-final-table tbody tr.is-deceased:hover {
  background-color: #2b2f35 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased td.aimplb-ff-num {
  background-color: #26292e !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased td.aimplb-ff-photo-td {
  background-color: #33373d !important;
  border-color: #4b5563 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased .aimplb-ff-photo-box {
  background-color: #4b5563 !important;
  border-color: #9ca3af !important;
  color: #f3f4f6 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased td.aimplb-ff-name {
  background-color: #33373d !important;
  color: #f9fafb !important;
  border-color: #4b5563 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased td.aimplb-ff-details {
  background-color: #33373d !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased .aimplb-ff-sep,
.aimplb-founder-final-table tbody tr.is-deceased .aimplb-ff-contact {
  border-top-color: #525862 !important;
}

.aimplb-founder-final-table tbody tr.is-deceased a {
  color: #d1fae5 !important;
}

/* Rabta (/rabta/) Page Styling */
.aimplb-rabta-page,
.aimplb-rabta-page * {
  box-sizing: border-box !important;
  font-weight: 400 !important;
}

.aimplb-rabta-page {
  direction: rtl !important;
  max-width: 1180px !important;
  width: 100% !important;
  margin: 18px auto 38px auto !important;
  padding: 0 15px !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  animation: aimplbRabtaFadeUp 0.6s ease forwards;
}

.aimplb-rabta-hero {
  text-align: center;
  margin-bottom: 20px;
}

.aimplb-rabta-pill {
  display: inline-block;
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  border: 2px solid #d4af37;
  border-radius: 26px;
  padding: 6px 36px;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.aimplb-rabta-single-wrap {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.aimplb-rabta-card {
  background: #fdfbf7;
  border: 1.5px solid #d4c5a3;
  border-right: 4px solid #0d3824;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.06);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.aimplb-rabta-card-title {
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  margin: 0 0 14px 0 !important;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #e2d8c3;
  line-height: 1.55 !important;
  text-align: center !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
}

.aimplb-urdu-info {
  font-size: 21.5px !important;
  font-weight: 400 !important;
  line-height: 1.85 !important;
  color: #1e293b !important;
  margin: 0 auto 16px auto !important;
  text-align: center !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  overflow-wrap: break-word;
}

.aimplb-urdu-info span {
  color: #0d3824;
}

.aimplb-en-block {
  direction: ltr !important;
  text-align: center !important;
  background: #ffffff;
  border: 1px solid #dfd7c7;
  border-top: 3px solid #b8860b;
  border-left: 1px solid #dfd7c7 !important;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: #1e293b !important;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 6px rgba(13, 56, 36, 0.03);
}

.aimplb-en-org {
  font-weight: 400 !important;
  color: #0d3824;
  font-size: 16.5px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  text-align: center !important;
}

.aimplb-en-line {
  font-weight: 400 !important;
  margin-bottom: 4px;
  text-align: center !important;
}

.aimplb-en-line:last-child {
  margin-bottom: 0;
}

.aimplb-en-link {
  color: #0d3824 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  display: inline-block;
}

.aimplb-en-link:hover,
.aimplb-en-link:focus {
  color: #b8860b !important;
  border-bottom-color: #b8860b;
  transform: translateY(-1px);
}

/* Ijlas-e-Aam (/ijlas-e-aam/) Page Styling */
.aimplb-ijlas-page {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 26px auto 36px auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  animation: aimplbPageReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aimplb-ijlas-hero {
  background: linear-gradient(180deg, #fdfbf7 0%, #f8f3e8 100%);
  border: 1.5px solid #dcd4c3;
  border-top: 4px solid #0d3824;
  border-radius: 14px;
  padding: 26px 28px 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(13, 56, 36, 0.06);
  text-align: center;
  box-sizing: border-box;
}

.aimplb-ijlas-kicker {
  display: inline-block;
  background: #ffffff;
  color: #0d3824;
  border: 1px solid #d4af37;
  border-radius: 20px;
  padding: 3px 18px;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-bottom: 8px;
}

.aimplb-ijlas-hero h1 {
  display: inline-block !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  margin: 2px auto 10px auto !important;
  padding: 0 28px 10px 28px !important;
  border-bottom: 2px solid #d4af37;
  line-height: 1.48 !important;
}

.aimplb-ijlas-subtitle {
  max-width: 780px;
  margin: 8px auto 20px auto !important;
  font-size: 23.5px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  line-height: 1.75 !important;
}

.aimplb-ijlas-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.aimplb-ijlas-stat-box {
  background: #ffffff;
  border: 1px solid #e2d9c5;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.aimplb-ijlas-stat-num {
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.aimplb-ijlas-stat-label {
  font-size: 19.5px !important;
  font-weight: 400 !important;
  color: #57534e !important;
  line-height: 1.5 !important;
  margin: 2px 0 0 0 !important;
}

.aimplb-ijlas-search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.aimplb-ijlas-search-input {
  width: 100% !important;
  height: auto !important;
  padding: 11px 20px !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1.5px solid #c8baa0 !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  text-align: right !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aimplb-ijlas-search-input:focus {
  border-color: #0d3824 !important;
  box-shadow: 0 0 0 3px rgba(13, 56, 36, 0.12) !important;
}

.aimplb-ijlas-panel {
  background: #fdfbf7;
  border: 1.5px solid #dcd4c3;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.aimplb-ijlas-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1.5px solid #dcd4c3;
  border-radius: 10px;
  background: #ffffff;
}

table.aimplb-ijlas-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  text-align: right !important;
}

table.aimplb-ijlas-table thead th {
  background: linear-gradient(180deg, #135234 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  padding: 14px 18px !important;
  border-bottom: 2.5px solid #d4af37 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  line-height: 1.55 !important;
  white-space: nowrap;
}

table.aimplb-ijlas-table thead th:last-child {
  border-left: none !important;
  min-width: 155px;
}

table.aimplb-ijlas-table tbody td {
  padding: 13px 18px !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  color: #1e293b !important;
  border-bottom: 1px solid #ede6d6 !important;
  border-left: 1px solid #f2ede2 !important;
  line-height: 1.75 !important;
  vertical-align: middle !important;
}

table.aimplb-ijlas-table tbody td:last-child {
  border-left: none !important;
  color: #0d3824 !important;
  font-weight: 400 !important;
}

table.aimplb-ijlas-table tbody tr:nth-child(even) {
  background-color: #fbf8f1 !important;
}

table.aimplb-ijlas-table tbody tr:hover {
  background-color: #eff7f3 !important;
}

table.aimplb-ijlas-table tbody tr.aimplb-convention-row {
  background: linear-gradient(90deg, #fdf6e3 0%, #fffaf0 100%) !important;
}

table.aimplb-ijlas-table tbody tr.aimplb-convention-row:hover {
  background: #faefd2 !important;
}

.aimplb-convention-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 12px;
  border-radius: 12px;
  background: #0d3824;
  color: #f7e7ce;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.aimplb-ijlas-num-col {
  width: 120px;
  text-align: center !important;
}

.aimplb-ijlas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border-radius: 17px;
  background: #f3efe4;
  border: 1px solid #d4c5a3;
  color: #0d3824;
  font-size: 20.5px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  box-sizing: border-box;
}

.aimplb-convention-row .aimplb-ijlas-badge {
  background: #0d3824;
  border-color: #d4af37;
  color: #f7e7ce;
}

.aimplb-ijlas-empty {
  display: none;
  text-align: center;
  padding: 36px 16px;
  font-size: 24px;
  font-weight: 400 !important;
  color: #57534e;
  background: #ffffff;
}

/* Majlis-e-Aamla (/majlis-e-aamla/) Page Styling */
.aimplb-aamla-page {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 26px auto 36px auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  animation: aimplbAamlaReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aimplb-aamla-hero {
  background: linear-gradient(180deg, #fdfbf7 0%, #f8f3e8 100%);
  border: 1.5px solid #dcd4c3;
  border-top: 4px solid #0d3824;
  border-radius: 14px;
  padding: 26px 28px 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(13, 56, 36, 0.06);
  text-align: center;
  box-sizing: border-box;
}

.aimplb-aamla-kicker {
  display: inline-block;
  background: #ffffff;
  color: #0d3824;
  border: 1px solid #d4af37;
  border-radius: 20px;
  padding: 3px 18px;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-bottom: 8px;
}

.aimplb-aamla-hero h1 {
  display: inline-block !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  margin: 2px auto 10px auto !important;
  padding: 0 28px 10px 28px !important;
  border-bottom: 2px solid #d4af37;
  line-height: 1.48 !important;
}

.aimplb-aamla-subtitle {
  max-width: 800px;
  margin: 8px auto 20px auto !important;
  font-size: 23.5px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  line-height: 1.75 !important;
}

.aimplb-aamla-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 840px;
  margin: 0 auto 20px auto;
}

.aimplb-aamla-stat-box {
  background: #ffffff;
  border: 1px solid #e2d9c5;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.aimplb-aamla-stat-num {
  font-size: 30px !important;
  font-weight: 400 !important;
  color: #0d3824 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.aimplb-aamla-stat-label {
  font-size: 19.5px !important;
  font-weight: 400 !important;
  color: #57534e !important;
  line-height: 1.5 !important;
  margin: 2px 0 0 0 !important;
}

.aimplb-aamla-search-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.aimplb-aamla-search-input {
  width: 100% !important;
  height: auto !important;
  padding: 11px 20px !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1.5px solid #c8baa0 !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  text-align: right !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aimplb-aamla-search-input:focus {
  border-color: #0d3824 !important;
  box-shadow: 0 0 0 3px rgba(13, 56, 36, 0.12) !important;
}

.aimplb-aamla-panel {
  background: #fdfbf7;
  border: 1.5px solid #dcd4c3;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.aimplb-aamla-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  border: 1.5px solid #dcd4c3;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box !important;
}

table.aimplb-aamla-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  text-align: right !important;
  box-sizing: border-box !important;
}

table.aimplb-aamla-table thead th {
  background: linear-gradient(180deg, #135234 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 400 !important;
  padding: 14px 18px !important;
  border-bottom: 2.5px solid #d4af37 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  line-height: 1.55 !important;
  white-space: nowrap;
}

table.aimplb-aamla-table thead th:last-child {
  border-left: none !important;
}

table.aimplb-aamla-table tbody td {
  padding: 13px 18px !important;
  font-size: 23.5px !important;
  font-weight: 400 !important;
  color: #1e293b !important;
  border-bottom: 1px solid #ede6d6 !important;
  border-left: 1px solid #f2ede2 !important;
  line-height: 1.75 !important;
  vertical-align: middle !important;
}

table.aimplb-aamla-table tbody td:last-child {
  border-left: none !important;
  color: #0d3824 !important;
  font-weight: 400 !important;
}

table.aimplb-aamla-table tbody tr:nth-child(even) {
  background-color: #fbf8f1 !important;
}

table.aimplb-aamla-table tbody tr:hover {
  background-color: #eff7f3 !important;
}

.aimplb-aamla-num-col {
  width: 120px;
  text-align: center !important;
}

.aimplb-aamla-date-col {
  min-width: 195px;
  white-space: nowrap;
}

.aimplb-aamla-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 8px;
  border-radius: 17px;
  background: #f3efe4;
  border: 1px solid #d4c5a3;
  color: #0d3824;
  font-size: 20.5px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  box-sizing: border-box;
}

.aimplb-aamla-empty {
  display: none;
  text-align: center;
  padding: 36px 16px;
  font-size: 24px;
  font-weight: 400 !important;
  color: #57534e;
  background: #ffffff;
}

/* Matbooaat (/matbooaat/) Page Styling */
.aimplb-books-wrapper {
  max-width: 1180px !important;
  width: 100% !important;
  margin: 30px auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  direction: rtl !important;
  font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', serif !important;
  animation: aimplbFadeUp 0.7s ease forwards;
}

.aimplb-books-header {
  background: #fdfbf7;
  border: 1.5px solid #dcd4c3;
  border-radius: 12px;
  padding: 25px 30px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  text-align: center;
}

.aimplb-books-header h1 {
  font-size: 38px !important;
  color: #0d3824 !important;
  margin: 0 0 10px 0 !important;
  font-weight: 400 !important;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding: 0 25px 10px 25px;
}

.aimplb-books-header p {
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  margin: 10px 0 18px 0 !important;
}

.aimplb-search-box {
  max-width: 480px;
  margin: 0 auto;
}

.aimplb-search-box input {
  width: 100% !important;
  padding: 10px 18px !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  border: 1.5px solid #c8baa0;
  border-radius: 30px;
  background: #ffffff;
  box-sizing: border-box !important;
  font-family: inherit !important;
  direction: rtl !important;
  text-align: right !important;
  outline: none;
  transition: border-color 0.2s ease;
}

.aimplb-search-box input:focus {
  border-color: #0d3824;
}

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

.aimplb-book-card {
  background: #fdfbf7;
  border: 1.5px solid #dcd4c3;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}

.aimplb-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(13, 56, 36, 0.12);
  border-color: #b8860b;
}

.aimplb-book-thumb {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #efebe2;
  border-bottom: 1px solid #e2d9c8;
  overflow: hidden;
  display: block;
  position: relative;
}

.aimplb-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.aimplb-book-card:hover .aimplb-book-thumb img {
  transform: scale(1.03);
}

.aimplb-book-body {
  padding: 16px 15px 18px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  text-align: center;
}

.aimplb-book-title {
  font-size: 22px !important;
  color: #0d3824 !important;
  margin: 0 0 6px 0 !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

.aimplb-book-author {
  font-size: 17.5px !important;
  font-weight: 400 !important;
  color: #57534e !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.4 !important;
}

.aimplb-book-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.aimplb-btn-read,
.aimplb-btn-download {
  flex: 1;
  padding: 6px 10px !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  border-radius: 20px;
  text-decoration: none !important;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.aimplb-btn-read {
  background: linear-gradient(180deg, #124d31 0%, #0d3824 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0d3824;
}

.aimplb-btn-read:hover {
  background: #072517 !important;
  color: #f7e7ce !important;
}

.aimplb-btn-download {
  background: #ffffff !important;
  color: #0d3824 !important;
  border: 1.5px solid #b8860b;
}

.aimplb-btn-download:hover {
  background: #fdf6e3 !important;
  color: #072517 !important;
}

.aimplb-no-results {
  display: none;
  text-align: center;
  font-size: 22px;
  font-weight: 400 !important;
  color: #57534e;
  padding: 40px 20px;
  background: #fdfbf7;
  border: 1.5px solid #dcd4c3;
  border-radius: 10px;
}

/* 6. Full-Width Footer & Bottom Pattern Strip */
.aimplb-footer-wrap {
  direction: rtl !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 14px 0 14px !important;
  display: block !important;
}

.aimplb-custom-footer {
  text-align: center;
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 16px 18px 16px !important;
  margin-top: 10px !important;
  border-top: 1.5px solid #d4c5a3;
  background: #fdfbf7;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(13, 56, 36, 0.05);
}

.aimplb-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  direction: ltr !important;
}

.aimplb-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #0d3824;
  border: 1.5px solid #d4cbb8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.aimplb-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.aimplb-social-link:hover {
  transform: translateY(-3px) scale(1.05);
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.aimplb-social-link.yt:hover { background: #ff0000 !important; border-color: #ff0000 !important; }
.aimplb-social-link.ig:hover { background: #e1306c !important; border-color: #e1306c !important; }
.aimplb-social-link.fb:hover { background: #1877f2 !important; border-color: #1877f2 !important; }
.aimplb-social-link.tw:hover { background: #000000 !important; border-color: #000000 !important; }

.aimplb-footer-copy {
  font-size: 13px !important;
  color: #64748b;
  margin: 0;
  font-family: Arial, sans-serif !important;
  direction: ltr !important;
}

.aimplb-pattern-strip.bottom {
  width: 100% !important;
  max-width: 100% !important;
  height: 38px;
  background-color: #0d3824 !important;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.3) 1px, transparent 1px);
  background-size: 16px 16px;
  border-top: 2px solid #b8860b;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  margin-top: 24px !important;
}

/* 7. Desktop Dropdown & Mobile Responsive */
@media screen and (max-width: 1024px) {
  .aimplb-books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media screen and (min-width: 921px) {
  .aimplb-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 230px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    z-index: 999;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    border-top: 3px solid #b8860b;
  }

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

  .aimplb-dropdown li a {
    display: block;
    padding: 5px 16px;
    color: #1a202c !important;
    font-size: 20px;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
    text-align: right !important;
    transition: all 0.2s ease;
  }

  .aimplb-dropdown li a:hover {
    background: #f4fbf7 !important;
    color: #0d3824 !important;
    padding-right: 22px;
  }
}

@media screen and (max-width: 920px) {
  .aimplb-hero-slider {
    height: 260px;
    min-height: 0;
    max-height: none;
    margin-bottom: 14px;
  }
  .aimplb-header-ticker-wrap { padding: 10px 12px 0 12px !important; }
  .aimplb-home-wrapper,
  .aimplb-footer-wrap { padding: 12px !important; }
  .aimplb-top-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 12px 12px 12px !important;
    gap: 8px !important;
  }
  .aimplb-header-spacer { display: none !important; }
  .aimplb-lang-capsule {
    order: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    justify-content: center !important;
  }
  .aimplb-lang-box { padding: 4px 14px !important; font-size: 16px !important; }
  .aimplb-lang-box a.aimplb-lang-urdu,
  .aimplb-lang-box a:first-child { font-size: 18px !important; }
  .aimplb-lang-box a.aimplb-lang-en,
  .aimplb-lang-box a:last-child { font-size: 14px !important; }
  .aimplb-logo-title {
    order: 2 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    margin-top: 4px !important;
    padding: 0 !important;
    text-align: center !important;
  }
  .aimplb-logo-title h1 { font-size: 42px !important; line-height: 1.4 !important; margin-bottom: 2px !important; }
  .aimplb-navbar { margin: 4px 0 0 0 !important; padding: 0 !important; background: #0d3824 !important; width: 100% !important; }
  button.aimplb-mobile-toggle,
  .aimplb-mobile-toggle {
    display: flex !important;
    width: 100% !important;
    background: #0d3824 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 11px 18px !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .aimplb-mobile-toggle span { font-size: 22px !important; line-height: 1 !important; color: #ffffff !important; }
  .aimplb-nav-list { display: none !important; flex-direction: column !important; width: 100% !important; background: #0d3824 !important; }
  .aimplb-nav-list.is-active { display: flex !important; animation: aimplbHeaderFadeDown 0.3s ease forwards; }
  .aimplb-nav-item { width: 100% !important; border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
  .aimplb-nav-item > a {
    padding: 10px 18px !important;
    font-size: 22px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff !important;
  }
  .aimplb-dropdown {
    display: none !important;
    position: static !important;
    background: #08291a !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  .aimplb-nav-item.open .aimplb-dropdown { display: block !important; }
  .aimplb-dropdown li a {
    color: #dfd8c7 !important;
    padding: 8px 24px !important;
    font-size: 20px !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: right !important;
  }

  /* Mobile Order: Center Intro -> Present President -> Present Gen. Sec. -> Former Presidents -> Former Gen. Secs -> YT Box */
  .aimplb-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .aimplb-col-center {
    order: 1 !important;
    width: 100% !important;
  }
  .aimplb-col-center .aimplb-intro-second-para {
    display: none !important;
  }
  .aimplb-col-side {
    display: contents !important;
  }

  .aimplb-col-side .aimplb-bio-card,
  .aimplb-col-side .aimplb-ribbon-title,
  .aimplb-col-side .aimplb-past-separator,
  .aimplb-yt-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* First Side Column = Presidents */
  .aimplb-col-side:first-of-type .aimplb-ribbon-title {
    order: 2 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
  .aimplb-col-side:first-of-type .aimplb-bio-card.is-present {
    order: 3 !important;
    margin-bottom: 0 !important;
  }
  .aimplb-col-side:first-of-type .aimplb-past-separator {
    order: 6 !important;
    margin: 10px 0 0 0 !important;
  }
  .aimplb-col-side:first-of-type .aimplb-bio-card:not(.is-present) {
    order: 7 !important;
    margin-bottom: 0 !important;
  }

  /* Second Side Column = General Secretaries + YouTube Box */
  .aimplb-col-side:last-of-type .aimplb-ribbon-title {
    order: 4 !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
  .aimplb-col-side:last-of-type .aimplb-bio-card.is-present {
    order: 5 !important;
    margin-bottom: 0 !important;
  }
  .aimplb-col-side:last-of-type .aimplb-past-separator {
    order: 8 !important;
    margin: 10px 0 0 0 !important;
  }
  .aimplb-col-side:last-of-type .aimplb-bio-card:not(.is-present) {
    order: 9 !important;
    margin-bottom: 0 !important;
  }
  .aimplb-yt-box {
    order: 10 !important;
    margin-top: 4px !important;
  }

  .aimplb-bio-top-grid,
  .aimplb-bio-card.is-present .aimplb-bio-top-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 12px !important;
    width: 100% !important;
  }

  .aimplb-portrait-box,
  .aimplb-bio-card.is-present .aimplb-portrait-box {
    width: 96px !important;
    height: 120px !important;
    margin: 0 auto 4px auto !important;
  }

  .aimplb-kv-group {
    width: 100% !important;
  }

  .aimplb-tarruf-card {
    padding: 20px 16px !important;
  }
  .aimplb-tarruf-title {
    font-size: 24px !important;
    padding: 5px 24px !important;
  }
  .aimplb-tarruf-illus {
    height: 210px !important;
  }
}

@media screen and (max-width: 820px) {
  .aimplb-rabta-page {
    margin: 14px auto 28px auto !important;
    padding: 0 12px !important;
  }

  .aimplb-rabta-card {
    padding: 16px 15px !important;
    border-radius: 10px;
  }

  .aimplb-rabta-card-title {
    font-size: 21.5px !important;
    margin-bottom: 10px !important;
  }

  .aimplb-urdu-info {
    font-size: 19.5px !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
  }

  .aimplb-en-block {
    padding: 13px 14px;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
  }

  .aimplb-en-org {
    font-size: 15.5px;
  }

  .aimplb-rabta-pill {
    font-size: 24px !important;
    padding: 5px 24px;
  }
}

@media screen and (max-width: 768px) {
  .aimplb-qaza-addr-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .aimplb-qaza-state-head {
    font-size: 18px !important;
  }
  .aimplb-qaza-addr-card {
    padding: 13px 14px;
    font-size: 14.5px !important;
  }
  .aimplb-qaza-addr-name {
    font-size: 15.5px !important;
  }
  .aimplb-qaza-addr-no {
    font-size: 15px !important;
  }
  .aimplb-maqasid-pill {
    font-size: 24px !important;
    padding: 5px 24px;
  }
  .aimplb-maqasid-card {
    padding: 14px 12px;
  }
  .aimplb-maqasid-list > li {
    padding: 10px 30px 12px 6px;
    font-size: 20px !important;
    line-height: 1.78 !important;
  }
  .aimplb-maqasid-list > li::before {
    width: 10px;
    height: 10px;
    right: 6px;
    top: 20px;
  }
  .aimplb-ijlas-hero {
    padding: 20px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .aimplb-ijlas-hero h1 {
    font-size: 35px !important;
    padding: 0 16px 8px 16px !important;
  }
  .aimplb-ijlas-subtitle {
    font-size: 21px !important;
    margin-bottom: 14px !important;
    line-height: 1.7 !important;
  }
  .aimplb-ijlas-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }
  .aimplb-ijlas-stat-box {
    padding: 9px 5px;
    border-radius: 8px;
  }
  .aimplb-ijlas-stat-num {
    font-size: 23px !important;
  }
  .aimplb-ijlas-stat-label {
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin-top: 2px !important;
  }
  .aimplb-ijlas-search-input {
    font-size: 20.5px !important;
    padding: 9px 15px !important;
  }
  .aimplb-ijlas-panel {
    padding: 10px;
    border-radius: 10px;
  }
  table.aimplb-ijlas-table thead th {
    font-size: 22px !important;
    padding: 11px 7px !important;
  }
  table.aimplb-ijlas-table thead th:last-child {
    min-width: 84px;
  }
  table.aimplb-ijlas-table tbody td {
    font-size: 21.5px !important;
    padding: 11px 7px !important;
    line-height: 1.7 !important;
  }
  .aimplb-ijlas-num-col {
    width: 54px;
  }
  .aimplb-ijlas-badge {
    min-width: 32px;
    height: 30px;
    font-size: 18.5px !important;
  }
  .aimplb-convention-tag {
    display: block;
    width: fit-content;
    font-size: 18px !important;
    padding: 2px 10px;
    margin: 4px 0 0 0;
  }
  .aimplb-aamla-hero {
    padding: 20px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .aimplb-aamla-hero h1 {
    font-size: 35px !important;
    padding: 0 16px 8px 16px !important;
  }
  .aimplb-aamla-subtitle {
    font-size: 21px !important;
    margin-bottom: 14px !important;
    line-height: 1.7 !important;
  }
  .aimplb-aamla-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }
  .aimplb-aamla-stat-box {
    padding: 9px 5px;
    border-radius: 8px;
  }
  .aimplb-aamla-stat-num {
    font-size: 23px !important;
  }
  .aimplb-aamla-stat-label {
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin-top: 2px !important;
  }
  .aimplb-aamla-search-input {
    font-size: 20.5px !important;
    padding: 9px 15px !important;
  }
  .aimplb-aamla-panel {
    padding: 10px;
    border-radius: 10px;
  }
  .aimplb-aamla-table-wrap {
    overflow-x: hidden !important;
  }
  table.aimplb-aamla-table {
    table-layout: fixed !important;
  }
  table.aimplb-aamla-table thead th {
    font-size: 21.5px !important;
    padding: 11px 6px !important;
  }
  table.aimplb-aamla-table tbody td {
    font-size: 20.5px !important;
    padding: 10px 6px !important;
    line-height: 1.55 !important;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .aimplb-aamla-num-col {
    width: 48px !important;
  }
  .aimplb-aamla-date-col {
    width: 112px !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
  .aimplb-aamla-badge {
    min-width: 30px;
    height: 28px;
    font-size: 17.5px !important;
  }
  .aimplb-books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .aimplb-books-header h1 {
    font-size: 30px !important;
  }
  .aimplb-book-title {
    font-size: 19px !important;
  }
  .aimplb-book-author {
    font-size: 16px !important;
  }
  .aimplb-btn-read,
  .aimplb-btn-download {
    font-size: 16px !important;
    padding: 5px 8px !important;
  }
}

@media screen and (max-width: 680px) {
  .aimplb-ohdedaran-eng-wrap,
  .aimplb-aamla-eng-wrap,
  .aimplb-founder-final-wrap {
    padding: 0 10px !important;
  }
  .aimplb-ohdedaran-eng-pill,
  .aimplb-aamla-eng-pill,
  .aimplb-founder-final-pill {
    font-size: 24px !important;
    padding: 5px 24px;
  }
  .aimplb-ohdedaran-eng-table {
    min-width: 740px;
  }
  .aimplb-aamla-eng-table,
  .aimplb-founder-final-table {
    min-width: 680px;
  }
  .aimplb-eng-name,
  .aimplb-ff-name {
    width: 195px;
    font-size: 13.5px !important;
  }
}

@media screen and (max-width: 600px) {
  .aimplb-ticker-badge {
    font-size: 19px !important;
    padding: 5px 12px !important;
  }
  .aimplb-ticker-item {
    font-size: 19.5px !important;
  }
  .aimplb-home-books-section {
    padding: 14px 10px 16px 10px !important;
  }
  .aimplb-books-sec-title {
    font-size: 21px !important;
    padding: 4px 20px !important;
  }
  .aimplb-books-slider-shell {
    gap: 6px;
  }
  .aimplb-books-viewport {
    max-width: 190px;
    margin: 0 auto;
    padding: 4px 0 8px 0;
  }
  .aimplb-books-track {
    gap: 0;
  }
  .aimplb-book-slide-card {
    width: 190px;
  }
  .aimplb-books-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 15px !important;
  }
  .aimplb-qaza-card {
    padding: 14px 12px !important;
  }
  .aimplb-qaza-main-title {
    font-size: 30px !important;
  }
  .aimplb-qaza-subhead {
    font-size: 22px !important;
  }
  .aimplb-qaza-sub-ribbon {
    font-size: 20px !important;
    padding: 4px 18px;
  }
  .aimplb-qaza-menu-bar {
    flex-direction: column;
    gap: 8px;
  }
  .aimplb-qaza-menu-btn {
    width: 100%;
    font-size: 20.5px !important;
    padding: 6px 16px !important;
  }
  .aimplb-member-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    justify-content: stretch;
    gap: 8px;
    padding: 8px 10px;
    font-size: 18.5px !important;
  }
  .aimplb-member-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .aimplb-member-role {
    font-size: 17.5px !important;
  }
  .aimplb-qaza-closing,
  .aimplb-organizer-box {
    font-size: 19.5px !important;
  }
}

@media screen and (max-width: 480px) {
  .aimplb-hero-slider {
    height: 200px;
    border-radius: 10px;
  }
  .aimplb-portrait-box,
  .aimplb-bio-card.is-present .aimplb-portrait-box {
    width: 88px !important;
    height: 110px !important;
  }
  .aimplb-ribbon-title { width: 100% !important; font-size: 21px !important; padding: 5px 12px !important; }
  .aimplb-kv-row,
  .aimplb-kv-row .aimplb-f-lbl,
  .aimplb-kv-row .aimplb-f-colon,
  .aimplb-kv-row .aimplb-f-val,
  .aimplb-kv-row-wide,
  .aimplb-kv-row-wide .aimplb-f-lbl,
  .aimplb-kv-row-wide .aimplb-f-colon,
  .aimplb-kv-row-wide .aimplb-f-val {
    font-size: 19.5px !important;
    line-height: 1.85 !important;
    word-spacing: 3px !important;
  }
  .aimplb-f-val.name-bold { font-size: 21px !important; word-spacing: 4px !important; }
  .aimplb-kv-row { grid-template-columns: 52px 8px minmax(0, 1fr) !important; }
  .aimplb-kv-row-wide { grid-template-columns: 114px 8px minmax(0, 1fr) !important; }
  .aimplb-books-wrapper {
    margin: 14px auto !important;
    padding: 0 10px !important;
  }
  .aimplb-books-header {
    padding: 16px 14px !important;
    margin-bottom: 16px !important;
    border-radius: 10px;
  }
  .aimplb-books-header h1 {
    font-size: 26px !important;
    padding: 0 16px 8px 16px;
  }
  .aimplb-books-header p {
    font-size: 17px !important;
    margin: 8px 0 14px 0 !important;
    line-height: 1.5;
  }
  .aimplb-search-box input {
    padding: 8px 14px !important;
    font-size: 16.5px !important;
  }
  .aimplb-books-grid {
    gap: 10px;
  }
  .aimplb-book-card {
    border-radius: 8px;
  }
  .aimplb-book-body {
    padding: 11px 7px 13px 7px;
  }
  .aimplb-book-title {
    font-size: 17px !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
  }
  .aimplb-book-author {
    font-size: 14.5px !important;
    margin: 0 0 10px 0 !important;
  }
  .aimplb-book-actions {
    flex-direction: column;
    gap: 6px;
  }
  .aimplb-btn-read,
  .aimplb-btn-download {
    width: 100%;
    flex: none;
    font-size: 15.5px !important;
    padding: 5px 8px !important;
    border-radius: 16px;
  }
}

@media screen and (max-width: 380px) {
  .aimplb-ijlas-page {
    margin: 12px auto 22px auto !important;
    padding: 0 7px !important;
  }
  .aimplb-ijlas-hero h1 {
    font-size: 31px !important;
  }
  .aimplb-ijlas-stat-num {
    font-size: 21px !important;
  }
  .aimplb-ijlas-stat-label {
    font-size: 16px !important;
  }
  table.aimplb-ijlas-table thead th {
    font-size: 21px !important;
    padding: 10px 5px !important;
  }
  table.aimplb-ijlas-table tbody td {
    font-size: 21px !important;
    padding: 10px 5px !important;
  }
  .aimplb-aamla-page {
    margin: 12px auto 22px auto !important;
    padding: 0 7px !important;
  }
  .aimplb-aamla-hero h1 {
    font-size: 31px !important;
  }
  .aimplb-aamla-stat-num {
    font-size: 21px !important;
  }
  .aimplb-aamla-stat-label {
    font-size: 16px !important;
  }
  table.aimplb-aamla-table thead th {
    font-size: 20.5px !important;
    padding: 10px 5px !important;
  }
  table.aimplb-aamla-table tbody td {
    font-size: 20px !important;
    padding: 9px 5px !important;
  }
  .aimplb-aamla-num-col {
    width: 44px !important;
  }
  .aimplb-aamla-date-col {
    width: 102px !important;
  }
}

/* AIMPLB Child Theme shell */
.aimplb-site-header { direction:rtl; width:100%; background:#f6f4ee; position:relative; z-index:999; }
.aimplb-header-pattern-strip { height:38px; }
.aimplb-site-title { text-align:center; color:#0d3824; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:clamp(28px,4vw,48px); line-height:1.8; padding:8px 12px 14px; margin:0; }
.aimplb-language-switch { display:flex; justify-content:center; gap:18px; padding:8px; }
.aimplb-language-switch a { color:#0d3824; text-decoration:none; border:1px solid #c8baa0; border-radius:24px; padding:5px 18px; background:#fffdf8; }
.aimplb-main-nav { background:#0d3824; border-bottom:3px solid #c8a94b; color:#fff; direction:rtl; }
.aimplb-nav-inner { max-width:1440px; margin:auto; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.aimplb-nav-inner a,.aimplb-nav-toggle { color:#fff; text-decoration:none; display:block; padding:12px 13px; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:18px; border:0; background:transparent; cursor:pointer; }
.aimplb-nav-inner a:hover,.aimplb-nav-toggle:hover { background:#174d35; color:#f0d58b; }
.aimplb-nav-group { position:relative; }
.aimplb-nav-dropdown { display:none; position:absolute; right:0; top:100%; min-width:230px; background:#0d3824; box-shadow:0 8px 18px #0003; z-index:1000; }
.aimplb-nav-group:hover .aimplb-nav-dropdown,.aimplb-nav-group:focus-within .aimplb-nav-dropdown { display:block; }
.aimplb-nav-dropdown a { border-bottom:1px solid #ffffff24; white-space:normal; }
.aimplb-mobile-toggle { display:none; width:100%; padding:12px 18px; color:#fff; background:#0d3824; border:0; text-align:right; font:24px 'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; }
.aimplb-site-main { min-height:55vh; background:#f6f4ee; }
.aimplb-site-footer { background:#0d3824; color:#fff; text-align:center; padding:20px 12px; border-top:3px solid #c8a94b; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:18px; }
.aimplb-site-footer a { color:#f0d58b; margin:0 8px; }
.aimplb-basic-page { direction:rtl; max-width:1180px; margin:24px auto; padding:24px; background:#fffdf8; border:1px solid #d8ccb4; border-radius:16px; box-shadow:0 5px 18px #1b352414; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; color:#26332c; line-height:2.1; font-size:21px; }
.aimplb-basic-page h1,.aimplb-basic-page h2 { color:#0d3824; text-align:center; }
.aimplb-basic-page ul { padding-right:28px; }
.aimplb-basic-page li { margin:8px 0; }
.aimplb-contact-lines { text-align:center; direction:ltr; font:18px/2 Arial,sans-serif; }
.aimplb-contact-lines a { color:#0d3824; }
@media(max-width:767px) {
 .aimplb-site-title { font-size:31px; line-height:1.8; padding:8px 12px 14px; }
 .aimplb-mobile-toggle { display:block; }
 .aimplb-nav-inner { display:none; flex-direction:column; align-items:stretch; }
 .aimplb-nav-inner.is-open { display:flex; }
 .aimplb-nav-inner a,.aimplb-nav-toggle { width:100%; text-align:right; padding:10px 18px; }
 .aimplb-nav-dropdown { position:static; box-shadow:none; display:none; padding-right:15px; }
 .aimplb-nav-group.is-open .aimplb-nav-dropdown { display:block; }
 .aimplb-basic-page { margin:14px 10px; padding:18px 14px; font-size:19px; }
}

/* Explicitly re-enable the custom footer after legacy Astra footer reset */
footer.aimplb-site-footer { display:block !important; visibility:visible !important; }

/* Header/footer integration: WordPress-managed menus, compatible with Elementor Free */
.aimplb-header-identity { position:relative; padding:4px 16px 12px; }
.aimplb-brand { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; }
.aimplb-custom-logo img { max-height:88px; width:auto; }
.aimplb-brand-title { display:block; text-align:center; color:#0d3824; text-decoration:none; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:clamp(28px,4vw,48px); line-height:1.8; }
.aimplb-brand-title:hover { color:#174d35; }
.aimplb-main-nav ul { list-style:none; margin:0; padding:0; }
.aimplb-nav-inner { max-width:1440px; margin:auto; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; }
.aimplb-nav-inner > li { position:relative; margin:0; padding:0; }
.aimplb-nav-inner > li > a { color:#fff; text-decoration:none; display:block; padding:12px 13px; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:18px; }
.aimplb-nav-inner li:hover > a,.aimplb-nav-inner li:focus-within > a { background:#174d35; color:#f0d58b; }
.aimplb-nav-inner .sub-menu { display:none; position:absolute; right:0; top:100%; min-width:230px; background:#0d3824; z-index:1001; box-shadow:0 8px 18px #0003; }
.aimplb-nav-inner li:hover > .sub-menu,.aimplb-nav-inner li:focus-within > .sub-menu { display:block; }
.aimplb-nav-inner .sub-menu a { display:block; color:#fff; text-decoration:none; padding:10px 14px; border-bottom:1px solid #ffffff24; white-space:normal; font-family:'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; font-size:17px; }
.aimplb-nav-inner .sub-menu .sub-menu { right:100%; top:0; }
.aimplb-footer-inner { max-width:1200px; margin:auto; }
.aimplb-footer-name { font-size:22px; margin-bottom:8px; }
.aimplb-footer-menu { display:flex; justify-content:center; flex-wrap:wrap; gap:4px 18px; list-style:none; padding:0; margin:8px 0 12px; }
.aimplb-footer-menu a { color:#f0d58b; text-decoration:none; }
.aimplb-footer-copy { font:13px/1.7 Arial,sans-serif; direction:ltr; }
@media(max-width:767px) {
 .aimplb-header-identity { padding:4px 10px 10px; }
 .aimplb-brand-title { font-size:30px; }
 .aimplb-nav-inner { display:none; flex-direction:column; align-items:stretch; width:100%; }
 .aimplb-nav-inner.is-open { display:flex; }
 .aimplb-nav-inner > li > a { width:100%; text-align:right; padding:10px 18px; }
 .aimplb-nav-inner .sub-menu { position:static; box-shadow:none; padding-right:14px; background:#123f2b; }
 .aimplb-nav-inner li.is-open > .sub-menu { display:block; }
 .aimplb-footer-menu { flex-direction:column; gap:4px; }
}

/* Elementor-native homepage bridge: keeps each content item editable. */
.aimplb-home-wrapper .elementor-widget-heading .elementor-heading-title,
.aimplb-home-wrapper .elementor-widget-text-editor { font-family: 'Jameel Noori Nastaleeq','Noto Nastaliq Urdu',serif; }
.aimplb-home-wrapper .aimplb-bio-card { direction: rtl; text-align: right; background: #fff; border: 1px solid #d9e2d8; border-radius: 10px; padding: 12px; margin-bottom: 16px; box-shadow: 0 3px 12px rgba(0,0,0,.06); }
.aimplb-home-wrapper .aimplb-bio-card .elementor-widget-image { margin-bottom: 8px; }
.aimplb-home-wrapper .aimplb-bio-card .elementor-widget-image img { max-height: 155px; width: auto; object-fit: contain; }
.aimplb-home-wrapper .aimplb-profile-name .elementor-heading-title { font-size: 22px; color: #174c35; text-align: center; }
.aimplb-home-wrapper .aimplb-profile-details { font-size: 16px; line-height: 1.9; color: #333; }
.aimplb-home-wrapper .aimplb-profile-details p { margin: 0 0 5px; }
.aimplb-home-wrapper .aimplb-grid > .elementor-container { align-items: flex-start; }
.aimplb-home-wrapper .aimplb-col-side, .aimplb-home-wrapper .aimplb-col-center { min-width: 0; }
.aimplb-home-wrapper .aimplb-col-center { direction: rtl; text-align: right; }
.aimplb-home-wrapper .aimplb-intro-text { font-size: 17px; line-height: 2; text-align: justify; }
.aimplb-home-wrapper .aimplb-news-ticker { direction: rtl; }
.aimplb-home-wrapper .aimplb-hero-wrap img { width: 100%; }
@media (max-width: 767px) { .aimplb-home-wrapper .aimplb-grid > .elementor-container { display: block; } .aimplb-home-wrapper .aimplb-grid .elementor-column { width: 100% !important; } }
