:root {
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-primary: #e00808;
  --bs-primary-rgb: 224, 8, 8;
}

.hero-section {
  position: relative;
  color: #fff;
  background: linear-gradient(
    120deg,
    #070a1a,
    #102a6b,
    #4a1bb8,
    #c2410c,
    #b45309,
    #0b2b34
  );
  background-size: 400% 400%;
  animation: heroGradientShift 22s ease-in-out infinite;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65rem 34rem at 12% 18%, rgba(180, 83, 9, 0.30), transparent 60%),
    radial-gradient(60rem 32rem at 85% 14%, rgba(194, 65, 12, 0.26), transparent 58%),
    radial-gradient(60rem 36rem at 78% 88%, rgba(74, 27, 184, 0.22), transparent 62%),
    radial-gradient(52rem 28rem at 30% 85%, rgba(224, 8, 8, 0.20), transparent 62%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 1;
}

.hero-section > *:not(.hero-bg-video) {
  position: relative;
}

.hero-title {
  color: #fff;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.78);
}

#hero .hero-lead {
  color: #fff;
}

.hero-swiper {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-swiper__img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
}

.hero-cta {
  background-color: var(--bs-primary) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #fff !important;
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: #c80707 !important;
  border-color: #fff !important;
  color: #fff !important;
}

.video-section {
  background: #061a3a;
  color: #fff;
}

.video-section .video-section__title {
  color: #fff;
}

.video-section .video-section__list,
.video-section .video-section__list li {
  color: #fff;
}

.video-section .video-section__list .fw-semibold {
  color: #fde047;
}

.page-personalities {
  background: #f8f9fa;
}

.personality-card__img {
  object-fit: cover;
  object-position: top center;
}

.page-videos__band--accent {
  background: #061a3a;
}

.video-keypoints-section .video-keypoints-section__list {
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #fff;
}

.video-keypoints-section .row > .col-lg-6 + .col-lg-6 h3.h5 {
  color: #fff;
}

.site-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.footer-top {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  padding-top: 2rem;
}

.footer-headline {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 5rem;
}

@media (max-width: 576px) {
  .footer-headline {
    font-size: 3rem;
  }
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
}

.footer-aux-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-aux-nav a,
.footer-links a,
.footer-social a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-aux-nav a:hover,
.footer-links a:hover,
.footer-social a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-aux-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-aux-nav a:hover {
  background: var(--bs-primary);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.95rem;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

/* Footer nav: two columns (same order as header, filled top-to-bottom per column) */
.footer-links--site-nav {
  column-count: 2;
  column-gap: 1.5rem;
}

.footer-links--site-nav li {
  break-inside: avoid;
}

@media (min-width: 992px) {
  .footer-links--site-nav {
    column-gap: 2rem;
  }
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.footer-address,
.footer-contact,
.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
}

.footer-province-logo {
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.footer-map {
  min-height: 240px;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  min-height: 240px;
  border: 0;
  border-radius: 0.75rem;
  background: #e2e8f0;
}

@keyframes heroGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section {
    animation: none;
  }
}

.site-header {
  z-index: 1030;
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
}

.site-header .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo {
  display: block;
  height: 3.5rem;
  width: auto;
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-header.is-scrolled .site-logo {
  transform: scale(0.75);
}

.site-header .nav-link {
  font-weight: 500;
  color: var(--bs-body-color);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: var(--bs-primary);
}

.site-header .nav-link.active {
  color: var(--bs-primary);
}

.site-header .nav-link--disabled,
.site-header .nav-link--disabled.active {
  color: rgba(33, 37, 41, 0.45);
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.footer-links .footer-link--disabled {
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.site-header .btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #c80707;
  --bs-btn-hover-border-color: #c80707;
  --bs-btn-active-bg: #b00606;
  --bs-btn-active-border-color: #b00606;
}

.site-header__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__social-link {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(6, 26, 58, 0.14);
  background: #fff;
  color: #061a3a;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-header__social-link:hover,
.site-header__social-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(6, 26, 58, 0.16);
  border-color: rgba(6, 26, 58, 0.22);
  outline: none;
}

.site-header__social i {
  font-size: 1.05rem;
}

.site-header__social-link--facebook {
  color: #1877f2;
}

.site-header__social-link--facebook:hover,
.site-header__social-link--facebook:focus-visible {
  border-color: rgba(24, 119, 242, 0.55);
  color: #1877f2;
}

.site-header__social-link--youtube {
  color: #ff0000;
}

.site-header__social-link--youtube:hover,
.site-header__social-link--youtube:focus-visible {
  border-color: rgba(255, 0, 0, 0.55);
  color: #ff0000;
}

.site-header__social-link--x {
  color: #111827;
}

.site-header__social-link--x:hover,
.site-header__social-link--x:focus-visible {
  border-color: rgba(17, 24, 39, 0.45);
  color: #111827;
}

@media (max-width: 575.98px) {
  .site-header__actions {
    flex-direction: column;
  }
}

.demo-swiper {
  max-width: 36rem;
}

.hero-stats__title {
  font-size: 1.25rem;
  font-weight: 600;
  display: inline-block;
  background: #0b682e;
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
}

.hero-stats__rotator {
  position: relative;
  border-radius: 0.75rem;
  background: #f99808;
  overflow: hidden;
  min-height: 4.25rem;
}

/* transform duration: keep equal to HERO_TRANSITION_MS in assets/js/main.js (hero sync) */
.hero-stats__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 1.25rem;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(120%);
  transition: transform 1200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1200ms ease;
  will-change: transform, opacity;
}

.hero-stats__slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats__slide.is-exiting {
  opacity: 0;
  transform: translateY(-120%);
}

.hero-stats__label {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: #000;
}

.hero-stats__label-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.hero-stats__label-wrap .hero-stats__label {
  flex: none;
  display: block;
}

.hero-stats__hint {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: #000;
}

.hero-stats__slide:has(.hero-stats__hint) {
  align-items: flex-start;
}

.hero-stats__slide:has(.hero-stats__hint) .hero-stats__value {
  margin-top: 0.1rem;
}

.hero-stats__value {
  flex-shrink: 0;
  font-weight: 600;
  background: transparent;
  color: #000;
  padding: 0.15rem 0.55rem;
  border-radius: 0.5rem;
  white-space: nowrap;
  line-height: 1.2;
}

.case-provincial-section__title {
  background-color: #134878;
  color: #fff;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  max-width: none;
}

.case-provincial-section__body {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52rem;
}

.stats-band {
  padding-top: 16px;
  padding-bottom: 16px;
}

.stats-band__item {
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-band__label {
  margin-top: 0.35rem;
  font-size: 1.15rem;
  font-weight: 500;
  opacity: 0.9;
}

.stats-band__value {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.health-challenges__title {
  text-align: center;
}

.health-challenges-section .health-challenges__title {
  color: #000;
}

.health-challenges-section .health-challenges__lead {
  color: #000;
}

.health-challenges-section .health-challenges__item-title {
  color: #000;
}

.health-challenges-section .health-challenges__item-desc {
  color: #000;
}

.key-challenges-section__title {
  background-color: #134878;
  color: #fff;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  text-align: left;
}

.key-challenges-section__lead {
  line-height: 1.65;
  text-align: left;
}

.key-challenges-section__topic + .key-challenges-section__topic {
  margin-top: 1.5rem;
}

.key-challenges-section__subheading {
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
}

.key-challenges-section__bullets {
  padding-left: 1.25rem;
  margin-bottom: 0;
  color: var(--bs-secondary-color);
}

.key-challenges-section__bullets li {
  line-height: 1.65;
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-animated {
  opacity: 1;
}

.health-challenges__list {
  list-style: none;
  padding-left: 0;
}

.health-challenges__item + .health-challenges__item {
  margin-top: 1.25rem;
}

.health-challenges__item-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 0.35rem;
}

.health-challenges__item-desc {
  color: var(--bs-secondary-color);
}

@media (max-width: 575.98px) {
  .hero-stats__rotator {
    min-height: 6.5rem;
  }

  .hero-stats__slide {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-stats__label {
    flex: 0 1 auto;
  }

  .hero-stats__label-wrap {
    flex: 0 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats__slide {
    transition: none;
    transform: none;
  }
}

/* Law & Order page */
.page-law-order {
  background: #f8f9fa;
}

.law-order-province-structure {
  background: #f99808;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.law-order-province-structure h2 {
  color: #000;
}

.law-order-province-structure .text-secondary {
  color: rgba(0, 0, 0, 0.88) !important;
}

.law-order-province-structure strong {
  color: #000;
}

/* Law & Order — LHC / courts horizontal stat cards */
.law-order-lhc-infographic__row {
  --law-lhc-card-radius: 0.75rem;
}

.law-order-lhc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.85rem;
  border-radius: var(--law-lhc-card-radius);
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.2);
  min-height: 11rem;
}

@media (min-width: 992px) {
  .law-order-lhc-card {
    padding: 1.35rem 1rem;
    min-height: 12rem;
  }
}

.law-order-lhc-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.law-order-lhc-card__label {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  flex: 1 1 auto;
}

.law-order-lhc-card__value {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.law-order-lhc-card--1 {
  background: #061a3a;
}

.law-order-lhc-card--2 {
  background: #134878;
}

.law-order-lhc-card--3 {
  background: #0f766e;
}

.law-order-lhc-card--4 {
  background: #9f1239;
}

.law-order-lhc-infographic--deficits .law-order-lhc-card {
  background: #061a3a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  --ki-value: #ffffff;
  --ki-label: rgba(255, 255, 255, 0.85);
}

.law-order-lhc-infographic--deficits .law-order-lhc-card .health-ki-metric {
  width: 100%;
  box-sizing: border-box;
}

.law-order-lhc-infographic--deficits .law-order-lhc-card__icon {
  display: none;
}

.law-order-lhc-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffc800;
}

.law-order-lhc-infographic--deficits .law-order-lhc-card__title {
  width: 100%;
}

.law-order-lhc-card__text {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
}

.law-order-lhc-infographic--deficits .law-order-lhc-card__text {
  width: 100%;
}

/* Profile — top summary cards (same palette + icon treatment as Courts & caseload overview) */
.profile-division-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 1.25rem 1.15rem;
  border-radius: 0.75rem;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.2);
  min-height: 100%;
}

@media (min-width: 992px) {
  .profile-division-highlight-card {
    padding: 1.4rem 1.35rem;
  }
}

.profile-division-highlight-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.profile-division-highlight-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 2.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.page-profile main h2.h4,
.page-profile main h3.h4 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.profile-division-highlight-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.profile-division-highlight-card__text:last-child {
  margin-bottom: 0;
}

.profile-division-highlight-card__footnote {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.profile-division-highlight-card a {
  color: #fef08e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-division-highlight-card a:hover {
  color: #fff;
}

.profile-division-highlight-card strong {
  color: #fff;
  font-weight: 700;
}

.profile-division-highlight-card--population-area {
  background: #061a3a;
}

.profile-division-highlight-card--administrative-units {
  background: #134878;
}

/* Home — Health key indicators (solid cards + outline, aligned with LHC stat cards) */
.health-key-indicators {
  background: linear-gradient(180deg, #eef2f7 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(6, 26, 58, 0.06);
  border-bottom: 1px solid rgba(6, 26, 58, 0.06);
}

.health-key-indicators__title {
  color: var(--bs-body-color);
}

.health-ki-card {
  --ki-heading: #fff;
  --ki-value: #fff;
  --ki-value-alt: #fef08e;
  --ki-label: rgba(255, 255, 255, 0.78);
  --ki-outline: rgba(0, 0, 0, 0.22);
  position: relative;
  padding: 1.25rem 1.2rem 1.15rem;
  border-radius: 0.75rem;
  color: #fff;
  border: 2px solid var(--ki-outline);
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.22);
  overflow: hidden;
}

.health-key-indicators .health-ki-card {
  background: #2a2a2a !important;
  --ki-heading: #fff;
  --ki-value: #fff;
  --ki-value-alt: #fff;
  --ki-label: rgba(255, 255, 255, 0.85);
  --ki-outline: rgba(255, 255, 255, 0.18);
}

.health-key-indicators .health-ki-card__name {
  color: #ffc800;
}

.health-key-indicators .health-ki-card__icon {
  display: none;
}

.health-ki-card--1 {
  background: #059669;
  --ki-heading: #ecfdf5;
  --ki-value: #ffffff;
  --ki-value-alt: #bbf7d0;
}

.health-ki-card--2 {
  background: #061a3a;
  --ki-heading: #bfdbfe;
  --ki-value: #f0f9ff;
  --ki-value-alt: #7dd3fc;
}

.health-ki-card--3 {
  background: #9f1239;
  --ki-heading: #ffe4e6;
  --ki-value: #ffffff;
  --ki-value-alt: #fda4af;
}

.health-ki-card--4 {
  background: #c2410c;
  --ki-heading: #fff7ed;
  --ki-value: #ffffff;
  --ki-value-alt: #fde68a;
}

.health-ki-card--5 {
  background: #5b21b6;
  --ki-heading: #ede9fe;
  --ki-value: #faf5ff;
  --ki-value-alt: #e9d5ff;
}

.health-ki-card__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.health-ki-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  font-size: 1.15rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.health-ki-card__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.health-ki-card__hint {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #fff;
}

.health-ki-card__lead {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #fff;
}

.health-ki-card__metrics {
  margin: 0 0 0.85rem;
}

.health-ki-metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.health-ki-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.health-ki-metric__label {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ki-label);
}

.health-ki-metric__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  color: #ffc800;
}

.health-ki-metric--ref .health-ki-metric__value {
  color: #ffc800;
  font-size: 1rem;
  line-height: 1.55;
}

.health-ki-metric__unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ki-label);
  opacity: 0.95;
}

.health-ki-card__burden {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.health-ki-card__burden li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
  color: var(--ki-label);
}

.health-ki-card__burden li:last-child {
  border-bottom: none;
}

.health-ki-card__burden strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ki-value-alt);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.health-ki-card__bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.health-ki-card__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fde68a 0%, #fff 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

@media (max-width: 1199.98px) {
  .health-key-indicators__grid .offset-xl-2 {
    margin-left: 0;
  }
}

.law-order-card,
.education-shortfall-card,
.judicial-stat-card {
  border-radius: 0.85rem;
  padding: 1.5rem 1.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.law-order-card--1,
.education-shortfall-card--1,
.judicial-stat-card--1 {
  background: linear-gradient(155deg, #050505 0%, #0c0c0c 40%, rgba(224, 8, 8, 0.8) 100%);
}

.law-order-card--2,
.education-shortfall-card--2,
.judicial-stat-card--2 {
  background: linear-gradient(155deg, rgba(224, 8, 8, 0.8) 0%, #050505 50%, #0a0a0a 100%);
}

.law-order-card--3,
.education-shortfall-card--3 {
  background: linear-gradient(155deg, #0a0a0a 0%, #050505 55%, rgba(224, 8, 8, 0.8) 100%);
}

.law-order-card__title,
.education-shortfall-card__title,
.judicial-stat-card__title {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.law-order-card__lead,
.education-shortfall-card__lead,
.judicial-stat-card__lead {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

/* Index — Education shortfalls cards (match Critical Deficits styling) */
.education-shortfalls-section .education-shortfall-card {
  background: #061a3a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.education-shortfalls-section .education-shortfall-card--1,
.education-shortfalls-section .education-shortfall-card--2,
.education-shortfalls-section .education-shortfall-card--3 {
  background: #061a3a;
}

.education-shortfalls-section .education-shortfall-card:hover {
  background: #061a3a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.2);
  border-color: rgba(255, 255, 255, 0.16);
}

.education-shortfalls-section .education-shortfall-card__title {
  color: #ffc800;
}

.education-shortfalls-section .education-shortfall-card__lead {
  color: #fff;
}

/* Index — Judicial Stats cards (same gray as Health Indicators .health-ki-card) */
.judicial-stats-section .judicial-stat-card {
  background: #2a2a2a !important;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.judicial-stats-section .judicial-stat-card--1,
.judicial-stats-section .judicial-stat-card--2 {
  background: #2a2a2a !important;
}

.judicial-stats-section .judicial-stat-card:hover {
  background: #2a2a2a !important;
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.22);
  border-color: rgba(255, 255, 255, 0.18);
}

.judicial-stats-section .judicial-stat-card__title {
  color: #ffc800;
}

.judicial-stats-section .judicial-stat-card__lead {
  color: #fff;
}

/* Home — National & Provincial Assembly constituencies */
.constituency-assembly-section {
  background: #fff;
}

.constituency-assembly-section--na {
  background: #061a3a;
  color: #fff;
}

.constituency-assembly-section--pa {
  background: #fff;
  color: var(--bs-body-color);
}

.constituency-assembly-section--na h2,
.constituency-assembly-section--pa h2 {
  color: #fff;
}

.constituency-assembly-section--na .text-secondary,
.constituency-assembly-section--pa .text-secondary {
  color: rgba(255, 255, 255, 0.78) !important;
}

.constituency-assembly-section--pa h2 {
  color: #061a3a;
}

.constituency-assembly-section--pa .text-secondary {
  color: var(--bs-secondary-color) !important;
}

.constituency-assembly-section--pa .constituency-district-card {
  background: #fff;
  border: 2px solid #059669;
  color: var(--bs-body-color);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.constituency-assembly-section--pa .constituency-district-card__title {
  color: #059669;
}

.constituency-assembly-section--pa .constituency-district-card__list {
  color: var(--bs-body-color);
}

.constituency-assembly-section--pa .constituency-district-card__pp {
  color: #059669;
}

.constituency-assembly-section--pa .constituency-district-card:hover {
  background: #e9ecef;
  color: #212529;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-district-card__title,
.constituency-assembly-section--pa .constituency-district-card:hover .constituency-district-card__list,
.constituency-assembly-section--pa .constituency-district-card:hover .constituency-district-card__pp {
  color: #212529;
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-district-card__title {
  color: #061a3a;
}

.constituency-district-card__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.constituency-district-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--bs-body-color);
}

.constituency-assembly-section--pa .constituency-district-card__badge {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #059669;
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-district-card__badge {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.1);
  color: #343a40;
}

.constituency-strips {
  display: grid;
  gap: 0.55rem;
}

.constituency-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.constituency-strip__seat {
  font-weight: 800;
  color: #059669;
}

.constituency-strip__name {
  color: var(--bs-body-color);
}

.constituency-strip__party {
  font-weight: 700;
  color: #059669;
  text-align: right;
}

.constituency-assembly-section--pa .constituency-strip {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.22);
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-strip {
  background: #dee2e6;
  border-color: rgba(0, 0, 0, 0.1);
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-strip__seat {
  color: #134878;
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-strip__name {
  color: #212529;
}

.constituency-assembly-section--pa .constituency-district-card:hover .constituency-strip__party {
  color: #495057;
}

.constituency-assembly-section__subheading {
  color: #061a3a;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #134878;
  display: inline-block;
}

.constituency-district-card {
  background: #f8f9fa;
  border: 1px solid rgba(6, 26, 58, 0.12);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
}

.constituency-district-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #134878;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.constituency-district-card__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--bs-body-color);
}

.constituency-district-card__list li + li {
  margin-top: 0.65rem;
}

.constituency-district-card__list--with-portraits {
  list-style: none;
  padding-left: 0;
}

.constituency-district-card__list .assembly-member-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.assembly-member-portrait {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(6, 26, 58, 0.12);
  flex-shrink: 0;
}

.constituency-strip--with-portrait {
  grid-template-columns: 100px auto minmax(0, 1fr) auto;
  align-items: center;
}

.constituency-district-card__na,
.constituency-district-card__pp {
  font-weight: 700;
  color: #061a3a;
}

.law-order-card__list {
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.law-order-card__list li + li {
  margin-top: 0.45rem;
}

.law-order-card__example {
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.law-order-card__example-label {
  display: block;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

/* Law & Order — Police command row: same solid palette as index Critical Deficits cards */
.law-order-police .law-order-card {
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.22);
}

.law-order-police .law-order-card--1 {
  background: #061a3a;
}

.law-order-police .law-order-card--2 {
  background: #134878;
}

.law-order-police .law-order-card--3 {
  background: #0f766e;
}

/* Law & Order — LHC backlog row: same solid palette as index Critical Deficits */
.law-order-backlog .law-order-card {
  box-shadow: 0 10px 28px rgba(6, 26, 58, 0.22);
}

.law-order-backlog .law-order-card--1 {
  background: #061a3a;
}

.law-order-backlog .law-order-card--2 {
  background: #134878;
}

.law-order-backlog .law-order-card--3 {
  background: #0f766e;
}

/* Law & Order — white panels + data table (street / command summary) */
.law-order-panel {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid rgba(6, 26, 58, 0.1);
  box-shadow: 0 6px 28px rgba(6, 26, 58, 0.08);
  padding: 1rem 1.25rem;
}

@media (min-width: 992px) {
  .law-order-panel {
    padding: 1.5rem 1.75rem;
  }
}

.law-order-panel__list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
  color: var(--bs-secondary-color);
}

.law-order-panel__list li + li {
  margin-top: 0.45rem;
}

.law-order-panel__list strong {
  color: var(--bs-body-color);
}

.law-order-table,
.profile-data-table {
  --law-order-table-navy: #061a3a;
  --law-order-table-navy-mid: #134878;
  font-size: 1rem;
  border-color: rgba(6, 26, 58, 0.15) !important;
}

.law-order-table > :not(caption) > * > *,
.profile-data-table > :not(caption) > * > * {
  border-color: rgba(6, 26, 58, 0.12);
}

.law-order-table thead th,
.profile-data-table thead th {
  background: linear-gradient(135deg, var(--law-order-table-navy) 0%, var(--law-order-table-navy-mid) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-color: rgba(255, 255, 255, 0.12) !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.law-order-table tbody td,
.law-order-table tbody th,
.profile-data-table tbody td,
.profile-data-table tbody th {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.law-order-table tbody tr:nth-child(odd) td,
.law-order-table tbody tr:nth-child(odd) th[scope="row"],
.profile-data-table tbody tr:nth-child(odd) td,
.profile-data-table tbody tr:nth-child(odd) th[scope="row"] {
  background-color: rgba(6, 26, 58, 0.03);
}

.law-order-table__total td,
.law-order-table__total th,
.profile-data-table__total td,
.profile-data-table__total th {
  background: rgba(6, 26, 58, 0.1) !important;
  color: var(--bs-body-color);
  font-weight: 700;
  border-top: 2px solid rgba(6, 26, 58, 0.18);
}

/* Profile — census + chart panels: no outer border or shadow */
.profile-census-panel {
  background: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0.75rem;
}

/* Profile — chart frame (matches division navy tint, no border) */
.profile-chart-frame {
  background: rgba(6, 26, 58, 0.04);
  border-radius: 0.75rem;
  border: none;
  box-shadow: none;
}

/* Profile — District-wise tehsils (#0f766e, flat panel + teal data table) */
.profile-tehsils-section {
  background: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .profile-tehsils-section {
    padding: 1.5rem 1.75rem;
  }
}

.profile-tehsils-table {
  --profile-tehsils: #0f766e;
  --profile-tehsils-deep: #0a5c56;
  font-size: 1rem;
  border-color: rgba(15, 118, 110, 0.2) !important;
}

.profile-tehsils-table > :not(caption) > * > * {
  border-color: rgba(15, 118, 110, 0.14);
}

.profile-tehsils-table thead th {
  background: linear-gradient(
    135deg,
    var(--profile-tehsils-deep) 0%,
    var(--profile-tehsils) 50%,
    #119b8f 100%
  );
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-color: rgba(255, 255, 255, 0.15) !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.profile-tehsils-table tbody td,
.profile-tehsils-table tbody th {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.profile-tehsils-table tbody tr:nth-child(odd) td,
.profile-tehsils-table tbody tr:nth-child(odd) th[scope="row"] {
  background-color: rgba(15, 118, 110, 0.05);
}

.profile-tehsils-table__total td,
.profile-tehsils-table__total th {
  background: rgba(15, 118, 110, 0.14) !important;
  color: var(--bs-body-color);
  font-weight: 700;
  border-top: 2px solid rgba(15, 118, 110, 0.3);
}

/* Profile — Urban / Union Councils (solid #9f1239, matches LHC card 4) */
.profile-uc-section {
  background: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .profile-uc-section {
    padding: 1.5rem 1.75rem;
  }
}

.profile-uc-table {
  --profile-uc: #9f1239;
  font-size: 1rem;
  border-color: rgba(159, 18, 57, 0.22) !important;
}

.profile-uc-table > :not(caption) > * > * {
  border-color: rgba(159, 18, 57, 0.16);
}

.profile-uc-table thead th {
  background: var(--profile-uc);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.profile-uc-table tbody td,
.profile-uc-table tbody th {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.profile-uc-table tbody tr:nth-child(odd) td,
.profile-uc-table tbody tr:nth-child(odd) th[scope="row"] {
  background-color: rgba(159, 18, 57, 0.05);
}

.profile-uc-table__total td,
.profile-uc-table__total th {
  background: rgba(159, 18, 57, 0.12) !important;
  color: var(--bs-body-color);
  font-weight: 700;
  border-top: 2px solid rgba(159, 18, 57, 0.32);
}

.profile-uc-chart {
  --profile-uc: #9f1239;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(159, 18, 57, 0.18);
  background: rgba(159, 18, 57, 0.04);
}

.profile-uc-chart__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
}

.profile-uc-chart__row + .profile-uc-chart__row {
  margin-top: 0.7rem;
}

.profile-uc-chart__label {
  font-weight: 700;
  color: var(--bs-body-color);
}

.profile-uc-chart__bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(159, 18, 57, 0.14);
  overflow: hidden;
}

.profile-uc-chart__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f1239, #e11d48);
}

.profile-uc-chart__value {
  text-align: right;
  font-weight: 800;
  color: var(--profile-uc);
}

@media (max-width: 575.98px) {
  .profile-uc-chart__row {
    grid-template-columns: 5.75rem 1fr 2.75rem;
    gap: 0.5rem;
  }
}

/* Profile — local government: flat panel + infographic row + solid navy table (index LHC card 1) */
.profile-lgov-section {
  background: #fff;
  border: none;
  box-shadow: none;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
  .profile-lgov-section {
    border: 1px solid rgba(6, 26, 58, 0.12);
    box-shadow: 0 10px 32px rgba(6, 26, 58, 0.1);
    border-radius: 0.875rem;
    padding: 1.25rem 1rem 1.35rem;
    margin-bottom: 1.25rem;
  }

  .profile-lgov-section.border-top {
    border-top: 1px solid rgba(6, 26, 58, 0.12) !important;
  }

  .profile-lgov-section .law-order-lhc-card {
    min-height: 0;
  }
}

@media (min-width: 992px) {
  .profile-lgov-section {
    padding: 1.5rem 1.75rem;
  }
}

.profile-lgov-table {
  --profile-lgov-navy: #061a3a;
  font-size: 1rem;
  border-color: rgba(6, 26, 58, 0.2) !important;
}

.profile-lgov-table > :not(caption) > * > * {
  border-color: rgba(6, 26, 58, 0.12);
}

.profile-lgov-table thead th {
  background: var(--profile-lgov-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-color: rgba(255, 255, 255, 0.2) !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.profile-lgov-table tbody td,
.profile-lgov-table tbody th {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.profile-lgov-table tbody tr:nth-child(odd) td {
  background-color: rgba(6, 26, 58, 0.03);
}

/* Law & Order — three-tier infographic (navy gradient: matches video section #061a3a) */
.law-order-tiers {
  --law-tier-navy: #061a3a;
  --law-tier-navy-light: #134878;
}

#law-order-tiers-heading.law-order-tiers__heading,
.law-order-tiers__heading {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bs-body-color);
}

@media (min-width: 768px) {
  .law-order-tiers__heading {
    font-size: 1.5rem;
  }
}

.law-order-tiers__wrap {
  max-width: 40rem;
}

.law-order-tiers__stack {
  display: flex;
  flex-direction: column;
}

.law-order-tier__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--law-tier-navy) 0%, var(--law-tier-navy-light) 100%);
  border-left: 4px solid var(--bs-primary);
  box-shadow: 0 8px 28px rgba(6, 26, 58, 0.35);
}

.law-order-tier__step {
  flex-shrink: 0;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  background: var(--bs-primary);
}

.law-order-tier__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.law-order-tier__title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.law-order-tier__text {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.law-order-tiers__caption {
  font-size: 1rem;
}

.law-order-tiers__connector {
  height: 1.35rem;
  margin-left: 1.2rem;
  border-left: 2px dashed rgba(180, 210, 255, 0.45);
  position: relative;
}

.law-order-tiers__connector::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid rgba(200, 220, 255, 0.65);
}

@media (min-width: 768px) {
  .law-order-tiers__wrap {
    max-width: 44rem;
  }

  .law-order-tier__inner {
    padding: 1.25rem 1.35rem;
  }

  .law-order-tier__title {
    font-size: 1.375rem;
  }

  .law-order-tier__text {
    font-size: 1.125rem;
  }
}

/* Floating WhatsApp link — bottom-right */
.site-chatbot {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  transform: none;
  pointer-events: none;
}

.site-chatbot > * {
  pointer-events: auto;
}

.site-chatbot__toggle {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.5rem 1.25rem 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #25d366 0%, #1fbd5a 55%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(18, 140, 126, 0.35);
  transform: none;
  transform-origin: center center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-chatbot__toggle-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  line-height: 1;
}

.site-chatbot__toggle-inner > i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 1.35rem;
  line-height: 1;
}

.site-chatbot__toggle-text {
  flex-shrink: 0;
  font-family: var(--bs-body-font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.site-chatbot__toggle:hover,
.site-chatbot__toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.45);
  outline: none;
}

.site-chatbot__toggle:active {
  transform: translateY(0);
}

/* Education page */
.page-education {
  background: #f4f6f8;
}

.education-page-section {
  background: transparent;
}

.edu-stat-card {
  background: #fff;
  border: 1px solid rgba(6, 26, 58, 0.08);
}

.edu-stat-card--schools {
  border-left: 4px solid #134878;
}

.edu-stat-card--colleges {
  border-left: 4px solid #059669;
}

.edu-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: rgba(19, 72, 120, 0.08);
  border: 1px solid rgba(19, 72, 120, 0.2);
  color: var(--bs-body-color);
}

.edu-chip--lg {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  background: rgba(6, 26, 58, 0.06);
  border-color: rgba(6, 26, 58, 0.15);
}

.edu-uni-list {
  margin: 0;
  padding-left: 1.15rem;
}

.edu-uni-list li + li {
  margin-top: 0.35rem;
}

.edu-data-table {
  --edu-table: #134878;
  font-size: 0.95rem;
  border-color: rgba(19, 72, 120, 0.18) !important;
}

.edu-data-table > :not(caption) > * > * {
  border-color: rgba(19, 72, 120, 0.12);
}

.edu-data-table thead th {
  background: var(--edu-table);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.edu-data-table tbody tr:nth-child(odd) td {
  background-color: rgba(19, 72, 120, 0.04);
}

.edu-data-table__total th {
  background: rgba(19, 72, 120, 0.1) !important;
  font-weight: 700;
  border-top: 2px solid rgba(19, 72, 120, 0.28);
}

.edu-chart-frame {
  position: relative;
  min-height: 260px;
  background: #fff;
}

.edu-chart-frame canvas {
  max-height: 320px;
}

/* Health page */
.page-health {
  background: #f0f4f3;
}

.health-page-section {
  background: transparent;
}

.health-stat-card {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.health-stat-card--facilities {
  border-left: 4px solid #0f766e;
}

.health-stat-card--sources {
  border-left: 4px solid #134878;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: var(--bs-body-color);
}

.health-chip--lg {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.health-facilities-callout {
  background: #0f766e;
  color: #fff;
}

.health-facilities-callout .text-secondary {
  color: rgba(255, 255, 255, 0.82) !important;
}

.health-facilities-callout .health-chip {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.health-facilities-callout .health-chip .text-secondary {
  color: rgba(255, 255, 255, 0.82) !important;
}

.health-source-list {
  margin: 0;
  padding-left: 1.15rem;
}

.health-source-list li + li {
  margin-top: 0.4rem;
}

.health-data-table {
  --health-table: #0f766e;
  font-size: 0.95rem;
  border-color: rgba(15, 118, 110, 0.2) !important;
}

.health-data-table > :not(caption) > * > * {
  border-color: rgba(15, 118, 110, 0.12);
}

.health-data-table thead th {
  background: var(--health-table);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.health-data-table tbody tr:nth-child(odd) td {
  background-color: rgba(15, 118, 110, 0.04);
}

.health-data-table__total th,
.health-data-table__total td {
  background: rgba(15, 118, 110, 0.1) !important;
  font-weight: 700;
  border-top: 2px solid rgba(15, 118, 110, 0.28);
}

.health-data-table--striped tbody tr:nth-child(odd) td {
  background-color: rgba(15, 118, 110, 0.06);
}

.health-chart-frame {
  position: relative;
  min-height: 280px;
  background: #fff;
}

.health-chart-frame--short {
  min-height: 240px;
}

.health-chart-frame canvas {
  max-height: 340px;
}

.health-media-placeholder {
  min-height: 200px;
  border: 2px dashed rgba(15, 118, 110, 0.25);
  background: rgba(15, 118, 110, 0.04);
}

/* Industry page — brand navy tables + charts */
.page-industry {
  background: #f8f9fb;
}

.page-mianwali-district {
  background: #f8f9fb;
}

.industry-data-table {
  --industry-table: #134878;
  font-size: 0.95rem;
  border-color: rgba(19, 72, 120, 0.22) !important;
}

.industry-data-table > :not(caption) > * > * {
  border-color: rgba(19, 72, 120, 0.12);
}

.industry-data-table thead th {
  background: var(--industry-table);
  color: #fff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.industry-data-table tbody tr:nth-child(odd) td {
  background-color: rgba(19, 72, 120, 0.04);
}

.industry-data-table__total th,
.industry-data-table__total td {
  background: rgba(19, 72, 120, 0.12) !important;
  font-weight: 700;
  border-top: 2px solid rgba(19, 72, 120, 0.35);
}

.industry-chart-frame {
  position: relative;
  min-height: 260px;
  background: #fff;
}

.industry-chart-frame--short {
  min-height: 220px;
}

.industry-chart-frame canvas {
  max-height: 320px;
}

/* Local Issues page */
.page-local-issues {
  background: #f8f9fb;
}

/* Full-width district bands (Jhang, Toba Tek Singh, division notes) */
.local-issues-band {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.75rem 0;
}

/* Legacy breakout when band is nested inside a padded wrapper */
.local-issues-body .local-issues-band {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.page-local-issues > .local-issues-band {
  position: static;
  left: auto;
  right: auto;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.local-issues-band--okara {
  background-color: #e9ecef;
}

.local-issues-band--pakpattan {
  background-color: #fff4e8;
  border-top: 1px solid rgba(200, 120, 40, 0.12);
  border-bottom: 1px solid rgba(200, 120, 40, 0.12);
}

.local-issues-band--chiniot {
  background-color: #f0f7f4;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
  border-bottom: 1px solid rgba(5, 150, 105, 0.12);
}

.local-issues-band--notes {
  background-color: #eef0fb;
  border-top: 1px solid rgba(67, 56, 202, 0.1);
  border-bottom: 1px solid rgba(67, 56, 202, 0.1);
}

.local-issues-district--in-band {
  background-color: transparent;
  border-color: transparent;
  margin-bottom: 0;
}

/* Top band: solid brand blue (no gradient / animation vs index #hero) */
.local-issues-hero.hero-section {
  background: #134878;
  animation: none;
}

.local-issues-hero.hero-section::before {
  display: none;
}

.local-issues-hero.hero-section .hero-lead strong {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
}

/* Shared page hero (same look as Local Issues hero) */
.page-hero.hero-section {
  background: #134878;
  animation: none;
}

.page-hero.hero-section::before {
  display: none;
}

.page-hero.hero-section .hero-lead strong {
  color: rgba(255, 255, 255, 0.98);
  font-weight: 700;
}

.local-issues-jump {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .local-issues-jump {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

.local-issues-jump__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.local-issues-jump__capsules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.local-issues-jump__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #061a3a;
  text-decoration: none;
  background: #fff;
  border: 2px solid #134878;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(6, 26, 58, 0.12);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.local-issues-jump__pill:hover,
.local-issues-jump__pill:focus-visible {
  color: #fff;
  background: #134878;
  border-color: #134878;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(19, 72, 120, 0.35);
  outline: none;
}

.local-issues-jump__pill:active {
  transform: translateY(0);
}

.local-issues-prose {
  max-width: 52rem;
}

.local-issues-prose p {
  line-height: 1.65;
}

.local-issues-district {
  padding: 1.5rem 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
}

.local-issues-district--last {
  margin-bottom: 0;
}

.local-issues-district h3 + p,
.local-issues-district h3 + ul {
  margin-top: 0.5rem;
}

.local-issues-short {
  background: rgba(6, 26, 58, 0.06);
  border: 1px solid rgba(6, 26, 58, 0.1);
  color: var(--bs-body-color);
}

.local-issues-short a {
  font-weight: 600;
}

/* Districts index: full-card links */
.district-card-link {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.district-card-link:hover .page-districts-card,
.district-card-link:focus-visible .page-districts-card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.district-card-link:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}


/* === Inline styles consolidated from HTML/PHP === */

/* --- Home (index.html) --- */
#hero {
      background: #000;
    }

    .hero-lead .hero-lead__number {
      color: #ffc800;
      font-weight: 700;
    }

    .stats-band {
      background-color: #061a3a !important;
    }

    /* Override main.css: .law-order-lhc-infographic--deficits .law-order-lhc-card { background: ... } */
    .law-order-lhc-infographic--deficits .law-order-lhc-card--1 {
      background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/governance/sewerage.jpg") !important;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: transparent !important;
      color: #fff;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card--2 {
      background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/governance/road.jpg") !important;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: transparent !important;
      color: #fff;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card--3 {
      background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/governance/water.jpg") !important;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: transparent !important;
      color: #fff;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card--4 {
      background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/governance/poverty-rate.jpg") !important;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: transparent !important;
      color: #fff;
    }

    /* Governance Deficits: increase card height for new imagery */
    .law-order-lhc-infographic--deficits .law-order-lhc-card {
      min-height: 29rem;
    }

    @media (min-width: 992px) {
      .law-order-lhc-infographic--deficits .law-order-lhc-card {
        min-height: 31rem;
      }
    }

    /* Override main.css: .health-key-indicators .health-ki-card { background: ... !important; } */
    .health-key-indicators .health-ki-card--1,
    .health-key-indicators .health-ki-card--2,
    .health-key-indicators .health-ki-card--3,
    .health-key-indicators .health-ki-card--4,
    .health-key-indicators .health-ki-card--5 {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: #fff;
    }

    /* Health Indicators: taller cards for imagery */
    .health-key-indicators .health-ki-card {
      min-height: 28rem;
    }

    @media (min-width: 992px) {
      .health-key-indicators .health-ki-card {
        min-height: 30rem;
      }
    }

    .health-key-indicators .health-ki-card--1 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/health-indicators/stunted-growth.jpg") center / cover no-repeat !important;
    }

    .health-key-indicators .health-ki-card--2 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/health-indicators/beds.jpg") center / cover no-repeat !important;
    }

    .health-key-indicators .health-ki-card--3 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/health-indicators/child-health-crisis.jpeg") center / cover no-repeat !important;
    }

    .health-key-indicators .health-ki-card--4 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/health-indicators/health-professionals.jpg") center / cover no-repeat !important;
    }

    .health-key-indicators .health-ki-card--5 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/health-indicators/Teaching-specialized-Hospitals.jpeg") center / cover no-repeat !important;
    }

    /* Judicial Stats: vertical background images + readable overlay */
    .judicial-stats-section .judicial-stat-card {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: #fff;
      min-height: 22rem;
    }

    .judicial-stats-section strong {
      color: #ffc800;
    }

    @media (min-width: 992px) {
      .judicial-stats-section .judicial-stat-card {
        min-height: 24rem;
      }
    }

    .judicial-stats-section .judicial-stat-card--1 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/lhc.jpeg") center / cover no-repeat !important;
    }

    .judicial-stats-section .judicial-stat-card--2 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/lower-courts.jpg") center / cover no-repeat !important;
    }

    .judicial-stats-section .judicial-stat-card--3 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/crime.jpg") center / cover no-repeat !important;
    }

    /* Keep Judicial Stats image backgrounds on hover (override main.css hover bg) */
    .judicial-stats-section .judicial-stat-card--1:hover {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/lhc.jpeg") center / cover no-repeat !important;
    }

    .judicial-stats-section .judicial-stat-card--2:hover {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/lower-courts.jpg") center / cover no-repeat !important;
    }

    .judicial-stats-section .judicial-stat-card--3:hover {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/judicial-stats/crime.jpg") center / cover no-repeat !important;
    }

    /* Override main.css: .education-shortfalls-section .education-shortfall-card { background: ... } */
    .education-shortfalls-section .education-shortfall-card--1,
    .education-shortfalls-section .education-shortfall-card--2,
    .education-shortfalls-section .education-shortfall-card--3 {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      color: #fff;
    }

    .education-shortfalls-section .education-shortfall-card {
      min-height: 22rem;
    }

    @media (min-width: 992px) {
      .education-shortfalls-section .education-shortfall-card {
        min-height: 24rem;
      }
    }

    /* Darken image slightly more on hover (only for image-backed cards) */
    .law-order-lhc-infographic--deficits .law-order-lhc-card,
    .health-key-indicators .health-ki-card,
    .judicial-stats-section .judicial-stat-card,
    .education-shortfalls-section .education-shortfall-card {
      position: relative;
      overflow: hidden;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card::before,
    .health-key-indicators .health-ki-card::before,
    .judicial-stats-section .judicial-stat-card::before,
    .education-shortfalls-section .education-shortfall-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.18);
      opacity: 0;
      transition: opacity 180ms ease-in-out;
      pointer-events: none;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card:hover::before,
    .health-key-indicators .health-ki-card:hover::before,
    .judicial-stats-section .judicial-stat-card:hover::before,
    .education-shortfalls-section .education-shortfall-card:hover::before {
      opacity: 1;
    }

    .law-order-lhc-infographic--deficits .law-order-lhc-card > *,
    .health-key-indicators .health-ki-card > *,
    .judicial-stats-section .judicial-stat-card > *,
    .education-shortfalls-section .education-shortfall-card > * {
      position: relative;
      z-index: 1;
    }

    .education-shortfalls-section .education-shortfall-card--1 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/edu-shortfalls/out-of-school.jpg") center / cover no-repeat !important;
    }

    .education-shortfalls-section .education-shortfall-card--2 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/edu-shortfalls/net-enrolment.jpg") center / cover no-repeat !important;
    }

    .education-shortfalls-section .education-shortfall-card--3 {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
        url("../images/edu-shortfalls/access-to-school.jpg") center / cover no-repeat !important;
    }

    /* Hero: background video (keep right-side images) */
    #hero.hero-section {
      overflow: hidden;
      background: #000;
      animation: none;
    }

    #hero.hero-section::before {
      z-index: 1;
      opacity: 0.35;
    }

    #hero .hero-bg-video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      opacity: 0.72;
      pointer-events: none;
      background: #000;
    }

    /* Keep video visible but protect text contrast */
    #hero.hero-section .container {
      position: relative;
      z-index: 1;
    }

    #hero.hero-section .col-lg-8 {
      background: rgba(0, 0, 0, 0.75);
      border-radius: 16px;
      padding: 1rem 1.25rem;
    }

/* --- Proposal & budget (province-budget.html) --- */
.budget-hero {
      /* Match other pages' top band (see .page-hero.hero-section in main.css) */
      background: #134878;
      animation: none;
      color: #fff;
    }

    .budget-card {
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.10);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
      transition: transform 140ms ease, box-shadow 140ms ease, background 160ms ease, border-color 160ms ease;
    }

    .budget-card--clickable {
      position: relative;
      cursor: pointer;
    }

    /* Hover effect (white cards): subtle tint + lift */
    .budget-card:not(.budget-card--summary):hover {
      background: linear-gradient(180deg, #ffffff 0%, rgba(19, 72, 120, 0.06) 100%);
      border-color: rgba(19, 72, 120, 0.22);
      transform: translateY(-2px);
      box-shadow: 0 22px 62px rgba(2, 8, 23, 0.14);
    }

    /* Match department pages: dark blue summary cards */
    .budget-card--summary {
      position: relative;
      background: linear-gradient(135deg, #0b3a66 0%, #134878 55%, #0a2d4f 100%);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 16px 48px rgba(2, 8, 23, 0.18);
      background-size: 140% 140%;
      background-position: 0% 0%;
      overflow: hidden;
    }

    .budget-card--summary:hover {
      background: linear-gradient(135deg, #0f172a 0%, #334155 55%, #0b1220 100%);
      border-color: rgba(255, 255, 255, 0.14);
      transform: translateY(-2px);
      box-shadow: 0 20px 62px rgba(2, 8, 23, 0.24);
    }

    .budget-card--summary .budget-card__label,
    .budget-card--summary .budget-card__value,
    .budget-card--summary .budget-card__hint {
      transition: transform 220ms ease, opacity 220ms ease;
      will-change: transform, opacity;
    }

    .budget-card--summary .budget-card__value {
      transition-delay: 35ms;
    }

    .budget-card--summary .budget-card__hint {
      transition-delay: 65ms;
    }

    .budget-card--summary:hover .budget-card__label,
    .budget-card--summary:hover .budget-card__value,
    .budget-card--summary:hover .budget-card__hint {
      transform: translateY(-4px);
    }

    .budget-card__hover-icon {
      position: absolute;
      right: 14px;
      bottom: 12px;
      font-size: 2.25rem;
      color: rgba(255, 255, 255, 0.26);
      transform: translate(16px, 16px) scale(1);
      transform-origin: right bottom;
      opacity: 0;
      transition: transform 260ms ease, opacity 260ms ease;
      pointer-events: none;
      will-change: transform, opacity;
    }

    .budget-card__hover-icon--img {
      font-size: 0;
      color: transparent;
      width: 70px;
      height: auto;
      object-fit: contain;
      display: block;
    }

    /* CM / Governor / Assembly / Courts: larger white-outline hover art (no filter) */
    .budget-card__hover-icon--img.budget-card__hover-icon--special {
      width: 100px;
    }

    .budget-card--summary:hover .budget-card__hover-icon {
      transform: translate(0, 0) scale(1.28);
      opacity: 1;
      color: rgba(255, 255, 255, 0.34);
    }

    .budget-card__label {
      margin: 0;
      font-weight: 800;
      color: #0f172a;
      font-size: 1.15rem;
      letter-spacing: 0.2px;
    }

    .budget-card__value {
      margin: 0.35rem 0 0.35rem;
      font-weight: 900;
      color: #0b3a66;
      letter-spacing: 0.2px;
      font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.85rem);
      line-height: 1.15;
    }

    .budget-card--summary .budget-card__label {
      /* Same yellow as "Proposed Province" (Bootstrap text-warning) */
      color: var(--bs-warning);
    }

    .budget-card--summary .budget-card__value {
      color: #ffffff;
    }

    .budget-card__hint {
      margin: 0.6rem 0 0;
      color: rgba(15, 23, 42, 0.75);
      font-size: 0.95rem;
      line-height: 1.45;
    }

    .budget-card--summary .budget-card__hint {
      color: rgba(255, 255, 255, 0.80);
    }

    .budget-card--summary .budget-card__hint a {
      color: var(--bs-warning) !important;
    }

    .budget-card--summary .budget-card__hint a:hover,
    .budget-card--summary .budget-card__hint a:focus {
      color: var(--bs-warning) !important;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .budget-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(255, 200, 0, 0.16);
      border: 1px solid rgba(255, 200, 0, 0.22);
      color: #b45309;
      flex: 0 0 auto;
    }

    .budget-card--summary .budget-icon {
      background: rgba(255, 255, 255, 0.10);
      border-color: rgba(255, 255, 255, 0.16);
      color: #ffffff;
    }

    /* Department-wise Expenses (premium table look) */
    .dept-expenses-table {
      border: 1px solid rgba(255, 255, 255, 0.70);
      border-radius: 14px;
      background: #134878; /* single-tone blue */
      overflow: hidden;
      box-shadow: 0 16px 44px rgba(2, 8, 23, 0.20);
    }

    .dept-expenses-table .list-group-item {
      border: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.70); /* white separators */
      padding: 0.85rem 1rem;
      background: transparent;
    }

    .dept-expenses-table .list-group-item:hover,
    .dept-expenses-table .list-group-item:focus {
      background: rgba(255, 255, 255, 0.08);
    }

    .dept-expenses-table .list-group-item:last-child {
      border-bottom: 0;
    }

    /* No zebra/hover tint on rows (single tone) */

    .dept-expenses__name {
      font-weight: 800;
      color: #fff;
    }

    .dept-expenses__value {
      font-weight: 900;
      color: var(--bs-warning);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.18);
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      white-space: nowrap;
      box-shadow: 0 10px 22px rgba(2, 8, 23, 0.18);
    }

    /* Department list (top bullets) */
    .org-shell {
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 16px 40px rgba(2, 8, 23, 0.08);
      overflow: hidden;
    }

    /* Proposed Organizational Setup — light parliament photo (no extra panels) */
    .org-shell.org-shell--parliament {
      border-color: rgba(15, 23, 42, 0.10);
      background-color: #f8fafc;
      background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 250, 252, 0.82) 45%, rgba(241, 245, 249, 0.88) 100%),
        url("../images/bg-images/bg-parliment.png");
      background-size: cover, contain;
      background-position: center, center;
      background-repeat: no-repeat, no-repeat;
    }

    .org-shell__head {
      background: #334155; /* dark gray (slate) */
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      padding: 0.85rem 1rem;
      color: #fff;
    }

    .org-shell__title {
      margin: 0;
      font-weight: 900;
      color: #fff;
    }

    .org-shell__sub {
      margin: 0.25rem 0 0;
      color: rgba(255, 255, 255, 0.78);
      font-size: 0.9rem;
    }

    .dept-bullets {
      margin: 0;
      padding-left: 1.1rem;
      column-count: 1;
      column-gap: 2rem;
    }

    @media (min-width: 768px) {
      .dept-bullets {
        column-count: 2;
      }
    }

    @media (min-width: 992px) {
      .dept-bullets {
        column-count: 3;
      }
    }

    .dept-bullets li {
      break-inside: avoid;
      padding: 0.08rem 0;
      margin: 0;
      color: #0f172a;
      font-weight: 400;
      font-size: 0.88rem;
      line-height: 1.2;
    }

    .dept-bullets li.is-key a {
      color: #134878;
      font-weight: 800;
    }

    .dept-bullets a {
      color: inherit;
      text-decoration: none;
    }

    .dept-bullets a:hover,
    .dept-bullets a:focus {
      color: #134878;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    /* Intro facts above Organizational Setup */
    .org-context-panel {
      position: relative;
      margin-bottom: 1.25rem;
      padding: 1.15rem 1.2rem 1.2rem 1.45rem;
      border-radius: 14px;
      border: 1px solid rgba(19, 72, 120, 0.14);
      background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 42%, #e8eef6 100%);
      box-shadow: 0 14px 40px rgba(2, 8, 23, 0.07);
      overflow: hidden;
    }

    .org-context-panel::before {
      content: none;
    }

    .org-context {
      margin: 0;
      padding: 0;
      list-style: none;
      color: #334155;
    }

    .org-context li {
      position: relative;
      margin: 0;
      padding: 0.55rem 0 0.55rem 1.35rem;
      line-height: 1.62;
      font-size: clamp(0.9rem, 0.84rem + 0.28vw, 1.02rem);
      font-weight: 400;
      letter-spacing: 0.01em;
      border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .org-context li:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .org-context li:first-child {
      padding-top: 0;
    }

    .org-context li {
      display: flex;
      gap: 0.65rem;
      align-items: flex-start;
      padding-left: 0;
    }

    .org-context__icon {
      flex: 0 0 auto;
      margin-top: 0.2rem;
      color: #134878;
      font-size: 0.95em;
      opacity: 0.95;
    }

    .org-context__text {
      flex: 1 1 auto;
      min-width: 0;
    }

    .org-context strong {
      font-weight: 700;
      color: #0f172a;
    }

    .proposal-section {
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 14px 40px rgba(2, 8, 23, 0.07);
      overflow: hidden;
      margin-bottom: 1.25rem;
    }

    .proposal-section__head {
      background: #134878;
      padding: 0.85rem 1rem;
      color: #fff;
    }

    .proposal-section__title {
      margin: 0;
      font-weight: 900;
      font-size: 1.05rem;
    }

    .proposal-section__body {
      padding: 1rem 1.15rem 1.15rem;
      color: #334155;
      line-height: 1.65;
    }

    .proposal-section__body p:last-child {
      margin-bottom: 0;
    }

    .proposal-section__body ul {
      margin-bottom: 0;
      padding-left: 1.2rem;
    }

    .proposal-section__body li + li {
      margin-top: 0.45rem;
    }

    .proposal-stats {
      margin-bottom: 1rem;
    }

    .financial-setup__lead {
      margin: 0 0 1rem;
      color: #475569;
      line-height: 1.6;
      font-size: 0.95rem;
    }

    /* Keep list items clickable (links) */

    /* Desktop: give cards more vertical breathing room */
    @media (min-width: 992px) {
      .budget-card {
        min-height: 168px;
      }

      .budget-card .d-flex {
        height: 100%;
      }

      .budget-card__label {
        margin-top: 0.1rem;
      }

      .budget-card__value {
        margin-top: 0.55rem;
        margin-bottom: 0.55rem;
      }
    }

/* --- Department budget pages --- */
.budget-hero {
      /* Match other pages' top band (see .page-hero.hero-section in main.css) */
      background: #134878;
      animation: none;
      color: #fff;
    }

    .budget-card {
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.10);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
      transition: transform 140ms ease, box-shadow 140ms ease, background 160ms ease, border-color 160ms ease;
    }

    .budget-card--summary {
      background: linear-gradient(135deg, #0b3a66 0%, #134878 55%, #0a2d4f 100%);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 16px 48px rgba(2, 8, 23, 0.18);
      background-size: 140% 140%;
      background-position: 0% 0%;
    }

    .budget-card--summary:hover {
      background: linear-gradient(135deg, #0f172a 0%, #334155 55%, #0b1220 100%);
      transform: translateY(-2px);
      box-shadow: 0 20px 62px rgba(2, 8, 23, 0.24);
    }

    /* Hover effect (white cards): subtle tint + lift */
    .budget-card:not(.budget-card--summary):hover {
      background: linear-gradient(180deg, #ffffff 0%, rgba(19, 72, 120, 0.06) 100%);
      border-color: rgba(19, 72, 120, 0.22);
      transform: translateY(-2px);
      box-shadow: 0 22px 62px rgba(2, 8, 23, 0.14);
    }
.budget-card__label {
      margin: 0;
      font-weight: 800;
      color: #0f172a;
    }

    .budget-card__value {
      margin: 0.35rem 0 0.35rem;
      font-weight: 900;
      color: #0b3a66;
      letter-spacing: 0.2px;
      font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.85rem);
      line-height: 1.15;
    }

    .budget-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(11, 58, 102, 0.08);
      border: 1px solid rgba(11, 58, 102, 0.16);
      color: #0b3a66;
      flex: 0 0 auto;
    }

    @media (min-width: 992px) {
      .budget-card {
        min-height: 168px;
      }
      .budget-card .d-flex {
        height: 100%;
      }
      .budget-card__value {
        margin-top: 0.55rem;
        margin-bottom: 0.55rem;
      }
    }

    .excel-table {
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 14px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 16px 40px rgba(2, 8, 23, 0.08);
    }

    .excel-table table {
      margin: 0;
    }

    .excel-table thead th {
      background: rgba(11, 58, 102, 0.06);
      color: #0f172a;
      font-weight: 800;
      border-bottom: 1px solid rgba(11, 58, 102, 0.14);
      vertical-align: middle;
      white-space: nowrap;
    }

    .excel-table tbody td {
      vertical-align: middle;
    }

    .excel-row--rollup td {
      font-weight: 900;
      color: #0f172a;
      background: rgba(15, 23, 42, 0.035);
      border-top: 2px solid rgba(11, 58, 102, 0.18);
    }

    .excel-row--rollup.excel-row--grand td {
      background: rgba(11, 58, 102, 0.07);
      border-top-color: rgba(11, 58, 102, 0.28);
    }
  
    /* Table polish */
    .excel-table tbody tr:not(.excel-row--rollup):nth-child(even) td {
      background: rgba(15, 23, 42, 0.02);
    }

    .excel-table tbody tr:not(.excel-row--rollup):hover td {
      background: rgba(11, 58, 102, 0.05);
    }

    .excel-row--rollup td {
      background: rgba(11, 58, 102, 0.06);
      border-top: 2px solid rgba(11, 58, 102, 0.18);
    }

    .excel-row--rollup.excel-row--grand td {
      background: rgba(11, 58, 102, 0.10);
      border-top-color: rgba(11, 58, 102, 0.28);
    }

    /* Summary cards: dark blue with white text */
    .budget-card--summary .budget-card__label {
      color: rgba(255, 255, 255, 0.92);
    }
    .budget-card--summary .budget-card__value {
      color: #ffffff;
    }

    /* Dept table brand colors */
    .excel-table {
      border-radius: 0;
    }

    .excel-table thead th {
      background: #134878;
      color: #fff;
      border-bottom: 0;
    }

    /* Rollup rows (except final Total): dark gray with white text */
    .excel-row--rollup:not(.excel-row--grand) td {
      background: #334155 !important; /* dark gray (slate) */
      color: #fff;
      border-top: 2px solid rgba(255, 255, 255, 0.14);
    }

    /* Last rollup row (Total): blue */
    .excel-row--rollup.excel-row--grand td {
      background: #134878 !important;
      color: #fff;
      border-top: 2px solid rgba(255, 255, 255, 0.18);
    }

/* --- Expense summary --- */
.budget-hero {
      background: #134878;
      animation: none;
      color: #fff;
    }

    .budget-card {
      border-radius: 18px;
      background: #fff;
      border: 1px solid rgba(15, 23, 42, 0.10);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
    }

    .budget-card__label {
      margin: 0;
      font-weight: 800;
      color: #0f172a;
    }

    .budget-card__value {
      margin: 0.35rem 0 0.35rem;
      font-weight: 900;
      color: #0b3a66;
      letter-spacing: 0.2px;
      font-size: clamp(1.15rem, 0.95rem + 0.75vw, 1.7rem);
      line-height: 1.15;
    }

    /* Match province-budget summary cards */
    .budget-card--summary {
      background: linear-gradient(135deg, #0b3a66 0%, #134878 55%, #0a2d4f 100%);
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 16px 48px rgba(2, 8, 23, 0.18);
    }

    .budget-card--summary .budget-card__label {
      color: var(--bs-warning);
    }

    .budget-card--summary .budget-card__value {
      color: #fff;
    }

    .section-shell {
      border: 1px solid rgba(15, 23, 42, 0.10);
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 16px 40px rgba(2, 8, 23, 0.08);
      overflow: hidden;
    }

    .section-shell__head {
      background: #334155; /* dark gray (slate) */
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      padding: 0.9rem 1rem;
    }

    .section-shell__title {
      margin: 0;
      font-weight: 900;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .section-shell__total {
      margin-left: auto;
      font-weight: 900;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.06);
      padding: 0.15rem 0.55rem;
      border-radius: 999px;
      white-space: nowrap;
    }

    .section-shell__sub {
      margin: 0.25rem 0 0;
      color: rgba(255, 255, 255, 0.78);
      font-size: 0.9rem;
    }

    .dept-list a.list-group-item {
      border: 0;
      border-bottom: 1px solid rgba(15, 23, 42, 0.08);
      padding: 0.9rem 1rem;
    }

    .dept-list a.list-group-item:last-child {
      border-bottom: 0;
    }

    .dept-list__value {
      font-weight: 900;
      color: #0b3a66;
      white-space: nowrap;
    }

    .dept-list__name {
      font-weight: 800;
      color: #0f172a;
    }

/* --- Videos page --- */
/* Tabs in page hero (same blue band as profile.html .page-hero.hero-section) */
    .page-videos .page-hero .videos-tabs {
      display: flex;
      flex-wrap: nowrap;
      gap: 0;
      padding: 0;
      margin: 0;
      list-style: none;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.28);
      border-radius: 0;
      box-shadow: none;
    }

    .page-videos .page-hero .videos-tabs .nav-item {
      flex: 1 1 0;
      min-width: 0;
    }

    .page-videos .page-hero .videos-tabs .nav-item + .nav-item {
      border-left: 1px solid rgba(255, 255, 255, 0.22);
    }

    .page-videos .page-hero .videos-tabs .nav-link {
      width: 100%;
      margin: 0;
      border: 0;
      border-radius: 0;
      padding: 0.85rem 0.65rem;
      font-weight: 700;
      font-size: clamp(1.05rem, 3.2vw, 1.35rem);
      line-height: 1.2;
      text-align: center;
      color: rgba(255, 255, 255, 0.92);
      background: transparent;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .page-videos .page-hero .videos-tabs .nav-link:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.14);
    }

    .page-videos .page-hero .videos-tabs .nav-link:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
      z-index: 1;
    }

    .page-videos .page-hero .videos-tabs .nav-link.active {
      color: #0b3a66;
      background: #fff;
      box-shadow: none;
    }

    .page-videos .page-hero .videos-tabs .nav-link.active[aria-controls="videos-pane-vop"] {
      color: #991b1b;
      background: #fff;
    }

    @media (min-width: 576px) {
      .page-videos .page-hero .videos-tabs .nav-link {
        padding: 1rem 1.25rem;
        font-size: clamp(1.15rem, 2.2vw, 1.45rem);
      }
    }

    @media (max-width: 575.98px) {
      .page-videos .page-hero .videos-tabs .nav-link {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    /* Voice of the People heading */
    #voice-of-the-people-heading.vop-heading,
    .vop-heading {
      display: block;
      width: fit-content;
      max-width: 100%;
      background: transparent;
      color: #000;
      font-weight: 800;
      letter-spacing: -0.02em;
      padding: 0 0 0.4rem;
      margin-bottom: 1.5rem;
      border: 0;
      border-bottom: 1px solid #e00808;
      border-radius: 0;
    }

    /* Voice of the People — video section white */
    #videos-pane-vop .video-keypoints-section {
      background-color: #fff;
      color: #212529;
    }

    #videos-pane-vop .page-videos__band--accent {
      background-color: #fff;
    }

    #videos-pane-vop .page-videos__band.border-top {
      border-color: rgba(0, 0, 0, 0.12) !important;
    }

    #videos-pane-vop .video-keypoints-section__list,
    #videos-pane-vop .video-keypoints-section .row > .col-lg-6 + .col-lg-6 h3.h5 {
      color: #212529;
    }

    #videos-pane-vop > .container {
      background: transparent;
    }

    /* Why More Provinces? — video bands match page-hero blue (#134878) */
    #videos-pane-why .video-keypoints-section {
      background-color: #134878;
      color: #fff;
    }

    #videos-pane-why .page-videos__band--accent {
      background-color: #134878;
    }

    #videos-pane-why .page-videos__band.border-top {
      border-color: rgba(255, 255, 255, 0.22) !important;
    }

    #video-keypoints-section-heading.wmp-heading,
    .wmp-heading.display-6 {
      display: block;
      width: fit-content;
      max-width: 100%;
      background: transparent;
      color: #000;
      font-weight: 800;
      letter-spacing: -0.02em;
      padding: 0 0 0.4rem;
      margin-bottom: 1.5rem;
      border: 0;
      border-bottom: 1px solid #134878;
      border-radius: 0;
    }

    #videos-pane-why > .container {
      background: transparent;
    }

    .video-keypoints-section .ratio > video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-keypoints-section .video-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .videos-lazy-sentinel.is-loading .videos-lazy-sentinel__label::before {
      content: "";
      display: inline-block;
      width: 1rem;
      height: 1rem;
      margin-right: 0.5rem;
      vertical-align: -0.15em;
      border: 0.15em solid rgba(100, 116, 139, 0.35);
      border-top-color: rgba(100, 116, 139, 0.9);
      border-radius: 50%;
      animation: videosLazySpin 0.7s linear infinite;
    }

    .videos-lazy-sentinel.is-loading .videos-lazy-sentinel__label {
      color: #64748b;
    }

    .videos-lazy-sentinel.is-done {
      display: none;
    }

    @keyframes videosLazySpin {
      to { transform: rotate(360deg); }
    }

/* --- Videos admin --- */
body { background: #f1f5f9; }
    .admin-card { background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
    .tab-badge-why { background: #134878; }
    .tab-badge-vop { background: #e00808; }

