/* ============================================================
   GOA BUDGET 2026-27 — REDESIGN CSS
   Department of Finance, Government of Goa
   Author: Redesign (antigravity)
   ============================================================ */

/* ============================
   DESIGN TOKENS
============================ */
:root {
  --gov-blue:       #574AE2;          /* Majorelle Blue (Primary Brand) */          /* Imperial Blue (Primary Brand) */
  --gov-blue-dark:  #222A68;          /* Imperial Blue (Deep Anchor) */          /* Midnight Imperial Blue */
  --gov-blue-deep:  #0D1130;          /* Deep Imperial Navy */
  --gov-blue-mid:   #654597;          /* Dusty Grape */          /* Mid Imperial Blue */
  --gov-blue-light: #F3E6F8;          /* Soft Mauve/Lavender Tint */
  --gov-gold:       #574AE2;          /* Majorelle Blue Vibrant Accent */
  --gov-gold-light: #F3E6F8;          /* Soft Lilac Tint */
  --gov-gold-accent:#AB81CD;          /* Bright Lavender Accent */
  --gov-custard:    #AB81CD;          /* Bright Lavender */
  --gov-tea-green:  #E2ADF2;          /* Mauve Accent */
  --text-dark:      #12173B;          /* Deep Imperial Indigo Text */
  --text-body:      #222A68;          /* Imperial Blue Body Text */
  --text-muted:     #555D85;          /* Refined Slate Lavender Text */          /* Muted Slate Lavender Gray */
  --bg-white:       #FFFFFF;          /* Crisp Luminous White Canvas */          /* Soft Lilac-White Canvas */
  --bg-warm:        #FAF7FD;          /* Soft Lilac Warm Surface */          /* Soft Mauve Warm Surface */
  --bg-section:     #EDE0F5;          /* Delicate Lavender-Mauve Section */
  --border-light:   #AB81CD;          /* Bright Lavender Border */
  --pdf-red:        #574AE2;          /* Majorelle Blue PDF Action */
  --shadow-subtle:  0 2px 8px rgba(34, 42, 104, 0.08);
  --shadow-card:    0 4px 16px rgba(34, 42, 104, 0.12);
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --t:          0.35s cubic-bezier(.4,0,.2,1);
  --header-h:   80px;
  --header-h-s: 60px;
}

/* ============================
   BASE RESET
============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================
   SKIP LINK
============================ */
.skip-link {
  position: absolute; top: -60px; left: 0; z-index: 9999;
  background: var(--gov-blue); color: #fff;
  padding: 8px 16px; font-size: 14px;
  border-radius: 0 0 4px 0; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================
   TRANSLATE BAR
============================ */
#translate-bar {
  background: var(--gov-blue);
  padding: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.tb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-lang-label {
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.lang-quick-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lang-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.lang-pill:hover, .lang-pill:focus {
  background: var(--gov-gold);
  color: #161C48;
  border-color: var(--gov-gold);
  font-weight: 700;
}
.tb-links {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.tb-links a {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  transition: color var(--t);
  text-decoration: none;
}
.tb-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Google Translate Customization - Hide ugly branding, style dropdown cleanly */
#google_translate_element {
  display: inline-flex;
  align-items: center;
}
.goog-te-gadget {
  font-size: 0 !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}
.goog-te-gadget > span,
.goog-logo-link,
.goog-te-gadget .goog-logo-link {
  display: none !important;
}
.goog-te-gadget .goog-te-combo {
  font-size: 12px !important;
  color: #222A68 !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  margin: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}
body {
  top: 0 !important;
  position: static !important;
}
.goog-te-banner-frame {
  display: none !important;
}
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}
font {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* ============================
   SITE HEADER
============================ */
#site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(10,45,110,.12);
}

.header-top {
  height: 92px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  transition: height var(--t), min-height var(--t);
}
#site-header.scrolled .header-top { height: 72px; min-height: 72px; }

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transition: width var(--t), height var(--t);
}
#site-header.scrolled .header-logo img { width: 52px; height: 52px; }

.logo-text-group { display: flex; flex-direction: column; line-height: 1.25; }
.logo-dept {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--gov-blue);
  letter-spacing: .01em;
  transition: font-size var(--t);
}
#site-header.scrolled .logo-dept { font-size: 16.5px; }
.logo-state {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: font-size var(--t);
}
#site-header.scrolled .logo-state { font-size: 12px; }



/* Right Controls: Accessibility + National Emblem */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-acc-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.acc-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  margin-right: 4px;
}
.acc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--gov-blue);
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--t);
  font-size: 12px;
}
.acc-btn:hover { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }

.header-divider {
  width: 1px;
  height: 38px;
  background: #E2E8F0;
}

.national-emblem-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.national-emblem-wrap img {
  height: 52px;
  width: auto;
  transition: height var(--t);
}
#site-header.scrolled .national-emblem-wrap img { height: 42px; }
.national-emblem-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nat-title {
  font-family: 'EB Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  color: #222A68;
  letter-spacing: 0.02em;
}
.nat-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 991px) {
  .national-emblem-text { display: none; }
}
@media (max-width: 575px) {
  .header-divider, .national-emblem-wrap { display: none; }
}

/* ============================
   NAVIGATION
============================ */
.nav-bar {
  background: #FFFFFF;
  border-top: 1px solid #EADCF0;
  border-bottom: 2.5px solid #AB81CD;
  box-shadow: 0 4px 16px rgba(87, 74, 226, 0.08);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 992px) {
  .navbar-nav {
    display: flex;
    align-items: center;
  }
  .navbar-nav .nav-item {
    display: flex;
    align-items: center;
  }
}
.navbar-nav .nav-link {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #222A68 !important;
  padding: 14px 16px !important;
  position: relative;
  letter-spacing: .01em;
  transition: color var(--t);
  display: inline-flex;
  align-items: center;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 3px;
  background: #574AE2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #574AE2 !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-nav .nav-link.nav-highlight {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%) !important;
  color: #FFFFFF !important;
  border-radius: 6px;
  margin: 0 8px;
  padding: 6px 14px !important;
  font-weight: 700 !important;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  box-shadow: 0 3px 10px rgba(87, 74, 226, 0.35);
  border: 1px solid #AB81CD;
  transition: all 0.2s ease;
}
.navbar-nav .nav-link.nav-highlight::after { display: none !important; }
.navbar-nav .nav-link.nav-highlight:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(87, 74, 226, 0.5);
}

/* Dropdown Menu (Desktop Hover & Sovereign Emerald Theme) */
.navbar-nav .nav-item.dropdown {
  position: relative;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
  }
  .navbar-nav .nav-item.dropdown:hover > .dropdown-menu,
  .navbar-nav .nav-item.dropdown > .dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
  .navbar-nav .nav-item.dropdown:hover > .nav-link,
  .navbar-nav .nav-item.dropdown.show > .nav-link {
    color: #574AE2 !important;
  }
  .navbar-nav .nav-item.dropdown:hover > .nav-link::after,
  .navbar-nav .nav-item.dropdown.show > .nav-link::after {
    transform: scaleX(1) !important;
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  border: 1px solid rgba(171, 129, 205, 0.35);
  border-top: 3px solid #574AE2;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 34px rgba(87, 74, 226, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  min-width: 230px;
  background: #FFFFFF;
  z-index: 1050;
  margin-top: 0;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
}

@media (min-width: 992px) {
  .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
  }
  .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

.dropdown-item {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #222A68;
  padding: 9px 20px;
  border-left: 3px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, padding 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #EDE0F5;
  color: #574AE2;
  border-left: 3px solid #574AE2;
  padding-left: 24px;
  font-weight: 600;
}
.dropdown-item.active {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  border-left: 3px solid #E2ADF2;
  font-weight: 600;
}
.dropdown-divider {
  border-top: 1px solid rgba(34, 42, 104, 0.08);
  margin: 6px 0;
}
.navbar-toggler { border-color: #AB81CD; }
.navbar-toggler-icon { filter: none; }

/* ============================
   HERO
============================ */
#hero {
  background: var(--bg-white);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  border-bottom: none !important;
}
.hero-container {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  align-items: center;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 36px 40px;
  gap: 36px;
}
.hero-content { padding-right: 8px; }

.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  opacity: 0; transform: translateY(20px);
}
.hero-kicker-line { width: 36px; height: 2px; background: var(--gov-gold); }
.hero-kicker-text {
  font-size: 11px; font-weight: 600;
  letter-spacing: .15em;
  color: var(--gov-blue-mid);
  text-transform: uppercase;
}
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(24px);
}
.hero-subtext {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
  opacity: 0; transform: translateY(20px);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gov-blue); color: #fff;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gov-blue);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  opacity: 0; transform: translateY(16px);
}
.hero-cta:hover {
  background: var(--gov-blue-mid);
  border-color: var(--gov-blue-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(10,45,110,.25);
}
.hero-cta .arrow { transition: transform var(--t); }
.hero-cta:hover .arrow { transform: translateX(4px); }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.97);
}
.hero-illustration {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 10px 36px rgba(10,45,110,.14);
}

/* ---- hero animations ---- */
.hero-kicker  { animation: fadeUp .55s .10s ease forwards; }
.hero-heading { animation: fadeUp .60s .25s ease forwards; }
.hero-subtext { animation: fadeUp .60s .40s ease forwards; }
.hero-cta     { animation: fadeUp .60s .55s ease forwards; }
.hero-visual  { animation: fadeScale .80s .30s ease forwards; }
.anim-ready .hero-kicker  { animation: fadeUp .55s .10s ease forwards; }
.anim-ready .hero-heading { animation: fadeUp .60s .25s ease forwards; }
.anim-ready .hero-subtext { animation: fadeUp .60s .40s ease forwards; }
.anim-ready .hero-cta     { animation: fadeUp .60s .55s ease forwards; }
.anim-ready .hero-visual  { animation: fadeScale .80s .30s ease forwards; }
@keyframes fadeUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeScale{ to { opacity: 1; transform: scale(1); } }

/* ============================
   SCROLL REVEAL
============================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.00s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.08s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.16s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.24s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.32s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:.40s; }
.reveal-stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:.48s; }
.reveal-stagger.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:.56s; }

/* ============================
   BUDGET RESOURCES & FAST PORTALS (LUMINOUS FROSTED GLASS)
============================ */
.budget-resources-section {
  position: relative;
  overflow: visible;
  padding: 38px 0 22px;
  background-image: url('../img/goa_assembly_backdrop.jpg');
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
  border-top: none !important;
  border-bottom: none;
}

.resources-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    #FFFFFF 0%, 
    #FFFFFF 28px, 
    rgba(255, 255, 255, 0.96) 60px, 
    rgba(246, 248, 255, 0.88) 100px, 
    rgba(240, 243, 255, 0.85) 50%, 
    rgba(236, 241, 255, 0.90) 86%, 
    rgba(248, 245, 238, 0.98) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Compact Header Bar */
.resources-header-compact {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.resources-title-compact {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #12173B;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.resources-title-line {
  display: inline-block;
  width: 24px;
  height: 2.5px;
  background: #574AE2;
  border-radius: 2px;
}

/* Compact Grid Layout */
.resources-layout-compact {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Featured Left Card (Budget Live - Luminous Frosted Glass) */
.res-featured-card-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 12px;
  padding: 13px 16px;
  text-decoration: none;
  color: #12173B !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 4px 18px rgba(34, 42, 104, 0.07), 0 1px 3px rgba(229, 9, 20, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.res-featured-card-compact:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.65);
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 10px 24px rgba(229, 9, 20, 0.16), 0 2px 8px rgba(34, 42, 104, 0.06);
  color: #12173B !important;
}
.featured-card-top-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.featured-yt-icon-compact {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.35);
}
.live-pill-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(229, 9, 20, 0.09);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 50px;
}
.live-pill-badge-compact .live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #E50914;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
  animation: liveBadgePulse 1.8s infinite;
}
.live-pill-badge-compact .live-badge-text {
  font-size: 10px;
  font-weight: 800;
  color: #E50914;
  letter-spacing: 0.1em;
}
.featured-card-body-compact {
  margin-bottom: 8px;
}
.featured-title-compact {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #12173B;
  line-height: 1.15;
  margin-bottom: 3px;
}
.featured-desc-compact {
  font-size: 11.5px;
  color: #555D85;
  line-height: 1.35;
  margin: 0;
}
.featured-card-footer-compact {
  display: flex;
  align-items: center;
}
.featured-action-btn-compact {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: #E50914;
  padding: 5px 12px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.35);
}
.res-featured-card-compact:hover .featured-action-btn-compact {
  background: #C40812;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.45);
}

/* Secondary 3x2 Grid - Luminous Frosted Glass */
.res-secondary-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}
.res-card-compact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(87, 74, 226, 0.15);
  border-radius: 12px;
  outline: none;
  text-decoration: none;
  color: #12173B !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 4px 16px rgba(34, 42, 104, 0.06), 0 1px 3px rgba(34, 42, 104, 0.03);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
}
.res-card-compact:hover {
  background: #FFFFFF;
  border-color: rgba(87, 74, 226, 0.45);
  outline: none;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 8px 20px rgba(87, 74, 226, 0.16), 0 2px 6px rgba(34, 42, 104, 0.06);
  color: #12173B !important;
}
.res-card-icon-compact {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}
.res-card-compact:hover .res-card-icon-compact {
  transform: scale(1.08);
}
.res-card-icon-compact.union  { background: linear-gradient(135deg, #F97316, #EA580C); box-shadow: 0 3px 9px rgba(249, 115, 22, 0.35); }
.res-card-icon-compact.brief  { background: linear-gradient(135deg, #574AE2, #473AC7); box-shadow: 0 3px 9px rgba(87, 74, 226, 0.35); }
.res-card-icon-compact.capex  { background: linear-gradient(135deg, #0284C7, #0369A1); box-shadow: 0 3px 9px rgba(2, 132, 199, 0.35); }
.res-card-icon-compact.audit  { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 3px 9px rgba(5, 150, 105, 0.35); }
.res-card-icon-compact.manual { background: linear-gradient(135deg, #6366F1, #4F46E5); box-shadow: 0 3px 9px rgba(99, 102, 241, 0.35); }
.res-card-icon-compact.gender { background: linear-gradient(135deg, #D946EF, #C026D3); box-shadow: 0 3px 9px rgba(217, 70, 239, 0.35); }

.res-card-content-compact {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.res-card-title-compact {
  font-size: 13px;
  font-weight: 700;
  color: #12173B;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.res-card-sub-compact {
  font-size: 10.5px;
  color: #555D85;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res-card-arrow-compact {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(87, 74, 226, 0.06);
  border: 1px solid rgba(87, 74, 226, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  color: #574AE2;
  transition: all 0.2s ease;
  margin-left: auto;
}
.res-card-compact:hover .res-card-arrow-compact {
  background: #574AE2;
  border-color: #574AE2;
  color: #FFFFFF;
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(87, 74, 226, 0.35);
}



/* Legacy fallback if needed */
.stats-strip { background: var(--gov-blue); padding: 18px 0; }
.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: #fff; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 700;
  color: var(--gov-gold);
  line-height: 1; margin-bottom: 4px;
}
.stat-label { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 500; letter-spacing: .04em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ============================
   QUICK ACCESS BAR
============================ */
#quick-access {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}
.quick-access-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1280px;
  margin: 0 auto;
}
.qa-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-right: 1px solid var(--border-light);
  color: var(--text-body);
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
.qa-item:last-child { border-right: none; }
.qa-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gov-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.qa-item:hover { background: var(--bg-warm); color: var(--gov-blue); }
.qa-item:hover::before { transform: scaleX(1); }
.qa-item:hover .qa-arrow { opacity: 1; transform: translateX(0); }
.qa-item:hover .qa-icon { background: var(--gov-blue); color: #fff; transform: translateY(-2px) scale(1.06); }

.qa-icon {
  width: 40px; height: 40px;
  background: var(--gov-blue-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gov-blue);
  font-size: 17px;
  flex-shrink: 0;
  transition: transform var(--t), background var(--t), color var(--t);
}
.qa-text { flex: 1; min-width: 0; }
.qa-title {
  font-size: 13px; font-weight: 600;
  color: var(--text-dark); line-height: 1.3;
  margin-bottom: 2px;
  transition: color var(--t);
}
.qa-item:hover .qa-title { color: var(--gov-blue); }
.qa-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.qa-arrow {
  font-size: 12px; color: var(--gov-blue);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t), transform var(--t);
  flex-shrink: 0;
}

/* ============================
   SECTION HELPERS
============================ */
.section-header { margin-bottom: 32px; }
.section-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gov-blue-mid); margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  display: flex; align-items: center; gap: 12px;
}
.section-title-line { display: inline-block; width: 32px; height: 2px; background: var(--gov-gold); flex-shrink: 0; }
.view-all-link {
  font-size: 13px; font-weight: 600;
  color: var(--gov-blue);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--t), color var(--t);
}
.view-all-link:hover { color: var(--gov-blue-mid); gap: 8px; }

/* ============================
   DOC ROWS
============================ */
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 14px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  transition: background var(--t), padding-left var(--t), color var(--t);
  border-radius: var(--radius-sm);
}
.doc-row:first-child { border-top: 1px solid var(--border-light); }
.doc-row:hover { background: var(--gov-blue-light); padding-left: 10px; color: var(--gov-blue); }
.doc-row:hover .doc-arrow { opacity: 1; transform: translateX(0); }

.doc-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--pdf-red); font-size: 20px;
}
.doc-name { flex: 1; font-size: 13.5px; font-weight: 500; color: inherit; line-height: 1.4; }
.doc-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.doc-arrow {
  font-size: 11px; color: var(--gov-blue);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--t), transform var(--t);
  flex-shrink: 0;
}

/* ============================
   SUPPLEMENTARY BUDGET ACCORDION
============================ */
.supp-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.supp-accordion-btn {
  background: transparent; border: none; width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  text-align: left;
  border-top: 1px solid var(--border-light);
}
.supp-accordion-btn:first-child { border-top: none; }
.supp-accordion-btn:hover { background: var(--gov-blue-light); color: var(--gov-blue); }
.supp-accordion-btn.active { background: var(--gov-blue-light); color: var(--gov-blue); }

.btn-icon {
  width: 32px; height: 32px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gov-blue); flex-shrink: 0;
}
.btn-chevron {
  margin-left: auto; font-size: 12px;
  transition: transform var(--t); color: var(--text-muted);
}
.supp-accordion-btn.active .btn-chevron { transform: rotate(180deg); }

.supp-accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 20px;
  background: var(--bg-warm);
}
.supp-accordion-body.open { max-height: 500px; padding: 14px 20px; }

.supp-doc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px; color: var(--gov-blue);
  transition: color var(--t), gap var(--t);
}
.supp-doc-link:last-child { border-bottom: none; }
.supp-doc-link:hover { color: var(--gov-blue-mid); gap: 14px; }
.supp-doc-link i { color: var(--pdf-red); font-size: 15px; flex-shrink: 0; }

/* ============================
   PREVIOUS BUDGETS
============================ */
#prev-budgets { padding: 56px 0; background: var(--bg-warm); }
.prev-budget-scroller {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.prev-budget-scroller::-webkit-scrollbar { height: 4px; }
.prev-budget-scroller::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.prev-budget-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  text-align: center;
  color: var(--text-body);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t), color var(--t);
}
.prev-budget-card:hover {
  border-color: var(--gov-blue);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  color: var(--gov-blue);
}
.prev-budget-icon {
  width: 48px; height: 48px;
  background: var(--gov-blue-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--gov-blue);
}
.prev-budget-year {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--text-dark);
}
.prev-budget-card:hover .prev-budget-year { color: var(--gov-blue); }
.prev-budget-label { font-size: 12px; color: var(--gov-blue-mid); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ============================
   FOOTER (COMPACT & SLEEK)
============================ */
#site-footer {
  background: var(--gov-blue);
  color: rgba(255,255,255,.82);
  padding: 12px 0 8px;
  border-top: 2.5px solid var(--gov-gold-accent);
}
.footer-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 7px;
}
.footer-nav-row a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--t);
}
.footer-nav-row a:hover {
  color: #FFE082;
}
.footer-nav-row .f-sep {
  color: rgba(255,255,255,.3);
  font-size: 11px;
}
.footer-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 7px;
}
.f-logo-item {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.f-logo-item:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.f-logo-item img {
  height: 24px !important;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.f-logo-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.15);
}
.footer-info-row {
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,.75);
}
.footer-info-row p {
  margin-bottom: 2px !important;
}
.footer-info-row strong {
  color: #FFFFFF;
}
.footer-info-row .f-hosted a {
  color: #FFE082;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.footer-info-row .f-hosted a:hover {
  color: #FFFFFF;
}
.footer-info-row .f-copy {
  color: rgba(255,255,255,.55);
  font-size: 10px;
  margin-top: 1px;
}

/* ============================
   SEARCH MODAL
============================ */
#search-modal {
  display: none;
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(10,29,70,.55);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
#search-modal.open { display: flex; }
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%; max-width: 600px;
  box-shadow: 0 20px 60px rgba(10,29,70,.2);
}
.search-input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 15px; color: var(--text-dark);
  outline: none; width: 100%;
}
.search-input:focus { border-color: var(--gov-blue); }
.search-submit {
  background: var(--gov-blue); border: none;
  border-radius: var(--radius-sm);
  color: #fff; padding: 0 20px;
  cursor: pointer; font-size: 16px;
  transition: background var(--t);
}
.search-submit:hover { background: var(--gov-blue-mid); }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1100px) {
  .quick-access-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; padding: 40px 24px 32px; }
  .hero-visual { order: -1; }
  .hero-content { padding-right: 0; }
  .quick-access-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .quick-access-inner { grid-template-columns: 1fr; }
  .qa-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .header-top { padding: 0 16px; }
  .stats-grid { gap: 12px; }
  .stat-divider { display: none; }
}

/* ============================
   GOA BUDGET 2026-27 INTERACTIVE DIRECTORY
============================ */
/* ============================
   GOA BUDGET 2026-27 INTERACTIVE DIRECTORY (EMERALD & IMPERIAL GOLD)
============================ */
.gov-budget-section {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, #F5F1E8 0%, #E9E3D5 100%);
  border-top: 1px solid #D5CEBF;
  border-bottom: 1px solid #D5CEBF;
}

/* Header */
.budget-directory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.bd-header-text {
  flex: 1;
  max-width: 820px;
}
.bd-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.bd-kicker-line {
  width: 24px;
  height: 2px;
  background: var(--gov-gold);
}
.bd-kicker-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #222A68;
  text-transform: uppercase;
}
.bd-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: #222A68;
  margin-bottom: 6px;
  line-height: 1.25;
}
.bd-desc {
  font-size: 14px;
  color: #425B4C;
  line-height: 1.55;
  margin: 0;
}
.bd-stat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  border: 1.5px solid var(--gov-gold);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 4px 16px rgba(34, 42, 104, 0.22);
  flex-shrink: 0;
}
.bd-stat-num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: #574AE2;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.bd-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #E2ECE5;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Toolbar: Filter Pills + Search Input */
.budget-directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  background: #FAF8F5;
  border: 1.5px solid #D5CEBF;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 4px 18px rgba(34, 42, 104, 0.08);
  flex-wrap: wrap;
}
.bd-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1.5px solid #CBD5C8;
  background: #FFFFFF;
  color: #222A68;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.bd-pill:hover {
  background: #EBF5F0;
  border-color: #222A68;
  color: #222A68;
}
.bd-pill.active {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  border-color: var(--gov-gold);
  box-shadow: 0 4px 14px rgba(34, 42, 104, 0.32);
}
.bd-pill-icon {
  font-size: 11px;
  color: var(--gov-gold);
}
.bd-pill.active .bd-pill-icon {
  color: #574AE2;
}
.bd-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 42, 104, 0.12);
  color: #222A68;
  font-size: 10.5px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.bd-pill.active .bd-pill-count {
  background: #574AE2;
  color: #0D1130;
}

.bd-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bd-search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.bd-search-icon {
  position: absolute;
  left: 13px;
  color: #222A68;
  font-size: 13px;
  pointer-events: none;
}
.bd-search-input {
  padding: 8px 32px 8px 36px;
  border: 1.5px solid #CBD5C8;
  border-radius: 20px;
  font-size: 12.5px;
  background: #FFFFFF;
  color: #222A68;
  font-weight: 600;
  width: 250px;
  transition: all 0.2s ease;
}
.bd-search-input:focus {
  outline: none;
  border-color: var(--gov-gold);
  box-shadow: 0 0 0 3px rgba(87, 74, 226, 0.3);
  width: 280px;
}
.bd-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #7A9B89;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
.bd-search-clear:hover {
  color: #222A68;
}
.bd-view-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bd-toggle-btn {
  background: #FFFFFF;
  border: 1.5px solid #CBD5C8;
  color: #222A68;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.bd-toggle-btn:hover {
  background: #222A68;
  color: #FFFFFF;
  border-color: #222A68;
}

/* Directory Grid */
.budget-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

/* ============================================================
   EMERALD & IMPERIAL GOLD CARDS
   ============================================================ */
.budget-card {
  background: linear-gradient(155deg, #222A68 0%, #0D1130 100%);
  border: 1.5px solid rgba(87, 74, 226, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(6, 32, 19, 0.22);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.budget-card.collapsed {
  min-height: 205px;
}
@media (min-width: 992px) {
  .budget-card.collapsed {
    height: 205px;
  }
}
.budget-card.collapsed .budget-card-header {
  flex: 1;
}
.budget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #574AE2 30%, #AB81CD 50%, #574AE2 70%, transparent 100%);
  z-index: 2;
}
.budget-card:hover {
  transform: translateY(-5px);
  border-color: #AB81CD;
  box-shadow: 0 16px 36px rgba(5, 28, 17, 0.4), 0 0 18px rgba(87, 74, 226, 0.32);
}

/* Card Meta Ribbon */
.card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 4px;
  background: transparent;
  position: relative;
  z-index: 1;
}
.card-cat-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(87, 74, 226, 0.18);
  border: 1px solid rgba(87, 74, 226, 0.5);
  color: #AB81CD;
}
.card-meta-vol {
  font-size: 11px;
  font-weight: 600;
  color: #AB81CD;
  letter-spacing: 0.04em;
}

/* Card Header */
.budget-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 18px 18px;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  border-bottom: none;
  position: relative;
  z-index: 1;
}
.budget-card-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.card-icon-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: radial-gradient(circle at 35% 35%, #195C38 0%, #0D1130 100%);
  border: 2px solid #574AE2;
  color: #574AE2;
  box-shadow: 0 0 12px rgba(87, 74, 226, 0.4), inset 0 0 6px rgba(87, 74, 226, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.budget-card:hover .card-icon-badge {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(87, 74, 226, 0.6), inset 0 0 8px rgba(87, 74, 226, 0.35);
}

.card-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.budget-card-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #FFFFFF;
  line-height: 1.32;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  min-height: 62px;
  display: flex;
  align-items: flex-start;
}
.card-synopsis {
  font-size: 12.5px;
  color: #D1E7DD;
  line-height: 1.45;
  margin: 0;
  opacity: 0.95;
  min-height: 54px;
}

/* Card Header Action Icons */
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-quick-pdf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #FCA5A5;
  text-decoration: none;
  transition: all 0.18s ease;
}
.card-quick-pdf:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}
.card-toggle-chevron {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(87, 74, 226, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #574AE2;
  transition: transform 0.25s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.budget-card.collapsed .card-toggle-chevron {
  transform: rotate(-90deg);
}
.budget-card:not(.collapsed) .card-toggle-chevron {
  transform: rotate(0deg);
  background: #574AE2;
  color: #0D1130;
  border-color: #574AE2;
  box-shadow: 0 0 10px rgba(87, 74, 226, 0.55);
}

/* Card Body Expansion */
.budget-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #051A10;
  border-top: 1px solid rgba(87, 74, 226, 0.35);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  max-height: 1400px;
  opacity: 1;
  overflow: visible;
}
.budget-card.collapsed .budget-card-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-top: none;
}

/* Links inside Emerald Card Body */
.budget-card-body .doc-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.budget-card-body .card-doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #F1F5F9;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.18s ease;
}
.budget-card-body .card-doc-link:hover {
  background: rgba(87, 74, 226, 0.18);
  border-color: #574AE2;
  color: #FFFFFF;
}
.budget-card-body .card-doc-link.primary-link {
  background: rgba(87, 74, 226, 0.14);
  border-color: rgba(87, 74, 226, 0.4);
  font-weight: 600;
}
.budget-card-body .card-doc-link.primary-link:hover {
  background: rgba(87, 74, 226, 0.25);
  border-color: #AB81CD;
}
.budget-card-body .badge-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background: rgba(87, 74, 226, 0.22);
  color: #574AE2;
  border: 1px solid rgba(87, 74, 226, 0.45);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

/* Select Dropdown in Card Body */
.budget-card-body .report-select-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(87, 74, 226, 0.3);
}
.budget-card-body .select-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #574AE2;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.budget-card-body .gov-select {
  width: 100%;
  padding: 8px 12px;
  background: #082819;
  border: 1.5px solid rgba(87, 74, 226, 0.5);
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}
.budget-card-body .gov-select:focus {
  outline: none;
  border-color: #AB81CD;
  box-shadow: 0 0 0 3px rgba(87, 74, 226, 0.35);
}
.budget-card-body .gov-select option {
  background: #072215;
  color: #FFFFFF;
}
.budget-card-body .report-result-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(34, 42, 104, 0.45);
  border: 1px solid rgba(87, 74, 226, 0.45);
  border-radius: 6px;
  color: #FFFFFF;
}

/* Empty State */
.bd-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(155deg, #222A68 0%, #0D1130 100%);
  border: 1.5px dashed rgba(87, 74, 226, 0.45);
  border-radius: 12px;
}
.bd-empty-icon {
  font-size: 38px;
  color: #574AE2;
  margin-bottom: 12px;
}
.bd-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.bd-empty-sub {
  font-size: 13px;
  color: #D1E7DD;
}

@media (max-width: 1080px) {
  .budget-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .budget-directory-grid {
    grid-template-columns: 1fr;
  }
  .budget-directory-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .budget-directory-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .bd-search-input {
    width: 100%;
  }
  .bd-search-input:focus {
    width: 100%;
  }
}

.doc-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-doc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #F8FAFD;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
}
.card-doc-link:hover {
  background: #EEF4FC;
  color: var(--gov-blue);
  border-color: #B8D1F3;
  transform: translateX(2px);
}
.card-doc-link.primary-link {
  border-left: 3px solid var(--gov-blue);
  font-weight: 600;
}
.pdf-ico {
  color: var(--pdf-red);
  font-size: 15px;
  flex-shrink: 0;
}
.badge-download {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--gov-blue);
  background: var(--gov-blue-light);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.report-select-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}
.select-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}
.gov-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background-color: #FFFFFF;
  font-size: 13px;
  color: var(--text-dark);
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gov-select:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(10,45,110,0.12);
}
.report-result-box {
  margin-top: 10px;
}
.selected-doc-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 6px;
  animation: fadeIn 0.25s ease;
}
.doc-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.doc-meta .doc-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.doc-meta .doc-sub {
  font-size: 11px;
  color: #15803D;
}
.btn-open-pdf {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--gov-blue);
  color: #FFFFFF !important;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-open-pdf:hover {
  background: var(--gov-blue-mid);
}

/* ============================
   ARCHIVE & SUPPLEMENT SECTION
============================ */
.gov-archive-section {
  padding: 56px 0;
  background: var(--bg-white);
}
.archive-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.archive-tabs-nav {
  display: flex;
  background: #F1F4F9;
  border-bottom: 1px solid var(--border-light);
}
.archive-tab-btn {
  flex: 1;
  padding: 13px 18px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-tab-btn.active {
  background: #FFFFFF;
  color: var(--gov-blue);
  border-bottom-color: var(--gov-blue);
}
.archive-card-body {
  padding: 20px;
  flex: 1;
}
.archive-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.archive-docs-container, .archive-supp-container {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.archive-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  background: #FAFAFC;
  transition: all 0.2s ease;
}
.archive-doc-item:hover {
  background: #EEF4FC;
  color: var(--gov-blue);
  border-color: #B8D1F3;
  transform: translateX(2px);
}
.doc-pdf-ico {
  color: var(--pdf-red);
  font-size: 15px;
  flex-shrink: 0;
}
.archive-doc-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.archive-dl-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--gov-blue);
  background: var(--gov-blue-light);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.archive-header-banner {
  padding: 14px 20px;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  border-bottom: 2px solid var(--gov-gold);
}
.supp-batch-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gov-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.supp-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.supp-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: linear-gradient(90deg, #F8FAFD 0%, #EFF4FB 100%);
  border: 1px solid #D5E2F1;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gov-blue);
  transition: all 0.25s ease;
}
.supp-action-btn i.fa-file-pdf {
  color: var(--pdf-red);
  font-size: 15px;
}
.supp-action-btn .btn-arr {
  margin-left: auto;
  font-size: 12px;
  color: var(--gov-blue);
  transition: transform 0.2s ease;
}
.supp-action-btn:hover {
  background: linear-gradient(90deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF !important;
  border-color: #222A68;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 42, 104, 0.25);
}
.supp-action-btn:hover i {
  color: #FFFFFF !important;
}
.supp-action-btn:hover .btn-arr {
  transform: translateX(3px);
}

/* ============================
   INNER PAGES DESIGN SYSTEM
============================ */
.page-banner {
  background: linear-gradient(135deg, #574AE2 0%, #654597 50%, #574AE2 100%);
  color: #FFFFFF;
  padding: 18px 0 15px;
  border-bottom: 3px solid #E2ADF2;
  position: relative;
  box-shadow: 0 4px 16px rgba(87, 74, 226, 0.2);
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 7px;
}
.page-breadcrumb a {
  color: #EDE0F5;
  transition: color 0.2s;
}
.page-breadcrumb a:hover {
  color: #FFFFFF;
}
.page-breadcrumb .b-sep {
  color: #E2ADF2;
  font-size: 10px;
}
.page-breadcrumb .current {
  color: #FFFFFF;
  font-weight: 600;
}
.page-banner .badge {
  font-size: 10px !important;
  padding: 2px 7px !important;
  margin-bottom: 4px !important;
  border-radius: 4px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
  line-height: 1.22;
}
.page-subtitle {
  font-size: 12.5px;
  color: #FAF5FE;
  max-width: 720px;
  line-height: 1.4;
  margin-bottom: 0;
}
.page-content-section {
  padding: 22px 0 40px;
  background: var(--bg-warm);
}
.gov-card-container {
  background: var(--bg-white);
  border: 1px solid rgba(87, 74, 226, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(34, 42, 104, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.gov-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #574AE2 30%, #AB81CD 50%, #574AE2 70%, transparent 100%);
  z-index: 2;
}
.gov-card-container:hover {
  box-shadow: 0 16px 40px rgba(34, 42, 104, 0.14);
  border-color: rgba(87, 74, 226, 0.65);
}

.gov-table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF8 100%);
  border-bottom: 1.5px solid #E2EBE5;
}
.gov-table-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #222A68;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}
.gov-table-search {
  max-width: 320px;
  width: 100%;
  position: relative;
}
.gov-table-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  font-size: 13px;
  border: 1.5px solid #CFDDD3;
  border-radius: 8px;
  outline: none;
  font-family: var(--font-sans);
  background: #FFFFFF;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gov-table-search input:focus {
  border-color: #222A68;
  background: #FCFDFC;
  box-shadow: 0 0 0 3.5px rgba(34, 42, 104, 0.14), 0 3px 12px rgba(87, 74, 226, 0.18);
}
.gov-table-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #5A7866;
  font-size: 13px;
  transition: all 0.22s ease;
}
.gov-table-search:focus-within i {
  color: #574AE2;
  transform: translateY(-50%) scale(1.15);
}

/* Data Table Structure & Animations */
@keyframes tableRowEntrance {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gov-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.gov-data-table th {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  padding: 13px 18px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2.5px solid #E2ADF2;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.gov-data-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #EAEFF6;
  color: var(--text-dark);
  vertical-align: middle;
  transition: color 0.18s ease;
}

.gov-data-table tbody tr {
  animation: tableRowEntrance 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  cursor: pointer;
}
.gov-data-table tbody tr:nth-child(even) {
  background: #F9FAF9;
}
.gov-data-table tbody tr:hover {
  background-color: #EEF7F2 !important;
  box-shadow: inset 4px 0 0 #574AE2;
}
.gov-data-table tbody tr.selected {
  background-color: #F4F0FB !important;
  box-shadow: inset 4px 0 0 #574AE2;
}
.gov-data-table tbody tr:hover td,
.gov-data-table tbody tr.selected td {
  color: #161C48;
}

/* Table Sequence Number: Circle covers number on selection/hover */
.gov-data-table td:first-child {
  text-align: center;
  position: relative;
  width: 70px;
}

.gov-data-table .seq-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13.5px;
  color: #574AE2;
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.gov-data-table tbody tr:hover .seq-circle,
.gov-data-table tbody tr.selected .seq-circle {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF !important;
  border-color: #AB81CD;
  box-shadow: 0 3px 10px rgba(87, 74, 226, 0.38);
  transform: scale(1.12);
}

/* Fallback if span.seq-circle has not yet been injected */
.gov-data-table td:first-child::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  border: 1.5px solid #AB81CD;
  box-shadow: 0 3px 10px rgba(87, 74, 226, 0.38);
  z-index: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.gov-data-table tbody tr:hover td:first-child:not(:has(.seq-circle))::before,
.gov-data-table tbody tr.selected td:first-child:not(:has(.seq-circle))::before {
  transform: translate(-50%, -50%) scale(1);
}

.gov-data-table tbody tr:hover td:first-child:not(:has(.seq-circle)),
.gov-data-table tbody tr.selected td:first-child:not(:has(.seq-circle)) {
  color: #FFFFFF !important;
  position: relative;
  z-index: 1;
}

.btn-table-pdf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #E8F4EE;
  color: #222A68 !important;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid #BDE3CE;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(34, 42, 104, 0.08);
}
.btn-table-pdf:hover {
  background: #222A68;
  color: #FFFFFF !important;
  border-color: #574AE2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 42, 104, 0.28);
}
.btn-table-pdf i {
  color: var(--pdf-red);
  transition: transform 0.22s ease;
}
.btn-table-pdf:hover i {
  color: #FF8A80;
  transform: scale(1.18);
}

.date-badge {
  font-size: 12px;
  font-weight: 600;
  color: #375342;
  background: #EEF4F0;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid rgba(34, 42, 104, 0.08);
}
.gov-data-table tbody tr:hover .date-badge {
  background: #E0EBE3;
  color: #222A68;
  border-color: rgba(87, 74, 226, 0.4);
  box-shadow: 0 2px 6px rgba(34, 42, 104, 0.1);
}

/* ============================================================
   PAGINATION STYLING (BOOK-LIKE 10 PER PAGE)
   ============================================================ */
.gov-table-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9F6 100%);
  border-top: 1px solid #E2EBE5;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 14px;
}
.pagination-info {
  font-size: 13.5px;
  color: var(--text-muted);
}
.pagination-info strong {
  color: #222A68;
  font-weight: 700;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-page-nav,
.btn-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #222A68;
  background: #FFFFFF;
  border: 1.5px solid #C5DFD0;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 3px rgba(34, 42, 104, 0.06);
}
.btn-page-nav {
  padding: 0 14px;
  background: #F4F8F5;
}
.btn-page-nav:hover:not(:disabled),
.btn-page-num:hover:not(.active) {
  background: #222A68;
  color: #FFFFFF;
  border-color: #574AE2;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(34, 42, 104, 0.22);
}
.btn-page-num.active {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF !important;
  border: 1.5px solid #AB81CD;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(87, 74, 226, 0.35);
  transform: scale(1.05);
  cursor: default;
}
.btn-page-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  box-shadow: none;
  transform: none;
}
.pagination-ellipsis {
  padding: 0 6px;
  color: var(--text-muted);
  font-weight: 600;
}
.gov-page-select {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gov-blue);
  background-color: #FFFFFF;
  border: 1px solid #C8DBF2;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}
.gov-page-select:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 2px rgba(10, 45, 110, 0.15);
}
.page-size-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

/* ============================================================
   COLLAPSIBLE AUDIT REPORT CARDS (YEAR-WISE DROPDOWNS)
   ============================================================ */
.collapsible-report-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.collapsible-report-card .gov-table-header-bar {
  cursor: pointer;
  user-select: none;
  transition: background var(--t);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.collapsible-report-card .gov-table-header-bar:hover {
  background: #EEF4FC !important;
}
.report-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EAEFF6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gov-blue);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.collapsible-report-card .report-chevron {
  transform: rotate(0deg);
}
.collapsible-report-card.collapsed .report-chevron {
  transform: rotate(-90deg);
}
.collapsible-report-card:hover .report-chevron {
  background: var(--gov-blue);
  color: #FFFFFF;
}
.collapsible-report-card .table-responsive {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
}
.collapsible-report-card.collapsed .table-responsive {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: none;
}
.speech-nav-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.speech-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gov-blue);
}
.speech-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gov-blue-light);
  color: var(--gov-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.speech-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gov-blue);
  margin-bottom: 8px;
}
.speech-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.speech-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gov-blue);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.speech-card-cta:hover {
  background: var(--gov-blue-mid);
}
.assembly-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none !important;
}
.assembly-card:hover {
  border-color: var(--gov-blue);
  background: #F8FAFD;
  transform: translateX(4px);
  box-shadow: var(--shadow-subtle);
}
.assembly-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gov-blue);
  margin: 0;
}
.assembly-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--gov-blue-light);
  color: var(--gov-blue);
  padding: 4px 10px;
  border-radius: 12px;
}

/* ============================================================
   ASSEMBLY SUB-PAGES (FirstAssembly through SeventhAssembly)
============================================================ */
.assembly-nav-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}
.assembly-nav-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.assembly-nav-pill {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none !important;
  background: #F1F5F9;
  border-radius: 20px;
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.assembly-nav-pill:hover {
  background: var(--gov-blue-light);
  color: var(--gov-blue) !important;
  border-color: #B8D1F3;
  transform: translateY(-1px);
}
.assembly-nav-pill.active {
  background: var(--gov-blue);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(10,45,110,.28);
  border-color: var(--gov-gold);
}
.assembly-nav-pill.active .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gov-gold);
}

.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  background: #FFFFFF;
  padding: 14px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}
.session-search-box {
  position: relative;
  flex: 1;
  max-width: 420px;
  min-width: 260px;
}
.session-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8C9BAE;
  font-size: 14px;
}
.session-search-input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
  background: #F8FAFD;
  transition: all 0.2s ease;
}
.session-search-input:focus {
  background: #FFFFFF;
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(10,45,110,.1);
}
.session-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-btn-action {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--gov-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.session-btn-action:hover {
  background: var(--gov-blue-light);
  border-color: var(--gov-blue);
  color: var(--gov-blue);
}

.session-accordion {
  border-radius: var(--radius-md);
}
.session-accordion-item {
  border: 1px solid var(--border-light) !important;
  margin-bottom: 14px;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(10,45,110,.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.session-accordion-item:hover {
  border-color: #B8D1F3 !important;
  box-shadow: 0 4px 12px rgba(10,45,110,.08);
}
.session-accordion-header {
  margin: 0;
  padding: 0;
}
.session-accordion-button {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #FFFFFF;
  color: var(--gov-blue) !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 22px;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  border-left: 4px solid #CBD5E1 !important;
  transition: all 0.2s ease;
}
.session-accordion-button:hover {
  background: #F4F8FD;
  border-left-color: var(--gov-gold) !important;
}
.session-accordion-button:not(.collapsed) {
  background: #EDF4FD;
  color: var(--gov-blue) !important;
  border-left-color: var(--gov-blue) !important;
  border-bottom: 1px solid var(--border-light) !important;
}
.session-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.session-title-wrap i {
  color: var(--gov-blue);
  font-size: 15px;
}
.session-meta-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.session-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--gov-blue);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(10,45,110,0.18);
  letter-spacing: 0.02em;
}
.session-badge.empty {
  background: #E2E8F0;
  color: var(--text-muted);
  box-shadow: none;
}
.session-accordion-button .btn-chevron {
  font-size: 13px;
  color: #8C9BAE;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.session-accordion-button:not(.collapsed) .btn-chevron {
  transform: rotate(180deg);
  color: var(--gov-blue);
}

.bills-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.bills-data-table thead th {
  background: #F8FAFD;
  color: var(--gov-blue);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 20px;
  border-bottom: 2px solid #E2E8F0;
  white-space: nowrap;
}
.bills-data-table tbody td {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text-dark);
  border-bottom: 1px solid #EEF2F6;
  vertical-align: top;
  line-height: 1.5;
}
.bills-data-table tbody tr:last-child td {
  border-bottom: none;
}
.bills-data-table tbody tr:hover {
  background: #F8FAFE;
}

.bill-number-badge {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gov-blue);
  display: inline-block;
  margin-bottom: 4px;
}
.bill-dates-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.bill-title-text {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 4px;
}
.bill-assent-tag {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.bill-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin: 3px 6px 3px 0;
}
.bill-pill-intro {
  background: #EFF6FF;
  color: var(--gov-blue) !important;
  border: 1px solid #BFDBFE;
}
.bill-pill-intro:hover {
  background: var(--gov-blue);
  color: #FFFFFF !important;
  border-color: var(--gov-blue);
  transform: translateY(-1px);
}
.bill-pill-intro:hover i {
  color: #FFFFFF;
}
.bill-pill-passed {
  background: #F0FDF4;
  color: #15803D !important;
  border: 1px solid #BBF7D0;
}
.bill-pill-passed:hover {
  background: #15803D;
  color: #FFFFFF !important;
  border-color: #15803D;
  transform: translateY(-1px);
}
.bill-pill-passed:hover i {
  color: #FFFFFF;
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE DESIGN (ALL 20 PAGES)
   ============================================================ */

/* TABLETS & MOBILE LANDSCAPE (max-width: 991px) */
@media (max-width: 991px) {
  /* Translate Bar */
  .tb-inner {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 6px 16px;
  }
  .lang-switcher-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .tb-links {
    display: none;
  }

  /* Header Top */
  .header-top {
    height: auto;
    min-height: 72px;
    padding: 10px 16px;
  }
  .header-logo img {
    width: 56px;
    height: 56px;
  }
  .logo-dept {
    font-size: 16.5px;
  }
  .logo-state {
    font-size: 13px;
  }

  /* Collapsed Mobile Navigation */
  .nav-bar {
    padding: 4px 0;
  }
  .navbar-toggler {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
  }
  .navbar-nav {
    flex-direction: column;
    align-items: stretch !important;
    padding: 12px 0 16px;
    gap: 3px;
  }
  .navbar-nav .nav-item {
    width: 100%;
    display: block;
  }
  .navbar-nav .nav-link {
    width: 100%;
    padding: 11px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    border-radius: 6px;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
  }
  .navbar-nav .nav-link::after {
    display: none !important;
  }
  .navbar-nav .nav-link.nav-highlight {
    margin: 8px 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 16px !important;
    font-size: 13.5px;
  }
  #mainNav .dropdown-menu {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 4px 0 8px 12px;
    padding: 4px 0;
    border-radius: 8px;
    box-shadow: none;
  }
  #mainNav .dropdown-item {
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 16px;
    font-size: 13px;
  }
  #mainNav .dropdown-item:hover,
  #mainNav .dropdown-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
  }
  #mainNav .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* Budget Resources on Tablets */
  .budget-resources-section {
    padding: 24px 0 28px;
  }
  .resources-layout-compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .res-secondary-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 8px;
  }

  /* Quick Access Bar */
  .quick-access-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section Title & Subtitle */
  .section-title {
    font-size: clamp(20px, 4vw, 24px);
  }
  .section-subtitle {
    font-size: 13px;
  }
}

/* SMARTPHONES & PORTRAIT TABLETS (max-width: 767px) */
@media (max-width: 767px) {
  /* Page Banner on Subpages */
  .page-banner {
    padding: 24px 0 20px;
  }
  .page-title {
    font-size: 22px;
    line-height: 1.25;
  }
  .page-subtitle {
    font-size: 13px;
    line-height: 1.45;
  }
  .page-breadcrumb {
    font-size: 12px;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
  }

  /* Session & Reports Toolbars */
  .session-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
  .session-search-box {
    width: 100%;
    min-width: 0;
  }
  .session-search-input {
    width: 100%;
  }

  /* Table Container & Header Bar */
  .gov-table-header-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
    padding: 14px 16px;
  }
  .gov-table-title {
    font-size: 15px;
  }
  .gov-table-search {
    width: 100%;
  }
  .gov-table-search input {
    width: 100%;
  }

  /* Tables & Touch Scrolling */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .gov-data-table {
    min-width: 580px;
  }
  .bills-data-table {
    min-width: 650px;
  }

  /* Pagination Bar on Mobile */
  .gov-table-pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 14px 16px;
  }
  .pagination-info {
    font-size: 13px;
    text-align: center;
    width: 100%;
  }
  .pagination-controls {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
  }
  .btn-page-nav,
  .btn-page-num {
    min-width: 34px;
    height: 34px;
    font-size: 12.5px;
    padding: 0 8px;
  }
  .btn-page-nav {
    padding: 0 10px;
  }

  /* Assembly Session Filter Pills */
  .session-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .session-pill-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Footer Navigation */
  .footer-nav-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 13px;
  }
  .footer-nav-row .f-sep {
    display: none;
  }
  .footer-logos-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .footer-logos-row .f-logo-divider {
    display: none;
  }
  .footer-info-row {
    font-size: 12px;
    text-align: center;
  }
}

/* SMALL PHONES (max-width: 575px) */
@media (max-width: 575px) {
  /* Translate Bar */
  .lang-quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .lang-pill {
    padding: 2px 7px;
    font-size: 11px;
  }

  /* Header Top */
  .header-top {
    padding: 8px 12px;
  }
  .header-logo {
    gap: 10px;
  }
  .header-logo img {
    width: 48px;
    height: 48px;
  }
  .logo-dept {
    font-size: 14.5px;
  }
  .logo-state {
    font-size: 11.5px;
  }
  .header-acc-group .acc-label {
    display: none;
  }
  .acc-btn {
    width: 26px;
    height: 26px;
    font-size: 11px;
    padding: 0;
  }

  /* Budget Resources on Small Phones */
  .budget-resources-section {
    padding: 20px 0 24px;
  }
  .resources-header-compact {
    margin-bottom: 10px;
  }
  .res-secondary-grid-compact {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .res-card-compact {
    padding: 8px 12px;
  }

  /* Quick Access 1-Column */
  .quick-access-inner {
    grid-template-columns: 1fr;
  }
  .qa-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 12px 14px;
  }

  /* Hero Section */
  .hero-container {
    padding: 20px 14px 18px;
  }
  .hero-title {
    font-size: 24px;
  }
  .hero-subtext {
    font-size: 13px;
  }
  .hero-cta {
    font-size: 13.5px;
    padding: 10px 18px;
  }

  /* Budget 2026-27 Section Header */
  .section-kicker {
    font-size: 10px;
  }
  .section-title {
    font-size: 20px;
  }
  .section-title-line {
    width: 20px;
  }
  .btn-card-toggle {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Card Header */
  .budget-card-header {
    padding: 11px 12px;
    gap: 8px;
  }
  .card-icon-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 13px;
  }
  .budget-card-title {
    font-size: 13px;
  }
  .card-toggle-chevron {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 9px;
  }
  .card-doc-link {
    font-size: 12px;
    padding: 8px 10px;
  }
  .gov-select {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Archive Section */
  .archive-header-banner {
    padding: 12px 14px;
  }
  .archive-card-body {
    padding: 12px !important;
  }
  .supp-batch-heading {
    font-size: 13.5px;
  }
  .supp-action-btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  /* Photo Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ABOUT PAGE EXECUTIVE CARDS (SOVEREIGN EMERALD & GOLD)
   ============================================================ */
.about-exec-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(34, 42, 104, 0.12);
  border-radius: 16px;
  padding: 26px 22px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(22, 28, 72, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.about-exec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #574AE2 0%, #654597 45%, #AB81CD 100%);
  transition: height 0.25s ease;
}

.about-exec-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(22, 28, 72, 0.12);
  border-color: rgba(87, 74, 226, 0.45);
}

.about-exec-card:hover::before {
  height: 6px;
}

.about-exec-card-gold::before {
  background: linear-gradient(90deg, #574AE2 0%, #AB81CD 60%, #574AE2 100%);
}

.about-exec-card-teal::before {
  background: linear-gradient(90deg, #222A68 0%, #654597 50%, #4EBA86 100%);
}

.about-exec-card .watermark-icon {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 88px;
  opacity: 0.035;
  color: #222A68;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.about-exec-card:hover .watermark-icon {
  transform: scale(1.08) rotate(-4deg);
  opacity: 0.06;
}

.about-exec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.about-exec-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.about-exec-card:hover .about-exec-icon-wrap {
  transform: scale(1.08) rotate(3deg);
}

.about-icon-emerald {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #AB81CD;
  border: 1px solid rgba(87, 74, 226, 0.35);
}

.about-icon-gold {
  background: linear-gradient(135deg, #FFF3C4 0%, #574AE2 100%);
  color: #161C48;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.about-icon-jade {
  background: linear-gradient(135deg, #654597 0%, #AB81CD 100%);
  color: #FFFFFF;
  border: 1px solid rgba(87, 74, 226, 0.35);
}

.about-exec-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.about-tag-emerald {
  background: #EBF5F0;
  color: #222A68;
  border: 1px solid rgba(34, 42, 104, 0.16);
}

.about-tag-gold {
  background: #FFF9E6;
  color: #8C6500;
  border: 1px solid rgba(87, 74, 226, 0.35);
}

.about-exec-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #222A68;
  margin-bottom: 10px;
  line-height: 1.3;
}

.about-exec-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 16px;
  flex: 1;
}

.about-exec-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed rgba(34, 42, 104, 0.12);
  margin-top: auto;
}

.about-chip {
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  background: #F8FAFC;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
}

.about-chip i {
  color: #574AE2;
  font-size: 9px;
  margin-right: 5px;
}

/* ========================================================
   REVAMPED CONTACT US PAGE - LUXURY DESIGN SYSTEM
======================================================== */
.contact-hero-wrap {
  margin-bottom: 36px;
}
.contact-section-header {
  margin-bottom: 24px;
}
.contact-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222A68;
  background: #EAF5EE;
  border: 1px solid rgba(34, 42, 104, 0.18);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.contact-section-pill i {
  color: #574AE2;
  font-size: 11px;
}
.contact-main-heading {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: #161C48;
  margin-bottom: 6px;
  line-height: 1.25;
}
.contact-main-sub {
  font-size: 13.5px;
  color: #556987;
  max-width: 680px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Executive Officer Cards */
.contact-officer-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(34, 42, 104, 0.12);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 16px rgba(22, 28, 72, 0.05);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}
.contact-officer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #574AE2 0%, #654597 45%, #AB81CD 100%);
  transition: height 0.3s ease;
}
.contact-officer-card-gold::before {
  background: linear-gradient(90deg, #574AE2 0%, #DFBA47 50%, #E8D385 100%);
}
.contact-officer-card-jade::before {
  background: linear-gradient(90deg, #222A68 0%, #654597 50%, #22C55E 100%);
}
.contact-officer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(22, 28, 72, 0.1);
  border-color: rgba(201, 162, 39, 0.45);
}
.contact-officer-card:hover::before {
  height: 5px;
}
.contact-officer-card .watermark-icon {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 80px;
  opacity: 0.035;
  color: #161C48;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.contact-officer-card:hover .watermark-icon {
  transform: scale(1.08) rotate(-5deg);
  opacity: 0.06;
}

/* Officer Header Row */
.contact-officer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.contact-officer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}
.contact-officer-card:hover .contact-officer-avatar {
  transform: scale(1.06) rotate(3deg);
}
.avatar-emerald {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  border: 1px solid #AB81CD;
}
.avatar-gold {
  background: linear-gradient(135deg, #654597 0%, #AB81CD 100%);
  color: #FFFFFF;
  border: 1px solid #AB81CD;
}
.avatar-jade {
  background: linear-gradient(135deg, #AB81CD 0%, #E2ADF2 100%);
  color: #FFFFFF;
  border: 1px solid #AB81CD;
}

.contact-officer-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.badge-emerald-tag {
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
}
.badge-gold-tag {
  background: #F3E6F8;
  color: #654597;
  border: 1px solid #AB81CD;
}
.badge-jade-tag {
  background: #FAF2FC;
  color: #222A68;
  border: 1px solid #AB81CD;
}

.contact-officer-name {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: #222A68;
  margin-bottom: 3px;
  line-height: 1.25;
}
.contact-officer-post {
  font-size: 12.5px;
  font-weight: 600;
  color: #574AE2;
  margin-bottom: 14px;
}

/* Call & Contact Actions */
.contact-actions-box {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 1px dashed rgba(34, 42, 104, 0.12);
  margin-top: auto;
}
.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}
.btn-call-emerald {
  background: #FAF7FD;
  border: 1.5px solid #AB81CD;
  color: #222A68;
  font-weight: 700;
}
.btn-call-emerald:hover {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #574AE2;
}
.btn-call-emerald:hover i {
  color: #FFFFFF;
}
.btn-call-gold {
  background: #F8F2FB;
  border: 1.5px solid #AB81CD;
  color: #654597;
  font-weight: 700;
}
.btn-call-gold:hover {
  background: #654597;
  color: #FFFFFF;
  border-color: #654597;
}
.btn-call-gold:hover i {
  color: #FFFFFF;
}
.btn-call-jade {
  background: #FAF7FD;
  border: 1.5px solid #AB81CD;
  color: #222A68;
  font-weight: 700;
}
.btn-call-jade:hover {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #574AE2;
}
.btn-call-jade:hover i {
  color: #FFFFFF;
}

.contact-action-btn i {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.contact-action-btn:hover i {
  transform: scale(1.15);
}

.contact-email-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #64748B;
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.2s ease;
}
.contact-email-btn:hover {
  color: #222A68;
}
.contact-email-btn i {
  font-size: 11px;
  color: #574AE2;
}

/* Quick Channels Strip */
.contact-channels-strip {
  margin: 32px 0 42px;
}
.contact-channel-card {
  background: #FFFFFF;
  border: 1px solid rgba(34, 42, 104, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.contact-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(22, 28, 72, 0.08);
  border-color: var(--gov-gold);
}
.contact-channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  border: 1px solid #AB81CD;
  box-shadow: 0 2px 8px rgba(87, 74, 226, 0.25);
}
.contact-channel-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-channel-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #222A68;
  margin-bottom: 0;
  line-height: 1.3;
}
.contact-channel-val a {
  color: #222A68;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-channel-val a:hover {
  color: #574AE2;
}

/* Campus & Map Section */
.contact-campus-card {
  background: #FFFFFF;
  border: 1.5px solid #AB81CD;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 20px rgba(87, 74, 226, 0.06);
  display: flex;
  flex-direction: column;
}
.contact-campus-header {
  background: linear-gradient(135deg, #FAF7FD 0%, #EDE0F5 100%);
  padding: 16px 22px;
  border-bottom: 2px solid #AB81CD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.contact-campus-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #222A68;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-campus-title i {
  color: #574AE2;
  font-size: 18px;
}
.contact-campus-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #574AE2;
  color: #FFFFFF;
  border: 1px solid #AB81CD;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(87, 74, 226, 0.25);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.contact-campus-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-address-block {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
}
.contact-address-block strong {
  font-size: 15px;
  color: #222A68;
  display: block;
  margin-bottom: 4px;
}
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #EEF2F6;
  font-size: 13px;
}
.contact-detail-row i {
  color: #574AE2;
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.contact-detail-label {
  color: #64748B;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}
.contact-detail-value {
  color: #222A68;
  font-weight: 600;
}
.contact-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}
.contact-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #AB81CD;
  box-shadow: 0 2px 8px rgba(87, 74, 226, 0.2);
  transition: all 0.25s ease;
}
.contact-portal-link:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  color: #FFFFFF;
  border-color: #E2ADF2;
  box-shadow: 0 4px 14px rgba(87, 74, 226, 0.35);
  transform: translateY(-1px);
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #222A68;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #AB81CD;
  transition: all 0.25s ease;
}
.contact-map-link:hover {
  background: #EDE0F5;
  color: #574AE2;
  border-color: #574AE2;
  transform: translateY(-1px);
}

/* Map Frame */
.contact-map-card {
  background: #FFFFFF;
  border: 1px solid rgba(34, 42, 104, 0.12);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 4px 20px rgba(22, 28, 72, 0.05);
  display: flex;
  flex-direction: column;
}
.contact-map-card iframe {
  width: 100%;
  flex: 1;
  min-height: 380px;
  border: 0;
}

/* ============================================================
   CIRCULAR RADIAL PUBLICATIONS SECTION & ANIMATION
   ============================================================ */
.gov-budget-section {
  position: relative;
  background: linear-gradient(180deg, #F8F5EE 0%, #EFE9DC 100%);
  padding: 22px 0 60px;
  border-top: 1px solid rgba(220, 212, 196, 0.75);
  border-bottom: 1px solid #DCD4C4;
  overflow: hidden;
}

/* Watermark backdrop */
.gov-budget-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/goa_assembly_backdrop.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.055;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.6) contrast(1.1);
}

.radial-container {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Header Bar - Centered Layout */
.radial-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 22px;
}

.radial-header-left {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.radial-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.radial-kicker-line {
  width: 34px;
  height: 2.5px;
  background: #4F46E5;
  border-radius: 2px;
}

.radial-kicker-text {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #4338CA;
  text-transform: uppercase;
}

.radial-title {
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  color: #0D1130;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
}

.radial-subtitle {
  font-size: 14.5px;
  color: #666C96;
  margin: 0 auto;
  line-height: 1.55;
  text-align: center;
  max-width: 920px;
  width: 100%;
}

@media (min-width: 768px) {
  .radial-subtitle {
    white-space: nowrap;
  }
}

/* Header Right: Search & View Toggles */
.radial-header-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.radial-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #AB81CD;
  border-radius: 30px;
  padding: 8px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 420px;
  transition: all 0.25s ease;
}

.radial-search-box:focus-within {
  border-color: #574AE2;
  box-shadow: 0 0 0 3px rgba(87, 74, 226, 0.18);
}

.radial-search-ico {
  color: #574AE2;
  font-size: 14px;
  margin-right: 10px;
}

.radial-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: #222A68;
  width: 100%;
}

.radial-search-input::placeholder {
  color: #8E7AA8;
}

.radial-search-clear {
  border: none;
  background: transparent;
  color: #654597;
  cursor: pointer;
  padding: 2px 6px;
  font-size: 13px;
  transition: color 0.2s ease;
}
.radial-search-clear:hover {
  color: #C0392B;
}

.radial-view-switch {
  display: inline-flex;
  background: #EDE0F5;
  padding: 3px;
  border-radius: 24px;
  border: 1px solid #AB81CD;
}

.radial-mode-btn {
  border: none;
  background: transparent;
  color: #666C96;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.radial-mode-btn.active {
  background: #0D1130;
  color: #AB81CD;
  box-shadow: 0 2px 6px rgba(34, 42, 104, 0.25);
}

/* Spin Controls */
.radial-spin-controls {
  display: inline-flex;
  align-items: center;
  background: #EDE0F5;
  padding: 3px;
  border-radius: 24px;
  border: 1px solid #AB81CD;
  gap: 2px;
}

.radial-spin-toggle {
  border: none;
  background: transparent;
  color: #0D1130;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.radial-spin-toggle.active {
  background: #0D1130;
  color: #AB81CD;
  box-shadow: 0 2px 6px rgba(34, 42, 104, 0.25);
}

.radial-spin-toggle.paused {
  background: #AB81CD;
  color: #666C96;
}

.radial-orbit-arrow {
  border: none;
  background: transparent;
  color: #666C96;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.radial-orbit-arrow:hover {
  background: #AB81CD;
  color: #0D1130;
}

/* Department-Wise Hint Banner */
.radial-dept-hint-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(87, 74, 226, 0.14) 0%, rgba(34, 42, 104, 0.08) 100%);
  border: 1px solid rgba(87, 74, 226, 0.45);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hint-badge {
  background: #222A68;
  color: #AB81CD;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #574AE2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hint-text {
  font-size: 13px;
  color: #4A4D73;
  line-height: 1.4;
}

.hint-highlight {
  color: #574AE2;
  font-weight: 700;
  background: rgba(87, 74, 226, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(87, 74, 226, 0.25);
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   RADIAL ARENA CONTAINER
   ============================================================ */
.radial-arena-wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  height: 800px;
  margin: 0 auto;
  user-select: none;
}

/* SVG Connecting Lines */
.radial-svg-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.radial-orbital-track {
  fill: none;
  stroke: rgba(87, 74, 226, 0.32);
  stroke-width: 1.5px;
  stroke-dasharray: 8 12;
  animation: orbitTrackSpin 32s linear infinite;
}

.radial-node-track {
  fill: none;
  stroke: rgba(87, 74, 226, 0.42);
  stroke-width: 1.5px;
  stroke-dasharray: 5 9;
  animation: orbitTrackSpin 24s linear infinite;
}

@keyframes orbitTrackSpin {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -400;
  }
}

.radial-line-bg {
  stroke: rgba(171, 129, 205, 0.35);
  stroke-width: 1.5px;
  fill: none;
}

.radial-line-glow {
  stroke: rgba(226, 173, 242, 0.6);
  stroke-width: 2px;
  fill: none;
  stroke-dasharray: 6 18;
  animation: radialBeamTravel 3.5s linear infinite;
  opacity: 0.7;
}

.radial-node {
  fill: #574AE2;
  stroke: #FFFFFF;
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 6px rgba(87, 74, 226, 0.8));
  transition: all 0.3s ease;
}

.radial-node.active-ray {
  fill: #E2ADF2;
  r: 8px;
  stroke-width: 2px;
  filter: drop-shadow(0 0 12px rgba(226, 173, 242, 1));
}

@keyframes radialBeamTravel {
  0% {
    stroke-dashoffset: 48;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   CENTER HUB: GOA ASSEMBLY EMBLEM
   ============================================================ */
.radial-center-hub {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  z-index: 3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radial-orbit-ring {
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  border-radius: 50%;
  border: 1.5px dashed rgba(87, 74, 226, 0.45);
  pointer-events: none;
  animation: orbitRingRotate 80s linear infinite;
}

@keyframes orbitRingRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.radial-center-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid #574AE2;
  box-shadow: 0 0 30px rgba(87, 74, 226, 0.45), 0 12px 30px rgba(0, 0, 0, 0.28);
  background-image: url('../img/goa_assembly_backdrop.jpg');
  background-position: center 46%;
  background-repeat: no-repeat;
  background-size: 260%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: all 0.35s ease;
}

.radial-center-circle:hover {
  transform: scale(1.03);
  box-shadow: 0 0 42px rgba(87, 74, 226, 0.7), 0 16px 36px rgba(0, 0, 0, 0.35);
  border-color: #E2ADF2;
}

.radial-hub-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(13, 17, 48, 0.98) 0%, rgba(22, 28, 72, 0.88) 60%, rgba(22, 28, 72, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 14px;
  text-align: center;
  pointer-events: none;
}

.hub-label-text {
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #AB81CD;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.hub-label-year {
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  margin-top: 2px;
  opacity: 0.95;
}

.hub-label-line {
  display: block;
  width: 32px;
  height: 1.5px;
  background: #574AE2;
  margin-top: 4px;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(87, 74, 226, 0.7);
}

/* ============================================================
   RADIAL EMERALD & GOLD CARDS (Matches Image 1 Exactly)
   ============================================================ */
.radial-card-item {
  position: absolute;
  z-index: 4;
  width: 220px;
  min-height: 236px;
  border-radius: 20px;
  background: linear-gradient(160deg, #222A68 0%, #161C48 55%, #0D1130 100%);
  border: 1.5px solid rgba(171, 129, 205, 0.85);
  box-shadow: 0 12px 28px rgba(13, 17, 48, 0.45), 0 0 14px rgba(87, 74, 226, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 12px 16px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

/* Featured / Active Glowing Aura (as on Card 01 in mockup) */
.radial-card-item.active-glow {
  border-color: #E2ADF2;
  box-shadow: 0 0 32px rgba(226, 173, 242, 0.85), 0 0 16px rgba(87, 74, 226, 0.9), 0 14px 30px rgba(0, 0, 0, 0.4);
}

.radial-card-item.active-highlight {
  border-color: #AB81CD;
  box-shadow: 0 0 20px rgba(87, 74, 226, 0.65), 0 10px 24px rgba(13, 17, 48, 0.35);
}

/* Top golden badge pill matching modal */
.radial-num-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0D1130;
  border: 1.5px solid #574AE2;
  color: #AB81CD;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 2;
  transition: all 0.25s ease;
}

/* Card Icon badge */
.radial-card-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #AB81CD;
  background: radial-gradient(circle at 35% 35%, #222A68 0%, #0D1130 100%);
  color: #E2ADF2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-top: 2px;
  margin-bottom: 7px;
  box-shadow: 0 0 14px rgba(87, 74, 226, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.radial-card-item:hover .radial-card-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(87, 74, 226, 0.8);
}

/* Card Title */
.radial-card-heading {
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  line-height: 1.22;
  letter-spacing: -0.01em;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Description */
.radial-card-desc {
  font-size: 10px;
  color: #EADCF0;
  line-height: 1.35;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer Button Row */
.radial-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

/* PDF Action Button (Dark Red Pill matching mockup) */
.radial-pdf-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #574AE2 0%, #4336B8 100%);
  border: 1px solid #AB81CD;
  color: #FFFFFF;
  padding: 5px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(34, 42, 104, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
}

.radial-pdf-action:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(87, 74, 226, 0.5);
}

/* Card Hover States */
.radial-card-item:hover {
  z-index: 25;
  border-color: #E2ADF2;
  box-shadow: 0 0 32px rgba(226, 173, 242, 0.85), 0 0 16px rgba(87, 74, 226, 0.9), 0 18px 36px rgba(0, 0, 0, 0.45);
}

.radial-card-item:hover .radial-num-badge {
  background: #574AE2;
  color: #0D1130;
  border-color: #FFFFFF;
}

/* Search match & dim states */
.radial-card-item.search-dimmed {
  opacity: 0.22;
  filter: grayscale(0.7) blur(0.5px);
  pointer-events: none;
}

.radial-card-item.search-highlighted {
  border-color: #E2ADF2;
  box-shadow: 0 0 30px rgba(226, 173, 242, 0.8), 0 14px 30px rgba(0, 0, 0, 0.35);
  animation: searchGlowPulse 1.6s infinite alternate;
}

@keyframes searchGlowPulse {
  0% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.95);
  }
}

/* ============================================================
   RADIAL VIEW MODAL DIALOG
   ============================================================ */
.budget-doc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 17, 48, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.budget-doc-modal-box {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1.5px solid #574AE2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(87, 74, 226, 0.3);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.budget-doc-modal-overlay.active .budget-doc-modal-box {
  transform: translateY(0) scale(1);
}

.modal-header-emerald {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #574AE2;
}

.modal-header-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-header-badge {
  background: rgba(87, 74, 226, 0.2);
  border: 1px solid #574AE2;
  color: #AB81CD;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.modal-header-title {
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #AB81CD;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.modal-body-content {
  padding: 24px;
}

.modal-synopsis {
  font-size: 14px;
  color: #4A4D73;
  line-height: 1.55;
  margin-bottom: 20px;
}

.modal-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #AB81CD;
  box-shadow: 0 4px 14px rgba(87, 74, 226, 0.35);
  margin-bottom: 20px;
  transition: all 0.25s ease;
}
.modal-primary-download:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(87, 74, 226, 0.45);
}

.modal-subdocs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-subdoc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAF9;
  border: 1px solid #E2E8E4;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: #222A68;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-subdoc-item:hover {
  background: #EDE0F5;
  border-color: #222A68;
  color: #222A68;
}

/* ============================================================
   RESPONSIVE DESIGN FOR RADIAL VIEW
   ============================================================ */
@media (max-width: 1200px) and (min-width: 992px) {
  .radial-arena-wrap {
    transform: scale(0.88);
    transform-origin: center center;
    margin: -48px auto;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .radial-arena-wrap {
    transform: scale(0.72);
    transform-origin: center center;
    margin: -112px auto;
  }
}

@media (max-width: 767px) {
  .radial-arena-wrap {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
  }
  .radial-svg-connectors {
    display: none;
  }
  .radial-center-hub {
    position: static;
    transform: none;
    margin: 0 auto 30px auto;
  }
  .radial-card-item {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 340px;
    margin: 0 auto;
  }
  .radial-card-item:hover {
    transform: translateY(-4px) !important;
  }
}









/* ============================================================
   3D BOOK CAROUSEL ON WOODEN SHELF & DETAIL DRAWER
   ============================================================ */

.shelf-carousel-section {
  position: relative;
  margin-top: 5px;
  margin-bottom: 25px;
  padding: 30px 0 15px 0;
  border-radius: 16px;
  overflow: hidden;
}

/* Luxury Wooden Bookcase Alcove Backdrop */
.shelf-backdrop-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 290px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.shelf-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(1.12) contrast(1.08) brightness(0.96);
  opacity: 0.95;
}

.shelf-backdrop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(20, 10, 4, 0.22) 0%, rgba(30, 15, 6, 0.04) 45%, rgba(15, 8, 3, 0.32) 100%);
}

.sunlight-flare {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 230, 160, 0.3) 0%, rgba(255, 195, 110, 0.12) 45%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
}

.ambient-warmth {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 -4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Carousel Navigation Arrows */
.shelf-nav-btn {
  position: absolute;
  top: 132px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #574AE2;
  color: #222A68;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.22s ease;
}

.shelf-nav-btn:hover {
  background: #222A68;
  color: #AB81CD;
  border-color: #AB81CD;
  transform: scale(1.08);
  box-shadow: 0 5px 16px rgba(34, 42, 104, 0.3);
}

.shelf-prev {
  left: 4px;
}

.shelf-next {
  right: 4px;
}

/* Bookshelf Horizontal Track (Compact & Sleek) */
.shelf-books-container {
  position: relative;
  z-index: 4;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 36px 10px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shelf-books-container::-webkit-scrollbar {
  display: none;
}

.shelf-books-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  min-width: max-content;
  padding: 0 35px;
  margin: 0 auto;
  perspective: 1100px;
  perspective-origin: 50% 60%;
}

/* Individual Book Item with Compact 3D Perspective */
.shelf-book-item {
  width: 122px;
  cursor: pointer;
  position: relative;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), z-index 0.25s ease;
  will-change: transform;
}

/* Invisible Hit Area Buffer: Prevents cursor edge flicker / hover jumping loop */
.shelf-book-item::before {
  content: '';
  position: absolute;
  top: -16px;
  bottom: -6px;
  left: -8px;
  right: -8px;
  z-index: 1;
  pointer-events: auto;
}

/* Progressive 3D Perspective Tilts (Compact) */
.shelf-book-item.tilt-left-far {
  transform: perspective(1000px) translateZ(-18px) translateY(2px) scale(0.93) rotateY(22deg) rotateZ(-2.5deg);
  z-index: 3;
}
.shelf-book-item.tilt-left-far:hover {
  transform: perspective(1000px) translateZ(0px) translateY(-5px) scale(0.97) rotateY(15deg) rotateZ(-1.5deg);
  z-index: 8;
}

.shelf-book-item.tilt-left-mid {
  transform: perspective(1000px) translateZ(0px) translateY(1px) scale(0.96) rotateY(15deg) rotateZ(-1deg);
  z-index: 5;
}
.shelf-book-item.tilt-left-mid:hover {
  transform: perspective(1000px) translateZ(10px) translateY(-6px) scale(0.99) rotateY(10deg) rotateZ(0deg);
  z-index: 8;
}

.shelf-book-item.tilt-left-near {
  transform: perspective(1000px) translateZ(10px) translateY(-2px) scale(0.98) rotateY(9deg) rotateZ(0deg);
  z-index: 7;
}
.shelf-book-item.tilt-left-near:hover {
  transform: perspective(1000px) translateZ(18px) translateY(-7px) scale(1.02) rotateY(5deg) rotateZ(0deg);
  z-index: 9;
}

.shelf-book-item.tilt-right-near {
  transform: perspective(1000px) translateZ(10px) translateY(-2px) scale(0.98) rotateY(-9deg) rotateZ(0deg);
  z-index: 7;
}
.shelf-book-item.tilt-right-near:hover {
  transform: perspective(1000px) translateZ(18px) translateY(-7px) scale(1.02) rotateY(-5deg) rotateZ(0deg);
  z-index: 9;
}

.shelf-book-item.tilt-right-mid {
  transform: perspective(1000px) translateZ(0px) translateY(1px) scale(0.96) rotateY(-15deg) rotateZ(1deg);
  z-index: 5;
}
.shelf-book-item.tilt-right-mid:hover {
  transform: perspective(1000px) translateZ(10px) translateY(-6px) scale(0.99) rotateY(-10deg) rotateZ(0deg);
  z-index: 8;
}

.shelf-book-item.tilt-right-far {
  transform: perspective(1000px) translateZ(-18px) translateY(2px) scale(0.93) rotateY(-22deg) rotateZ(2.5deg);
  z-index: 3;
}
.shelf-book-item.tilt-right-far:hover {
  transform: perspective(1000px) translateZ(0px) translateY(-5px) scale(0.97) rotateY(-15deg) rotateZ(1.5deg);
  z-index: 8;
}

/* 3D Book Structure (Compact height: 182px) */
.book-3d-wrap {
  position: relative;
  width: 100%;
  height: 182px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  transition: all 0.4s ease;
}

/* Page Edge Blocks */
.book-pages-edge {
  position: absolute;
  right: -7px;
  top: 4px;
  bottom: 4px;
  width: 8px;
  background: repeating-linear-gradient(to bottom, #FCFAFD, #FCFAFD 2px, #E2ADF2 2px, #E2ADF2 3px);
  border-radius: 0 2px 2px 0;
  box-shadow: inset 1px 0 2px rgba(0,0,0,0.25), 2px 2px 5px rgba(0,0,0,0.22);
  transform: translateZ(-2px);
  transition: all 0.4s ease;
}

.shelf-book-item.tilt-right-near .book-pages-edge {
  width: 9px;
  right: -8px;
  opacity: 0.9;
}

.shelf-book-item.tilt-right-mid .book-pages-edge {
  width: 11px;
  right: -9px;
  opacity: 1;
}

.shelf-book-item.tilt-right-far .book-pages-edge {
  width: 13px;
  right: -11px;
  opacity: 1;
  box-shadow: inset 1.5px 0 3px rgba(0,0,0,0.3), 3px 2px 7px rgba(0,0,0,0.32);
}

.shelf-book-item.tilt-left-far .book-pages-edge,
.shelf-book-item.tilt-left-mid .book-pages-edge {
  opacity: 0.4;
}

/* Realistic Leather Cover (Unselected Books) */
.book-cover {
  width: 100%;
  height: 100%;
  border-radius: 4px 8px 8px 4px;
  background: linear-gradient(135deg, #222A68 0%, #161C48 55%, #0D1130 100%);
  border: 1.5px solid rgba(171, 129, 205, 0.85);
  outline: 1px solid rgba(171, 129, 205, 0.45);
  outline-offset: -4px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, 0.5), inset -2px 0 3px rgba(255, 255, 255, 0.1);
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Corner Filigree */
.book-filigree {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #AB81CD;
  border-style: solid;
  pointer-events: none;
  opacity: 0.9;
}

.filigree-tl {
  top: 5px;
  left: 5px;
  border-width: 1.5px 0 0 1.5px;
}

.filigree-tr {
  top: 5px;
  right: 5px;
  border-width: 1.5px 1.5px 0 0;
}

.filigree-bl {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 1.5px 1.5px;
}

.filigree-br {
  bottom: 5px;
  right: 5px;
  border-width: 0 1.5px 1.5px 0;
}

/* Ribbon Tab with Volume Number (Hidden - numbers removed per user request) */
.book-ribbon-tab,
.mini-book-tab {
  display: none !important;
}

/* Emblem Ring */
.book-emblem-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(171, 129, 205, 0.9);
  outline: 1px solid rgba(171, 129, 205, 0.4);
  outline-offset: -2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E2ADF2;
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 2px;
  box-shadow: inset 0 0 6px rgba(171, 129, 205, 0.35);
  background: rgba(34, 42, 104, 0.7);
}

/* Serif Title */
.book-cover-title {
  font-family: 'EB Garamond', serif;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  max-width: 108px;
}

/* Gold Divider */
.book-cover-divider {
  width: 22px;
  height: 1.5px;
  background: rgba(171, 129, 205, 0.75);
  margin: 3px auto;
}

/* PDF Action Pill on Book */
.book-pdf-pill {
  background: linear-gradient(135deg, #574AE2 0%, #4336B8 100%);
  color: #FFFFFF;
  border: 1px solid #AB81CD;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2.5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(34, 42, 104, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.book-pdf-pill:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  border-color: #E2ADF2;
  transform: scale(1.05);
}


/* ============================================================
   ROYAL 5-COLOR PALETTE APPLIED ACROSS ALL 9 SHELF BOOKS
   Majorelle Blue (#574AE2), Imperial Blue (#222A68),
   Dusty Grape (#654597), Bright Lavender (#AB81CD), Mauve (#E2ADF2)
   ============================================================ */

/* BOOK 01: Budget Speech - Radiant Majorelle Blue */
#shelf-book-1 .book-cover {
  background: linear-gradient(135deg, #574AE2 0%, #4639D2 55%, #3428B8 100%);
  border-color: #E2ADF2;
}
#shelf-book-1 .book-filigree { border-color: #E2ADF2; }
#shelf-book-1 .book-emblem-ring { background: rgba(226, 173, 242, 0.22); border-color: #E2ADF2; color: #FFFFFF; }
#shelf-book-1 .book-cover-title { color: #FFFFFF; }
#shelf-book-1 .book-cover-divider { background: #E2ADF2; }
#shelf-book-1 .book-pdf-pill { background: linear-gradient(135deg, #222A68 0%, #654597 100%); border-color: #E2ADF2; }

/* BOOK 02: Annual Financial Statement (AFS) - Regal Dusty Grape */
#shelf-book-2 .book-cover {
  background: linear-gradient(135deg, #7A53B3 0%, #654597 55%, #4C3078 100%);
  border-color: #AB81CD;
}
#shelf-book-2 .book-filigree { border-color: #AB81CD; }
#shelf-book-2 .book-emblem-ring { background: rgba(171, 129, 205, 0.25); border-color: #AB81CD; color: #FFFFFF; }
#shelf-book-2 .book-cover-title { color: #FFFFFF; }
#shelf-book-2 .book-cover-divider { background: #AB81CD; }
#shelf-book-2 .book-pdf-pill { background: linear-gradient(135deg, #574AE2 0%, #4336B8 100%); border-color: #AB81CD; }

/* BOOK 03: Budget at a Glance - Luminous Bright Lavender */
#shelf-book-3 .book-cover {
  background: linear-gradient(135deg, #C2A5DE 0%, #AB81CD 55%, #9263B8 100%);
  border-color: #FFFFFF;
}
#shelf-book-3 .book-filigree { border-color: #FFFFFF; }
#shelf-book-3 .book-emblem-ring { background: rgba(34, 42, 104, 0.35); border-color: #FFFFFF; color: #222A68; }
#shelf-book-3 .book-cover-title { color: #12173B; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45); font-weight: 700; }
#shelf-book-3 .book-cover-divider { background: #222A68; }
#shelf-book-3 .book-pdf-pill { background: linear-gradient(135deg, #222A68 0%, #574AE2 100%); border-color: #FFFFFF; }

/* BOOK 04: Demands for Grants Volume - I - Deep Imperial Blue */
#shelf-book-4 .book-cover {
  background: linear-gradient(135deg, #303B8D 0%, #222A68 55%, #181E4F 100%);
  border-color: #AB81CD;
}
#shelf-book-4 .book-filigree { border-color: #AB81CD; }
#shelf-book-4 .book-emblem-ring { background: rgba(87, 74, 226, 0.35); border-color: #AB81CD; color: #E2ADF2; }
#shelf-book-4 .book-cover-title { color: #FFFFFF; }
#shelf-book-4 .book-cover-divider { background: #AB81CD; }
#shelf-book-4 .book-pdf-pill { background: linear-gradient(135deg, #574AE2 0%, #654597 100%); border-color: #AB81CD; }

/* BOOK 05: Recoveries for Demands Vol - I - Delicate Mauve */
#shelf-book-5 .book-cover {
  background: linear-gradient(135deg, #F3D4FC 0%, #E2ADF2 55%, #C884E0 100%);
  border-color: #654597;
}
#shelf-book-5 .book-filigree { border-color: #654597; }
#shelf-book-5 .book-emblem-ring { background: rgba(101, 69, 151, 0.25); border-color: #654597; color: #222A68; }
#shelf-book-5 .book-cover-title { color: #12173B; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45); font-weight: 700; }
#shelf-book-5 .book-cover-divider { background: #654597; }
#shelf-book-5 .book-pdf-pill { background: linear-gradient(135deg, #574AE2 0%, #222A68 100%); border-color: #654597; }

/* BOOK 06: Demands for Grants Volume - II - Electric Majorelle Blue */
#shelf-book-6 .book-cover {
  background: linear-gradient(135deg, #6457EB 0%, #574AE2 55%, #3E30C0 100%);
  border-color: #E2ADF2;
}
#shelf-book-6 .book-filigree { border-color: #E2ADF2; }
#shelf-book-6 .book-emblem-ring { background: rgba(226, 173, 242, 0.22); border-color: #E2ADF2; color: #FFFFFF; }
#shelf-book-6 .book-cover-title { color: #FFFFFF; }
#shelf-book-6 .book-cover-divider { background: #E2ADF2; }
#shelf-book-6 .book-pdf-pill { background: linear-gradient(135deg, #654597 0%, #222A68 100%); border-color: #E2ADF2; }

/* BOOK 07: Recoveries for Demands Vol - II - Regal Dusty Grape */
#shelf-book-7 .book-cover {
  background: linear-gradient(135deg, #7A53B3 0%, #654597 55%, #4C3078 100%);
  border-color: #AB81CD;
}
#shelf-book-7 .book-filigree { border-color: #AB81CD; }
#shelf-book-7 .book-emblem-ring { background: rgba(171, 129, 205, 0.25); border-color: #AB81CD; color: #FFFFFF; }
#shelf-book-7 .book-cover-title { color: #FFFFFF; }
#shelf-book-7 .book-cover-divider { background: #AB81CD; }
#shelf-book-7 .book-pdf-pill { background: linear-gradient(135deg, #574AE2 0%, #4336B8 100%); border-color: #AB81CD; }

/* BOOK 08: Demands for Grants Volume - III - Luminous Bright Lavender */
#shelf-book-8 .book-cover {
  background: linear-gradient(135deg, #C2A5DE 0%, #AB81CD 55%, #9263B8 100%);
  border-color: #FFFFFF;
}
#shelf-book-8 .book-filigree { border-color: #FFFFFF; }
#shelf-book-8 .book-emblem-ring { background: rgba(34, 42, 104, 0.35); border-color: #FFFFFF; color: #222A68; }
#shelf-book-8 .book-cover-title { color: #12173B; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45); font-weight: 700; }
#shelf-book-8 .book-cover-divider { background: #222A68; }
#shelf-book-8 .book-pdf-pill { background: linear-gradient(135deg, #222A68 0%, #574AE2 100%); border-color: #FFFFFF; }

/* BOOK 09: Estimates of Receipts - Majorelle Blue */
#shelf-book-9 .book-cover {
  background: linear-gradient(135deg, #574AE2 0%, #4034B0 55%, #271E7D 100%);
  border-color: #E2ADF2;
}
#shelf-book-9 .book-filigree { border-color: #E2ADF2; }
#shelf-book-9 .book-emblem-ring { background: rgba(226, 173, 242, 0.25); border-color: #E2ADF2; color: #FFFFFF; }
#shelf-book-9 .book-cover-title { color: #FFFFFF; }
#shelf-book-9 .book-cover-divider { background: #E2ADF2; }
#shelf-book-9 .book-pdf-pill { background: linear-gradient(135deg, #654597 0%, #574AE2 100%); border-color: #E2ADF2; }

/* ============================================================
   ACTIVE SELECTED BOOK (Majorelle Blue Spotlight with Mauve/Lavender Halo)
   ============================================================ */
.shelf-book-item.is-selected {
  transform: perspective(1000px) translateZ(30px) translateY(-10px) scale(1.07) rotateY(0deg) rotateZ(0deg);
  z-index: 15;
}

.shelf-book-item.is-selected:hover {
  transform: perspective(1000px) translateZ(34px) translateY(-12px) scale(1.09) rotateY(0deg) rotateZ(0deg);
  z-index: 16;
}

.shelf-book-item.is-selected .book-3d-wrap {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(87, 74, 226, 0.75), 0 0 45px rgba(226, 173, 242, 0.45);
}

/* Selected Book: Electric Majorelle Blue Leather with Lavender & Mauve Illumination */
.shelf-book-item.is-selected .book-cover {
  border-color: #E2ADF2;
  border-width: 2px;
  background: linear-gradient(135deg, #574AE2 0%, #4034B0 55%, #271E7D 100%);
  outline: 1.5px solid rgba(226, 173, 242, 0.95);
  outline-offset: -4px;
  box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.6), inset -2px 0 4px rgba(226, 173, 242, 0.35);
}

.shelf-book-item.is-selected .book-emblem-ring {
  background: rgba(101, 69, 151, 0.85);
  border-color: #E2ADF2;
  outline-color: rgba(171, 129, 205, 0.75);
  color: #FFFFFF;
  box-shadow: inset 0 0 8px rgba(226, 173, 242, 0.5);
}

.shelf-book-item.is-selected .book-filigree {
  border-color: #E2ADF2;
  opacity: 1;
}

.shelf-book-item.is-selected .book-cover-divider {
  background: rgba(226, 173, 242, 0.9);
}

.shelf-book-item.is-selected .book-pdf-pill {
  background: linear-gradient(135deg, #654597 0%, #574AE2 100%);
  border-color: #E2ADF2;
  color: #FFFFFF;
}

.shelf-book-item.is-selected .book-cover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(226, 173, 242, 0.35) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: bookShimmerSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bookShimmerSweep {
  0% { transform: translateX(-100%) rotate(25deg); }
  35% { transform: translateX(100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

/* Radiant Mauve/Lavender Halo Burst Underneath */
.shelf-book-item.is-selected::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 2%;
  right: 2%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(226, 173, 242, 1) 0%, rgba(171, 129, 205, 0.85) 45%, transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  animation: auraBurst 0.5s cubic-bezier(0.18, 0.9, 0.32, 1.2) forwards, auraPulse 2.4s ease-in-out 0.5s infinite alternate;
}

@keyframes auraBurst {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.9; transform: scale(1.0); }
}

@keyframes auraPulse {
  0% { opacity: 0.8; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Solid Timber Bookshelf Ledge (Compact) */
.wooden-shelf-ledge {
  position: relative;
  z-index: 3;
  margin-top: -2px;
  border-radius: 3px;
}

.shelf-top-highlight {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 195, 0.7) 15%, rgba(255, 245, 210, 1) 50%, rgba(255, 240, 195, 0.7) 85%, transparent);
}

.shelf-wood-surface {
  height: 12px;
  background: linear-gradient(180deg, #7D4C27 0%, #5F3718 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.12);
}

.shelf-wood-front {
  height: 14px;
  background: linear-gradient(180deg, #4A270E 0%, #2A1304 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #180902;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.shelf-ambient-shadow {
  height: 18px;
  background: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 80%);
}

/* ============================================================
   SELECTED BOOK DETAIL DRAWER (Imperial Blue & Lavender Theme)
   ============================================================ */
.book-detail-drawer {
  background: linear-gradient(135deg, #FCFAFD 0%, #F8F2FB 100%);
  border: 1.5px solid #AB81CD;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(34, 42, 104, 0.12);
  margin-top: 14px;
  padding: 18px 24px;
  position: relative;
  animation: drawerFadeSlide 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

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

.drawer-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(87, 74, 226, 0.08);
  color: #574AE2;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.drawer-close-btn:hover {
  background: rgba(87, 74, 226, 0.2);
  color: #222A68;
}

.drawer-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

/* Left Column: Compact Pedestal + Book Details */
.drawer-left-col {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pedestal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 105px;
}

.pedestal-book-preview {
  margin-bottom: -10px;
  z-index: 2;
}

.mini-book-3d {
  position: relative;
  width: 74px;
  height: 108px;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: flex;
}

.mini-book-3d.pop-in {
  animation: pedestalDropIn 0.5s cubic-bezier(0.18, 0.9, 0.32, 1.2) forwards;
}

@keyframes pedestalDropIn {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.85);
  }
  65% {
    transform: translateY(2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mini-book-pages {
  position: absolute;
  right: -4px;
  top: 3px;
  bottom: 3px;
  width: 5px;
  background: repeating-linear-gradient(to bottom, #FCFAFD, #FCFAFD 2px, #E2ADF2 2px, #E2ADF2 3px);
  border-radius: 0 2px 2px 0;
}

.mini-book-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #574AE2 0%, #4034B0 60%, #271E7D 100%);
  border: 1.5px solid rgba(226, 173, 242, 0.95);
  outline: 1px solid rgba(171, 129, 205, 0.6);
  outline-offset: -2.5px;
  border-radius: 3px 6px 6px 3px;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: inset 3px 0 6px rgba(0, 0, 0, 0.55);
}

.mini-book-tab {
  background: #574AE2;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 2px;
}

.mini-book-icon {
  font-size: 15px;
  color: #E2ADF2;
  margin: 5px 0 2px;
}

.mini-book-title {
  font-family: 'EB Garamond', serif;
  font-size: 9.5px;
  color: #FFFFFF;
  line-height: 1.15;
  font-weight: 600;
}

/* Tiered Metallic Pedestal Base */
.golden-pedestal-base {
  width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.golden-pedestal-base.pop-in .tier-top {
  animation: pedestalRingGleam 0.5s ease-out forwards;
}

@keyframes pedestalRingGleam {
  0% { filter: brightness(1.5); }
  100% { filter: brightness(1.0); }
}

.pedestal-tier {
  border-radius: 50%;
}

.tier-top {
  width: 72px;
  height: 6px;
  background: radial-gradient(ellipse at center, #E2ADF2 0%, #AB81CD 60%, #654597 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.tier-mid {
  width: 88px;
  height: 8px;
  background: radial-gradient(ellipse at center, #AB81CD 0%, #654597 65%, #222A68 100%);
  margin-top: -2px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.28);
}

.tier-base {
  width: 105px;
  height: 9px;
  background: radial-gradient(ellipse at center, #574AE2 0%, #222A68 70%, #0D1130 100%);
  margin-top: -3px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.pedestal-shadow {
  width: 110px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0%, transparent 75%);
  margin-top: -4px;
}

/* Summary Content */
.drawer-summary-content {
  flex: 1;
}

.drawer-badge {
  display: inline-flex;
  align-items: center;
  background: #EDE0F5;
  border: 1px solid #AB81CD;
  color: #574AE2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 16px;
  margin-bottom: 5px;
}

.drawer-title {
  font-family: 'EB Garamond', serif;
  font-size: 21px;
  font-weight: 700;
  color: #222A68;
  margin-bottom: 4px;
  line-height: 1.2;
}

.drawer-desc {
  font-size: 12.5px;
  color: #4A4D73;
  line-height: 1.45;
  margin-bottom: 12px;
}

.drawer-crimson-download {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid #AB81CD;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(87, 74, 226, 0.35);
  transition: all 0.22s ease;
}

.drawer-crimson-download:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(87, 74, 226, 0.45);
  border-color: #E2ADF2;
  color: #FFFFFF;
}

/* Right Column: Supporting Docs & Dept Select */
.drawer-right-col {
  border-left: 1px solid #EADCF0;
  padding-left: 24px;
}

.drawer-subheading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #574AE2;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}

.drawer-subdoc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FCFAFD;
  border: 1px solid #EADCF0;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 6px;
  box-shadow: 0 1px 4px rgba(34, 42, 104, 0.04);
}

.drawer-subdoc-row .fa-file-pdf,
.drawer-subdoc-row .text-danger {
  color: #574AE2 !important;
}

.subdoc-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #222A68;
}

.subdoc-open-btn {
  background: #FFFFFF;
  border: 1px solid #AB81CD;
  color: #574AE2;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.subdoc-open-btn:hover {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #574AE2;
}

.drawer-dept-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1.5px solid #AB81CD;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #222A68;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.drawer-dept-select:focus {
  border-color: #574AE2;
  box-shadow: 0 0 0 3px rgba(87, 74, 226, 0.2);
}

.drawer-dept-result a {
  background: #222A68;
  color: #E2ADF2;
  border: 1px solid #AB81CD;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(34, 42, 104, 0.22);
  margin-top: 8px;
  transition: all 0.2s ease;
}

.drawer-dept-result a:hover {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #E2ADF2;
}

/* ============================================================
   RESPONSIVE OPTIMIZATION
   ============================================================ */

@media (max-width: 991px) {
  .shelf-books-container {
    scroll-snap-type: x proximity;
    padding: 30px 10px 0 10px;
  }
  .shelf-book-item {
    scroll-snap-align: center;
    width: 110px;
  }
  .book-3d-wrap {
    height: 165px;
  }
  .drawer-inner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .drawer-right-col {
    border-left: none;
    border-top: 1px solid #E2D9C8;
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 767px) {
  .shelf-carousel-section {
    margin-top: 5px;
    margin-bottom: 20px;
    padding-top: 25px;
  }
  .shelf-backdrop-wrap {
    height: 240px;
  }
  .shelf-books-track {
    gap: 8px;
    padding: 0 20px;
  }
  .shelf-book-item {
    width: 102px;
  }
  .book-3d-wrap {
    height: 154px;
  }
  .book-cover-title {
    font-size: 10.5px;
    max-width: 90px;
  }
  .book-emblem-ring {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .shelf-nav-btn {
    top: 105px;
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .book-detail-drawer {
    padding: 18px 14px;
  }
  .drawer-left-col {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .drawer-crimson-download {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================
   HISTORICAL RECORDS & BUDGET ARCHIVE VAULT (MATCHES MOCKUP)
   ============================================================ */

.gov-archive-section {
  position: relative;
  padding: 42px 0 68px;
  background: radial-gradient(circle at 50% 15%, #FAF7F0 0%, #F5EFE4 45%, #EBE1CE 100%);
  overflow: hidden;
  border-top: 1.5px solid rgba(87, 74, 226, 0.35);
}

.archive-vault-header {
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.vault-header-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.vault-kicker {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A5850;
}

.vault-search-top {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 7px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  width: 350px;
  transition: all 0.25s ease;
}

.vault-search-top:focus-within {
  border-color: #222A68;
  box-shadow: 0 4px 18px rgba(34, 42, 104, 0.18);
}

.vault-search-ico {
  color: #6C7A72;
  font-size: 13px;
  margin-right: 10px;
}

.vault-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: #1A2820;
  width: 100%;
}

.vault-search-input::placeholder {
  color: #7D8E84;
}

.vault-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: #12173B;
  text-align: center;
  margin: 6px 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  letter-spacing: 0.3px;
}

.vault-title-line {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: #574AE2;
}

.vault-subtitle {
  text-align: center;
  font-size: 13.5px;
  color: #666C96;
  margin-bottom: 24px;
  font-weight: 400;
}

.vault-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.arch-portal-card {
  min-width: 0; /* CRITICAL: prevents grid item blowout */
  width: 100%;
  height: 100%;
  background: #FCFAFD;
  border: 1.5px solid #AB81CD;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(10, 47, 28, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dark Green Header Bar Matching Mockup */
.arch-card-header {
  background: linear-gradient(135deg, #FAF7FD 0%, #EDE0F5 100%);
  border-bottom: 2px solid #AB81CD;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.arch-header-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-tab-btn {
  background: #FFFFFF;
  color: #222A68;
  border: 1.5px solid #AB81CD;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.arch-tab-btn:hover {
  background: #EDE0F5;
  color: #574AE2;
  border-color: #574AE2;
}

.arch-tab-btn.active {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  border-color: #AB81CD;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(87, 74, 226, 0.35);
}

.arch-tab-btn.active i {
  color: #FFFFFF;
}

/* FY Dropdown Pill in Header */
.arch-fy-dropdown-btn {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 18px;
  border: 1px solid #AB81CD;
  box-shadow: 0 2px 8px rgba(87, 74, 226, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.arch-fy-dropdown-btn:hover, .arch-fy-dropdown-btn:focus {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  color: #FFFFFF;
}

.arch-dropdown-menu {
  background: #FFFFFF;
  border: 1px solid #D5CEBE;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.arch-dropdown-menu .dropdown-item {
  font-size: 12.5px;
  font-weight: 600;
  color: #1A3024;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
}

.arch-dropdown-menu .dropdown-item:hover,
.arch-dropdown-menu .dropdown-item.active {
  background: #E8F2EC;
  color: #161C48;
}

/* Right Header Group */
.arch-header-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-supp-header-icon {
  font-size: 18px;
  color: #574AE2;
}

.arch-header-main-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #222A68;
  margin: 0;
  letter-spacing: 0.3px;
}

.arch-gold-badge {
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(87, 74, 226, 0.15);
  display: inline-block;
  white-space: nowrap;
}

/* Card Body */
.arch-card-body {
  padding: 16px 18px;
  background: #FCFAFD;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  justify-content: space-between;
}

/* ============================================================
   TIMELINE STEPPER (CONNECTED HORIZONTAL YEAR SELECTOR)
   ============================================================ */
.timeline-stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.timeline-stepper-label {
  font-size: 12px;
  font-weight: 700;
  color: #26382E;
  display: flex;
  align-items: center;
}

.timeline-track-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  min-width: 0;
}

.timeline-nav-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #AB81CD;
  color: #4A5D52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
  margin-top: 12px;
}

.timeline-nav-arrow:hover:not(:disabled) {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #574AE2;
}

.timeline-nav-arrow:disabled,
.timeline-nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.timeline-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 6px 4px;
  margin: 0;
  min-width: 0;
  cursor: grab;
}

.timeline-track:active,
.timeline-track.is-grabbing,
.timeline-track.is-dragging {
  cursor: grabbing !important;
}

.timeline-track::-webkit-scrollbar {
  display: none;
}

.timeline-line {
  display: none;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 0 0 calc(100% / 7);
  min-width: 68px;
  user-select: none;
}

/* Continuous connecting line running precisely through all dot centers at 16px */
.timeline-node::before {
  content: '';
  position: absolute;
  top: 16px;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 1.5px;
  background: #AB81CD;
  z-index: 1;
}

.timeline-node:first-child::before {
  left: 50%;
}

.timeline-node:last-child::before {
  right: 50%;
}

.timeline-dot-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FCFAFD;
  border: 2px solid #8E9E94;
  box-shadow: 0 0 0 3px #FCFAFD;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-node:hover .timeline-dot {
  border-color: #574AE2;
  transform: scale(1.15);
}

.timeline-node.active .timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #12173B;
  border: 3px solid #574AE2;
  box-shadow: 0 0 0 3px #FCFAFD, 0 0 0 7px rgba(87, 74, 226, 0.42);
}

.timeline-year-text {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: #666C96;
  white-space: nowrap;
  letter-spacing: -0.2px;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.timeline-node:hover .timeline-year-text {
  color: #12173B;
}

.timeline-node.active .timeline-year-text {
  color: #161C48;
  font-weight: 800;
}

@media (max-width: 768px) {
  .timeline-node {
    flex: 0 0 calc(100% / 5);
  }
}

@media (max-width: 480px) {
  .timeline-node {
    flex: 0 0 calc(100% / 4);
  }
}

/* ============================================================
   ARCHIVE SHELF / GOVERNMENT ARCHIVE STYLING
   ============================================================ */

/* Decorative subtle Goa background line art */
.archive-shelf-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shelf-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-stepper-wrap,
.arch-cards-section,
.arch-doc-detail-box,
.supp-batches-archive,
.supp-batch-switcher {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PREVIOUS SUPPLEMENT BATCH SWITCHER (FIRST BATCH, SECOND BATCH, THIRD BATCH)
   ============================================================ */
.supp-batch-switcher.prev-supp-batch-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #FAF7FD 0%, #F5ECF9 100%);
  border: 1.5px solid #AB81CD;
  border-radius: 12px;
  padding: 6px 8px;
  margin: 12px 0 14px 0;
  box-shadow: 0 2px 8px rgba(87, 74, 226, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.supp-switcher-pill {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: #FFFFFF;
  color: #222A68;
  border: 1.5px solid #AB81CD;
  border-radius: 8px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 3px rgba(87, 74, 226, 0.05);
  outline: none;
}

.supp-switcher-pill i {
  color: #574AE2;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.supp-switcher-pill .supp-pill-num {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
  padding: 1.5px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.supp-switcher-pill:hover:not(.active) {
  background: #EDE0F5;
  color: #574AE2;
  border-color: #574AE2;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(87, 74, 226, 0.15);
}

.supp-switcher-pill.active {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-color: #574AE2 !important;
  box-shadow: 0 4px 14px rgba(87, 74, 226, 0.35) !important;
  transform: translateY(-1px);
}

.supp-switcher-pill.active i {
  color: #E2ADF2 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.supp-switcher-pill.active .supp-pill-num {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   SECTION 2: BOOKSHELF SECTION (PREVIOUS BUDGET)
   ============================================================ */
.arch-cards-section {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

.arch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.arch-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arch-section-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #574AE2;
  color: #161102;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.arch-section-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #222A68;
  margin: 0;
}

.arch-count-badge {
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.arch-nav-arrows {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arch-arrow-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #AB81CD;
  color: #4A5D52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.18s ease;
}

.arch-arrow-btn:hover {
  background: #574AE2;
  color: #FFFFFF;
  border-color: #574AE2;
}

/* Bookshelf Display Container with Recessed Library Alcove Depth */
.bookshelf-display-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  margin: 6px 0 12px 0;
  background: linear-gradient(180deg, #FBF8FD 0%, #F5ECF9 65%, #EDE0F5 100%);
  border-radius: 8px 8px 0 0;
  padding: 14px 8px 0 8px;
  box-shadow: inset 0 8px 16px rgba(34, 42, 104, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #EADCF0;
  border-bottom: none;
}

/* Bookshelf Track */
.arch-cards-track.bookshelf-track {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 10px 0 10px;
  position: relative;
  z-index: 3;
  min-width: 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

/* Safe centering for modern browsers: centers if fits, flex-start if overflowing */
@supports (justify-content: safe center) {
  .arch-cards-track.bookshelf-track {
    justify-content: safe center;
  }
}

/* When 8 or more books exist, strictly align to flex-start so books 01-07 are never pushed off-screen */
.arch-cards-track.bookshelf-track.is-overflowing,
.arch-cards-track.bookshelf-track:has(.archive-book-spine:nth-child(8)) {
  justify-content: flex-start !important;
}

.arch-cards-track.bookshelf-track:active,
.arch-cards-track.bookshelf-track.is-grabbing {
  cursor: grabbing !important;
}

.arch-cards-track.bookshelf-track::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   VERTICAL PHYSICAL ARCHIVE BOOK SPINES
   ============================================================ */
.archive-book-spine {
  flex: 1 1 0;
  min-width: 62px;
  max-width: 82px;
  height: 186px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  border-radius: 6px 6px 0 0;
  padding: 8px 3px 6px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: inset -4px 0 5px rgba(0, 0, 0, 0.45), inset 3px 0 4px rgba(255, 255, 255, 0.22), 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* 9 Harmonious Royal Archive Leather Book Colors (Distinct Jewel Tones, Zero Adjacent Duplicates) */
.book-color-speech {
  /* Book 01: Royal Majorelle Blue Leather */
  background: linear-gradient(90deg, #372EB5 0%, #4E40DC 25%, #6B5EFA 50%, #4E40DC 75%, #372EB5 100%);
}
.book-color-afs {
  /* Book 02: Deep Imperial Navy Leather */
  background: linear-gradient(90deg, #151B44 0%, #222A68 25%, #333F8E 50%, #222A68 75%, #151B44 100%);
}
.book-color-vol1 {
  /* Book 03: Rich Royal Grape Leather */
  background: linear-gradient(90deg, #432966 0%, #5B3B87 25%, #764EA8 50%, #5B3B87 75%, #432966 100%);
}
.book-color-recoveries {
  /* Book 04: Noble Royal Violet Leather (Replaces pale pastel pink) */
  background: linear-gradient(90deg, #4A1F6E 0%, #683098 25%, #8B4CC5 50%, #683098 75%, #4A1F6E 100%);
}
.book-color-vol2 {
  /* Book 05: Midnight Sapphire Indigo Leather */
  background: linear-gradient(90deg, #1B2358 0%, #2C3988 25%, #4655B8 50%, #2C3988 75%, #1B2358 100%);
}
.book-color-vol3 {
  /* Book 06: Deep Royal Plum Leather */
  background: linear-gradient(90deg, #441A58 0%, #5F2979 25%, #823E9F 50%, #5F2979 75%, #441A58 100%);
}
.book-color-receipts {
  /* Book 07: Vibrant Royal Cobalt Leather */
  background: linear-gradient(90deg, #2E2499 0%, #483BD8 25%, #6659F2 50%, #483BD8 75%, #2E2499 100%);
}
.book-color-debt {
  /* Historical Year Book 08: Deep Navy Sapphire */
  background: linear-gradient(90deg, #171E48 0%, #242E70 25%, #3B49A0 50%, #242E70 75%, #171E48 100%);
}
.book-color-deficit {
  /* Historical Year Book 09: Deep Amethyst Plum */
  background: linear-gradient(90deg, #3C1E5C 0%, #552E7E 25%, #7242A2 50%, #552E7E 75%, #3C1E5C 100%);
}


/* ============================================================
   BOOK SPINE INTERNAL COMPONENTS & TEXT STYLING
   ============================================================ */
.book-spine-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.book-spine-rib {
  width: 90%;
  height: 2.5px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(226, 173, 242, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  margin: 2px auto;
  border-radius: 1px;
}

.book-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: 0.5px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin: 1px 0;
}

.book-icon-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #E2ADF2 !important;
  margin: 2px 0 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.book-spine-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 3px;
}

.book-spine-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF !important;
  line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8);
  max-height: 56px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.book-spine-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.book-emblem-svg {
  width: 44px;
  height: 18px;
  display: block;
  margin: 1px auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

/* Hover & Active Book States */
.archive-book-spine:hover {
  transform: translateY(-5px);
  box-shadow: inset -4px 0 5px rgba(0, 0, 0, 0.45), inset 3px 0 4px rgba(255, 255, 255, 0.28), 0 12px 22px rgba(0, 0, 0, 0.32);
}

.archive-book-spine.active {
  transform: translateY(-11px);
  border: 2px solid #E2ADF2 !important;
  box-shadow: 0 0 20px rgba(226, 173, 242, 0.75), inset -4px 0 5px rgba(0, 0, 0, 0.35), inset 3px 0 4px rgba(255, 255, 255, 0.35), 0 14px 26px rgba(0, 0, 0, 0.38) !important;
  z-index: 5;
}

/* Downward Callout Arrow on Active Book */
.archive-book-spine.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #E2ADF2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  z-index: 6;
}

/* ============================================================
   WOODEN SHELF UNIT (REALISTIC 3D ARCHIVE SHELF)
   ============================================================ */
.wooden-shelf-unit {
  position: relative;
  width: 100%;
  z-index: 2;
  margin-top: -1px;
}

.shelf-plank-surface {
  height: 14px;
  background: linear-gradient(180deg, #E8BA7D 0%, #CD9656 28%, #A87137 75%, #8B5927 100%);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 2px 2px rgba(255, 255, 240, 0.75), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  border-top: 1.5px solid rgba(255, 255, 240, 0.85);
  position: relative;
}

.shelf-front-bevel {
  height: 18px;
  background: linear-gradient(180deg, #B57F44 0%, #8E5A27 45%, #623912 85%, #462509 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 3px solid #2F1704;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  position: relative;
}

.shelf-corbel {
  position: absolute;
  top: 32px;
  width: 22px;
  height: 28px;
  background: linear-gradient(180deg, #8E5A27 0%, #522E0E 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.38);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1.5px solid rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid #231204;
}

.shelf-corbel-left {
  left: 28px;
}

.shelf-corbel-right {
  right: 28px;
}

.shelf-wall-shadow {
  position: absolute;
  top: 32px;
  left: 14px;
  right: 14px;
  height: 32px;
  background: radial-gradient(ellipse at top, rgba(35, 18, 5, 0.42) 0%, rgba(35, 18, 5, 0) 75%);
  pointer-events: none;
}

/* ============================================================
   ACTIVE DOCUMENT DETAIL BOX
   ============================================================ */
.arch-doc-detail-box {
  background: #FFFFFF;
  border: 1.5px solid #AB81CD;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(87, 74, 226, 0.08);
  padding: 12px 18px;
  position: relative;
  margin-top: 4px;
  min-width: 0;
}

.detail-callout-notch {
  position: absolute;
  top: -8px;
  left: 48px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #FFFFFF;
  filter: drop-shadow(0 -1.5px 1px rgba(171, 129, 205, 0.7));
  z-index: 10;
  transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.detail-box-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "icon info"
    "action action";
  gap: 12px 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  position: relative;
}

.detail-icon-wrap {
  grid-area: icon;
  align-self: flex-start;
  flex-shrink: 0;
}

.detail-doc-ico-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.detail-info-wrap {
  grid-area: info;
  min-width: 0;
  padding-right: 32px;
}

.detail-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #222A68;
  margin: 0;
  line-height: 1.25;
}

.detail-subtitle {
  font-size: 12.5px;
  color: #555D85;
  margin: 3px 0 0 0;
  line-height: 1.4;
}

.detail-meta {
  font-size: 11px;
  color: #654597;
  margin: 3px 0 0 0;
  font-weight: 600;
}

.detail-action-wrap {
  grid-area: action;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

.detail-action-wrap .detail-view-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.detail-view-btn {
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid #AB81CD;
  box-shadow: 0 2px 6px rgba(87, 74, 226, 0.25);
}

.detail-view-btn:hover {
  background: linear-gradient(135deg, #685BF5 0%, #574AE2 100%);
  color: #FFFFFF !important;
  border-color: #E2ADF2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(87, 74, 226, 0.35);
}

.detail-download-btn {
  background: #FFFFFF !important;
  color: #574AE2 !important;
  border: 1.5px solid #574AE2 !important;
  box-shadow: 0 1px 4px rgba(87, 74, 226, 0.08);
}

.detail-download-btn:hover {
  background: #EDE0F5 !important;
  color: #222A68 !important;
  border-color: #574AE2 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(87, 74, 226, 0.2);
}

.detail-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #FAF7FD;
  border: 1px solid #AB81CD;
  color: #654597;
  font-size: 12px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(87, 74, 226, 0.1);
  z-index: 5;
}

.detail-close-btn:hover {
  background: #EDE0F5;
  color: #222A68;
  border-color: #574AE2;
  transform: rotate(90deg);
}

/* ============================================================
   RIGHT MODULE: SUPPLEMENTARY GRANTS BATCH ARCHIVES
   ============================================================ */
.supp-batches-archive {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.batch-archive-card {
  background: #FFFFFF;
  border: 1.5px solid #AB81CD;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(87, 74, 226, 0.05);
  transition: all 0.22s ease;
  overflow: hidden;
}

.batch-archive-card.active {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.batch-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
  transition: background 0.18s ease;
}

.batch-archive-header:hover {
  background: #FAF7FD;
}

.batch-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-folder-icon {
  color: #574AE2;
  font-size: 18px;
}

.batch-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #222A68;
}

.batch-count-badge {
  background: #EDE0F5;
  color: #574AE2;
  border: 1px solid #AB81CD;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.batch-chevron {
  color: #654597;
  font-size: 13px;
  transition: transform 0.2s ease;
}

/* Batch Shelf Body (When Open) */
.batch-shelf-body {
  padding: 10px 14px 16px;
  background: linear-gradient(180deg, #FBF8FD 0%, #F5ECF9 100%);
  border-top: 1px solid #EADCF0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.supp-shelf-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 6px 0 14px;
  position: relative;
  background: linear-gradient(180deg, #FBF8FD 0%, #F5ECF9 65%, #EDE0F5 100%);
  border-radius: 8px 8px 0 0;
  padding: 14px 10px 0 10px;
  box-shadow: inset 0 8px 16px rgba(34, 42, 104, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #EADCF0;
  border-bottom: none;
}

.supp-folders-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 12px 6px 0;
  position: relative;
  z-index: 3;
}

/* Standing Document Folders */
.standing-doc-folder {
  width: 136px;
  height: 164px;
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.folder-tab {
  width: 52px;
  height: 12px;
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
  left: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
}

/* Staggered Folder Tabs (1st Left, 2nd Center, 3rd Right) */
.standing-doc-folder:nth-child(1) .folder-tab {
  left: 14px;
}
.standing-doc-folder:nth-child(2) .folder-tab {
  left: calc(50% - 26px);
}
.standing-doc-folder:nth-child(3) .folder-tab {
  left: auto;
  right: 14px;
}

.folder-tab-red {
  background: linear-gradient(135deg, #4E40DC 0%, #574AE2 100%);
}
.folder-tab-blue {
  background: linear-gradient(135deg, #5B3B87 0%, #654597 100%);
}
.folder-tab-green {
  background: linear-gradient(135deg, #1C2456 0%, #222A68 100%);
}

.folder-body {
  flex: 1;
  margin-top: 10px;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid #AB81CD;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 12px;
  text-align: center;
  background: #FCFAFD;
  box-shadow: 0 4px 14px rgba(87, 74, 226, 0.07);
  transition: all 0.22s ease;
  position: relative;
  z-index: 2;
}

.folder-body-cream {
  background: #FCFAFD;
  border-top: 3px solid #574AE2;
}
.folder-body-blue {
  background: #FAF7FE;
  border-top: 3px solid #654597;
}
.folder-body-green {
  background: #F7F3FC;
  border-top: 3px solid #222A68;
}

.folder-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 12px;
  border: 1px solid rgba(171, 129, 205, 0.5);
  box-shadow: 0 2px 6px rgba(87, 74, 226, 0.08);
  transition: all 0.2s ease;
}

.folder-icon-red {
  background: #EDE0F5;
  color: #574AE2;
  border-color: #AB81CD;
}
.folder-icon-blue {
  background: #F1E5F8;
  color: #654597;
  border-color: #AB81CD;
}
.folder-icon-green {
  background: #E8E2F6;
  color: #222A68;
  border-color: #AB81CD;
}

.folder-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #222A68;
  line-height: 1.25;
}

.standing-doc-folder:hover {
  transform: translateY(-5px);
}

.standing-doc-folder.active {
  transform: translateY(-9px);
}

.standing-doc-folder.active .folder-body {
  border-color: #574AE2 !important;
  box-shadow: 0 0 22px rgba(87, 74, 226, 0.38), 0 12px 26px rgba(34, 42, 104, 0.14) !important;
}

.wooden-shelf-mini .shelf-corbel-left {
  left: 20px;
}

.wooden-shelf-mini .shelf-corbel-right {
  right: 20px;
}

.supp-detail-box {
  margin-top: 6px;
}


@media (max-width: 992px) {
  .vault-modules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Vault Hero Header: Stack kicker & search cleanly, prevent width blowout */
  .vault-header-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .vault-search-top {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .vault-kicker {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    word-break: break-word !important;
  }

  .vault-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  .vault-subtitle {
    font-size: 12px !important;
    text-align: center !important;
  }

  /* Header adjustments */
  .arch-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .arch-header-mode-toggle {
    display: flex;
    width: 100%;
    gap: 6px;
  }

  .arch-header-mode-toggle .arch-tab-btn {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    padding: 7px 8px;
    white-space: nowrap;
  }

  .arch-header-dropdown {
    width: 100%;
  }

  .arch-header-dropdown .arch-fy-btn {
    width: 100%;
    justify-content: space-between;
  }

  .arch-header-title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Card body compact padding to grant more horizontal breathing room */
  .arch-card-body {
    padding: 14px 12px;
    gap: 14px;
  }

  /* Batch Switcher Pills: Symmetrical grid, never cropped */
  .supp-batch-switcher {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .supp-batch-switcher.has-1-batches {
    grid-template-columns: 1fr !important;
  }

  .supp-batch-switcher.has-2-batches {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .supp-batch-switcher.has-3-batches {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .supp-switcher-pill {
    width: 100% !important;
    min-width: 0 !important;
    padding: 7px 4px !important;
    font-size: 11px !important;
    gap: 4px !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .supp-switcher-pill i {
    font-size: 10px !important;
    margin-right: 2px !important;
    flex-shrink: 0 !important;
  }

  .supp-pill-num {
    font-size: 9px !important;
    padding: 1px 4px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Detail Box: Two-tier layout with Icon + Info on top, and 50%-50% action buttons on bottom */
  .arch-doc-detail-box {
    position: relative !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-box-inner {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "icon info"
      "action action" !important;
    gap: 10px 12px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .detail-icon-wrap {
    grid-area: icon !important;
    align-self: flex-start !important;
  }

  .detail-info-wrap {
    grid-area: info !important;
    min-width: 0 !important;
    padding-right: 28px !important; /* Space for absolute close button */
  }

  .detail-title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .detail-subtitle {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .detail-meta {
    font-size: 10.5px !important;
  }

  .detail-action-wrap {
    grid-area: action !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 2px !important;
    justify-content: stretch !important;
  }

  .detail-action-wrap .detail-view-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .detail-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #FAF7FD !important;
    border: 1px solid #AB81CD !important;
    color: #654597 !important;
    font-size: 12px !important;
    z-index: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .detail-close-btn:hover {
    background: #EDE0F5 !important;
    color: #222A68 !important;
    border-color: #574AE2 !important;
  }
}

@media (max-width: 420px) {
  .supp-switcher-pill {
    padding: 6px 2px !important;
    font-size: 10px !important;
    gap: 2px !important;
  }

  .supp-switcher-pill i {
    font-size: 9px !important;
  }

  .supp-pill-num {
    font-size: 8px !important;
    padding: 0 3px !important;
  }

  .detail-action-wrap .detail-view-btn {
    padding: 7px 6px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  .detail-action-wrap .detail-view-btn i {
    font-size: 11px !important;
  }
}

/* ============================================================
   GLOBAL FLOATING BACK TO TOP BUTTON (CIRCLE WITH CIRCULAR ANIMATIONS)
   ============================================================ */
.back-to-top-circle {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #574AE2 0%, #654597 100%);
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 20px rgba(87, 74, 226, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  overflow: visible !important;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  outline: none;
}

.back-to-top-circle.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-circle:hover {
  background: linear-gradient(135deg, #6B5EFA 0%, #574AE2 100%);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(87, 74, 226, 0.65), 0 3px 8px rgba(0, 0, 0, 0.2);
  color: #FFFFFF !important;
}

.back-to-top-circle:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top-circle:focus-visible {
  box-shadow: 0 0 0 4px rgba(87, 74, 226, 0.4), 0 8px 24px rgba(87, 74, 226, 0.5);
}

/* Icon Wrap & Arrow Micro-interaction */
.back-to-top-circle .btt-icon-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top-circle .btt-icon-wrap i {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top-circle:hover .btt-icon-wrap i {
  transform: translateY(-3px);
}

/* --- ANIMATION 1: CONTINUOUS PULSING CIRCULAR RIPPLE WAVES --- */
.back-to-top-circle .btt-pulse-wave {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(87, 74, 226, 0.7);
  box-shadow: 0 0 14px rgba(87, 74, 226, 0.45);
  pointer-events: none;
  z-index: 1;
}

.back-to-top-circle .btt-pulse-wave.wave-1 {
  animation: bttPulseWaveAnim 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.back-to-top-circle .btt-pulse-wave.wave-2 {
  animation: bttPulseWaveAnim 2.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s infinite;
}

@keyframes bttPulseWaveAnim {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  60% {
    transform: scale(1.36);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.64);
    opacity: 0;
  }
}

/* --- ANIMATION 2: ROTATING GLOWING ORBIT RING AROUND BUTTON --- */
.back-to-top-circle .btt-orbit-spin {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 241, 168, 0.85);
  pointer-events: none;
  z-index: 2;
  animation: bttOrbitSpinAnim 7s linear infinite;
  transition: border-color 0.25s ease;
}

.back-to-top-circle:hover .btt-orbit-spin {
  border-color: #FFFFFF;
  animation-duration: 3s;
}

@keyframes bttOrbitSpinAnim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- ANIMATION 3: SVG CIRCULAR SCROLL PROGRESS FILL AROUND BUTTON --- */
.back-to-top-circle .btt-progress-svg {
  position: absolute;
  inset: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 3;
}

.back-to-top-circle .btt-progress-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2.5px;
}

.back-to-top-circle .btt-progress-bar {
  fill: none;
  stroke: #FFF1A8;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  filter: drop-shadow(0 0 5px rgba(255, 241, 168, 0.85));
  transition: stroke-dashoffset 0.15s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .back-to-top-circle {
    bottom: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .back-to-top-circle .btt-progress-svg {
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
  }
  .back-to-top-circle .btt-orbit-spin {
    inset: -6px;
  }
}


