: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 > * {
  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: clamp(1.85rem, 4.2vw, 4.25rem);
  white-space: nowrap;
}

.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-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 iframe {
  width: 100%;
  min-height: 240px;
  border: 0;
  border-radius: 0.75rem;
}

@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 .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: 3.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__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: 991.98px) {
  .hero-stats__rotator {
    min-height: 5.25rem;
  }

  .hero-stats__slide {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    padding: 0.7rem 0.85rem;
  }

  .hero-stats__label {
    flex: none;
    width: 100%;
    line-height: 1.3;
  }

  .hero-stats__value {
    white-space: normal;
    align-self: flex-start;
    width: 100%;
    padding: 0;
  }
}

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

  .hero-stats__slide {
    font-size: 0.95rem;
  }

  .hero-stats__value {
    font-size: 1.05rem;
  }

  .hero-stats__title {
    font-size: 1.05rem;
  }
}

@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-color: #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-color: #2a2a2a;
  --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-color: #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-color: #061a3a;
}

.education-shortfalls-section .education-shortfall-card:hover {
  background-color: #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-color: #2a2a2a;
  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-color: #2a2a2a;
}

.judicial-stats-section .judicial-stat-card:hover {
  background-color: #2a2a2a;
  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-mandi-bahauddin-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-viewport-width bands (Mianwali, Bhakkar, Sargodha) */
.local-issues-band {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding: 1.75rem 0;
}

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

.local-issues-band--hafizabad {
  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--gujrat {
  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;
}

/* Home hero — Sibi-style */
#hero.hero-home {
  --home-header-h: 5.25rem;
  --home-stats-h: 5.5rem;
  position: relative;
  overflow: hidden;
  padding: 0.65rem 0;
  animation: none;
  background: #000;
}

#hero.hero-home::before {
  display: none;
}

#hero.hero-home .hero-home__bg {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

#hero.hero-home .hero-home__container {
  position: relative;
  z-index: 1;
  height: 100%;
}

@media (min-width: 992px) {
  #hero.hero-home {
    height: calc(100svh - var(--home-header-h) - var(--home-stats-h));
    min-height: 22rem;
    max-height: 36rem;
  }
}

/* Key Challenges: equal-height text + image (Sibi) */
.health-challenges-section .health-challenges__visual {
  margin-top: 0;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 992px) {
  .health-challenges-section .health-challenges__row > [class*="col-"] {
    display: flex;
  }

  .health-challenges-section .health-challenges__list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .health-challenges-section .health-challenges__visual {
    min-height: 0;
    align-self: stretch;
  }
}

/* Home sections: extra space between blocks (Quetta) */
.health-challenges-section,
.law-order-lhc-infographic--deficits,
.health-key-indicators,
.education-shortfalls-section,
.judicial-stats-section,
.video-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.law-order-lhc-infographic--deficits,
.health-key-indicators,
.education-shortfalls-section,
.judicial-stats-section,
.video-section {
  margin-top: 2rem;
}
