/*
Theme Name: Astra Child - Dr. B.R. Ambedkar Portal
Theme URI: https://brambedkar.in
Description: Elevated editorial UI/UX child theme with modern typography, glassmorphism navbar, and refined archive styling.
Author: Antigravity
Author URI: https://brambedkar.in
Template: astra
Version: 1.4.0
Text Domain: astra-child
*/

/* ==========================================================================
   VISUAL DESIGN SYSTEM: DR. B.R. AMBEDKAR DIGITAL ARCHIVE
   Colors: Deep Navy / Royal Blue + Heritage Gold + Soft White & Light Neutrals
   Typography: Newsreader (Editorial Serif) + Plus Jakarta Sans (UI & Reading Sans)
   ========================================================================== */

:root {
  --portal-blue: #1e3a8a;
  --portal-blue-dark: #0f172a;
  --portal-blue-light: #2563eb;
  --portal-blue-subtle: rgba(30, 58, 138, 0.06);
  --portal-blue-glow: rgba(37, 99, 235, 0.15);
  --portal-gold: #d97706;
  --portal-gold-light: #fef3c7;
  --portal-gold-subtle: rgba(217, 119, 6, 0.08);
  --portal-gold-border: rgba(217, 119, 6, 0.25);
  --portal-slate-950: #0a0f1d;
  --portal-slate-900: #0f172a;
  --portal-slate-800: #1e293b;
  --portal-slate-700: #334155;
  --portal-slate-600: #475569;
  --portal-slate-500: #64748b;
  --portal-slate-400: #94a3b8;
  --portal-slate-200: #e2e8f0;
  --portal-slate-100: #f1f5f9;
  --portal-bg-white: #ffffff;
  --portal-bg-warm: #f8fafc;
  --portal-border: rgba(226, 232, 240, 0.9);
  --portal-glass: rgba(255, 255, 255, 0.90);
  --portal-glass-scrolled: rgba(255, 255, 255, 0.97);
  --portal-dropdown-bg: rgba(255, 255, 255, 0.98);
  --portal-shadow-default: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  --portal-shadow-scrolled: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --portal-dropdown-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 1px 2px 0 rgba(15, 23, 42, 0.04),
    0 14px 36px -4px rgba(15, 23, 42, 0.12),
    0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --portal-card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.06);
  --portal-card-shadow-hover: 0 14px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --portal-radius-pill: 9999px;
  --portal-radius-sm: 8px;
  --portal-radius-item: 10px;
  --portal-radius-card: 16px;
  --portal-radius-hero: 22px;
  --portal-font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --portal-font-editorial: 'Newsreader', 'DM Serif Display', Georgia, serif;
  --portal-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL TWO-COLUMN ARCHITECTURE WITH RIGHT SIDEBAR FOR ALL PAGES
   ========================================================================== */

.ast-container {
  max-width: 1460px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1600px) {
  .ast-container {
    max-width: 1540px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}

.ast-container::after {
  content: "";
  display: table;
  clear: both;
}

@media (min-width: 1025px) {
  .ast-right-sidebar #primary {
    width: 74.5% !important;
    max-width: 74.5% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding-right: 40px !important;
    padding-left: 0 !important;
  }

  .ast-right-sidebar #secondary,
  #secondary.portal-custom-sidebar {
    width: 25.5% !important;
    max-width: 25.5% !important;
    float: right !important;
    display: block !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 922px) and (max-width: 1024px) {
  .ast-right-sidebar #primary {
    width: 71% !important;
    max-width: 71% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding-right: 24px !important;
    padding-left: 0 !important;
  }

  .ast-right-sidebar #secondary,
  #secondary.portal-custom-sidebar {
    width: 29% !important;
    max-width: 29% !important;
    float: right !important;
    display: block !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 921px) {
  .ast-right-sidebar #primary,
  .ast-right-sidebar #secondary,
  #secondary.portal-custom-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #secondary.portal-custom-sidebar {
    margin-top: 48px !important;
  }
}

/* Front page container zeroing */
.home #primary,
.page-id-23305 #primary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.home .site-content,
.page-id-23305 .site-content,
.home #content,
.page-id-23305 #content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.home .site-content > .ast-container,
.page-id-23305 .site-content > .ast-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.home .ast-article-single,
.page-id-23305 .ast-article-single,
.home.ast-separate-container .ast-article-single,
.home.ast-page-builder-template .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home .entry-header,
.page-id-23305 .entry-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

.home .entry-content,
.page-id-23305 .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* Multi-column front page grid layouts for desktop with right sidebar */
@media (min-width: 1025px) {
  .home .portal-cards-grid,
  .page-id-23305 .portal-cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
  }
  .home .portal-featured-grid,
  .page-id-23305 .portal-featured-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 22px !important;
  }
  .home .portal-gallery-grid,
  .page-id-23305 .portal-gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  .home .portal-stats-strip,
  .page-id-23305 .portal-stats-strip {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    padding: 24px 28px !important;
  }
  .home .portal-split-grid,
  .page-id-23305 .portal-split-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }
}

@media (min-width: 922px) and (max-width: 1024px) {
  .home .portal-cards-grid,
  .page-id-23305 .portal-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .home .portal-featured-grid,
  .page-id-23305 .portal-featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .home .portal-gallery-grid,
  .page-id-23305 .portal-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .home .portal-stats-strip,
  .page-id-23305 .portal-stats-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 24px !important;
  }
  .home .portal-split-grid,
  .page-id-23305 .portal-split-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

/* ==========================================================================
   1. HEADER CONTAINER & GLASSMORPHISM NAVBAR
   ========================================================================== */

.site-header,
#masthead,
.ast-main-header-wrap,
.main-header-bar-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

.ast-primary-header-bar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03) !important;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  padding: 0 !important;
  min-height: 68px !important;
}

.ast-primary-header-bar.is-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  border-bottom-color: rgba(203, 213, 225, 0.95) !important;
}

/* Precision Top Accent Line (Deep Navy -> Royal Blue -> Amber Gold) */
.ast-primary-header-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #d97706 100%);
  z-index: 10;
}

/* Logo Branding Refinement */
.site-header .site-branding {
  display: flex !important;
  align-items: center !important;
}

.site-header .custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.site-header .custom-logo-link:hover {
  opacity: 0.92 !important;
  transform: translateY(-0.5px) !important;
}

.site-header .custom-logo-link img {
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* ==========================================================================
   2. PRIMARY NAVIGATION MENU & PERMANENT DROPDOWNS
   ========================================================================== */

.main-navigation .main-header-menu {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 68px !important;
}

.main-navigation .main-header-menu > .menu-item {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
}

.main-navigation .main-header-menu > .menu-item > .menu-link {
  font-family: var(--portal-font-ui) !important;
  font-size: 14.25px !important;
  font-weight: 500 !important;
  color: var(--portal-slate-700) !important;
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: var(--portal-radius-pill) !important;
  background: transparent !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  -webkit-font-smoothing: antialiased;
  position: relative;
  text-decoration: none !important;
  border: 1px solid transparent !important;
}

/* Hover & Focus State */
.main-navigation .main-header-menu > .menu-item:hover > .menu-link,
.main-navigation .main-header-menu > .menu-item.focus > .menu-link,
.main-navigation .main-header-menu > .menu-item.is-hovered > .menu-link,
.main-navigation .main-header-menu > .menu-item.is-pinned > .menu-link {
  color: var(--portal-slate-900) !important;
  background: #f1f5f9 !important;
  border-color: rgba(226, 232, 240, 0.7) !important;
}

/* Active Page State */
.main-navigation .main-header-menu > .menu-item.current-menu-item > .menu-link,
.main-navigation .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
  color: var(--portal-blue) !important;
  font-weight: 600 !important;
  background: rgba(30, 58, 138, 0.08) !important;
  border-color: rgba(30, 58, 138, 0.14) !important;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.04) !important;
}

/* Dropdown Arrow Toggle Chevron */
.main-header-menu .menu-item-has-children > .menu-link .dropdown-menu-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  padding: 0 !important;
  color: var(--portal-slate-400) !important;
  line-height: 1 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease !important;
}

.main-header-menu .menu-item-has-children:hover > .menu-link .dropdown-menu-toggle,
.main-header-menu .menu-item-has-children.is-hovered > .menu-link .dropdown-menu-toggle,
.main-header-menu .menu-item-has-children.is-pinned > .menu-link .dropdown-menu-toggle,
.main-header-menu .menu-item-has-children:focus-within > .menu-link .dropdown-menu-toggle {
  color: var(--portal-blue) !important;
  transform: rotate(180deg) !important;
}

.main-header-menu .menu-item-has-children > .menu-link .dropdown-menu-toggle svg {
  width: 9px !important;
  height: 6px !important;
  fill: currentColor !important;
}

.ast-desktop-header .ast-menu-toggle {
  display: none !important;
}

/* ==========================================================================
   FLOATING DROPDOWN CARDS (PERMANENT ZERO-GAP + GRACE DELAY ENGINE)
   ========================================================================== */

#ast-desktop-header .main-header-menu .sub-menu,
.ast-desktop .main-header-menu .sub-menu,
.main-header-menu .sub-menu {
  position: absolute !important;
  top: calc(100% - 2px) !important; /* Zero vertical gap to parent item */
  left: -8px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05),
              0 20px 40px -12px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
  padding: 8px !important;
  min-width: 320px !important;
  max-width: 380px !important;
  width: max-content !important;
  margin: 0 !important;
  z-index: 99999 !important;
  
  /* Hidden default state with 200ms grace exit delay */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) scale(0.98) !important;
  transform-origin: top left !important;
  
  /* Grace period on hide prevents premature closing during diagonal mouse movement */
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-delay: 0.2s !important;
}

/* End-of-menu items align to the right to prevent viewport cut-off */
#ast-hf-menu-1 > #menu-item-1570 > .sub-menu,
.main-header-menu > .menu-item-has-children:last-of-type > .sub-menu,
.main-header-menu > .menu-item:nth-last-child(2) > .sub-menu,
.main-header-menu .ast-left-align-sub-menu > .sub-menu {
  left: auto !important;
  right: 0 !important;
  transform-origin: top right !important;
}

/* Seamless Invisible Hover Bridge Corridor (Fills gap between link & dropdown) */
.main-header-menu .sub-menu::before {
  content: "" !important;
  position: absolute !important;
  top: -18px !important;
  left: -20px !important;
  right: -20px !important;
  height: 24px !important;
  background: transparent !important;
  display: block !important;
  pointer-events: auto !important;
  z-index: 999 !important;
}

/* Open States: Hover, Focus-Within, JS is-hovered, JS is-pinned */
#ast-desktop-header .main-header-menu .menu-item-has-children:hover > .sub-menu,
#ast-desktop-header .main-header-menu .menu-item-has-children:focus-within > .sub-menu,
.main-header-menu .menu-item-has-children:hover > .sub-menu,
.main-header-menu .menu-item-has-children:focus-within > .sub-menu,
.main-header-menu .menu-item-has-children.is-hovered > .sub-menu,
.main-header-menu .menu-item-has-children.is-pinned > .sub-menu,
.main-header-menu .sub-menu:hover {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  transition-delay: 0s !important; /* Opens instantly without lag */
}

/* Dropdown Sub-Items */
.main-header-menu .sub-menu .menu-item {
  margin: 3px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: block !important;
  height: auto !important;
  border: none !important;
}

#ast-desktop-header .main-header-menu .sub-menu .menu-link,
.ast-desktop .submenu-with-border .sub-menu .menu-link,
.main-header-menu .sub-menu .menu-link {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--portal-slate-800) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  height: auto !important;
  line-height: 1.45 !important;
  letter-spacing: -0.005em !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  position: relative !important;
  border: 1px solid transparent !important;
}

.main-header-menu .sub-menu .menu-link::after {
  content: "→" !important;
  font-family: var(--portal-font-ui), system-ui !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--portal-blue-light) !important;
  opacity: 0 !important;
  transform: translateX(-4px) !important;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: 8px !important;
  flex-shrink: 0 !important;
}

.main-header-menu .sub-menu .menu-link:hover,
.main-header-menu .sub-menu .menu-item.focus > .menu-link {
  background: #f1f5f9 !important;
  color: var(--portal-blue) !important;
  padding-left: 17px !important;
  border-color: rgba(226, 232, 240, 0.6) !important;
}

.main-header-menu .sub-menu .menu-link:hover::after,
.main-header-menu .sub-menu .menu-item.focus > .menu-link::after {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.main-header-menu .sub-menu .ast-icon.icon-arrow,
.main-header-menu .sub-menu .ast-header-navigation-arrow,
.ast-desktop .submenu-with-border .sub-menu > .menu-item:last-child > .menu-link {
  display: none !important;
  border: none !important;
}

/* ==========================================================================
   LANGUAGE SWITCHER ACTION ITEM
   ========================================================================== */

.portal-header-actions-item {
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 8px !important;
}

.portal-lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--portal-radius-pill) !important;
  padding: 3px !important;
  gap: 2px !important;
}

.portal-lang-pill {
  font-family: var(--portal-font-ui) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 5px 11px !important;
  border-radius: var(--portal-radius-pill) !important;
  color: var(--portal-slate-500) !important;
  text-decoration: none !important;
  transition: var(--portal-transition) !important;
  line-height: 1.2 !important;
}

.portal-lang-pill:hover {
  color: var(--portal-slate-900) !important;
}

.portal-lang-pill.active {
  background: #ffffff !important;
  color: var(--portal-blue) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

#portal-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 55%, #d97706 100%);
  z-index: 100;
  transition: width 0.08s ease-out;
}

/* ==========================================================================
   3. EDITORIAL HERO SECTION & AMBIENT ASHOK CHAKRA
   ========================================================================== */

.portal-editorial-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 28px 48px 28px !important;
  background: 
    radial-gradient(circle at 85% 30%, rgba(30, 58, 138, 0.07) 0%, rgba(37, 99, 235, 0.03) 35%, transparent 65%),
    radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  margin-bottom: 48px;
}

/* Faded Navy Blue Glowing Soft Ashok Chakra Ambient Watermark */
.portal-chakra-ambient {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  width: 480px;
  height: 480px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.13;
  color: #1e3a8a;
  contain: paint layout;
}

.portal-chakra-glow-halo {
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(30, 58, 138, 0.12) 45%, transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  transform: translateZ(0);
}

.portal-chakra-svg {
  width: 100%;
  height: 100%;
  animation: portalChakraSpin 240s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  filter: drop-shadow(0 0 16px rgba(30, 58, 138, 0.28));
}

@keyframes portalChakraSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-chakra-svg {
    animation: none;
  }
}


/* Full-bleed sections inside #primary */
.portal-hero-grid,
.portal-split-grid,
.portal-cards-grid,
.portal-featured-grid,
.portal-gallery-grid,
.portal-community-hub {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.portal-stats-strip {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(30, 58, 138, 0.06);
  border: 1px solid rgba(30, 58, 138, 0.16);
  border-radius: var(--portal-radius-pill);
  font-family: var(--portal-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a8a;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.05);
}

.portal-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
}

.portal-hero-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: clamp(2.6rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
  text-wrap: balance;
}

.portal-hero-subtitle {
  font-family: var(--portal-font-ui) !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  line-height: 1.45 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.01em !important;
}

.portal-hero-lead {
  font-family: var(--portal-font-ui) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  margin: 0 0 30px 0 !important;
  max-width: 620px;
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--portal-font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1.2;
}

.portal-btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.28), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #1e3a8a;
}

.portal-btn-primary:hover {
  background: linear-gradient(135deg, #172554 0%, #0f172a 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.4);
}

.portal-btn-secondary {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
}

.portal-btn-secondary:hover {
  background: #f8fafc;
  color: #1e3a8a !important;
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.portal-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.portal-hero-quicktags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--portal-font-ui);
  font-size: 13px;
  color: #64748b;
}

.portal-quicktag-label {
  font-weight: 600;
  color: #334155;
}

.portal-quicktag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #ffffff;
  border-radius: var(--portal-radius-pill);
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.portal-quicktag-pill:hover {
  background: #eff6ff;
  color: #1e3a8a !important;
  border-color: #93c5fd;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.08);
}

/* Historical Archival Image Frame */
.portal-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.portal-archival-frame {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 24px 50px -12px rgba(15, 23, 42, 0.16),
    0 6px 16px -2px rgba(15, 23, 42, 0.06);
  max-width: 480px;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.portal-archival-frame:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 30px 60px -12px rgba(15, 23, 42, 0.22),
    0 8px 20px -2px rgba(15, 23, 42, 0.08);
}

.portal-archival-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3.2;
}

.portal-archival-seal {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fef3c7;
  padding: 6px 14px;
  border-radius: var(--portal-radius-pill);
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(254, 243, 199, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.portal-museum-plaque {
  margin-top: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.portal-plaque-title {
  font-family: var(--portal-font-editorial);
  font-size: 16.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
}

.portal-plaque-meta {
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

/* ==========================================================================
   4. ARCHIVE PILLARS / METRIC STRIP
   ========================================================================== */

.portal-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 28px 36px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  margin-bottom: 72px;
  position: relative;
}

.portal-stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.portal-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 12%;
  height: 76%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #cbd5e1, transparent);
}

.portal-stat-number {
  font-family: var(--portal-font-editorial);
  font-size: 36px;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.portal-stat-label {
  font-family: var(--portal-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.portal-stat-desc {
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* ==========================================================================
   5. DISTINCTIVE CONTENT SECTIONS: AMBEDKAR & DHAMMA
   ========================================================================== */

.portal-split-section {
  padding: 68px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-ambedkar-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
}

.portal-dhamma-section {
  background: linear-gradient(180deg, #fafaf9 0%, #f0f7ff 50%, #ffffff 100%);
}

.portal-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portal-grid-reverse .portal-split-media {
  order: 2;
}

.portal-editorial-media-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-editorial-media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.16);
}

.portal-split-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.portal-media-badge-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fef3c7;
  padding: 6px 14px;
  border-radius: var(--portal-radius-pill);
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(254, 243, 199, 0.2);
  z-index: 2;
}

.portal-media-caption {
  margin-top: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border-radius: 12px;
  font-family: var(--portal-font-ui);
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  border: 1px solid #e2e8f0;
}

.portal-media-caption strong {
  color: #0f172a;
}

.portal-split-text {
  display: flex;
  flex-direction: column;
}

.portal-split-lead {
  font-family: var(--portal-font-ui);
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 26px 0;
}

.portal-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.portal-pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.portal-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(30, 58, 138, 0.07);
  border: 1px solid rgba(30, 58, 138, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.portal-dhamma-section .portal-pillar-icon {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.22);
}

.portal-dhamma-section .portal-section-eyebrow {
  color: #b45309;
}

.portal-pillar-title {
  font-family: var(--portal-font-ui) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.35 !important;
}

.portal-pillar-text {
  font-family: var(--portal-font-ui);
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.portal-split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   6. CURATED DIGITAL RESOURCE DIRECTORY (CONSISTENT CARDS)
   ========================================================================== */

.portal-collections-section {
  padding: 72px 0 40px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.portal-section-eyebrow {
  display: inline-block;
  font-family: var(--portal-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.portal-section-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.22 !important;
  margin: 0 0 12px 0 !important;
}

.portal-section-subtitle {
  font-family: var(--portal-font-ui);
  font-size: 15.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.portal-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03), 0 8px 20px -4px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -6px rgba(30, 58, 138, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: #93c5fd;
}

.portal-card:hover::before {
  background: linear-gradient(90deg, #1e3a8a, #2563eb, #d97706);
}

.portal-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  background: rgba(30, 58, 138, 0.06);
  border: 1px solid rgba(30, 58, 138, 0.1);
  color: #1e3a8a;
  transition: transform 0.25s ease, background 0.25s ease;
}

.portal-card:hover .portal-card-icon-wrap {
  transform: scale(1.08);
  background: rgba(30, 58, 138, 0.1);
}

.portal-card-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.3 !important;
  transition: color 0.18s ease;
}

.portal-card:hover .portal-card-title {
  color: #1e3a8a !important;
}

.portal-card-desc {
  font-family: var(--portal-font-ui);
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 22px 0;
  flex-grow: 1;
}

.portal-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--portal-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1;
}

.portal-card-cta span {
  transition: transform 0.2s ease;
}

.portal-card:hover .portal-card-cta span {
  transform: translateX(5px);
}

/* ==========================================================================
   7. EDITORIAL FEATURED ARTICLES SECTION
   ========================================================================== */

.portal-featured-section {
  padding: 72px 0 40px 0;
  border-top: 1px solid var(--portal-border);
  background: #ffffff;
}

.portal-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portal-featured-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.portal-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.portal-featured-badge {
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.portal-featured-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px 0 !important;
}

.portal-featured-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.18s ease;
}

.portal-featured-card:hover .portal-featured-title a {
  color: #1e3a8a !important;
}

.portal-featured-excerpt {
  font-family: var(--portal-font-ui);
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 22px 0;
  flex-grow: 1;
}

.portal-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-family: var(--portal-font-ui);
  font-size: 13px;
}

.portal-featured-author {
  color: #64748b;
  font-weight: 500;
}

.portal-featured-link {
  color: #1e3a8a !important;
  font-weight: 600;
  text-decoration: none !important;
}

/* ==========================================================================
   8. RESPONSIVE HISTORICAL GALLERY GRID
   ========================================================================== */

.portal-gallery-section {
  padding: 72px 0 48px 0;
  border-top: 1px solid var(--portal-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.portal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.portal-gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #0f172a;
  aspect-ratio: 16/11;
}

.portal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.portal-gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.88;
}

.portal-gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 16px 18px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
  color: #ffffff;
}

.portal-gallery-tag {
  font-family: var(--portal-font-ui);
  font-size: 11px;
  font-weight: 700;
  color: #fef3c7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.portal-gallery-title {
  font-family: var(--portal-font-editorial);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.portal-gallery-cta-wrap {
  text-align: center;
}

/* ==========================================================================
   9. COMMUNITY & APP HUB
   ========================================================================== */

.portal-community-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 56px 0 72px 0;
  border-top: 1px solid var(--portal-border);
}

.portal-community-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.portal-community-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.portal-community-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.portal-community-content h3 {
  font-family: var(--portal-font-editorial) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.portal-community-content p {
  font-family: var(--portal-font-ui);
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 12px 0;
}

.portal-community-action {
  font-family: var(--portal-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   10. MULTI-COLUMN EDITORIAL FOOTER
   ========================================================================== */

/* Hide default Astra Builder Footer */
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
  display: none !important;
}

.portal-editorial-footer {
  background: var(--portal-slate-950);
  color: #94a3b8;
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.portal-footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.portal-footer-brand-title {
  font-family: var(--portal-font-editorial);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
}

.portal-footer-badge {
  font-family: var(--portal-font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  padding: 3px 8px;
  border-radius: var(--portal-radius-pill);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.portal-footer-tagline {
  font-family: var(--portal-font-ui);
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.portal-footer-motto {
  font-family: var(--portal-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-gold);
  margin-bottom: 20px;
}

.portal-footer-motto span {
  color: #fbbf24;
}

.portal-footer-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--portal-font-ui);
  font-size: 12px;
}

.portal-footer-lang-label {
  color: #64748b;
}

.portal-footer-lang a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.portal-footer-lang a:hover,
.portal-footer-lang a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.portal-footer-heading {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  margin: 0 0 18px 0 !important;
}

.portal-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-footer-links li {
  margin: 0 !important;
  padding: 0 !important;
}

.portal-footer-links a {
  font-family: var(--portal-font-ui);
  font-size: 13.5px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.portal-footer-links a:hover {
  color: #ffffff !important;
  padding-left: 3px;
}

.portal-footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  color: #64748b;
}

.portal-footer-copy,
.portal-footer-dedication {
  margin: 0;
  line-height: 1.5;
}

.portal-footer-dedication {
  color: #94a3b8;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1024px) {
  .portal-chakra-ambient {
    right: 50%;
    top: 35%;
    transform: translate(50%, -50%) translateZ(0);
    width: 480px;
    height: 480px;
    opacity: 0.09;
  }

  .portal-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .portal-hero-visual {
    order: -1;
  }

  .portal-archival-frame {
    max-width: 440px;
  }

  .portal-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portal-grid-reverse .portal-split-media {
    order: 0;
  }

  .portal-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .portal-stat-item:nth-child(2)::after {
    display: none;
  }

  .portal-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .portal-editorial-hero {
    padding: 40px 0 32px 0;
  }

  .portal-chakra-ambient {
    top: 30%;
    width: 360px;
    height: 360px;
    opacity: 0.08;
  }

  .portal-hero-title {
    font-size: 2.25rem !important;
  }

  .portal-hero-subtitle {
    font-size: 16.5px !important;
  }

  .portal-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-btn {
    width: 100%;
  }

  .portal-stats-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .portal-stat-item::after {
    display: none !important;
  }

  .portal-cards-grid {
    grid-template-columns: 1fr;
  }

  .portal-featured-grid {
    grid-template-columns: 1fr;
  }

  .portal-gallery-grid {
    grid-template-columns: 1fr;
  }

  .portal-community-hub {
    grid-template-columns: 1fr;
  }

  .portal-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portal-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 921px) {
  .ast-primary-header-bar {
    padding: 8px 16px !important;
    min-height: 58px !important;
  }
  
  /* Modern clean minimal hamburger button with dark icon */
  .menu-toggle,
  .main-header-menu-toggle,
  .ast-mobile-menu-trigger-fill,
  .ast-mobile-menu-trigger-minimal,
  .ast-mobile-menu-trigger-fill .ast-button-wrap .menu-toggle,
  .ast-mobile-menu-trigger-minimal .ast-button-wrap .menu-toggle {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    color: #1e293b !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  .menu-toggle:hover,
  .main-header-menu-toggle:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
  }

  /* Force dark stroke on hamburger & close SVGs */
  .menu-toggle svg,
  .main-header-menu-toggle svg,
  .ast-mobile-svg,
  .ast-menu-svg,
  .ast-close-svg {
    fill: #1e293b !important;
    color: #1e293b !important;
  }

  .menu-toggle svg path,
  .main-header-menu-toggle svg path,
  .ast-mobile-svg path {
    fill: #1e293b !important;
  }

  /* Mobile Sheet Container */
  .ast-mobile-header-content,
  .main-header-bar-navigation {
    background: #ffffff !important;
    border-bottom: 1px solid var(--portal-border) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  }

  .main-navigation .main-header-menu {
    padding: 12px 10px !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-navigation .main-header-menu > .menu-item {
    height: auto !important;
    width: 100% !important;
    display: block !important;
    margin: 4px 0 !important;
    position: relative !important;
  }

  .main-navigation .main-header-menu > .menu-item > .menu-link {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    height: auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }

  .main-navigation .main-header-menu > .menu-item:hover > .menu-link,
  .main-navigation .main-header-menu > .menu-item > .menu-link:active {
    background: #f8fafc !important;
    color: var(--portal-blue) !important;
  }

  /* Mobile Accordion Submenu */
  .main-header-menu .sub-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    padding: 6px 0 6px 14px !important;
    margin: 4px 0 8px 12px !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .main-header-menu .menu-item.is-mobile-open > .sub-menu,
  .main-header-menu .menu-item.ast-submenu-expanded > .sub-menu {
    display: block !important;
  }

  .main-header-menu .sub-menu .menu-item {
    margin: 2px 0 !important;
  }

  .main-header-menu .sub-menu .menu-link {
    padding: 9px 12px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }

  /* Mobile Chevron Toggle styling & rotation */
  .main-header-menu .menu-item-has-children .dropdown-menu-toggle,
  .main-header-menu .menu-item-has-children .ast-menu-toggle {
    margin-left: auto !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    color: var(--portal-slate-400) !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
  }

  .main-header-menu .menu-item.is-mobile-open > .ast-menu-toggle,
  .main-header-menu .menu-item.ast-submenu-expanded > .ast-menu-toggle,
  .main-header-menu .menu-item.is-mobile-open > .menu-link .dropdown-menu-toggle,
  .main-header-menu .menu-item.ast-submenu-expanded > .menu-link .dropdown-menu-toggle {
    transform: rotate(180deg) !important;
    color: var(--portal-blue) !important;
  }

  /* Language Switcher in Mobile Drawer */
  .portal-header-actions-item {
    margin: 12px 0 4px 0 !important;
    padding: 8px 12px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .portal-lang-switcher {
    width: auto !important;
  }
}

/* ==========================================================================
   VIPASSANA & DHAMMA DIGITAL LIBRARY (Page 7102)
   Modern, Minimalist Digital Library Architecture
   ========================================================================== */

/* 1. Page Content Setup (Pages 7102, 621, 46, 999, 131, 6862, 13983, 23463, 23447, 109, 849, 851) */
.page-id-7102 .site-content,
.page-id-621 .site-content,
.page-id-46 .site-content,
.page-id-999 .site-content,
.page-id-131 .site-content,
.page-id-6862 .site-content,
.page-id-13983 .site-content,
.page-id-23463 .site-content,
.page-id-23447 .site-content,
.page-id-109 .site-content,
.page-id-849 .site-content,
.page-id-851 .site-content {
  background: #ffffff !important;
  padding: 0 !important;
}

.page-id-7102 .site-content > .ast-container,
.page-id-621 .site-content > .ast-container,
.page-id-46 .site-content > .ast-container,
.page-id-999 .site-content > .ast-container,
.page-id-109 .site-content > .ast-container,
.page-id-849 .site-content > .ast-container,
.page-id-851 .site-content > .ast-container,
.page-id-131 .site-content > .ast-container,
.page-id-6862 .site-content > .ast-container,
.page-id-13983 .site-content > .ast-container,
.page-id-23463 .site-content > .ast-container,
.page-id-23447 .site-content > .ast-container {
  max-width: 1460px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 32px 28px 80px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1600px) {
  .page-id-7102 .site-content > .ast-container,
  .page-id-621 .site-content > .ast-container,
  .page-id-46 .site-content > .ast-container,
  .page-id-999 .site-content > .ast-container,
  .page-id-109 .site-content > .ast-container,
  .page-id-849 .site-content > .ast-container,
  .page-id-851 .site-content > .ast-container,
  .page-id-131 .site-content > .ast-container,
  .page-id-6862 .site-content > .ast-container,
  .page-id-13983 .site-content > .ast-container,
  .page-id-23463 .site-content > .ast-container,
  .page-id-23447 .site-content > .ast-container {
    max-width: 1540px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}

.page-id-7102 .entry-header,
.page-id-621 .entry-header,
.page-id-46 .entry-header,
.page-id-999 .entry-header,
.page-id-131 .entry-header,
.page-id-6862 .entry-header,
.page-id-13983 .entry-header,
.page-id-23463 .entry-header,
.page-id-23447 .entry-header,
.page-id-109 .entry-header,
.page-id-849 .entry-header,
.page-id-851 .entry-header {
  display: none !important;
}

.page-id-7102 .entry-content,
.page-id-621 .entry-content,
.page-id-46 .entry-content,
.page-id-999 .entry-content,
.page-id-131 .entry-content,
.page-id-6862 .entry-content,
.page-id-13983 .entry-content,
.page-id-23463 .entry-content,
.page-id-23447 .entry-content,
.page-id-109 .entry-content,
.page-id-849 .entry-content,
.page-id-851 .entry-content {
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-7102 .yarpp-related,
.page-id-621 .yarpp-related,
.page-id-46 .yarpp-related,
.page-id-999 .yarpp-related,
.page-id-131 .yarpp-related,
.page-id-6862 .yarpp-related,
.page-id-13983 .yarpp-related,
.page-id-23463 .yarpp-related,
.page-id-23447 .yarpp-related,
.page-id-109 .yarpp-related,
.page-id-849 .yarpp-related,
.page-id-851 .yarpp-related {
  display: none !important;
}

.vdl-page-wrapper {
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 2. Editorial Digital Library Header */
.vdl-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.vdl-header-top {
  margin-bottom: 10px;
}

.vdl-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f1f5f9;
  color: #102c54;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.vdl-library-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.vdl-library-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 920px;
  margin: 0 0 16px;
}

.vdl-library-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12.5px;
  color: #64748b;
}

.vdl-stat-item strong {
  color: #0f172a;
  font-weight: 600;
}

.vdl-stat-sep {
  color: #cbd5e1;
}

.vdl-stat-free {
  color: #047857;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 3. Search & Filters Toolbar */
.vdl-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  margin-bottom: 28px;
  box-sizing: border-box;
}

.vdl-search-box {
  position: relative;
  margin-bottom: 16px;
}

.vdl-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.vdl-search-box input {
  width: 100% !important;
  height: 46px !important;
  padding: 0 42px 0 44px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.vdl-search-box input:focus {
  outline: none !important;
  background: #ffffff !important;
  border-color: #102c54 !important;
  box-shadow: 0 0 0 2px rgba(16, 44, 84, 0.12) !important;
}

.vdl-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  background: #e2e8f0;
  color: #475569;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.vdl-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.vdl-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.vdl-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vdl-filter-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vdl-select {
  height: 40px;
  padding: 0 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #0f172a;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vdl-select:focus {
  outline: none;
  background: #ffffff;
  border-color: #102c54;
  box-shadow: 0 0 0 2px rgba(16, 44, 84, 0.1);
}

.vdl-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
}

.vdl-results-count strong {
  color: #0f172a;
  font-weight: 600;
}

.vdl-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #102c54;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vdl-reset-btn:hover {
  background: #e2e8f0;
  color: #000000;
}

@media (max-width: 920px) {
  .vdl-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .vdl-toolbar {
    padding: 14px 14px;
  }
  .vdl-filters-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 4. Book Cards Grid & Compact Typography Cards */
.vdl-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 48px !important;
}

@media (max-width: 1040px) {
  .vdl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .vdl-grid {
    grid-template-columns: 1fr !important;
  }
}

.vdl-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 20px !important;
  display: flex;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  box-sizing: border-box !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.vdl-card.vdl-hidden,
.vdl-card[hidden],
.vdl-card[style*="display: none"] {
  display: none !important;
}

.vdl-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transform: none !important;
}

.vdl-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: 26px !important;
  min-height: 26px !important;
  margin-bottom: 12px !important;
}

.vdl-badge-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: hidden !important;
}

.vdl-pill {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  letter-spacing: 0.2px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.vdl-pill-hindi { background: #e0f2fe !important; color: #0369a1 !important; }
.vdl-pill-marathi { background: #fef3c7 !important; color: #92400e !important; }
.vdl-pill-english { background: #f1f5f9 !important; color: #334155 !important; }
.vdl-pill-pali--bilingual { background: #fae8ff !important; color: #86198f !important; }

.vdl-pill-cat {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
  max-width: 170px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.vdl-format-indicator {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
}

.vdl-card-main {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  margin-bottom: 16px !important;
}

/* Title: Exact 48px fixed height for 2-line baseline consistency across all cards */
.vdl-card-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif !important;
  font-size: 16.5px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

.vdl-card-title a,
.vdl-card .vdl-card-title a,
h3.vdl-card-title a {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.vdl-card-title a:hover {
  color: #174f91 !important;
}

/* Author: Exact 20px fixed height */
.vdl-card-author {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 0 8px 0 !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.vdl-by {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}

.vdl-author-name {
  color: #334155 !important;
  font-weight: 500 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Description: Exact 38px fixed height */
.vdl-card-desc {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 5. Actions: Side-by-Side Preview & Download PDF */
.vdl-card-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vdl-card-actions br,
.vdl-card-actions p,
.vdl-btn br {
  display: none !important;
}

.vdl-card-actions .vdl-btn-secondary {
  flex: 4.2 1 0 !important;
  width: auto !important;
}

.vdl-card-actions .vdl-btn-primary {
  flex: 5.8 1 0 !important;
  width: auto !important;
}

.vdl-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.vdl-btn span {
  display: inline-block !important;
  line-height: 1 !important;
}

.vdl-icon {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

/* Secondary Outlined Action: Preview */
.vdl-btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.vdl-btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Primary Action: Download PDF */
.vdl-btn-primary {
  background: #102c54 !important;
  color: #ffffff !important;
  border: 1px solid #102c54 !important;
}

.vdl-btn-primary:hover {
  background: #174f91 !important;
  border-color: #174f91 !important;
  color: #ffffff !important;
}

/* Empty State */
.vdl-empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 20px 0 48px;
}

.vdl-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

.vdl-empty-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 18px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* 6. Minimalist Audio Discourses Section */
.vdl-audio-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 32px;
}

.vdl-audio-header {
  margin-bottom: 18px;
}

.vdl-audio-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px;
}

.vdl-audio-lead {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.vdl-audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.vdl-audio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.vdl-audio-card:hover {
  border-color: #cbd5e1;
  background: #fafafa;
}

.vdl-audio-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vdl-audio-badge {
  font-size: 10px;
  font-weight: 700;
  color: #102c54;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vdl-audio-link {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vdl-audio-link:hover {
  color: #174f91;
}

.vdl-audio-btn {
  font-size: 12px;
  font-weight: 600;
  color: #102c54;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f1f5f9;
}

.vdl-audio-btn:hover {
  background: #e2e8f0;
}

/* 7. Canonical Topics Keywords */
.vdl-topics-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
}

.vdl-topics-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vdl-topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vdl-topic-pill {
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.vdl-topic-pill:hover {
  background: #102c54;
  color: #ffffff;
}

/* 8. PDF Preview Modal Reader */
.vdl-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.vdl-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vdl-modal-window {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: 88vh;
  max-height: 820px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}

.vdl-modal-header {
  padding: 12px 18px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #102c54;
}

.vdl-modal-heading-wrap {
  min-width: 0;
}

.vdl-modal-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.vdl-modal-author {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vdl-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vdl-modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.vdl-modal-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.vdl-modal-btn-dl {
  background: #1e3a8a;
  border-color: #2563eb;
}

.vdl-modal-btn-dl:hover {
  background: #2563eb;
}

.vdl-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.vdl-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.vdl-modal-body {
  position: relative;
  flex: 1;
  background: #f8fafc;
}

.vdl-modal-loader {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  background: #ffffff;
  z-index: 1;
}

.vdl-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #e2e8f0;
  border-top-color: #102c54;
  border-radius: 50%;
  animation: vdlSpin 0.8s linear infinite;
}

@keyframes vdlSpin {
  to { transform: rotate(360deg); }
}

.vdl-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* ==========================================================================
   THE BUDDHA AND HIS DHAMMA TREATISE ARCHITECTURE (Page 621)
   Minimalist, Scholarly Single-Book Presentation
   ========================================================================== */

.bhd-page-wrapper {
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Breadcrumb */
.bhd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.bhd-breadcrumb a {
  color: #102c54;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.bhd-breadcrumb a:hover {
  color: #174f91;
  text-decoration: underline;
}

.bhd-breadcrumb-sep {
  color: #cbd5e1;
}

.bhd-breadcrumb-current {
  color: #64748b;
}

/* Editorial Showcase (2-Column Cover + Content) */
.bhd-showcase {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 860px) {
  .bhd-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Book Cover Frame & Presentation */
.bhd-showcase-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bhd-cover-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.22), 0 0 1px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bhd-cover-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.28), 0 0 1px rgba(15, 23, 42, 0.3);
}

.bhd-cover-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.bhd-cover-meta {
  margin-top: 12px;
  text-align: center;
}

.bhd-cover-tag {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Showcase Info Column */
.bhd-showcase-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bhd-header-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bhd-badge-highlight {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bhd-badge-format {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bhd-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.bhd-author-line {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 14px;
}

.bhd-author-line strong {
  color: #102c54;
  font-weight: 600;
}

.bhd-lead {
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 20px;
}

/* Metadata Details Strip */
.bhd-meta-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .bhd-meta-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.bhd-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bhd-meta-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bhd-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bhd-meta-free {
  color: #047857 !important;
}

/* Action Bar */
.bhd-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bhd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.bhd-btn span {
  display: inline-block;
  line-height: 1;
}

.bhd-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.bhd-btn-primary {
  background: #102c54;
  color: #ffffff !important;
  border: 1px solid #102c54;
}

.bhd-btn-primary:hover {
  background: #174f91;
  border-color: #174f91;
  color: #ffffff !important;
}

.bhd-btn-secondary {
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
}

.bhd-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.bhd-btn-outline {
  background: #f1f5f9;
  color: #102c54 !important;
  border: 1px solid #e2e8f0;
}

.bhd-btn-outline:hover {
  background: #e2e8f0;
  color: #000000 !important;
}

/* Overview Section (Compact) */
.bhd-overview-section {
  margin-bottom: 32px;
}

.bhd-section-header {
  margin-bottom: 14px;
}

.bhd-section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.bhd-books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 680px) {
  .bhd-books-grid {
    grid-template-columns: 1fr;
  }
}

.bhd-book-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.bhd-book-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.bhd-book-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #102c54;
  letter-spacing: 0.5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.bhd-book-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

/* Quotes Section (Compact) */
.bhd-quotes-section {
  margin-bottom: 32px;
}

.bhd-quote-box {
  background: #f8fafc;
  border-left: 3px solid #102c54;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 18px;
}

.bhd-quote-text {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: #0f172a;
  margin: 0;
}

.bhd-quote-text strong {
  font-style: normal;
  color: #102c54;
}

/* Related Resources */
.bhd-related-section {
  margin-bottom: 40px;
}

.bhd-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 840px) {
  .bhd-related-grid {
    grid-template-columns: 1fr;
  }
}

.bhd-related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.bhd-related-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #102c54;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.bhd-related-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}

.bhd-related-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.bhd-related-title a:hover {
  color: #174f91;
}

.bhd-related-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 14px;
}

.bhd-related-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #102c54;
  text-decoration: none;
}

.bhd-related-link:hover {
  color: #174f91;
  text-decoration: underline;
}

/* Canonical Topics */
.bhd-topics-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
}

.bhd-topics-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bhd-topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bhd-topic-pill {
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.bhd-topic-pill:hover {
  background: #102c54;
  color: #ffffff;
}

/* ==========================================================================
   Dr. Babasaheb Ambedkar Books & Treatises Catalog (Page ID 46)
   Clean, Minimalist, Full-Width Multi-Section Architecture
   ========================================================================== */

.apb-page-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--portal-font-ui, 'Plus Jakarta Sans', sans-serif);
  box-sizing: border-box;
}

/* Breadcrumbs */
.apb-breadcrumbs {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.apb-breadcrumbs a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.apb-breadcrumbs a:hover {
  color: #102c54;
  text-decoration: underline;
}

.apb-breadcrumb-sep {
  color: #cbd5e1;
}

.apb-breadcrumb-current {
  color: #0f172a;
  font-weight: 500;
}

/* Editorial Header */
.apb-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
}

.apb-header-badge-wrap {
  margin-bottom: 12px;
}

.apb-header-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.apb-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 14px;
}

.apb-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 20px;
}

.apb-lead strong {
  color: #0f172a;
}

.apb-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.apb-stat-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  color: #334155;
}

.apb-stat-chip strong {
  color: #0f172a;
}

.apb-stat-chip-free {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
  font-weight: 600;
}

.apb-stat-sep {
  color: #cbd5e1;
}

/* Quick Jump Pills */
.apb-nav-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.apb-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.apb-nav-pill:hover {
  background: #102c54;
  color: #ffffff !important;
  border-color: #102c54;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 44, 84, 0.15);
}

/* Sections */
.apb-section {
  margin-bottom: 52px;
  scroll-margin-top: 80px;
}

.apb-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.apb-section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.apb-section-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.apb-section-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #102c54;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* Regional Badge Color Varieties */
.vdl-pill-tamil { background: #fef2f2 !important; color: #991b1b !important; }
.vdl-pill-telugu { background: #f0fdf4 !important; color: #166534 !important; }
.vdl-pill-bengali { background: #eff6ff !important; color: #1e40af !important; }
.vdl-pill-gujarati { background: #fff7ed !important; color: #9a3412 !important; }
.vdl-pill-punjabi { background: #faf5ff !important; color: #6b21a8 !important; }

/* Notice Box */
.apb-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #102c54;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 40px 0 32px;
  box-sizing: border-box;
}

.apb-notice-icon {
  color: #102c54;
  flex-shrink: 0;
  margin-top: 1px;
}

.apb-notice-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}

.apb-notice-text strong {
  color: #0f172a;
}

/* Canonical Topics */
.apb-topics-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
}

.apb-topics-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.apb-topics-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apb-topic-pill {
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.12s ease;
}

.apb-topic-pill:hover {
  background: #102c54;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .apb-page-wrapper {
    padding: 16px 14px 40px;
  }
  .apb-title {
    font-size: 26px;
  }
  .apb-section-title {
    font-size: 20px;
  }
  .apb-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   About Us Page Styles (Page ID 999)
   High-End, Editorial, Trustworthy Presentation
   ========================================================================== */

.abo-page-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--portal-font-ui, 'Plus Jakarta Sans', sans-serif);
  color: #1e293b;
  box-sizing: border-box;
}

/* Breadcrumbs */
.abo-breadcrumbs {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.abo-breadcrumbs a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.abo-breadcrumbs a:hover {
  color: #102c54;
  text-decoration: underline;
}

.abo-breadcrumb-sep {
  color: #cbd5e1;
}

.abo-breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

/* Editorial Hero Header */
.abo-hero-header {
  margin-bottom: 48px;
}

.abo-badge-wrap {
  margin-bottom: 12px;
}

.abo-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.abo-main-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 16px;
}

/* Core Values Pillars */
.abo-pillars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.abo-pillar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.abo-pillar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #102c54;
}

/* Mission Overview Grid */
.abo-overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.abo-overview-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.abo-lead-text {
  font-size: 16.5px;
  line-height: 1.68;
  color: #1e293b;
  margin: 0 0 16px;
}

.abo-lead-text strong a {
  color: #102c54;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.abo-body-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Vision Card */
.abo-vision-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #102c54;
  border-radius: 12px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  height: 100%;
  box-sizing: border-box;
}

.abo-vision-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.abo-vision-icon {
  color: #102c54;
}

.abo-vision-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #102c54;
}

.abo-vision-quote {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17.5px;
  line-height: 1.55;
  color: #0f172a;
  font-style: italic;
  margin: 0;
}

/* Sections */
.abo-section {
  margin: 48px 0;
}

.abo-section-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.abo-section-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #102c54;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  display: inline-block;
}

.abo-section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.abo-section-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* Team Grid */
.abo-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.abo-team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.abo-team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.abo-team-card-memorial {
  border-top: 3px solid #b45309;
  background: #fffdfa;
}

.abo-team-card-founder {
  border-top: 3px solid #102c54;
}

.abo-team-card-core {
  border-top: 3px solid #3b82f6;
}

.abo-avatar-wrap {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
  flex-shrink: 0;
}

.abo-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.abo-member-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.abo-member-name strong {
  font-weight: 700;
  color: inherit;
}

.abo-member-designation {
  font-size: 13px;
  font-weight: 600;
  color: #102c54;
  margin: 0 0 14px;
}

.abo-member-designation a {
  color: #102c54;
  text-decoration: underline;
}

.abo-member-bio {
  font-size: 13px;
  line-height: 1.58;
  color: #475569;
  text-align: left;
  margin: 0 0 16px;
  flex-grow: 1;
}

.abo-contact-wrap {
  margin-top: auto;
  padding-top: 10px;
}

.abo-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.abo-contact-chip:hover {
  background: #102c54;
  color: #ffffff !important;
  border-color: #102c54;
}

.abo-icon-phone {
  flex-shrink: 0;
}

/* Digital Outreach & Media Grid */
.abo-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.abo-media-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 24px;
  box-sizing: border-box;
}

.abo-media-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.abo-media-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.abo-media-icon-yt {
  background: #fef2f2;
  color: #ef4444;
}

.abo-media-icon-blog {
  background: #f0f9ff;
  color: #0284c7;
}

.abo-media-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.abo-media-title strong {
  color: inherit;
}

.abo-media-intro {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.5;
}

.abo-media-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.abo-media-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  transition: all 0.15s ease;
}

.abo-media-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.abo-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.abo-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.abo-item-name a:hover {
  color: #174f91;
  text-decoration: underline;
}

.abo-item-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .abo-overview-grid {
    grid-template-columns: 1fr;
  }
  .abo-team-grid {
    grid-template-columns: 1fr;
  }
  .abo-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .abo-main-title {
    font-size: 28px;
  }
  .abo-section-title {
    font-size: 22px;
  }
  .abo-team-card {
    padding: 22px 16px;
  }
  .abo-media-col {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   PAGE 131: DR. BABASAHEB AMBEDKAR PHOTO GALLERY (ARCHIVAL MASONRY PHOTOGRID)
   ========================================================================== */

.aph-page-wrapper {
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Breadcrumbs */
.aph-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
  flex-wrap: wrap;
}

.aph-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.aph-breadcrumbs a:hover {
  color: #174f91;
  text-decoration: underline;
}

.aph-bc-sep {
  color: #cbd5e1;
}

.aph-bc-current {
  color: #1e3a8a;
  font-weight: 600;
}

/* Hero Header */
.aph-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 36px 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.aph-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #174f91 0%, #3b82f6 50%, #d97706 100%);
}

.aph-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(23, 79, 145, 0.08);
  border: 1px solid rgba(23, 79, 145, 0.2);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #174f91;
  margin-bottom: 14px;
}

.aph-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #174f91;
}

.aph-hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.aph-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #334155;
  max-width: 980px;
  margin: 0 0 16px 0;
}

.aph-hero-desc strong {
  color: #0f172a;
  font-weight: 600;
}

.aph-hero-subtext {
  font-size: 14.5px;
  line-height: 1.6;
  color: #174f91;
  font-weight: 600;
  margin: 0 0 20px 0;
}

/* Family list highlight box */
.aph-family-highlights {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 24px;
  margin: 16px 0 20px;
}

.aph-family-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.7;
}

.aph-family-list li {
  margin-bottom: 8px;
}

.aph-family-list li:last-child {
  margin-bottom: 0;
}

.aph-family-conclusion {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  font-style: italic;
  margin: 0 0 24px 0;
}

/* Feature stats pills */
.aph-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.aph-pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.aph-pill-stat svg {
  color: #174f91;
  flex-shrink: 0;
}

/* Interactive Controls Bar */
.aph-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.aph-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aph-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.aph-tab-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.aph-tab-btn.active {
  background: #174f91;
  color: #ffffff;
  border-color: #174f91;
  box-shadow: 0 2px 6px rgba(23, 79, 145, 0.25);
}

.aph-tab-count {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.8;
  font-size: 11.5px;
}

.aph-search-box {
  position: relative;
  min-width: 260px;
}

.aph-search-box input {
  width: 100%;
  padding: 8px 14px 8px 34px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.aph-search-box input:focus {
  border-color: #174f91;
  box-shadow: 0 0 0 3px rgba(23, 79, 145, 0.12);
}

.aph-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.aph-gallery-status {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Masonry Grid with CSS Columns */
.aph-masonry-grid {
  column-count: 4;
  column-gap: 20px;
}

@media (max-width: 1200px) {
  .aph-masonry-grid {
    column-count: 3;
    column-gap: 18px;
  }
}

@media (max-width: 768px) {
  .aph-masonry-grid {
    column-count: 2;
    column-gap: 14px;
  }
}

@media (max-width: 480px) {
  .aph-masonry-grid {
    column-count: 1;
    column-gap: 0;
  }
}

/* Photo Card */
.aph-card {
  break-inside: avoid;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s;
  display: flex;
  flex-direction: column;
}

.aph-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.aph-card.is-hidden {
  display: none !important;
}

/* Image container */
.aph-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
  display: block;
}

.aph-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}

.aph-card:hover .aph-img-wrap img {
  transform: scale(1.028);
}

/* Hover Action Overlay */
.aph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
}

.aph-card:hover .aph-overlay {
  opacity: 1;
  visibility: visible;
}

.aph-overlay-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.aph-overlay-btn:hover {
  background: #ffffff;
  color: #174f91;
  transform: translateY(-1px);
}

.aph-overlay-btn.view-btn {
  background: #174f91;
  color: #ffffff;
}

.aph-overlay-btn.view-btn:hover {
  background: #133e72;
}

/* Card Caption Footer */
.aph-card-caption {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  font-size: 13.5px;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.aph-caption-icon {
  color: #d97706;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Related Collections Section */
.aph-related-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid #e2e8f0;
}

.aph-related-header {
  margin-bottom: 24px;
}

.aph-related-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.aph-related-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

.aph-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .aph-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .aph-related-grid {
    grid-template-columns: 1fr;
  }
}

.aph-related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.aph-related-card:hover {
  transform: translateY(-3px);
  border-color: #174f91;
  box-shadow: 0 10px 20px -3px rgba(23, 79, 145, 0.1);
}

.aph-rel-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(23, 79, 145, 0.08);
  color: #174f91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: transform 0.2s;
}

.aph-related-card:hover .aph-rel-icon-wrap {
  transform: scale(1.08);
  background: #174f91;
  color: #ffffff;
}

.aph-rel-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.aph-related-card:hover .aph-rel-title {
  color: #174f91;
}

.aph-rel-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
}

.aph-rel-action {
  font-size: 12.5px;
  font-weight: 600;
  color: #174f91;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Lightbox Modal */
.aph-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 29, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

.aph-lightbox.is-open {
  display: flex;
}

.aph-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  padding: 10px 16px;
  z-index: 10;
}

.aph-lb-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aph-lb-counter {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
}

.aph-lb-caption {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.aph-lb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aph-lb-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s;
  font-family: inherit;
}

.aph-lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.aph-lb-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
}

.aph-lb-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.aph-lb-img-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aph-lb-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.aph-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: background 0.15s, transform 0.15s;
}

.aph-lb-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.aph-lb-prev {
  left: 20px;
}

.aph-lb-next {
  right: 20px;
}

@media (max-width: 768px) {
  .aph-hero {
    padding: 24px 20px;
  }
  .aph-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .aph-search-box {
    width: 100%;
  }
  .aph-lb-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .aph-lb-prev { left: 8px; }
  .aph-lb-next { right: 8px; }
}

/* ==========================================================================
   PAGES 109, 849, 851: DHAMMA, 22 VOWS, AND 5 PRECEPTS (PANCHSHEEL)
   Namespace: .dhm-
   ========================================================================== */

.dhm-page-wrapper {
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Breadcrumbs */
.dhm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 500;
  flex-wrap: wrap;
}

.dhm-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dhm-breadcrumbs a:hover {
  color: #174f91;
  text-decoration: underline;
}

.dhm-bc-sep {
  color: #cbd5e1;
}

.dhm-bc-current {
  color: #1e3a8a;
  font-weight: 600;
}

/* Hero Header */
.dhm-hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 38px 40px 34px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.dhm-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #174f91 0%, #d97706 50%, #2563eb 100%);
}

.dhm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(23, 79, 145, 0.08);
  border: 1px solid rgba(23, 79, 145, 0.2);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #174f91;
  margin-bottom: 14px;
}

.dhm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #174f91;
}

.dhm-hero-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.dhm-hero-desc {
  font-size: 16.5px;
  line-height: 1.7;
  color: #334155;
  max-width: 980px;
  margin: 0 0 20px 0;
}

.dhm-hero-desc strong {
  color: #0f172a;
  font-weight: 600;
}

.dhm-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.dhm-pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dhm-pill-stat svg {
  color: #174f91;
  flex-shrink: 0;
}

/* Three Pillars of Dhamma (Sīla, Samādhi, Paññā) */
.dhm-section-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.dhm-section-sub {
  font-size: 14.5px;
  color: #64748b;
  margin: 0 0 24px 0;
}

.dhm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .dhm-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.dhm-pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dhm-pillar-card:hover {
  transform: translateY(-3px);
  border-color: #174f91;
  box-shadow: 0 10px 24px -4px rgba(23, 79, 145, 0.1);
}

.dhm-pillar-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.dhm-pillar-card.sila .dhm-pillar-accent { background: #d97706; }
.dhm-pillar-card.samadhi .dhm-pillar-accent { background: #174f91; }
.dhm-pillar-card.panna .dhm-pillar-accent { background: #059669; }

.dhm-pillar-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.dhm-pillar-card.sila .dhm-pillar-icon-wrap { background: #fef3c7; color: #d97706; }
.dhm-pillar-card.samadhi .dhm-pillar-icon-wrap { background: #e0e7ff; color: #174f91; }
.dhm-pillar-card.panna .dhm-pillar-icon-wrap { background: #d1fae5; color: #059669; }

.dhm-pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.dhm-pillar-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
}

.dhm-pillar-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* Mission & Way of Living Card */
.dhm-editorial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #174f91;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.dhm-editorial-card p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 16px 0;
}

.dhm-editorial-card p:last-child {
  margin-bottom: 0;
}

.dhm-editorial-card strong {
  color: #0f172a;
}

.dhm-editorial-card a {
  color: #174f91;
  font-weight: 600;
  text-decoration: underline;
}

/* Useful Resources Directory */
.dhm-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .dhm-resources-grid {
    grid-template-columns: 1fr;
  }
}

.dhm-resource-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.dhm-resource-card:hover {
  transform: translateY(-2px);
  border-color: #174f91;
  box-shadow: 0 10px 20px -3px rgba(23, 79, 145, 0.1);
}

.dhm-res-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dhm-res-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(23, 79, 145, 0.08);
  color: #174f91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.dhm-res-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
}

.dhm-resource-card:hover .dhm-res-title {
  color: #174f91;
}

.dhm-res-domain {
  font-size: 13px;
  color: #174f91;
  font-weight: 600;
}

.dhm-res-arrow {
  color: #94a3b8;
  font-size: 18px;
  transition: transform 0.15s, color 0.15s;
}

.dhm-resource-card:hover .dhm-res-arrow {
  transform: translateX(4px);
  color: #174f91;
}

/* ==========================================================================
   22 VOWS PAGE STYLING
   ========================================================================== */

.dhm-vows-intro-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

.dhm-vows-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dhm-vows-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.dhm-vows-badge {
  font-size: 12px;
  font-weight: 700;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dhm-vows-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

@media (max-width: 860px) {
  .dhm-vows-grid {
    grid-template-columns: 1fr;
  }
}

.dhm-vow-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dhm-vow-card:hover {
  transform: translateY(-2px);
  border-color: #174f91;
  box-shadow: 0 8px 18px -2px rgba(23, 79, 145, 0.09);
}

.dhm-vow-card.landmark-vow {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: #cbd5e1;
  border-left: 4px solid #d97706;
}

.dhm-vow-card.landmark-vow:hover {
  border-color: #d97706;
}

.dhm-vow-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dhm-vow-num {
  font-size: 11.5px;
  font-weight: 700;
  color: #174f91;
  background: rgba(23, 79, 145, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.dhm-vow-card.landmark-vow .dhm-vow-num {
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

.dhm-vow-tag {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dhm-vow-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: #0f172a;
  margin: 0;
}

/* ==========================================================================
   5 PRECEPTS (PANCHSHEEL) PAGE STYLING
   ========================================================================== */

.dhm-precepts-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.dhm-precept-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dhm-precept-card:hover {
  transform: translateY(-2px);
  border-color: #174f91;
  box-shadow: 0 10px 22px -3px rgba(23, 79, 145, 0.09);
}

.dhm-precept-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #174f91;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(23, 79, 145, 0.25);
}

.dhm-precept-content {
  flex: 1;
}

.dhm-precept-pali {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.dhm-precept-meaning {
  font-size: 15px;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 4px 0;
}

.dhm-precept-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Precepts Media Showcase Grid */
.dhm-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .dhm-media-grid {
    grid-template-columns: 1fr;
  }
}

.dhm-video-card,
.dhm-image-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dhm-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.dhm-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dhm-media-card-info {
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.dhm-media-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px 0;
}

.dhm-media-card-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.dhm-image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.dhm-image-card:hover img {
  transform: scale(1.02);
}

/* Related Dhamma Collections */
.dhm-related-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.dhm-related-header {
  margin-bottom: 24px;
}

.dhm-related-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.dhm-related-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

.dhm-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .dhm-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .dhm-related-grid {
    grid-template-columns: 1fr;
  }
}

.dhm-related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.dhm-related-card:hover {
  transform: translateY(-3px);
  border-color: #174f91;
  box-shadow: 0 10px 20px -3px rgba(23, 79, 145, 0.1);
}

.dhm-rel-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(23, 79, 145, 0.08);
  color: #174f91;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: transform 0.2s;
}

.dhm-related-card:hover .dhm-rel-icon-wrap {
  transform: scale(1.08);
  background: #174f91;
  color: #ffffff;
}

.dhm-rel-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.dhm-related-card:hover .dhm-rel-title {
  color: #174f91;
}

.dhm-rel-meta {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
}

.dhm-rel-action {
  font-size: 12.5px;
  font-weight: 600;
  color: #174f91;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .dhm-hero {
    padding: 26px 22px;
  }
  .dhm-precept-card {
    padding: 18px 20px;
    gap: 16px;
  }
  .dhm-precept-num {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}




/* ==========================================================================
   12. PREMIUM EDITORIAL RIGHT-SIDE SIDEBAR ARCHITECTURE
   ========================================================================== */

#secondary.portal-custom-sidebar {
  display: block !important;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  #secondary.portal-custom-sidebar {
    position: relative !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 48px !important;
  }
}

@media (min-width: 922px) and (max-width: 1024px) {
  #secondary.portal-custom-sidebar {
    position: relative !important;
    padding-left: 16px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 48px !important;
  }
}

/* Prevent Astra from forcing sticky freeze or internal scroll container on sidebar */
.ast-sticky-sidebar .sidebar-main,
#secondary.portal-custom-sidebar .sidebar-main,
.portal-sidebar-wrapper {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
}

/* Prevent Astra from forcing an internal scroll container on sidebar */
.ast-sticky-sidebar .sidebar-main,
#secondary.portal-custom-sidebar .sidebar-main,
.portal-sidebar-wrapper {
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  height: auto !important;
}

.portal-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Base Sidebar Card */
.portal-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.portal-sidebar-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* Card Header & Badges */
.portal-card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.portal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--portal-radius-pill);
  font-family: var(--portal-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-badge-yt {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.portal-badge-yt-icon {
  font-size: 10px;
}

.portal-badge-app {
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
  border: 1px solid rgba(30, 58, 138, 0.18);
}

.portal-badge-platform {
  background: rgba(14, 165, 233, 0.08);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.portal-badge-donate {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.portal-badge-partner {
  background: rgba(71, 85, 105, 0.08);
  color: #334155;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.portal-badge-cat {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.portal-card-stat {
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.01em;
}

/* Card Titles & Typography */
.portal-card-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 0 0 8px 0 !important;
}

.portal-card-desc {
  font-family: var(--portal-font-ui);
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

/* Sidebar Buttons */
.portal-btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-family: var(--portal-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  width: 100%;
}

.portal-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.portal-btn-arrow {
  transition: transform 0.2s ease;
}

.portal-btn-sidebar:hover .portal-btn-arrow {
  transform: translateX(4px);
}

/* Specific Button Themes */
.portal-btn-yt {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
  border: 1px solid #dc2626;
}

.portal-btn-yt:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.38);
}

.portal-btn-app {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  border: 1px solid #0f172a;
}

.portal-btn-app:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.portal-btn-donate {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
  border: 1px solid #b45309;
}

.portal-btn-donate:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

/* 1. Search Card Styles */
.portal-search-card {
  padding: 12px;
  position: relative;
  overflow: visible !important;
}

.portal-search-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.portal-search-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.portal-search-input {
  width: 100%;
  padding: 11px 90px 11px 40px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Disable native WebKit clear button that overlaps and swallows button clicks */
.portal-search-input::-webkit-search-decoration,
.portal-search-input::-webkit-search-cancel-button,
.portal-search-input::-webkit-search-results-button,
.portal-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  display: none !important;
}

.portal-search-input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

.portal-search-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 7px 15px !important;
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 3px rgba(30, 58, 138, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.portal-search-btn:hover {
  background: #172554 !important;
  transform: translateY(-50%) scale(1.02) !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3) !important;
}

.portal-search-btn:active {
  transform: translateY(-50%) scale(0.98) !important;
}

.portal-search-btn span {
  pointer-events: none !important;
}

/* Live Search Floating Dropdown */
.portal-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 9999;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  box-sizing: border-box;
}

.portal-search-dropdown-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.portal-search-dropdown-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.portal-search-dropdown-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: #1e293b !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.portal-search-dropdown-link:hover,
.portal-search-dropdown-link.is-active {
  background: #f1f5f9 !important;
  color: #1e3a8a !important;
}

.portal-search-dropdown-title {
  font-weight: 500 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1 !important;
}

.portal-search-dropdown-badge {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.portal-search-dropdown-link:hover .portal-search-dropdown-badge {
  background: rgba(30, 58, 138, 0.1) !important;
  color: #1e3a8a !important;
}

.portal-search-dropdown-footer {
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 4px;
}

.portal-search-dropdown-all {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: rgba(30, 58, 138, 0.05) !important;
  color: #1e3a8a !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: none !important;
  transition: background 0.15s ease !important;
  box-sizing: border-box !important;
}

.portal-search-dropdown-all:hover {
  background: rgba(30, 58, 138, 0.12) !important;
}

.portal-search-dropdown-loading,
.portal-search-dropdown-empty {
  padding: 14px 12px !important;
  text-align: center !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  color: #64748b !important;
}

/* 2. YouTube Card Styles */
.portal-yt-thumbnail-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #0f172a;
}

.portal-yt-thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.portal-yt-thumb-link:hover .portal-yt-thumb-img {
  transform: scale(1.04);
  opacity: 0.88;
}

.portal-yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}

.portal-yt-thumb-link:hover .portal-yt-play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.portal-yt-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.portal-yt-thumb-link:hover .portal-yt-play-btn {
  transform: scale(1.12);
}

.portal-yt-play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

/* 3. Android App Card Styles */
.portal-app-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-app-features li {
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  margin: 0 !important;
}

.portal-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* 4. Platform Hub Items */
.portal-platforms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-platform-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.portal-platform-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateX(3px);
}

.portal-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.portal-icon-wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
}

.portal-icon-groups {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.portal-icon-news {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

.portal-icon-audio {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.25);
}

.portal-icon-books {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
}

.portal-platform-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portal-platform-name {
  font-family: var(--portal-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.portal-platform-sub {
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.portal-platform-chevron {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.portal-platform-item:hover .portal-platform-chevron {
  color: #1e3a8a;
  transform: translateX(3px);
}

/* 5. Support Our Work (Donate Card) */
.portal-donate-box {
  background: #fdf8f0;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
}

.portal-donate-marathi-tag {
  font-family: var(--portal-font-ui);
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 8px;
}

.portal-donate-upi-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--portal-radius-pill);
  border: 1px solid #fde68a;
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  margin-bottom: 12px;
}

.portal-upi-label {
  color: #64748b;
  font-weight: 500;
}

.portal-upi-number {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.portal-qr-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portal-qr-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}

.portal-qr-img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease;
}

.portal-qr-link:hover .portal-qr-img {
  transform: scale(1.03);
}

.portal-qr-scan-hint {
  font-family: var(--portal-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  margin-top: 6px;
}

/* 6. Legal & Professional Services */
.portal-partner-item {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.portal-partner-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.portal-partner-name {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 3px 0 !important;
}

.portal-partner-sub {
  font-family: var(--portal-font-ui);
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.portal-partner-link {
  font-family: var(--portal-font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #1e3a8a !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-partner-link:hover {
  text-decoration: underline !important;
}

/* 7. Categories Directory */
.portal-categories-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-cat-item {
  margin: 0 !important;
}

.portal-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--portal-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.18s ease;
  background: #f8fafc;
  border: 1px solid transparent;
}

.portal-cat-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a !important;
  transform: translateX(3px);
}

.portal-cat-count {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 2px 7px;
  border-radius: var(--portal-radius-pill);
  transition: all 0.18s ease;
}

.portal-cat-link:hover .portal-cat-count {
  background: #1e3a8a;
  color: #ffffff;
}

/* ==========================================================================
   13. REUSABLE EDITORIAL CATEGORY, ARCHIVE & ARTICLE TEMPLATE SYSTEM
   Applies automatically across all existing & future categories and articles
   ========================================================================== */

/* --- 0. Archive & Blog Container Alignment --- */
.blog.ast-right-sidebar .site-content > .ast-container,
.archive.ast-right-sidebar .site-content > .ast-container {
  padding-top: 28px !important;
  padding-bottom: 56px !important;
}

@media (min-width: 1025px) {
  .blog.ast-right-sidebar #secondary,
  .archive.ast-right-sidebar #secondary,
  .blog #secondary.portal-custom-sidebar,
  .archive #secondary.portal-custom-sidebar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* --- 1. Archive & Category Header Banner --- */
.archive .ast-archive-description,
.category .ast-archive-description,
.blog .ast-archive-description,
.tag .ast-archive-description {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 16px !important;
  padding: 28px 32px 22px 32px !important;
  margin-top: 0 !important; /* Level with sidebar search */
  margin-bottom: 26px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02), 0 4px 16px -2px rgba(15, 23, 42, 0.03) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.archive .ast-archive-description::before,
.category .ast-archive-description::before,
.blog .ast-archive-description::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #d97706 100%);
}

.portal-archive-badge-row {
  margin-bottom: 10px;
}

.portal-archive-pill-badge,
.portal-archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(30, 58, 138, 0.06);
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: var(--portal-radius-pill);
  font-family: var(--portal-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.archive .ast-archive-title,
.category .ast-archive-title,
.page-title.ast-archive-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: clamp(1.85rem, 3vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.02em !important;
}

.archive .taxonomy-description,
.category .taxonomy-description,
.blog .taxonomy-description,
.tag .taxonomy-description,
.portal-master-articles-banner .taxonomy-description,
.ast-archive-description .taxonomy-description,
.archive .taxonomy-description p,
.category .taxonomy-description p,
.blog .taxonomy-description p,
.tag .taxonomy-description p,
.portal-master-articles-banner .taxonomy-description p,
.ast-archive-description .taxonomy-description p {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 450 !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 14px 0 !important;
  max-width: 800px !important;
}

.portal-archive-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--portal-font-ui);
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 16px;
}

.portal-meta-strip-item strong {
  color: #0f172a;
  font-weight: 700;
}

.portal-meta-strip-sep {
  color: #cbd5e1;
}

.portal-meta-strip-free {
  color: #047857;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
}

/* Quick Topic Filter Pills inside Header */
.portal-archive-pills-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: 4px !important;
}

.portal-pills-label {
  font-family: var(--portal-font-ui) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.portal-pills-scroll {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
}

.portal-pill-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 11px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--portal-radius-pill) !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.portal-pill-filter:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
}

.portal-pill-filter.active {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2) !important;
}

.portal-pill-filter-count {
  font-size: 10px !important;
  font-weight: 600 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  padding: 1px 5px !important;
  border-radius: 999px !important;
}

.portal-pill-filter.active .portal-pill-filter-count {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* --- 2. Multi-Column Articles Card Grid --- */
.archive .site-main .ast-row,
.category .site-main .ast-row,
.blog .site-main .ast-row,
.tag .site-main .ast-row,
.author .site-main .ast-row,
.date .site-main .ast-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 22px !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}

@media (max-width: 820px) {
  .archive .site-main .ast-row,
  .category .site-main .ast-row,
  .blog .site-main .ast-row,
  .tag .site-main .ast-row,
  .author .site-main .ast-row,
  .date .site-main .ast-row {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* --- 3. Elevated Article Cards (Static, High-Legibility, Zero Empty Voids) --- */
.archive article.ast-article-post,
.category article.ast-article-post,
.blog article.ast-article-post,
.tag article.ast-article-post,
.search article.ast-article-post {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 12px -2px rgba(15, 23, 42, 0.02) !important;
  transition: none !important;
  transform: none !important;
  box-sizing: border-box !important;
}

/* Subtle left accent on text-only articles */
.archive article.ast-no-thumb,
.category article.ast-no-thumb,
.blog article.ast-no-thumb,
.tag article.ast-no-thumb,
.search article.ast-no-thumb {
  border-left: 3.5px solid #1e3a8a !important;
}

/* Strictly Remove All Card Hover Effects */
.archive article.ast-article-post:hover,
.category article.ast-article-post:hover,
.blog article.ast-article-post:hover,
.tag article.ast-article-post:hover,
.search article.ast-article-post:hover {
  transform: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 4px 12px -2px rgba(15, 23, 42, 0.02) !important;
  border-color: #e2e8f0 !important;
}

.archive .ast-article-inner,
.category .ast-article-inner,
.blog .ast-article-inner,
.tag .ast-article-inner,
.search .ast-article-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Card Body & Content Container */
.archive .post-content,
.category .post-content,
.blog .post-content,
.tag .post-content,
.search .post-content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  padding: 22px 24px 20px 24px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Flush Edge-to-Edge Top Featured Image */
.archive .ast-blog-featured-section,
.category .ast-blog-featured-section,
.blog .ast-blog-featured-section,
.tag .ast-blog-featured-section,
.search .ast-blog-featured-section {
  order: 1 !important;
  position: relative !important;
  width: calc(100% + 48px) !important;
  max-width: calc(100% + 48px) !important;
  margin: -22px -24px 18px -24px !important;
  padding: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 9.5 !important;
  background: #f1f5f9 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.archive .ast-blog-featured-section img,
.category .ast-blog-featured-section img,
.blog .ast-blog-featured-section img,
.tag .ast-blog-featured-section img,
.search .ast-blog-featured-section img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  transition: none !important;
  transform: none !important;
}

.archive article.ast-article-post:hover .ast-blog-featured-section img,
.category article.ast-article-post:hover .ast-blog-featured-section img,
.blog article.ast-article-post:hover .ast-blog-featured-section img,
.tag article.ast-article-post:hover .ast-blog-featured-section img,
.search article.ast-article-post:hover .ast-blog-featured-section img {
  transform: none !important;
}

/* Hide empty featured image container on text-only articles */
.archive .ast-no-thumb .ast-blog-featured-section,
.category .ast-no-thumb .ast-blog-featured-section,
.blog .ast-no-thumb .ast-blog-featured-section,
.tag .ast-no-thumb .ast-blog-featured-section,
.search .ast-no-thumb .ast-blog-featured-section,
.archive .ast-blog-featured-section:empty,
.category .ast-blog-featured-section:empty,
.blog .ast-blog-featured-section:empty,
.tag .ast-blog-featured-section:empty,
.search .ast-blog-featured-section:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

/* Hierarchy: Category Badge + Author placed ABOVE Title */
.archive .entry-header.ast-blog-meta-container,
.category .entry-header.ast-blog-meta-container,
.blog .entry-header.ast-blog-meta-container,
.tag .entry-header.ast-blog-meta-container,
.search .entry-header.ast-blog-meta-container {
  order: 2 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 22px !important;
  display: flex !important;
  align-items: center !important;
}

.archive .entry-meta,
.category .entry-meta,
.blog .entry-meta,
.tag .entry-meta,
.search .entry-meta {
  font-family: var(--portal-font-ui) !important;
  font-size: 0 !important; /* Conceals raw '/' text nodes injected by Astra */
  color: #64748b !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Hide unhelpful "Leave a Comment" link on cards */
.archive .entry-meta .comments-link,
.category .entry-meta .comments-link,
.blog .entry-meta .comments-link,
.tag .entry-meta .comments-link,
.search .entry-meta .comments-link {
  display: none !important;
}

/* Category Badge Pill */
.archive .entry-meta .cat-links a,
.category .entry-meta .cat-links a,
.blog .entry-meta .cat-links a,
.tag .entry-meta .cat-links a,
.search .entry-meta .cat-links a {
  background: rgba(30, 58, 138, 0.07) !important;
  color: #1e3a8a !important;
  font-family: var(--portal-font-ui) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  border: 1px solid rgba(30, 58, 138, 0.12) !important;
  transition: all 0.15s ease !important;
}

.archive .entry-meta .cat-links a:hover,
.category .entry-meta .cat-links a:hover,
.blog .entry-meta .cat-links a:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

/* Author Credit */
.archive .entry-meta .posted-by,
.category .entry-meta .posted-by,
.blog .entry-meta .posted-by,
.tag .entry-meta .posted-by,
.search .entry-meta .posted-by {
  font-family: var(--portal-font-ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
}

.archive .entry-meta .posted-by::before,
.category .entry-meta .posted-by::before,
.blog .entry-meta .posted-by::before,
.tag .entry-meta .posted-by::before,
.search .entry-meta .posted-by::before {
  content: "•";
  margin-right: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.archive .entry-meta .posted-by a,
.category .entry-meta .posted-by a,
.blog .entry-meta .posted-by a,
.tag .entry-meta .posted-by a,
.search .entry-meta .posted-by a {
  color: #64748b !important;
  text-decoration: none !important;
}

.archive .entry-meta .posted-by a:hover,
.category .entry-meta .posted-by a:hover,
.blog .entry-meta .posted-by a:hover {
  color: #0f172a !important;
}

/* Modern, Clean & High-Legibility Title Typography with 2-line baseline normalization */
.archive h2.entry-title,
.category h2.entry-title,
.blog h2.entry-title,
.tag h2.entry-title,
.search h2.entry-title {
  order: 3 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif !important;
  font-size: 17.5px !important;
  font-weight: 650 !important;
  line-height: 1.42 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.015em !important;
  min-height: 2.84em !important;
  display: flex !important;
  align-items: flex-start !important;
}

.archive h2.entry-title a,
.category h2.entry-title a,
.blog h2.entry-title a,
.tag h2.entry-title a,
.search h2.entry-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.archive h2.entry-title a:hover,
.category h2.entry-title a:hover,
.blog h2.entry-title a:hover,
.tag h2.entry-title a:hover,
.search h2.entry-title a:hover {
  color: #1e3a8a !important;
}

/* Card Excerpt with 2-line baseline normalization */
.archive .ast-excerpt-container,
.category .ast-excerpt-container,
.blog .ast-excerpt-container,
.tag .ast-excerpt-container,
.search .ast-excerpt-container {
  order: 4 !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  line-height: 1.62 !important;
  color: #475569 !important;
  margin-bottom: 14px !important;
  min-height: 3.24em !important;
  display: flex !important;
  align-items: flex-start !important;
}

.archive .ast-excerpt-container p,
.category .ast-excerpt-container p,
.blog .ast-excerpt-container p,
.tag .ast-excerpt-container p,
.search .ast-excerpt-container p {
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Clean Read More Link */
.archive .ast-read-more-container,
.category .ast-read-more-container,
.blog .ast-read-more-container,
.tag .ast-read-more-container,
.search .ast-read-more-container {
  order: 5 !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.archive .ast-read-more-container a,
.category .ast-read-more-container a,
.blog .ast-read-more-container a,
.tag .ast-read-more-container a,
.search .ast-read-more-container a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  transition: color 0.15s ease, gap 0.15s ease !important;
}

.archive .ast-read-more-container a:hover,
.category .ast-read-more-container a:hover,
.blog .ast-read-more-container a:hover,
.tag .ast-read-more-container a:hover,
.search .ast-read-more-container a:hover {
  color: #2563eb !important;
  gap: 9px !important;
}

/* Hide empty content wrappers */
.archive .entry-content.clear:empty,
.category .entry-content.clear:empty,
.blog .entry-content.clear:empty,
.tag .entry-content.clear:empty,
.search .entry-content.clear:empty {
  display: none !important;
}

/* --- 4. Numbered Pagination --- */
.ast-pagination {
  padding: 36px 0 24px 0 !important;
  text-align: center !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.ast-pagination .nav-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  float: none !important;
  width: auto !important;
  padding: 6px 10px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.ast-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.ast-pagination .page-numbers:hover:not(.current):not(.dots) {
  background: #f1f5f9 !important;
  color: #1e3a8a !important;
}

.ast-pagination .page-numbers.current {
  background: #1e3a8a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25) !important;
}

.ast-pagination .page-numbers.dots {
  color: #94a3b8 !important;
  cursor: default !important;
}

.ast-pagination .prev.page-numbers,
.ast-pagination .next.page-numbers {
  width: auto !important;
  font-weight: 600 !important;
  padding: 0 14px !important;
}

/* --- 5. Archival Bottom Reading Shelf --- */
.portal-archive-reading-shelf {
  margin: 8px 0 32px 0 !important;
  padding: 18px 22px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

.portal-reading-shelf-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.portal-reading-shelf-icon {
  font-size: 24px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.portal-reading-shelf-text h4 {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 3px 0 !important;
}

.portal-reading-shelf-text p {
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
  margin: 0 !important;
}

/* --- 5. Unified Editorial Single Post & Page Reading Template --- */
.single-post .site-content > .ast-container,
.page:not(.home) .site-content > .ast-container {
  padding-top: 28px !important;
  padding-bottom: 56px !important;
}

.single-post #primary,
.page:not(.home) #primary {
  margin-top: 0 !important;
  margin-bottom: 48px !important;
}

@media (min-width: 1025px) {
  .single-post #secondary,
  .page:not(.home) #secondary,
  .single-post #secondary.portal-custom-sidebar,
  .page:not(.home) #secondary.portal-custom-sidebar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Elegant Breadcrumbs across all pages */
.ast-breadcrumbs {
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  margin-bottom: 18px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

.ast-breadcrumbs a {
  color: #475569 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.ast-breadcrumbs a:hover {
  color: #1e3a8a !important;
}

.ast-breadcrumbs .separator {
  color: #cbd5e1 !important;
  margin: 0 4px !important;
}

/* Elevated Single Article & Page Reading Container */
.single-post article.ast-article-single,
.page:not(.home):not(.ast-page-builder-template) article.ast-article-single {
  position: relative !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  padding: 40px 44px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 6px 20px -3px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box !important;
  margin-bottom: 36px !important;
}

.single-post article.ast-article-single::before,
.page:not(.home):not(.ast-page-builder-template) article.ast-article-single::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #d97706 100%);
}

@media (max-width: 768px) {
  .single-post article.ast-article-single,
  .page:not(.home):not(.ast-page-builder-template) article.ast-article-single {
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
}

.single-post .entry-header,
.page:not(.home):not(.ast-page-builder-template) .entry-header {
  margin-bottom: 24px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.single-post .entry-title,
.page:not(.home):not(.ast-page-builder-template) .entry-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
}

.single-post .entry-meta,
.page:not(.home) .entry-meta {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 16px !important;
}

.single-post .entry-meta a,
.page:not(.home) .entry-meta a {
  color: #334155 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.single-post .entry-meta a:hover,
.page:not(.home) .entry-meta a:hover {
  color: #1e3a8a !important;
}

.single-post .entry-meta .ast-terms-link a,
.single-post .entry-meta .cat-links a,
.page:not(.home) .entry-meta .cat-links a {
  background: rgba(30, 58, 138, 0.08) !important;
  color: #1e3a8a !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  border-radius: var(--portal-radius-pill) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* Featured Image on Single Post and Pages */
.single-post .post-thumb,
.page:not(.home) .post-thumb {
  margin-bottom: 28px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
}

.single-post .post-thumb img,
.page:not(.home) .post-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Unified Reading Typography across all posts and pages */
.single-post .entry-content,
.page:not(.home) .entry-content {
  font-family: var(--portal-font-ui) !important;
  font-size: 16.5px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

.single-post .entry-content > p,
.page:not(.home) .entry-content > p,
.single-post .entry-content p:not([class*="vdl-"]):not([class*="portal-"]),
.page:not(.home) .entry-content p:not([class*="vdl-"]):not([class*="portal-"]) {
  margin-bottom: 22px !important;
}

.single-post .entry-content h2:not([class*="vdl-"]):not([class*="portal-"]),
.page:not(.home) .entry-content h2:not([class*="vdl-"]):not([class*="portal-"]) {
  font-family: var(--portal-font-editorial) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 42px 0 18px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  position: relative !important;
  line-height: 1.3 !important;
}

.single-post .entry-content h2:not([class*="vdl-"]):not([class*="portal-"])::before,
.page:not(.home) .entry-content h2:not([class*="vdl-"]):not([class*="portal-"])::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #1e3a8a;
}

.single-post .entry-content h3:not([class*="vdl-"]):not([class*="portal-"]),
.page:not(.home) .entry-content h3:not([class*="vdl-"]):not([class*="portal-"]) {
  font-family: var(--portal-font-editorial) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 32px 0 14px 0 !important;
  line-height: 1.35 !important;
}

.single-post .entry-content blockquote,
.page:not(.home) .entry-content blockquote {
  background: #f8fafc !important;
  border-left: 4px solid #1e3a8a !important;
  padding: 20px 24px !important;
  border-radius: 0 14px 14px 0 !important;
  font-family: var(--portal-font-editorial) !important;
  font-size: 18.5px !important;
  font-style: italic !important;
  color: #1e293b !important;
  line-height: 1.65 !important;
  margin: 32px 0 !important;
}

/* 1. Universal Table Styling across all posts and pages */
.single-post .entry-content table,
.page:not(.home) .entry-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 28px 0 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 14.5px !important;
}

.single-post .entry-content table th,
.page:not(.home) .entry-content table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 14px 18px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-size: 13.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.single-post .entry-content table td,
.page:not(.home) .entry-content table td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  line-height: 1.55 !important;
}

.single-post .entry-content table tr:last-child td,
.page:not(.home) .entry-content table tr:last-child td {
  border-bottom: none !important;
}

.single-post .entry-content table tr:nth-child(even) td,
.page:not(.home) .entry-content table tr:nth-child(even) td {
  background: #fafafa !important;
}

.single-post .entry-content table tr:hover td,
.page:not(.home) .entry-content table tr:hover td {
  background: #eff6ff !important;
}

/* 2. Universal Iframes & Responsive Embeds across all posts and pages */
.single-post .entry-content iframe,
.page:not(.home) .entry-content iframe {
  max-width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.single-post .entry-content iframe[src*="youtube.com"],
.single-post .entry-content iframe[src*="youtube-nocookie.com"],
.page:not(.home) .entry-content iframe[src*="youtube.com"],
.page:not(.home) .entry-content iframe[src*="youtube-nocookie.com"] {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 280px !important;
}

.single-post .entry-content iframe[src*="drive.google.com"],
.page:not(.home) .entry-content iframe[src*="drive.google.com"] {
  width: 100% !important;
  min-height: 620px !important;
  height: 75vh !important;
  background: #f8fafc !important;
}

/* 3. Universal Image Alignment & Captions */
.single-post .entry-content img,
.page:not(.home) .entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
}

.single-post .entry-content .alignleft,
.page:not(.home) .entry-content .alignleft {
  float: none !important;
  display: block !important;
  margin: 0 auto 24px auto !important;
  max-width: 100% !important;
}

.single-post .entry-content .alignright,
.page:not(.home) .entry-content .alignright {
  float: none !important;
  display: block !important;
  margin: 0 auto 24px auto !important;
  max-width: 100% !important;
}

.single-post .entry-content figure,
.page:not(.home) .entry-content figure {
  margin: 28px 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.single-post .entry-content figcaption,
.page:not(.home) .entry-content figcaption {
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  color: #64748b !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-style: italic !important;
}

/* 4. Reading Lists across all posts and pages */
.single-post .entry-content ul,
.single-post .entry-content ol,
.page:not(.home) .entry-content ul,
.page:not(.home) .entry-content ol {
  margin: 0 0 24px 20px !important;
  padding: 0 !important;
}

.single-post .entry-content li,
.page:not(.home) .entry-content li {
  margin-bottom: 10px !important;
  line-height: 1.75 !important;
}

/* Related Posts (YARPP) across Posts and Pages */
.single-post .yarpp,
.page:not(.home) .yarpp {
  margin-top: 40px !important;
  padding: 28px 32px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
}

.single-post .yarpp h3,
.page:not(.home) .yarpp h3,
.single-post .yarpp > p,
.page:not(.home) .yarpp > p {
  font-family: var(--portal-font-editorial) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 16px 0 !important;
}

.single-post .yarpp ol,
.page:not(.home) .yarpp ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.single-post .yarpp li a,
.page:not(.home) .yarpp li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  transition: all 0.15s ease !important;
}

.single-post .yarpp li a:hover,
.page:not(.home) .yarpp li a:hover {
  border-color: #93c5fd !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

/* Comments Section across Posts and Pages */
.single-post #comments,
.page:not(.home) #comments {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  padding: 32px 40px !important;
  margin-top: 32px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

.single-post #comments .comments-title,
.single-post #comments .comment-reply-title,
.page:not(.home) #comments .comments-title,
.page:not(.home) #comments .comment-reply-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.single-post #comments textarea,
.single-post #comments input[type="text"],
.single-post #comments input[type="email"],
.single-post #comments input[type="url"],
.page:not(.home) #comments textarea,
.page:not(.home) #comments input[type="text"],
.page:not(.home) #comments input[type="email"],
.page:not(.home) #comments input[type="url"] {
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 14px !important;
  background: #f8fafc !important;
}

.single-post #comments textarea:focus,
.single-post #comments input:focus,
.page:not(.home) #comments textarea:focus,
.page:not(.home) #comments input:focus {
  border-color: #1e3a8a !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1) !important;
}

.single-post #comments input[type="submit"],
.page:not(.home) #comments input[type="submit"] {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-family: var(--portal-font-ui) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.single-post #comments input[type="submit"]:hover,
.page:not(.home) #comments input[type="submit"]:hover {
  background: #2563eb !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
}

/* Explicit protection for curated catalog and resource cards */
.vdl-card,
.vdl-card:hover {
  transform: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.vdl-card .vdl-card-title,
h3.vdl-card-title,
.entry-content .vdl-card h3.vdl-card-title {
  font-family: var(--portal-font-ui) !important;
  font-size: 15.5px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.vdl-card .vdl-card-title a,
h3.vdl-card-title a,
.entry-content .vdl-card h3.vdl-card-title a {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

.vdl-card .vdl-card-desc,
p.vdl-card-desc,
.entry-content .vdl-card p.vdl-card-desc {
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* ==========================================================================
   DR. B.R. AMBEDKAR FAMILY TREE REDESIGN (.aft-)
   ========================================================================== */
.aft-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  margin: 12px 0 32px 0 !important;
}

/* 1. Intro Card */
.aft-intro-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
}

.aft-badge-wrap {
  margin-bottom: 12px !important;
}

.aft-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(30, 58, 138, 0.08) !important;
  color: #1e3a8a !important;
  border: 1px solid rgba(30, 58, 138, 0.2) !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.aft-intro-lead {
  font-family: var(--portal-font-ui) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: #334155 !important;
  margin: 0 0 18px 0 !important;
}

.aft-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}

.aft-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.aft-chip-highlight {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Quick Jump Navigation */
.aft-nav-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding-top: 16px !important;
  border-top: 1px solid #e2e8f0 !important;
}

.aft-nav-pill {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  background: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  border: 1px solid #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.aft-nav-pill:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
}

/* 2. Video Card */
.aft-video-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.aft-video-header {
  margin-bottom: 16px !important;
}

.aft-video-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.aft-video-subtitle {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}

.aft-video-wrapper {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}

.aft-video-wrapper iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* 3. Generational Cards */
.aft-section-heading {
  font-family: var(--portal-font-editorial) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 36px 0 18px 0 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  position: relative !important;
}

.aft-section-heading::before {
  content: "" !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 45px !important;
  height: 2px !important;
  background: #1e3a8a !important;
}

.aft-gen-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-left: 4px solid #1e3a8a !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.aft-gen-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08) !important;
}

.aft-gen-card-gold {
  border-left-color: #d97706 !important;
}

.aft-gen-card-royal {
  border-left-color: #2563eb !important;
}

.aft-gen-card-emerald {
  border-left-color: #059669 !important;
}

.aft-gen-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.aft-gen-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.aft-gen-tag {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  border: 1px solid #dbeafe !important;
}

.aft-gen-tag-gold {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.aft-gen-tag-royal {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.aft-gen-tag-emerald {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

.aft-member-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 14px !important;
}

.aft-member-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.aft-member-box-heroic {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.05) !important;
}

.aft-member-role {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}

.aft-member-name {
  font-family: var(--portal-font-ui) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
  line-height: 1.35 !important;
}

.aft-member-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  margin: 0 !important;
}

.aft-member-desc strong {
  color: #1e293b !important;
}

/* 4. Archival Records / Visual Charts */
.aft-chart-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.aft-chart-img {
  width: 100% !important;
  height: auto !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  display: block !important;
  margin: 0 0 12px 0 !important;
}

.aft-chart-caption {
  font-size: 13px !important;
  color: #64748b !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.aft-view-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
}

.aft-view-link:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

/* 5. Archival Photo Gallery */
.aft-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 18px !important;
}

.aft-gallery-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.aft-gallery-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.08) !important;
}

.aft-gallery-img-wrap {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
}

.aft-gallery-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
  display: block !important;
  margin: 0 !important;
}

.aft-gallery-item:hover .aft-gallery-img-wrap img {
  transform: scale(1.04) !important;
}

.aft-gallery-caption {
  padding: 12px 14px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.45 !important;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
}

.aft-gallery-caption strong {
  display: block !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
}

@media (max-width: 640px) {
  .aft-intro-box {
    padding: 20px !important;
  }
  .aft-gen-card {
    padding: 18px !important;
  }
  .aft-member-grid {
    grid-template-columns: 1fr !important;
  }
  .aft-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}






/* ==========================================================================
   SECTION 6: UNIVERSAL PILLAR PAGE COMPONENTS (v1.4.0)
   Covers: Preamble, Reformers, Monuments, Biographies, Quotes & Communities
   ========================================================================== */

/* 6.1 Preamble Certificate & Pillars */
.portal-preamble-wrapper {
  margin: 0 0 36px 0 !important;
}
.portal-preamble-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 5px solid #d97706 !important;
  border-radius: 18px !important;
  padding: 38px 34px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
  position: relative !important;
}
.portal-preamble-header {
  text-align: center !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 24px !important;
  margin-bottom: 28px !important;
}
.portal-preamble-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #fef3c7 !important;
  color: #92400e !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  margin-bottom: 12px !important;
}
.portal-preamble-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.01em !important;
}
.portal-preamble-subtitle {
  font-family: var(--portal-font-ui) !important;
  font-size: 15px !important;
  color: #64748b !important;
  margin: 0 !important;
}
.portal-preamble-opening {
  font-family: var(--portal-font-editorial) !important;
  font-size: 21px !important;
  line-height: 1.65 !important;
  color: #1e293b !important;
  text-align: center !important;
  margin: 0 0 32px 0 !important;
}
.portal-preamble-opening strong {
  color: #1e3a8a !important;
  font-weight: 700 !important;
}
.portal-preamble-pillars {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  margin: 28px 0 !important;
}
.portal-pillar-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.portal-pillar-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
}
.portal-pillar-title {
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #1e3a8a !important;
  text-transform: uppercase !important;
  margin: 0 0 6px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.portal-pillar-desc {
  font-family: var(--portal-font-ui) !important;
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.portal-preamble-enact {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 12px !important;
  padding: 18px 24px !important;
  text-align: center !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 14.5px !important;
  color: #166534 !important;
  margin-top: 24px !important;
  line-height: 1.6 !important;
}
.portal-preamble-dates {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 24px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e2e8f0 !important;
}
.portal-preamble-date-chip {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  color: #334155 !important;
  font-weight: 500 !important;
}

/* 6.2 Social Reformers Directory & Cards */
.portal-reformers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  margin: 28px 0 36px 0 !important;
}
.portal-reformer-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
}
.portal-reformer-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08) !important;
}
.portal-reformer-img-wrap {
  width: 100% !important;
  height: 220px !important;
  background: #f1f5f9 !important;
  overflow: hidden !important;
  position: relative !important;
}
.portal-reformer-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}
.portal-reformer-card:hover .portal-reformer-img-wrap img {
  transform: scale(1.04) !important;
}
.portal-reformer-body {
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
.portal-reformer-epithet {
  font-family: var(--portal-font-ui) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #d97706 !important;
  margin-bottom: 4px !important;
}
.portal-reformer-name {
  font-family: var(--portal-font-editorial) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.25 !important;
}
.portal-reformer-desc {
  font-family: var(--portal-font-ui) !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 18px 0 !important;
  flex: 1 1 auto !important;
}
.portal-reformer-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  background: #f8fafc !important;
  color: #1e3a8a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.portal-reformer-btn:hover {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border-color: #1e3a8a !important;
}

/* 6.3 WhatsApp Community Cards */
.portal-wa-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
  margin: 24px 0 32px 0 !important;
}
.portal-wa-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.portal-wa-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
}
.portal-wa-cat {
  font-family: var(--portal-font-ui) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #059669 !important;
  background: #ecfdf5 !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
  margin-bottom: 8px !important;
}
.portal-wa-name {
  font-family: var(--portal-font-ui) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 14px 0 !important;
  line-height: 1.35 !important;
}
.portal-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
}
.portal-wa-btn:hover {
  background: #128c7e !important;
}

/* 6.4 Monument & Landmark Showcase */
.portal-monument-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  border-radius: 18px !important;
  color: #ffffff !important;
  padding: 36px 32px !important;
  margin-bottom: 28px !important;
  position: relative !important;
  overflow: hidden !important;
}
.portal-monument-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  color: #fef08a !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  margin-bottom: 14px !important;
}
.portal-monument-title {
  font-family: var(--portal-font-editorial) !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.2 !important;
}
.portal-monument-tagline {
  font-family: var(--portal-font-ui) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
  max-width: 800px !important;
  margin: 0 0 20px 0 !important;
}
.portal-monument-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.portal-monument-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 6px 12px !important;
  border-radius: 9999px !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 12.5px !important;
  color: #f1f5f9 !important;
}

/* 6.5 Biography Cards & Quotes */
.portal-bio-highlight {
  background: #f8fafc !important;
  border-left: 4px solid #1e3a8a !important;
  border-radius: 0 14px 14px 0 !important;
  padding: 22px 26px !important;
  margin: 24px 0 !important;
  font-family: var(--portal-font-ui) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}
.portal-quote-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 18px !important;
  margin: 24px 0 !important;
}
.portal-quote-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 22px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
}
.portal-quote-text {
  font-family: var(--portal-font-editorial) !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #1e293b !important;
  font-style: italic !important;
  margin: 0 0 14px 0 !important;
}
.portal-quote-author {
  font-family: var(--portal-font-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #d97706 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Suppress default page entry-header when custom hero or modern wrapper is present */
.ast-article-single:has(.portal-monument-hero) .entry-header,
.ast-article-single:has(.portal-preamble-card) .entry-header,
.ast-article-single:has(.portal-community-wrapper) .entry-header,
.ast-article-single:has(.portal-quotes-wrapper) .entry-header,
.ast-article-single:has(.portal-donors-wrapper) .entry-header,
.ast-article-single:has(.bhd-page-wrapper) .entry-header,
.ast-article-single:has(.aft-page-wrapper) .entry-header {
  display: none !important;
}
