:root {
  --primary: #0B2E4A;
  --primary-light: #2845a3;
  --secondary: #2845a3;
  --nav-highlight: #2845a3;
  --accent: #F9A825;
  --background: #F5F7FA;
  --text: #1C1C1C;
  --muted: #566374;
  --surface: #ffffff;
  --surface-primary: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --header-transition: 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  --hover-duration: 220ms;
  --hover-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --pastel-blue: rgba(40, 69, 163, 0.10);
  --pastel-lavender: #E6E6FA;
  --pastel-green: #E8F5E9;
  --site-top-offset: 166px;
  --site-top-reserved-offset: 166px;
}

[data-theme="dark"] {
  --primary: #2845a3;
  --primary-light: #2845a3;
  --secondary: #2845a3;
  --nav-highlight: #2845a3;
  --accent: #fbbf24;
  --background: #0f172a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --surface: #1e293b;
  --surface-primary: #1e293b;
  --surface-secondary: #334155;
  --surface-tertiary: #475569;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-top-offset);
}

body {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--background);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  min-height: 100vh;
  line-height: 1.6;
}

body.has-site-top {
  padding-top: var(--site-top-reserved-offset);
}

.btn-primary,
.bg-primary {
  background-color: var(--nav-highlight) !important;
  border-color: var(--nav-highlight) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2845a3 !important;
  border-color: #2845a3 !important;
}

.btn-outline-primary {
  color: var(--nav-highlight) !important;
  border-color: var(--nav-highlight) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background-color: var(--nav-highlight) !important;
  border-color: var(--nav-highlight) !important;
}

.text-primary {
  color: var(--nav-highlight) !important;
}

.badge.bg-primary {
  background-color: var(--nav-highlight) !important;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: rgba(40, 69, 163, 0.95);
  color: #ffffff;
  padding: 0.75rem 1rem;
  z-index: 1050;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  overflow-anchor: none;
  transition: box-shadow var(--header-transition);
}

.government-brandbar {
  min-height: 120px;
  display: flex;
  align-items: center;
  background: #0f2742;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  transition: min-height var(--header-transition), background var(--header-transition), box-shadow var(--header-transition);
}

.government-brandbar > .container,
.government-brand-container {
  min-height: 120px;
  position: relative;
  transition: min-height var(--header-transition), padding var(--header-transition);
}

.government-brand-container {
  padding-left: clamp(1.5rem, 5vw, 5rem) !important;
  padding-right: clamp(1rem, 4vw, 4rem) !important;
}

.government-brand-link {
  min-width: 0;
  max-width: 100%;
  color: #ffffff;
  gap: 0.9rem;
  transition: gap var(--header-transition), transform var(--header-transition);
}

.government-brand-link:hover,
.government-brand-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.government-brand-seal {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.26), 0 0.65rem 1.4rem rgba(31, 41, 55, 0.22);
  transition: width var(--header-transition), height var(--header-transition), box-shadow var(--header-transition), transform var(--header-transition);
}

.government-brand-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.government-brand-copy strong {
  display: block;
  min-width: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
  transition: font-size var(--header-transition), text-shadow var(--header-transition);
}

.government-brand-copy small {
  display: none;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.government-header-controls {
  position: absolute;
  top: 0.9rem;
  right: 0;
  z-index: 2;
  padding: 0.22rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.45rem 1.15rem rgba(15, 23, 42, 0.12);
  transition: top var(--header-transition), transform var(--header-transition), box-shadow var(--header-transition), background var(--header-transition);
}

.site-top.is-scrolled {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.site-top.is-scrolled .government-brandbar,
.site-top.is-scrolled .government-brandbar > .container,
.site-top.is-scrolled .government-brand-container {
  min-height: 76px;
}

.site-top.is-scrolled .government-brand-container {
  padding-left: clamp(1.25rem, 4vw, 4rem) !important;
}

.site-top.is-scrolled .government-brand-link {
  gap: 0.72rem;
}

.site-top.is-scrolled .government-brand-seal {
  width: 50px;
  height: 50px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0.45rem 1rem rgba(31, 41, 55, 0.18);
}

.site-top.is-scrolled .government-brand-copy strong {
  font-size: clamp(1.25rem, 2.25vw, 1.72rem);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.site-top.is-scrolled .government-header-controls {
  top: 0.55rem;
  transform: scale(0.92);
  transform-origin: top right;
}

.government-header-controls .nav-lang-switch {
  box-shadow: none;
}

.government-header-controls .theme-toggle {
  margin: 0;
  box-shadow: none;
}

.lang-switch .btn {
  min-width: 2.35rem;
  padding: 0.18rem 0.45rem;
  font-size: 0.72rem;
}

.lang-switch .btn.active {
  color: var(--primary) !important;
  background: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.nav-lang-switch {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.62rem;
  background: rgba(255, 255, 255, 0.58);
}

.nav-lang-switch .btn {
  min-width: 2.35rem;
  padding: 0.36rem 0.68rem;
  border: 0 !important;
  border-radius: 0;
  color: #475569 !important;
  background: transparent !important;
  font-size: 0.72rem;
  font-weight: 900;
}

.nav-lang-switch .btn + .btn {
  border-left: 1px solid rgba(148, 163, 184, 0.4) !important;
}

.nav-lang-switch .btn.active {
  color: #334155 !important;
  background: #ffffff !important;
  box-shadow: none;
}

.nav-lang-switch .btn:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.62);
  outline-offset: 2px;
}

[data-theme="dark"] .nav-lang-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nav-lang-switch .btn {
  color: rgba(255, 255, 255, 0.78) !important;
}

[data-theme="dark"] .nav-lang-switch .btn + .btn {
  border-left-color: rgba(255, 255, 255, 0.12) !important;
}

.header .logo {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

.navbar {
  border-top: none;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar .nav-link {
  color: #0f2141;
  padding: 0.58rem 0.88rem;
  border: 0;
  border-radius: 999px;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  font-weight: 500;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.22rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nav-highlight), #2845a3);
  opacity: 0;
  transform: scaleX(0.28);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

[data-theme="dark"] .navbar {
  background: var(--primary) !important;
}

[data-theme="dark"] .navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .navbar .nav-link.active {
  color: #fff;
}

.navbar .nav-link.active {
  color: var(--nav-highlight);
  background: transparent;
  box-shadow: none;
}

.navbar .nav-link-plain,
.navbar .nav-link-plain.active {
  color: #0f2141;
  background: transparent;
  box-shadow: none;
}

.navbar .nav-link-plain.active {
  color: var(--nav-highlight);
}

.navbar .nav-link-plain::after,
.navbar .nav-link-plain.active::after {
  display: none;
}


.navbar .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

[data-theme="dark"] .navbar .nav-link.active {
  color: var(--nav-highlight);
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .navbar .nav-link-plain,
[data-theme="dark"] .navbar .nav-link-plain.active {
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .navbar .nav-link-plain {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .navbar .nav-link-plain.active {
  color: var(--nav-highlight);
}


[data-theme="dark"] .navbar .nav-link::after {
  background: linear-gradient(90deg, var(--nav-highlight), #2845a3);
}

.site-header {
  position: relative;
  z-index: 1;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header > .container {
  min-height: 34px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.government-nav-container {
  min-height: 32px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: clamp(1.5rem, 5vw, 5rem) !important;
  padding-right: clamp(1rem, 4vw, 4rem) !important;
}

[data-theme="dark"] .site-header {
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .navbar-nav .nav-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.42rem;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 0.34rem;
  color: #0b1833;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.site-header .navbar-nav .nav-link::after {
  display: none;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
  background: #0f2742;
  box-shadow: 0 0.25rem 0.7rem rgba(15, 39, 66, 0.24);
}

.site-header .navbar-nav .nav-link.active {
  color: #0b1833;
  background: transparent;
  box-shadow: none;
}

.site-header .navbar-nav .nav-link.active:hover {
  color: #ffffff;
  background: #0f2742;
  box-shadow: 0 0.25rem 0.7rem rgba(15, 39, 66, 0.24);
}

.site-header .navbar-nav > .nav-item > .nav-link.active {
  color: #0b1833 !important;
}

.site-header .navbar-nav > .nav-item > .nav-link.active:hover {
  color: #ffffff !important;
}

.site-header .brand-link {
  min-width: 0;
  max-width: min(390px, calc(100vw - 5.75rem));
  margin-right: 0;
  padding: 0.1rem 0;
}

.brand-link > div:last-child {
  min-width: 0;
}

@media (min-width: 992px) {
  .site-header .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

}

@media (max-width: 991.98px) {
  .government-brandbar,
  .government-brandbar > .container,
  .government-brand-container {
    min-height: 92px;
  }

  .government-brand-seal {
    width: 54px;
    height: 54px;
  }

  .government-brand-copy strong {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .government-brand-copy small {
    font-size: 0.68rem;
  }

  .government-header-controls {
    top: 0.65rem;
    right: 0.75rem;
    gap: 0.65rem !important;
  }

  .site-header .navbar-collapse {
    margin-top: 0;
    padding: 0.75rem 0 0;
    border: 0;
    border-top: 1px solid rgba(15, 33, 65, 0.08);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .site-header .navbar-nav {
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-header .navbar-nav .nav-link {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    justify-content: flex-start;
    padding: 0.72rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 0.5rem;
  }

  .site-header .navbar-nav .nav-link::after {
    left: 0.95rem;
    right: auto;
    width: 2.35rem;
    bottom: 0.42rem;
  }

  .site-header .navbar .nav-link.active {
    transform: none;
  }

  [data-theme="dark"] .site-header .navbar-collapse {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(30, 41, 59, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  }

  .site-header .navbar-section-menu {
    min-width: 100%;
    max-width: none;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .site-header .nav-button-dropdown {
    display: block;
    width: 100%;
  }

  .site-header .nav-button-dropdown .btn-danger {
    width: 100%;
    justify-content: space-between;
    min-height: 2.75rem;
    padding: 0.72rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 0.5rem;
  }

  .site-header .dropdown-toggle::after {
    content: "\f078";
  }

  .site-header .dropdown-toggle.show::after,
  .site-header .dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(180deg);
  }

  .site-header .nav-language-item {
    padding: 0.35rem 0;
  }

  .site-header .nav-theme-item {
    display: flex;
    justify-content: flex-start;
    padding: 0.45rem 0.85rem 0.2rem;
  }
}

@media (max-width: 575.98px) {
  .site-header > .container {
    min-height: 48px;
    gap: 0.65rem !important;
  }

  .government-brand-link {
    gap: 0.75rem !important;
  }

  .government-brandbar,
  .government-brandbar > .container,
  .government-brand-container {
    min-height: 84px;
  }

  .government-brand-seal {
    width: 48px;
    height: 48px;
  }

  .government-brand-copy strong {
    font-size: clamp(1.05rem, 6vw, 1.32rem);
    white-space: normal;
    overflow-wrap: break-word;
  }

  .government-brand-copy small {
    display: none;
  }

  .government-header-controls {
    top: 0.55rem;
    right: 0.65rem;
    transform: scale(0.9);
    transform-origin: top right;
  }
}

@media (max-width: 380px) {
  .government-brand-copy small {
    display: none;
  }
}

.navbar-toggler {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid rgba(11, 46, 74, 0.16);
  border-radius: 0.5rem;
  box-shadow: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  border-color: rgba(40, 69, 163, 0.38);
  box-shadow: 0 10px 22px rgba(15, 33, 65, 0.12);
}

.site-header .dropdown-menu {
  min-width: 220px;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(40, 69, 163, 0.16);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.18);
  opacity: 0;
  transform: translateY(0.4rem) scale(0.98);
  transition: opacity 0.1s ease, transform 0.1s ease, visibility 0.1s ease;
  visibility: hidden;
  z-index: 1060;
}

.site-header .nav-item.dropdown {
  position: relative;
}

.site-header .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.site-header .nav-button-dropdown {
  align-items: center;
  position: relative;
}

.site-header .nav-button-dropdown .btn-danger {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  padding: 0.2rem 0.42rem;
  border-radius: 0.34rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: #0b1833 !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.site-header .nav-button-dropdown .btn-danger:hover,
.site-header .nav-button-dropdown .btn-danger.show {
  color: #ffffff !important;
  background-color: #0f2742 !important;
  border-color: #0f2742 !important;
  box-shadow: 0 0.25rem 0.7rem rgba(15, 39, 66, 0.24);
}

.site-header .nav-button-dropdown .btn-danger.show {
  position: relative;
  z-index: 1001;
}

.site-header .nav-button-dropdown .btn-danger.active {
  color: #ffffff !important;
  background-color: #0f2742 !important;
  border-color: #0f2742 !important;
  box-shadow: 0 0.25rem 0.7rem rgba(15, 39, 66, 0.24);
}

.site-header .nav-button-dropdown .btn-danger.active:hover,
.site-header .nav-button-dropdown .btn-danger.active.show {
  background-color: #0f2742 !important;
  border-color: #0f2742 !important;
}

.site-header .nav-button-dropdown .btn-danger:focus:not(:hover):not(.show) {
  color: #0b1833 !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
}

.site-header .nav-button-dropdown .btn-danger:focus-visible {
  outline: 0;
}

[data-theme="dark"] .site-header .nav-button-dropdown .btn-danger {
  color: rgba(255, 255, 255, 0.85) !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

[data-theme="dark"] .site-header .nav-button-dropdown .btn-danger:hover,
[data-theme="dark"] .site-header .nav-button-dropdown .btn-danger.show {
  color: #ffffff !important;
  background-color: #0f2742 !important;
  border-color: #0f2742 !important;
}

[data-theme="dark"] .site-header .nav-button-dropdown .btn-danger.active {
  color: #ffffff !important;
  background-color: #0f2742 !important;
  border-color: #0f2742 !important;
}

[data-theme="dark"] .site-header .nav-button-dropdown .btn-danger:focus:not(:hover):not(.show) {
  color: rgba(255, 255, 255, 0.85) !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.site-header .dropdown-toggle::after {
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.9;
  transform: translateY(1px) rotate(0deg);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-header .dropdown-toggle.show::after,
.site-header .dropdown-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: translateY(1px) rotate(180deg);
}

.site-header .navbar-section-menu {
  min-width: 224px;
  max-width: 260px;
  margin-top: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(40, 69, 163, 0.16);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.18);
}

.site-header .services-menu-scroll {
  max-height: min(72vh, 34rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-header .dropdown-menu.show,
.site-header .dropdown.show > .dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

@media (min-width: 992px) {
  .site-header .nav-button-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.75rem;
    display: block;
  }

  .site-header .nav-button-dropdown > .dropdown-menu {
    top: calc(100% + 0.08rem) !important;
    bottom: auto !important;
    left: 0 !important;
    transform: translateY(0.12rem) scale(0.98);
  }

  .site-header .nav-item.dropdown:hover > .dropdown-menu,
  .site-header .nav-item.dropdown:focus-within > .dropdown-menu,
  .site-header .nav-item.dropdown.show > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1) !important;
    visibility: visible;
  }

  .site-header .nav-item.dropdown:hover > .dropdown-toggle::after,
  .site-header .nav-item.dropdown:focus-within > .dropdown-toggle::after,
  .site-header .nav-item.dropdown.show > .dropdown-toggle::after {
    opacity: 1;
    transform: translateY(1px) rotate(180deg);
  }

  .site-header .nav-button-dropdown:hover > .btn-danger,
  .site-header .nav-button-dropdown:focus-within > .btn-danger {
    color: #ffffff !important;
    background-color: #0f2742 !important;
    border-color: #0f2742 !important;
  }
}

.site-header .dropdown-item {
  border-radius: 0.42rem;
  padding: 0.58rem 0.7rem;
  color: #14213d;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.site-header .dropdown-divider {
  margin: 0.45rem 0.2rem;
  border-top-color: rgba(30, 64, 175, 0.18);
}

.site-header .dropdown-item:hover {
  background: rgba(40, 69, 163, 0.08);
  color: #2845a3;
}

.site-header .dropdown-item:focus {
  color: #2845a3;
  background: transparent;
  outline: 2px solid rgba(40, 69, 163, 0.28);
  outline-offset: -2px;
}

.site-header .dropdown-item.active {
  color: #2845a3;
  background: rgba(40, 69, 163, 0.06);
  font-weight: 700;
  box-shadow: inset 3px 0 0 #2845a3;
}

.site-header .dropdown-item.active:hover,
.site-header .dropdown-item.active:focus {
  background: rgba(40, 69, 163, 0.09);
}

[data-theme="dark"] .site-header .navbar-section-menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: #1f2937;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .site-header .dropdown-item {
  color: rgba(255, 255, 255, 0.86);
}

[data-theme="dark"] .site-header .dropdown-item:hover {
  color: var(--nav-highlight);
  background: rgba(40, 69, 163, 0.14);
}

[data-theme="dark"] .site-header .dropdown-item:focus {
  color: var(--nav-highlight);
  background: transparent;
  outline-color: rgba(40, 69, 163, 0.32);
}

[data-theme="dark"] .site-header .dropdown-item.active {
  color: var(--nav-highlight);
  background: transparent;
}

[data-theme="dark"] .services-chip-row a,
[data-theme="dark"] .service-directory-card,
[data-theme="dark"] .services-step-card {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: var(--surface);
}

[data-theme="dark"] .services-chip-row a {
  color: rgba(255, 255, 255, 0.88);
}

.brand-link .brand-mark {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: none;
  transition: background var(--transition-normal), box-shadow var(--transition-normal), transform 0.22s ease;
}

.brand-link:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: none;
}

[data-theme="dark"] .brand-link .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #2845a3, var(--secondary));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(249, 168, 37, 0.24);
}

/* Dark mode toggle */
.theme-toggle {
  width: 30px;
  height: 18px;
  background: #ffffff;
  border-radius: 12px;
  position: relative;
  transition: background var(--transition-fast);
  border: 2px solid rgba(148, 163, 184, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  cursor: pointer;
}



.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.5);
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(12px);
  background: #facc15;
}

.theme-toggle:hover {
  background: #f8fafc;
}

[data-theme="dark"] .theme-toggle {
  background: rgba(92, 7, 18, 0.56);
  border-color: rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero {
  min-height: 82vh;
  background:
    linear-gradient(90deg, rgba(8, 24, 40, 0.66), rgba(8, 24, 40, 0.34) 48%, rgba(8, 24, 40, 0.18)),
    url('../images/welcome-hero.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: filter var(--transition-normal);
}

[data-theme="dark"] .hero {
  background: linear-gradient(90deg, rgba(8, 24, 40, 0.66), rgba(8, 24, 40, 0.34) 48%, rgba(8, 24, 40, 0.18)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 30, 0.12);
  transition: background var(--transition-normal);
}

.hero-welcome-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.72;
  animation: hero-grid-drift 18s linear infinite;
}

.shape-container.butterfly-container {
  display: block;
  position: absolute;
  z-index: 4;
  width: 1.85rem;
  height: 1.55rem;
  transform-origin: center;
  --wing-main: #f97316;
  --wing-light: #ffd166;
  --body-color: rgba(15, 33, 65, 0.92);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.28));
  animation: hero-butterfly-float 6.4s ease-in-out infinite;
}

.shape.butterfly {
  display: block;
  width: 100%;
  height: 100%;
}

.shape.butterfly svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.butterfly__wing {
  fill: var(--wing-main);
  transform-box: fill-box;
  transform-origin: center center;
  animation: hero-butterfly-wing-flap 0.88s ease-in-out infinite alternate;
}

.butterfly__wing circle {
  fill: var(--wing-light);
  opacity: 0.92;
}

.butterfly__wing--left {
  transform-origin: right center;
}

.butterfly__wing--right {
  transform-origin: left center;
  animation-delay: -0.08s;
}

.butterfly__body {
  fill: var(--body-color);
  stroke: var(--body-color);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-butterfly-1 {
  top: -0.28em;
  left: 0.68em;
  --wing-main: #f97316;
  --wing-light: #ffd166;
  width: 2.05rem;
  height: 1.7rem;
  rotate: -10deg;
  animation-delay: -1s;
}

.hero-butterfly-2 {
  top: -0.18em;
  left: 43%;
  width: 1.55rem;
  height: 1.28rem;
  --wing-main: #16a34a;
  --wing-light: #86efac;
  rotate: 5deg;
  animation-delay: -3.2s;
}

.hero-butterfly-3 {
  top: -0.24em;
  right: 0.9em;
  width: 1.55rem;
  height: 1.28rem;
  --wing-main: #4f46e5;
  --wing-light: #2845a3;
  rotate: 11deg;
  animation-delay: -4.4s;
}

.brand-link .h5 {
  color: #071b33 !important;
  font-size: clamp(0.94rem, 1.6vw, 1.12rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
  transition: color var(--transition-normal);
}

.brand-link small {
  display: block;
  margin-top: 0.12rem;
  color: #64748b !important;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition-normal);
}

[data-theme="dark"] .brand-link .h5 {
  color: #fff !important;
}

[data-theme="dark"] .brand-link small {
  color: rgba(255, 255, 255, 0.7) !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 6rem 0;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    text-align: left;
    align-items: flex-start;
  }

  .hero-content p {
    margin-left: 0;
  }

  .hero-service-strip {
    justify-content: flex-start;
  }
}

.hero-content h1 {
  display: block;
  position: relative;
  max-width: 820px;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800 !important;
  line-height: 0.98;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.32);
  overflow: visible;
}

.hero-title-animated {
  width: fit-content;
  animation: hero-title-rise 0.8s ease-out both;
}

.hero-title-text {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: hero-eyebrow-rise 0.65s ease-out both;
}

@keyframes hero-grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 44px 22px; }
}

@keyframes hero-butterfly-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  45% { transform: translate3d(0.08rem, -0.1rem, 0); }
  75% { transform: translate3d(-0.06rem, 0.06rem, 0); }
}

@keyframes hero-butterfly-wing-flap {
  0% { transform: scaleX(0.7) rotateY(34deg); opacity: 0.88; }
  100% { transform: scaleX(1.06) rotateY(0deg); opacity: 1; }
}

@keyframes hero-title-rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-eyebrow-rise {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-preview-card {
  min-height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.hero-preview-card .ratio {
  min-height: 250px;
}

.hero-preview-card .meeting-highlight {
  background: var(--pastel-blue);
}

.hero-news-slider {
  padding-bottom: 2rem;
}

.hero-news-slider .card {
  min-height: 124px;
}

.hero-news-slider .carousel-item {
  transition: transform 0.7s ease-in-out;
}

.hero-news-slider img {
  height: 124px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--surface-tertiary);
}

.hero-news-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.hero-news-indicators [data-bs-target] {
  background-color: var(--primary);
  height: 8px;
  width: 8px;
  border-radius: 50%;
  opacity: 0.35;
}

.hero-news-indicators .active {
  opacity: 1;
}

.hero-content p {
  display: block;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: inherit;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

@media (min-width: 992px) {
  .hero-content p {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }
}

.hero-service-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
}

.hero-service-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-search-form .form-control {
  min-width: 0;
}

.hero-search-form {
  width: 100%;
}

.hero-search-form .input-group {
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.hero .btn,
.site-header .nav-link,
.contact-method,
.post-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.hero .btn i,
.site-header .nav-link i,
.contact-method i,
.post-action-btn i {
  flex: 0 0 auto;
}

.hero-search-form .form-control,
.hero-search-form .btn {
  border: none;
}

.hero-search-form .btn {
  border-radius: 0;
  font-weight: 700;
}

.hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.section-header h2 {
  font-weight: 800;
}

.section-header p {
  color: var(--muted);
}

.hero-search-card .service-pill {
  background: var(--pastel-blue);
  border-color: rgba(40, 69, 163, 0.12);
}

.hero-search-card .pill-icon {
  width: 2.6rem;
  height: 2.6rem;
  font-size: calc(1rem * var(--user-text-scale, 1));
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Section header underline animation Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.section-header {
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(249,168,37,0.95), transparent);
  opacity: 0.9;
  animation: naic-glow 3s ease-in-out infinite;
}

@keyframes naic-glow {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleX(0.7); }
  50%      { opacity: 1.0; transform: translateX(-50%) scaleX(1); }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Global card floating design Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-card,
.feature-card,
.info-card,
.service-card,
.qna-index-card,
.qna-past-item,
.calendar-card,
.livestream-card,
.announcements-news-card,
.news-public-card,
.tourism-public-card,
.official-public-card,
.resolution-public-card,
.public-record-card,
.contact-info-card,
.contact-form-card {
  background: var(--surface);
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--hover-duration) var(--hover-ease),
              box-shadow var(--hover-duration) var(--hover-ease),
              border-color var(--hover-duration) var(--hover-ease),
              background-color var(--transition-normal);
  will-change: transform;
}

.hero-card:hover,
.feature-card:hover,
.info-card:hover,
.service-card:hover,
.qna-index-card:hover,
.qna-past-item:hover,
.calendar-card:hover,
.livestream-card:hover,
.announcements-news-card:hover,
.news-public-card:hover,
.tourism-public-card:hover,
.official-public-card:hover,
.resolution-public-card:hover,
.public-record-card:hover,
.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 46, 74, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
  border-color: rgba(11, 46, 74, 0.12);
}

.hero-card {
  position: relative;
  z-index: 1;
}

.livestream-card .livestream-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* Ã¢â€â‚¬Ã¢â€â‚¬ Hover effects Ã¢â‚¬â€ cursor defaults, no pointer-cursor on containers Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.calendar-card .card-body {
  padding: 1.25rem;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekday span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.2rem;
}

.calendar-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 2.25rem;
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 0.55rem;
  background: #f8fafc;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
}

.calendar-cell.empty {
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.calendar-cell.today {
  border-color: rgba(40, 69, 163, 0.45);
}

.calendar-cell.has-meeting::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--secondary);
  transform: translateX(-50%);
}

.calendar-cell.has-holiday {
  border-color: rgba(2, 132, 199, 0.38);
  color: #2845a3;
  background: rgba(40, 69, 163, 0.11);
  font-weight: 800;
}

.calendar-cell.has-holiday::before {
  content: "";
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: #2845a3;
  box-shadow: 0 0 0 2px rgba(40, 69, 163, 0.14);
}

.calendar-cell.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 83, 148, 0.22);
}

.calendar-cell.active::after {
  background: #fff;
}

.calendar-cell.active.has-holiday::before {
  background: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.22);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.calendar-legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  display: inline-block;
  border-radius: 999px;
  flex: 0 0 auto;
}

.calendar-legend-dot.activity {
  background: var(--secondary);
}

.calendar-legend-dot.holiday {
  background: #2845a3;
}

.official-holiday-list {
  border-radius: 1rem;
}

.official-holiday-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(40, 69, 163, 0.12);
  border-radius: 0.75rem;
  background: rgba(40, 69, 163, 0.07);
}

.official-holiday-date {
  width: 3.15rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, #2845a3, #2845a3);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 420px) {
  .calendar-row,
  .calendar-grid {
    gap: 0.3rem;
  }

  .calendar-cell {
    min-height: 1.9rem;
    border-radius: 0.45rem;
    font-size: 0.8rem;
  }

  .calendar-cell.has-holiday::before {
    top: 0.18rem;
    right: 0.18rem;
    width: 0.26rem;
    height: 0.26rem;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f9a825;
  outline-offset: 2px;
}

.card,
.service-card,
.info-card,
.feature-card,
.hero-card,
.service-pill,
.calendar-card,
.livestream-card,
.qna-index-card,
.qna-past-item,
.qna-comment-form,
.fb-post-card {
  cursor: default !important;
}

/* Disable pointer-grab cursor style inside cards too */
.card *,
.service-card *,
.info-card *,
.feature-card *,
.fb-post-card * {
  cursor: inherit;
}

/* Allow pointer cursor only on interactive elements (links, buttons, inputs) */
.card a,
.card button,
.card input,
.card textarea,
.card select,
.service-card a,
.info-card a,
.feature-card a,
.qna-current button,
.qna-current a,
.qna-current input,
.qna-current textarea,
.fb-post-card button,
.fb-post-card a {
  cursor: pointer !important;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Hero Q&A reaction buttons Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.btn-hero-react,
.btn-hero-react-dislike,
.btn-hero-react-comment {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer !important;
  line-height: 1.4;
}

.btn-hero-react:hover,
.btn-hero-react-dislike:hover,
.btn-hero-react-comment:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-hero-react-comment {
  background: transparent;
  border-style: dashed;
}

.btn-hero-react-comment:hover {
  background: rgba(255, 255, 255, 0.1);
  border-style: solid;
}

.btn-hero-react-active {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45) inset;
}

.fb-count {
  font-weight: 700;
  font-size: 0.78rem;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Floating & card transition styles Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-card,
.feature-card,
.info-card,
.service-card,
.service-pill,
.calendar-card,
.livestream-card {
  transition: transform var(--hover-duration) var(--hover-ease),
              box-shadow var(--hover-duration) var(--hover-ease),
              background-color var(--transition-normal);
}

.service-pill:hover,
.calendar-card:hover,
.livestream-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(40, 69, 163, 0.13);
}

.livestream-card iframe {
  border: 0;
}

.livestream-facebook-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid rgba(15, 33, 65, 0.08);
  background: linear-gradient(135deg, #f8fafc, rgba(40, 69, 163, 0.10));
  color: #0f2141;
  text-align: center;
}

.livestream-facebook-panel div {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.livestream-facebook-panel i {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: #2845a3;
}

.livestream-facebook-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.65rem;
  color: #fff;
  background: #2845a3;
  text-decoration: none;
  font-weight: 800;
}

.livestream-facebook-panel a:hover {
  color: #fff;
  background: #2845a3;
}

.service-pill {
  background: var(--pastel-blue);
  border-color: rgba(40, 69, 163, 0.1);
}

.service-pill .pill-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

.section-header h2 {
  font-weight: 800;
}

.section-header p {
  color: var(--muted);
}

.hero-card,
.feature-card,
.info-card,
.service-card,
.event-date {
  background: var(--surface-primary);
}

.card.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--surface-primary);
  border-color: rgba(40, 69, 163, 0.08);
}

.card.info-card,
.card.feature-card {
  background: var(--surface-primary);
}

.service-card .icon {
  width: 72px;
  height: 72px;
  line-height: 72px;
  border-radius: 20px;
  background: var(--pastel-blue);
  color: var(--secondary);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.service-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.2rem;
}

.info-card,
.feature-card,
.service-card {
  min-height: 240px;
}

.event-date {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  background: var(--pastel-blue);
}

.card img {
  object-fit: cover;
  min-height: 220px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 1.65rem 0 1rem;
  color: #e5edf7;
  background:
    linear-gradient(180deg, rgba(30, 58, 95, 0.24), rgba(8, 18, 36, 0) 42%),
    #081224 !important;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2845a3, #2845a3, #2845a3);
}

.site-footer > .container,
.site-footer > .footer-container {
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1500px;
  padding-right: clamp(1rem, 4vw, 2rem);
  padding-left: clamp(1rem, 4vw, 2rem);
}

.footer-cost-panel {
  max-width: 980px;
  margin: 0 auto 3.4rem;
  padding: 1.25rem 1.6rem;
  border: 1px solid rgba(40, 69, 163, 0.38);
  border-radius: 0.8rem;
  color: #00e676;
  background: linear-gradient(135deg, rgba(5, 68, 49, 0.42), rgba(15, 33, 65, 0.34));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.footer-cost-panel span {
  font-weight: 700;
}

.footer-cost-panel strong {
  margin-left: 0.75rem;
  color: #facc15;
  font-size: 1.65rem;
  line-height: 1;
}

.footer-main {
  row-gap: 1.1rem;
  padding-bottom: 1.05rem;
}

.footer-brand {
  color: #fff;
  transition: color 0.22s ease, transform 0.22s ease;
}

.footer-brand:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(40, 69, 163, 0.16);
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.03rem;
  line-height: 1.12;
  font-weight: 800;
}

.footer-brand span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-brand span,
.footer-about,
.footer-bottom,
.site-footer a {
  color: #cbd5e1;
}

.footer-about {
  max-width: 300px;
  margin: 0.75rem 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.footer-socials a:hover {
  color: #fff;
  background: #2845a3;
  box-shadow: 0 8px 18px rgba(40, 69, 163, 0.26);
  transform: translateY(-2px);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h2 {
  position: relative;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.75rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d12027, #f9a825);
}

.site-footer ul {
  display: grid;
  gap: 0.48rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-quick-links ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.site-footer li a::before {
  content: '';
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #f9a825;
  opacity: 0.75;
  transition: transform 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}

.site-footer li a:hover {
  transform: translateX(4px);
}

.site-footer li a:hover::before {
  background: #2845a3;
  opacity: 1;
  transform: scale(1.35);
}

.footer-action-card,
.footer-built-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 0.8rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.footer-action-card {
  width: fit-content;
  min-width: 8.8rem;
  gap: 0.52rem;
  padding: 0.56rem 0.68rem;
  border-radius: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, #334155, #2845a3);
  box-shadow: 0 10px 18px rgba(40, 69, 163, 0.18);
}

.footer-visit-column {
  display: flex;
  justify-content: flex-end;
}

.footer-built-card {
  width: fit-content;
  margin-top: 0;
  gap: 0.38rem;
  padding: 0.38rem 0.55rem;
  border-radius: 0.5rem;
  color: rgba(40, 69, 163, 0.12);
  background: rgba(148, 163, 184, 0.16);
  font-size: 0.68rem;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-bottom-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer-action-card i,
.footer-built-card i {
  width: 1.4rem;
  text-align: center;
}

.footer-built-card i {
  width: 0.82rem;
  font-size: 0.72rem;
}

.footer-action-card span {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
}

.footer-action-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.footer-action-card i {
  width: 0.95rem;
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.74rem;
}

.scroll-top-btn {
  --scroll-progress: 0deg;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1040;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#2845a3 var(--scroll-progress), #d7dee8 0deg);
  color: #2845a3;
  box-shadow: 0 0.85rem 1.8rem rgba(15, 23, 42, 0.26);
  font-size: 1.55rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(0.75rem) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.scroll-top-btn::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.scroll-top-btn i {
  position: relative;
  z-index: 1;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
  box-shadow: 0 1rem 2rem rgba(40, 69, 163, 0.26);
  outline: none;
  transform: translateY(-0.12rem) scale(1.02);
}

.citizen-chat-widget {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1041;
}

.citizen-chat-btn {
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2845a3;
  color: #ffffff;
  box-shadow: 0 0.9rem 1.9rem rgba(40, 69, 163, 0.34);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.citizen-chat-btn:hover,
.citizen-chat-btn:focus-visible {
  background: #2845a3;
  box-shadow: 0 1rem 2.2rem rgba(40, 69, 163, 0.42);
  outline: none;
  transform: translateY(-0.12rem) scale(1.02);
}

.citizen-chat-panel {
  position: absolute;
  left: 0;
  bottom: 4.85rem;
  width: min(22rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 7rem));
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.95rem;
  background: #ffffff;
  box-shadow: 0 1.2rem 3rem rgba(15, 23, 42, 0.24);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.65rem) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.citizen-chat-widget.is-open .citizen-chat-panel {
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.citizen-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: #2845a3;
  color: #ffffff;
}

.citizen-chat-header strong,
.citizen-chat-header span {
  display: block;
}

.citizen-chat-header span {
  font-size: 0.78rem;
  opacity: 0.86;
}

.citizen-chat-close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.citizen-chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(40, 69, 163, 0.06), transparent 9rem),
    #f8fafc;
}

.citizen-chat-message {
  display: flex;
  align-items: flex-end;
}

.citizen-chat-message.is-citizen {
  justify-content: flex-end;
}

.citizen-chat-message.is-admin,
.citizen-chat-message.is-system {
  justify-content: flex-start;
}

.citizen-chat-bubble {
  max-width: min(82%, 17rem);
  border-radius: 1rem;
  padding: 0.68rem 0.78rem;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.08);
}

.citizen-chat-message.is-citizen .citizen-chat-bubble {
  border-bottom-right-radius: 0.28rem;
  background: #2845a3;
  color: #ffffff;
}

.citizen-chat-message.is-admin .citizen-chat-bubble {
  border-bottom-left-radius: 0.28rem;
  background: #ffffff;
  color: #0f172a;
}

.citizen-chat-message.is-system .citizen-chat-bubble {
  max-width: 100%;
  margin: 0 auto;
  background: rgba(40, 69, 163, 0.10);
  color: #075985;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: none;
}

.citizen-chat-composer {
  flex: 0 0 auto;
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
}

.citizen-chat-details {
  font-size: 0.78rem;
}

.citizen-chat-details summary {
  width: max-content;
  cursor: pointer;
  color: #2845a3;
  font-weight: 700;
}

.citizen-chat-detail-grid {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.citizen-chat-detail-grid input,
.citizen-chat-detail-grid select,
.citizen-chat-input-row textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font: inherit;
}

.citizen-chat-detail-grid input,
.citizen-chat-detail-grid select {
  min-height: 2.35rem;
  border-radius: 0.55rem;
  padding: 0.48rem 0.6rem;
}

.citizen-chat-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.65rem;
  gap: 0.45rem;
  align-items: end;
}

.citizen-chat-input-row textarea {
  min-height: 2.65rem;
  max-height: 7rem;
  border-radius: 1.2rem;
  padding: 0.72rem 0.85rem;
  resize: none;
}

.citizen-chat-input-row button {
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2845a3;
  color: #ffffff;
  font-size: 1rem;
}

.citizen-chat-detail-grid input:focus,
.citizen-chat-detail-grid select:focus,
.citizen-chat-input-row textarea:focus {
  border-color: #2845a3;
  box-shadow: 0 0 0 0.2rem rgba(40, 69, 163, 0.14);
  outline: none;
}

.citizen-chat-input-row button:hover,
.citizen-chat-input-row button:focus-visible {
  background: #2845a3;
  outline: none;
}

.citizen-chat-alert {
  margin: 0.85rem 1rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.82rem;
}

.citizen-chat-alert.is-success {
  background: #dcfce7;
  color: #166534;
}

.citizen-chat-alert.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.citizen-chat-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.citizen-chat-form label,
.citizen-chat-form span {
  display: block;
}

.citizen-chat-form span {
  margin-bottom: 0.25rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.citizen-chat-form input,
.citizen-chat-form select,
.citizen-chat-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  padding: 0.62rem 0.7rem;
  color: #0f172a;
  font: inherit;
}

.citizen-chat-form textarea {
  resize: vertical;
  min-height: 6rem;
}

.citizen-chat-form input:focus,
.citizen-chat-form select:focus,
.citizen-chat-form textarea:focus {
  border-color: #2845a3;
  box-shadow: 0 0 0 0.2rem rgba(40, 69, 163, 0.14);
  outline: none;
}

.citizen-chat-submit {
  min-height: 2.65rem;
  border: 0;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #2845a3;
  color: #ffffff;
  font-weight: 700;
}

.citizen-chat-submit:hover,
.citizen-chat-submit:focus-visible {
  background: #2845a3;
  outline: none;
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 1.45rem 0 1rem;
  }

  .footer-cost-panel {
    margin-bottom: 2.6rem;
    padding: 1.1rem;
  }

  .footer-cost-panel strong {
    display: block;
    margin: 0.45rem 0 0;
    font-size: 1.45rem;
  }

  .footer-brand {
    align-items: flex-start !important;
  }

  .footer-brand img {
    width: 48px;
    height: 48px;
  }

  .footer-main {
    padding-bottom: 1rem;
  }

  .footer-quick-links ul {
    grid-template-columns: 1fr;
  }

  .footer-visit-column {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .footer-bottom span {
    flex: 0 0 100%;
  }

  .scroll-top-btn {
    right: 1rem;
    bottom: 1rem;
    width: 3.45rem;
    height: 3.45rem;
    font-size: 1.3rem;
  }

  .citizen-chat-widget {
    left: 1rem;
    bottom: 1rem;
  }

  .citizen-chat-btn {
    width: 3.65rem;
    height: 3.65rem;
    font-size: 1.35rem;
  }

  .citizen-chat-panel {
    bottom: 4.35rem;
  }
}

/* Keep footer pushed down on public pages (prevents it from floating up too early on short content) */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

main > section {
  scroll-margin-top: var(--site-top-offset);
}

.glance-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245, 247, 250, 0.96));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.glance-section > .container-fluid {
  max-width: 1440px;
}

.glance-header h2 {
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 850;
  letter-spacing: 0;
}

.glance-stat-card {
  min-height: 100px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.05rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glance-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.glance-stat-card strong {
  color: #004b97;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1;
  font-weight: 900;
}

.glance-stat-card span {
  margin-top: 0.35rem;
  color: #111827;
  font-weight: 800;
}

.glance-stat-card small {
  margin-top: 0.15rem;
  color: #94a3b8;
  font-weight: 600;
}

.glance-weather-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 0.75rem;
  color: #f8fafc;
  background: linear-gradient(135deg, #0f4c81, #3b82f6 55%, #60a5fa);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glance-weather-card:hover,
.glance-map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.glance-weather-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 850;
}

.glance-weather-card p,
.glance-weather-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.glance-weather-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0;
}

.glance-weather-copy {
  display: grid;
  gap: 0.2rem;
}

.glance-weather-temp {
  color: #ffffff;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.95;
  font-weight: 900;
}

.glance-weather-copy span {
  color: #ffffff;
  font-weight: 850;
}

.glance-weather-icon {
  color: rgba(255, 255, 255, 0.2);
  font-size: clamp(4.2rem, 9vw, 7rem);
}

.glance-weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}

.glance-map-card {
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glance-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  border: 0;
}

.scroll-reveal-ready #main-content > .home-scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal-ready #main-content > .home-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-ready #main-content > .home-scroll-reveal:first-child {
  opacity: 1;
  transform: none;
}

#latest-announcements {
  min-height: calc(100vh - 90px);
  padding-top: 4rem !important;
  padding-bottom: 7.5rem !important;
}

#officials,
#meetings,
#public-records,
#contact {
  min-height: calc(100vh - 90px);
  padding-top: 5rem !important;
  padding-bottom: 7.5rem !important;
}

#latest-announcements .section-header {
  margin-bottom: 2rem !important;
}

#latest-news {
  min-height: calc(100vh - 90px);
  padding-top: 5rem !important;
  padding-bottom: 7.5rem !important;
}

#latest-news .section-header h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: 0;
}

.updates-content-container {
  max-width: none;
}

.updates-content-row {
  --bs-gutter-x: 1rem;
  justify-content: center;
}

.updates-card-grid {
  align-items: flex-start;
}

.home-announcements-reels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(100%, 1280px);
  margin: 0 auto;
  background: var(--surface-secondary);
}

.home-updates-heading {
  padding-top: 2.25rem !important;
}

.home-update-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  color: #9ca3af;
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  font-weight: 600;
}

.home-update-category-tab {
  appearance: none;
  padding: 0.2rem 0.15rem;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #4b5563;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-update-category-tab:hover,
.home-update-category-tab:focus-visible,
.home-update-category-tab.active {
  color: var(--text);
  font-weight: 800;
  opacity: 1;
}

.home-update-category-tab.active {
  border-bottom-color: var(--nav-highlight);
  color: var(--nav-highlight);
}

.home-update-category-tab:focus-visible {
  outline: 2px solid var(--nav-highlight);
  outline-offset: 3px;
}

.home-category-carousel {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0;
}

.home-category-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  transition: height 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-category-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.home-category-panel {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: 0.25rem;
}

.home-category-arrow {
  position: absolute;
  top: 3rem;
  z-index: 3;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40, 69, 163, 0.22);
  border-radius: 999px;
  color: var(--nav-highlight);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.home-category-arrow.is-prev { left: 0; }
.home-category-arrow.is-next { right: 0; }

.home-category-arrow:hover,
.home-category-arrow:focus-visible {
  color: #fff;
  background: var(--nav-highlight);
}

.home-category-empty {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.post-category-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  color: #1e3a8a;
  background: #dbeafe;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.post-category-badge.is-news { color: #065f46; background: #d1fae5; }
.post-category-badge.is-update { color: #92400e; background: #fef3c7; }
.post-category-badge.is-qna { color: #6b21a8; background: #f3e8ff; }

.post-qna-question {
  margin-bottom: 0.55rem;
  color: #111827;
}

.post-featured-media {
  overflow: hidden;
  margin: 0.5rem 0 1rem;
  border-radius: 0.8rem;
  background: #e5e7eb;
}

.post-featured-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .home-update-categories {
    gap: 0.3rem;
    font-size: 0.8rem;
  }

  .home-category-carousel {
    padding: 0;
  }

  .home-category-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-category-track,
  .home-category-viewport { transition: none; }
}

#latest-announcements,
#home-reels {
  min-height: 0;
  padding-top: 1.75rem !important;
  padding-bottom: 6rem !important;
}

.home-announcements-reels-grid > section {
  min-width: 0;
  background: transparent !important;
}

.home-announcements-reels-grid .updates-content-container {
  max-width: none;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.home-announcements-reels-grid .latest-news-slide,
.home-announcements-reels-grid .latest-news-feature-copy {
  min-height: 420px;
}

.home-announcements-reels-grid .latest-news-slide img,
.home-announcements-reels-grid .latest-news-reel-video {
  height: 420px;
  min-height: 420px;
}

.home-reels-floating {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
}

.home-reels-floating .home-reels-controls {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 5;
  margin: 0 !important;
}

.home-reels-floating .home-reels-controls .btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(15, 39, 66, 0.72);
  backdrop-filter: blur(8px);
}

.home-reels-floating .hero-news-slider {
  padding-bottom: 1.4rem;
}

.home-reels-floating .latest-news-slide {
  min-height: 0;
}

.home-reels-floating .latest-news-reel-video {
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 39, 66, 0.2);
}

@media (max-width: 991.98px) {
  .home-announcements-reels-grid {
    grid-template-columns: 1fr;
    width: min(100% - 2rem, 720px);
    gap: 0;
  }

  #latest-announcements,
  #home-reels {
    padding-top: 1.25rem !important;
    padding-bottom: 4rem !important;
  }
}

.update-announcement-card {
  min-height: 300px;
  border-radius: 1.15rem;
}

.social-announcement-card {
  min-height: 0;
  height: auto !important;
  border-radius: 0.7rem;
  background: #fff;
  color: #111827;
}

.update-announcement-card .card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem) !important;
}

.social-announcement-card .card-body {
  min-height: 0 !important;
  flex: 0 0 auto;
  padding: 1rem 1.15rem 0.75rem !important;
}

.post-author-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.05rem;
}

.post-author-header img {
  width: 42px;
  height: 42px;
  min-width: 42px;
  max-width: 42px;
  min-height: 42px !important;
  max-height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.post-author-meta {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.post-author-meta strong {
  color: #111827;
  font-size: 0.98rem;
  font-weight: 800;
}

.post-author-meta span {
  color: #6b7280;
  font-size: 0.78rem;
}

.post-pinned-badge {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #b45309;
  background: #fef3c7;
}

.social-announcement-card h3 {
  margin: 0 0 0.5rem;
  color: #111827;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.32;
  font-weight: 800;
}

.post-announcement-body {
  margin: 0 0 0.7rem;
  color: #111827;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
}

.post-reel-frame {
  width: min(100%, 390px);
  margin: 0.9rem auto 1rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #020617;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.post-reel-frame video {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  aspect-ratio: 9 / 16;
  background: #020617;
  object-fit: contain;
}

.post-reel-frame-compact {
  width: min(100%, 320px);
  margin-bottom: 0.85rem;
}

.social-announcement-card .post-engagement-summary {
  margin-top: 0;
}

.update-announcement-card h6 {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.25;
  font-weight: 800;
}

.update-announcement-card p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-author-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-author-line img {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.update-announcement-card .post-author-line img {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  min-height: 24px !important;
  max-height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.update-announcement-card .small.text-muted.mt-2 {
  margin-top: auto !important;
}

.post-social-preview {
  display: block;
  margin-top: auto;
  padding-top: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.post-engagement-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 2.1rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.post-reaction-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #6b7280;
  font-size: 0.82rem;
}

.post-metric-form {
  margin: 0;
}

.post-metric-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.post-reaction-counts span,
.post-metric-pill {
  display: inline-flex;
  align-items: center;
}

.post-metric-pill {
  border: 1px solid rgba(17, 24, 39, 0.08);
  gap: 0.3rem;
  min-height: 1.75rem;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: #f8fafc;
  color: #4b5563;
  font: inherit;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

button.post-metric-pill {
  cursor: pointer;
}

button.post-metric-pill:hover {
  transform: translateY(-1px);
}

.post-metric-pill i {
  font-size: 0.8rem;
}

.post-like-pill {
  border-color: rgba(40, 69, 163, 0.2);
  background: #2845a3;
  color: #fff;
}

.post-like-pill.is-active {
  box-shadow: 0 0 0 3px rgba(40, 69, 163, 0.16);
}

.post-dislike-pill {
  border-color: rgba(245, 158, 11, 0.2);
  background: #fff7ed;
  color: #92400e;
}

.post-dislike-pill.is-active {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.post-comment-count.post-metric-pill {
  border-color: rgba(17, 24, 39, 0.08);
  background: #f8fafc;
  color: #4b5563;
  font-weight: 600;
}

.post-share-pill {
  width: 1.8rem;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.post-reaction-icons {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.post-reaction-icons i {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff !important;
  background: #2845a3;
  font-size: 0.62rem;
}

.post-reaction-icons i + i {
  margin-left: -0.35rem;
  background: #f59e0b;
}

.post-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.post-action-row form {
  margin: 0;
}

.post-action-btn {
  width: 100%;
  border: 0;
  border-radius: 0.45rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.35rem;
  color: #4b5563;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-announcement-card .post-action-row {
  align-items: center;
  padding: 0.28rem 0;
}

.social-announcement-card .post-action-row form {
  display: flex;
  justify-content: center;
}

.social-announcement-card .post-action-btn {
  width: 2.45rem;
  min-height: 2.45rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.95rem;
}

.post-action-btn:hover,
.post-action-btn.active-like {
  color: var(--primary);
  background: rgba(40, 69, 163, 0.16);
}

.post-action-btn.active-dislike {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.post-action-btn.active-comment {
  color: var(--primary);
  background: rgba(40, 69, 163, 0.1);
}

.post-comment-toggle {
  border: 0;
}

.post-comment-toggle:hover {
  color: var(--primary);
}

.post-comment-count {
  border: 0;
  color: #6b7280;
  background: transparent;
  font-size: 0.82rem;
}

.post-comment-count:hover {
  color: var(--primary);
}

button.post-comment-count.post-metric-pill {
  cursor: pointer;
}

button.post-comment-count.post-metric-pill:hover {
  border-color: rgba(40, 69, 163, 0.28);
  background: rgba(40, 69, 163, 0.1);
  color: var(--primary);
}

.post-comments-panel {
  padding-top: 0.85rem;
}

.post-comment-list {
  display: grid;
  gap: 0.75rem;
}

.post-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.post-comment-avatar {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(40, 69, 163, 0.14);
  font-size: 0.85rem;
}

.post-comment-avatar.admin-comment-avatar {
  color: #fff;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(40, 69, 163, 0.28);
}

.post-comment-avatar img {
  width: 100%;
  height: 100%;
  min-height: 100% !important;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.post-comment-bubble {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  background: var(--surface-secondary);
}

.post-comment-bubble.admin-comment-bubble {
  border: 1px solid rgba(40, 69, 163, 0.22);
  background: rgba(40, 69, 163, 0.08);
}

.post-admin-replies {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid rgba(40, 69, 163, 0.28);
}

.post-admin-reply {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(40, 69, 163, 0.08);
}

.post-admin-reply-logo {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  max-width: 1.25rem;
  min-height: 1.25rem !important;
  max-height: 1.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.update-announcement-card .post-admin-reply-logo {
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px !important;
  max-height: 22px;
}

.post-comment-bubble p {
  color: var(--text);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.post-inline-comment-form .input-group {
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid rgba(11, 46, 74, 0.1);
  border-radius: 999px;
  background: var(--surface-secondary);
}

.post-inline-comment-form .form-control {
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px !important;
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
}

.post-inline-comment-form .form-control:focus {
  box-shadow: none;
}

.post-inline-comment-form .btn {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  border-radius: 999px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-commented-note {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: 0.86rem;
  font-weight: 600;
}

#officials .section-header h2,
#meetings .section-header h2,
#public-records .section-header h2,
#contact .section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0;
}

#latest-announcements .card {
  border-radius: 1rem;
}

#latest-announcements .card-body {
  min-height: 100%;
}

.announcements-news-card .card-body {
  padding: 1.5rem !important;
}

.latest-news-feature-card {
  overflow: hidden;
}

.latest-news-feature-card .card-body {
  padding: 2rem !important;
}

.latest-news-slide {
  min-height: 600px;
}

.latest-news-slide img {
  height: 600px;
  min-height: 600px;
  width: 100%;
  border-radius: 0.85rem;
  object-fit: contain;
  object-position: center;
  background: var(--surface-tertiary);
}

.latest-news-reel-video,
.news-reel-video {
  display: block;
  width: 100%;
  background: #020617;
  object-fit: contain;
}

.latest-news-reel-video {
  height: 600px;
  min-height: 600px;
  border-radius: 0.85rem;
}

.latest-news-reel-video.is-portrait-video {
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  margin-right: auto;
  margin-left: auto;
  background: #000;
}

.latest-news-reel-video.is-landscape-video {
  width: 100%;
}

.video-playback-warning {
  margin: 0.6rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  color: #991b1b;
  background: rgba(254, 226, 226, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.latest-news-feature-copy {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.latest-news-feature-copy h3 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.latest-news-feature-copy p {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
}

.news-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(11, 46, 74, 0.94), rgba(209, 32, 39, 0.78)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.news-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #d12027, #f9a825, #2845a3);
}

.news-hero .container {
  position: relative;
  z-index: 1;
}

.news-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.news-count-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.news-count-panel i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
}

.news-count-panel span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.news-count-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-list-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.news-public-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.news-public-card .card-img-top {
  height: 230px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--surface-tertiary);
}

.news-public-card .news-reel-video {
  height: 360px;
  max-height: 72vh;
  aspect-ratio: 9 / 16;
}

.tourism-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 47, 73, 0.95), rgba(40, 69, 163, 0.72)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.tourism-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #2845a3, #f9a825, #2845a3);
}

.tourism-hero .container {
  position: relative;
  z-index: 1;
}

.tourism-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.tourism-count-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.tourism-count-panel i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #2845a3;
  background: #fff;
}

.tourism-count-panel span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.tourism-count-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tourism-list-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.tourism-public-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.tourism-public-card .card-img-top,
.tourism-card-visual {
  height: 230px;
  width: 100%;
}

.tourism-public-card .card-img-top {
  object-fit: contain;
  object-position: center;
  background: var(--surface-tertiary);
}

.services-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(120deg, #0b3b5f, #2845a3 58%, #2845a3);
}

.services-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #facc15, #22c55e, #2845a3);
}

.services-hero .container {
  position: relative;
  z-index: 1;
}

.services-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.services-count-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.services-count-panel i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #2845a3;
  background: #fff;
}

.services-count-panel span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.services-count-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.services-popular-section,
.services-list-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.services-chip-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.35rem;
  scrollbar-width: thin;
}

.services-chip-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-height: 2.7rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  color: #2845a3;
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 33, 65, 0.08);
  transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.services-chip-row a:hover {
  color: #2845a3;
  border-color: rgba(15, 118, 110, 0.34);
  transform: translateY(-2px);
}

.service-directory-card {
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.services-list-section [id^="service-"] {
  scroll-margin-top: 7rem;
}

.service-directory-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #2845a3, #2845a3);
  box-shadow: 0 12px 22px rgba(40, 69, 163, 0.18);
}

.service-directory-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  margin-left: 0.55rem;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  color: #2845a3;
  background: rgba(40, 69, 163, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.services-steps-section {
  background: var(--surface);
}

.services-note-panel {
  padding: 1.4rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #2845a3, #2845a3);
}

.services-note-panel p {
  color: rgba(255, 255, 255, 0.9);
}

.services-step-card {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 0.85rem;
  background: var(--surface-secondary);
}

.services-step-card span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #2845a3;
  background: rgba(40, 69, 163, 0.14);
  font-weight: 900;
}

.services-step-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
}

.services-step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tourism-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #2845a3, #2845a3);
}

.tourism-card-visual i {
  font-size: clamp(3.4rem, 7vw, 5rem);
  opacity: 0.9;
}

.tourism-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.28rem 0.66rem;
  border-radius: 999px;
  color: #2845a3;
  background: rgba(40, 69, 163, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tourism-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--nav-highlight);
  font-weight: 800;
  text-decoration: none;
}

.tourism-card-link:hover {
  color: #2845a3;
}

.officials-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(11, 46, 74, 0.95), rgba(2, 132, 199, 0.78)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.officials-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #2845a3, #2845a3, #2845a3);
}

.officials-hero .container {
  position: relative;
  z-index: 1;
}

.officials-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.officials-count-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.officials-count-panel i {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
}

.officials-count-panel span {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
}

.officials-count-panel small {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.officials-directory-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.officials-group-block {
  padding: 3rem 0;
}

.officials-group-block:first-child {
  padding-top: 0;
}

.officials-group-block + .officials-group-block {
  border-top: 1px solid rgba(11, 46, 74, 0.08);
}

.official-public-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.official-photo-frame {
  position: relative;
  height: 340px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.76)),
    var(--surface-tertiary);
}

.official-photo-bg {
  position: absolute;
  inset: -1.5rem;
  width: calc(100% + 3rem);
  height: calc(100% + 3rem);
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) saturate(1.06);
  opacity: 0.28;
  transform: scale(1.08);
}

.official-public-card .official-photo-img {
  position: relative;
  z-index: 1;
  height: 340px;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.official-position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #2845a3;
  background: rgba(40, 69, 163, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.resolution-directory-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-secondary);
  color: var(--primary);
  border-radius: 0.8rem;
}

.resolution-directory-search .form-control {
  min-width: 0;
  border: 0;
  background: transparent;
}

.resolution-directory-search .resolution-search-status {
  flex: 0 0 11rem;
  width: 11rem;
  min-height: 46px;
  padding-left: 1rem;
  border-radius: 0.75rem;
  border-color: var(--border, rgba(11, 46, 74, 0.12));
  background-color: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 767px) {
  .resolution-directory-search { flex-wrap: wrap; }
  .resolution-directory-search .form-control { flex: 1 1 calc(100% - 3rem); width: auto; }
  .resolution-directory-search .resolution-search-status { flex: 1 1 100%; width: 100%; }
}
.resolution-directory .resolution-filter-card {
  padding: 1rem;
}

.resolution-document {
  border: 1px solid var(--border, rgba(11, 46, 74, 0.12));
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
}

.resolution-document-heading {
  padding: 1rem 1.25rem;
  background: var(--surface-secondary);
  color: var(--primary);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resolution-document-body {
  padding: 1.25rem 2rem;
}

.resolution-document-fields {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.resolution-document-fields dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.resolution-document-title {
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  margin: 0;
}

.resolution-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.resolution-document-history {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(11, 46, 74, 0.12));
}

@media (max-width: 767px) {
  .resolution-document-body { padding: 1rem; }
  .resolution-document-fields { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .resolution-document-fields dd { margin-bottom: 0.65rem; }
}

.resolutions-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(11, 46, 74, 0.96), rgba(40, 69, 163, 0.86)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.resolutions-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #d12027, #f9a825, #2845a3);
}

.resolutions-hero .container {
  position: relative;
  z-index: 1;
}

.resolutions-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.resolution-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.resolution-stats div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.resolution-stats span {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.resolution-stats small {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
}

.resolutions-list-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.public-records-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.legis-quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(40, 69, 163, 0.12);
  border-radius: 2rem;
  background: linear-gradient(120deg, var(--surface-secondary), var(--surface));
  box-shadow: 0 18px 40px rgba(11, 46, 74, 0.12);
}
.legis-quick-eyebrow {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(40, 69, 163, 0.18);
  border-radius: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}
.legis-quick-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--primary); font-weight: 800; margin-bottom: 1rem; }
.legis-quick-intro p { line-height: 1.7; }
.legis-quick-links { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.legis-quick-links a { color: var(--primary); font-weight: 700; }
.legis-quick-links i { margin-left: 0.5rem; }
.legis-quick-form { min-width: 0; align-self: center; }
.legis-quick-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.legis-quick-types label { position: relative; cursor: pointer; min-width: 0; }
.legis-quick-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.legis-quick-types span { display: flex; flex-direction: column; gap: 0.3rem; height: 100%; padding: 1rem; border: 1px solid rgba(40,69,163,0.2); border-radius: 1.2rem; background: var(--surface); }
.legis-quick-types small { color: var(--muted); }
.legis-quick-types input:checked + span { border-color: var(--primary); background: var(--surface-secondary); }
.legis-quick-types input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.legis-quick-form .form-control { padding: 1.1rem; border-radius: 1rem; }
.legis-quick-form .btn { width: 100%; min-height: 3rem; margin-top: 1rem; }
@media (max-width: 767px) {
  .legis-quick-panel { grid-template-columns: minmax(0, 1fr); }
  .legis-quick-types span { padding: 0.85rem; }
}

#public-records .approved-records-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(40, 69, 163, 0.12);
  border-radius: 2rem;
  background: linear-gradient(120deg, var(--surface-secondary), var(--surface));
  box-shadow: 0 18px 40px rgba(11, 46, 74, 0.12);
}

#public-records .approved-records-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

#public-records .approved-records-search-grid .legis-quick-intro {
  min-width: 0;
  align-self: center;
}

#public-records .approved-records-search-grid .legis-quick-intro p {
  margin-bottom: 0;
}

#public-records .approved-records-cards {
  margin-top: calc(2rem - var(--bs-gutter-y, 0px));
}

@media (max-width: 991.98px) {
  #public-records .approved-records-search-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  #public-records .approved-records-panel {
    padding: 1.25rem;
  }
}

.public-record-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.public-record-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #2845a3, #2845a3);
}

.public-record-card-featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(40, 69, 163, 0.96), rgba(40, 69, 163, 0.9)),
    var(--primary) !important;
  border-color: rgba(40, 69, 163, 0.22) !important;
  box-shadow: 0 20px 46px rgba(40, 69, 163, 0.22);
}

.public-record-card-featured::before {
  background: linear-gradient(90deg, #f9a825, #ffffff, #2845a3);
}

.public-record-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.public-record-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: var(--primary);
  background: rgba(40, 69, 163, 0.14);
  font-size: 1.25rem;
}

.public-record-card-featured .public-record-icon {
  color: #0b2e4a;
  background: #fff;
}

.public-record-eyebrow {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.public-record-card-featured .public-record-eyebrow,
.public-record-card-featured .public-record-copy,
.public-record-card-featured .public-record-empty {
  color: rgba(255, 255, 255, 0.86);
}

.public-record-list {
  display: grid;
  gap: 0.75rem;
}

.public-record-carousel .carousel-inner {
  display: grid;
  border-radius: 0.85rem;
}

.public-record-carousel .carousel-item {
  display: block;
  grid-area: 1 / 1;
  float: none;
  margin-right: 0;
  min-width: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
}

.public-record-carousel .carousel-item.active,
.public-record-carousel .carousel-item-next,
.public-record-carousel .carousel-item-prev {
  visibility: visible;
}

.public-record-carousel.carousel-fade .active.carousel-item-start,
.public-record-carousel.carousel-fade .active.carousel-item-end {
  transition: opacity 0s 0.5s;
}

.public-record-carousel .public-record-list-item {
  height: 100%;
  grid-template-rows: auto 1fr auto;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .public-record-carousel .carousel-item,
  .public-record-carousel.carousel-fade .active.carousel-item-start,
  .public-record-carousel.carousel-fade .active.carousel-item-end {
    transition: none;
  }
}
.public-record-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.public-record-carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.public-record-carousel-btn:hover,
.public-record-carousel-btn:focus {
  color: #0b2e4a;
  background: #fff;
}

.public-record-list-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 0.85rem;
  background: var(--surface-secondary);
}

.public-record-card-featured .public-record-list-item {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.public-record-list-item strong {
  font-size: 0.9rem;
}

.public-record-list-item span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}

.public-record-card-featured .public-record-list-item span {
  color: #fff;
}

.public-record-list-item small {
  color: var(--muted);
  font-weight: 700;
}

.public-record-card-featured .public-record-list-item small {
  color: rgba(255, 255, 255, 0.72);
}

.public-record-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 800;
}

.resolution-filter-card {
  padding: 1.15rem;
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.resolution-filter-card .form-label {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.resolution-filter-card .form-control,
.resolution-filter-card .form-select {
  min-height: 2.75rem;
  border-color: rgba(11, 46, 74, 0.12);
  border-radius: 0.65rem;
}

.resolution-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.resolution-filter-actions .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0.9rem;
  white-space: nowrap;
}

.resolution-filter-summary {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.resolution-public-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.resolution-public-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.resolution-number {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(40, 69, 163, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.resolution-card-copy {
  min-width: 0;
}

.resolution-card-copy h2,
.resolution-card-copy p,
.resolution-detail-box,
.resolution-notes p {
  overflow-wrap: anywhere;
}

.resolution-status-panel {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 10.5rem;
}

.resolution-status,
.resolution-stage {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  white-space: normal;
  text-align: left;
}

.resolution-stage {
  font-weight: 700;
}

.resolution-pdf-action {
  display: grid;
  gap: 0.45rem;
}

.resolution-pdf-action .btn {
  max-width: 100%;
  white-space: normal;
}

.resolution-detail-box {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.06);
  border-radius: 0.8rem;
  background: var(--surface-secondary);
}

.resolution-notes {
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 46, 74, 0.08);
}

.resolution-empty-card {
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .resolution-status-panel {
    align-items: flex-end;
  }
}

@media (max-width: 767.98px) {
  .resolution-public-card .card-body {
    padding: 1.2rem !important;
  }

  .resolution-status-panel {
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }

  .resolution-status,
  .resolution-stage,
  .resolution-pdf-action .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .resolution-detail-box {
    padding: 0.9rem;
  }

  .resolution-filter-card {
    padding: 1rem;
  }

  .resolution-filter-actions {
    grid-template-columns: 1fr;
  }

  .resolution-filter-actions .btn {
    width: 100%;
  }
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(11, 46, 74, 0.96), rgba(40, 69, 163, 0.82)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #d12027, #f9a825, #2845a3);
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.contact-quick-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.contact-quick-panel div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
}

.contact-quick-panel i {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--primary);
  background: #fff;
}

.contact-section {
  background: linear-gradient(180deg, var(--surface-secondary), var(--background));
}

.contact-info-card,
.contact-form-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08) !important;
}

.contact-info-card::before,
.contact-form-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.contact-method-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-method {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 0.85rem;
  color: var(--text);
  background: var(--surface-secondary);
  text-decoration: none;
  transition: transform var(--hover-duration) var(--hover-ease),
              box-shadow var(--hover-duration) var(--hover-ease),
              border-color var(--hover-duration) var(--hover-ease),
              color var(--transition-fast),
              background-color var(--transition-fast);
}

.contact-method:hover {
  color: var(--primary);
  transform: translateY(-2px);
  border-color: rgba(40, 69, 163, 0.22);
  box-shadow: 0 10px 24px rgba(15, 33, 65, 0.1);
}

.contact-method span {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0.12rem;
  border-radius: 0.85rem;
  color: var(--primary);
  background: rgba(40, 69, 163, 0.14);
}

.contact-method > div {
  min-width: 0;
  text-align: left;
}

.contact-method small {
  display: block;
  color: var(--muted);
}

.contact-method strong {
  display: block;
  font-weight: 700;
}

.contact-response-note {
  align-self: flex-start;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(40, 69, 163, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form-card .form-control {
  border-radius: 0.75rem;
  border-color: rgba(11, 46, 74, 0.12);
}

.contact-form-card textarea {
  resize: vertical;
}

#officials .card-img-top {
  height: 320px;
  min-height: 320px;
  object-fit: contain;
  object-position: center;
  background: var(--surface-tertiary);
}

#officials .card {
  overflow: hidden;
}


/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none !important; }
  .section-header::after { animation: none !important; }
  .hero-welcome-animation,
  .shape-container.butterfly-container,
  .butterfly__wing,
  .hero-title-animated,
  .hero-eyebrow {
    animation: none !important;
  }
  .hero-card:hover,
  .feature-card:hover,
  .info-card:hover,
  .service-card:hover,
  .qna-index-card:hover,
  .qna-past-item:hover,
  .calendar-card:hover,
  .livestream-card:hover,
  .announcements-news-card:hover,
  .news-public-card:hover,
  .tourism-public-card:hover,
  .official-public-card:hover,
  .resolution-public-card:hover,
  .public-record-card:hover,
  .contact-info-card:hover,
  .contact-form-card:hover,
  .contact-method:hover,
  .brand-link:hover .brand-mark,
  .footer-brand:hover,
  .footer-socials a:hover,
  .site-footer li a:hover,
  .scroll-reveal-ready #main-content > .home-scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-top-btn {
    transition: none !important;
  }

  .site-top,
  .government-brandbar,
  .government-brand-container,
  .government-brand-link,
  .government-brand-seal,
  .government-brand-copy strong,
  .government-header-controls {
    transition: none !important;
  }

  .citizen-chat-btn,
  .citizen-chat-panel {
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .hero {
    min-height: 72vh;
  }
}

@media (max-width: 767px) {
  :root {
    --site-top-offset: 150px;
    --site-top-reserved-offset: 150px;
  }

  html {
    scroll-padding-top: var(--site-top-offset);
  }

  main > section {
    scroll-margin-top: var(--site-top-offset);
  }

  #latest-news {
    min-height: auto;
    padding-top: 4rem !important;
    padding-bottom: 5rem !important;
  }

  .latest-news-feature-card .card-body {
    padding: 1rem !important;
  }

  .latest-news-slide {
    min-height: auto;
  }

  .latest-news-slide img {
    height: 280px;
    min-height: 280px;
    border-radius: 0.85rem;
  }

  .latest-news-feature-copy {
    min-height: auto;
    padding: 1.35rem 0.35rem 0.5rem;
  }

  .latest-news-feature-copy h3 {
    font-size: 1.55rem;
    line-height: 1.15;
  }

  .latest-news-feature-copy p {
    font-size: 0.98rem;
  }

  .official-photo-frame,
  .official-public-card .official-photo-img {
    height: 280px;
    min-height: 280px;
  }

  .officials-group-block {
    padding: 2.25rem 0;
  }

  .update-announcement-card {
    min-height: 260px;
  }

  .social-announcement-card {
    min-height: 0;
  }

  .update-announcement-card .card-body {
    padding: 1.2rem !important;
  }

  .post-action-row {
    gap: 0.55rem;
  }

  .post-action-btn {
    min-height: 3rem;
    padding: 0.7rem 0.75rem;
  }

  .social-announcement-card .card-body {
    padding: 1rem !important;
  }

  .social-announcement-card .post-action-row {
    gap: 0;
  }

  .social-announcement-card .post-action-btn {
    width: 2.35rem;
    min-height: 2.35rem;
    padding: 0;
    font-size: 0.9rem;
  }

  .announcements-news-card .card-body {
    padding: 1.1rem !important;
  }

  .hero {
    min-height: 68vh;
  }
  .hero-content {
    padding: 3.75rem 0;
  }

  .hero-search-form .input-group {
    border-radius: 1rem;
  }

  .hero-search-form .btn {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Theme-aware backgrounds */
[id="latest-announcements"] {
  background: var(--surface-secondary) !important;
}

[id="news"] {
  background: var(--surface-secondary);
}

[id="events"] {
  background: var(--surface-secondary);
}

[data-theme="dark"] .site-header {
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .brand-link .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #2845a3, var(--secondary));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(249, 168, 37, 0.24);
}

[data-theme="dark"] .hero {
  background: linear-gradient(90deg, rgba(8, 24, 40, 0.66), rgba(8, 24, 40, 0.34) 48%, rgba(8, 24, 40, 0.18)),
    url('../images/welcome-hero.png') center/cover no-repeat;
}

[data-theme="dark"] .hero-content p {
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

[data-theme="dark"] .hero-preview-card {
  background: var(--surface);
}

[data-theme="dark"] .hero-preview-card .meeting-highlight {
  background: rgba(40, 69, 163, 0.06);
}

[data-theme="dark"] .info-card,
[data-theme="dark"] .card.bg-white {
  background: var(--surface) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
  background-color: var(--surface-secondary) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .calendar-card,
[data-theme="dark"] .livestream-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card,
[data-theme="dark"] .announcements-news-card,
[data-theme="dark"] .news-public-card,
[data-theme="dark"] .tourism-public-card,
[data-theme="dark"] .official-public-card,
[data-theme="dark"] .public-record-card,
[data-theme="dark"] .resolution-public-card {
  background: var(--surface-primary) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text);
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6,
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .text-dark {
  color: var(--text) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .section-header p,
[data-theme="dark"] .small.text-muted {
  color: var(--muted) !important;
}

[data-theme="dark"] .social-announcement-card h3,
[data-theme="dark"] .social-announcement-card .post-announcement-body,
[data-theme="dark"] .social-announcement-card .post-author-meta strong {
  color: var(--text) !important;
}

[data-theme="dark"] .social-announcement-card .post-author-meta span,
[data-theme="dark"] .social-announcement-card .post-engagement-summary,
[data-theme="dark"] .social-announcement-card .post-reaction-counts,
[data-theme="dark"] .social-announcement-card .post-comment-count,
[data-theme="dark"] .social-announcement-card .post-action-btn {
  color: var(--muted);
}

[data-theme="dark"] .post-metric-pill {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--surface-secondary);
  color: var(--muted);
}

[data-theme="dark"] .post-like-pill {
  border-color: rgba(40, 69, 163, 0.28);
  background: #2845a3;
  color: #fff;
}

[data-theme="dark"] .post-dislike-pill {
  border-color: rgba(251, 191, 36, 0.24);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

[data-theme="dark"] .official-position-badge {
  color: #2845a3;
  background: rgba(40, 69, 163, 0.12);
}

[data-theme="dark"] .public-record-card-featured {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.98), rgba(40, 69, 163, 0.92)),
    #2845a3 !important;
  border-color: rgba(40, 69, 163, 0.22) !important;
}

[data-theme="dark"] .public-record-list-item {
  background: var(--surface-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .post-comment-bubble,
[data-theme="dark"] .contact-method,
[data-theme="dark"] .resolution-detail-box,
[data-theme="dark"] .official-holiday-item,
[data-theme="dark"] .calendar-cell,
[data-theme="dark"] .post-inline-comment-form .form-control {
  background: var(--surface-secondary) !important;
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .post-comment-bubble.admin-comment-bubble {
  background: rgba(40, 69, 163, 0.1) !important;
  border-color: rgba(40, 69, 163, 0.22) !important;
}

[data-theme="dark"] .post-inline-comment-form .input-group {
  background: var(--surface-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .post-inline-comment-form .form-control {
  background: transparent !important;
  border-color: transparent !important;
}

[data-theme="dark"] .post-admin-reply {
  background: rgba(40, 69, 163, 0.1) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] textarea {
  background-color: var(--surface-secondary) !important;
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(241, 245, 249, 0.56) !important;
}

[data-theme="dark"] .table {
  color: var(--text);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .calendar-cell {
  background: var(--surface-secondary);
  color: var(--text);
}

[data-theme="dark"] .calendar-cell.empty {
  background: transparent;
  border-color: transparent;
  color: transparent;
}

[data-theme="dark"] .calendar-cell.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

[data-theme="dark"] .calendar-cell.has-holiday {
  border-color: rgba(40, 69, 163, 0.32) !important;
  color: #2845a3 !important;
  background: rgba(40, 69, 163, 0.12) !important;
}

[data-theme="dark"] .calendar-cell.has-holiday::before {
  background: #2845a3;
  box-shadow: 0 0 0 2px rgba(40, 69, 163, 0.18);
}

[data-theme="dark"] .calendar-cell.active.has-holiday {
  color: #fff !important;
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

[data-theme="dark"] .calendar-cell.weekend {
  color: #f87171;
}

[data-theme="dark"] .meeting-highlight {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--surface-secondary);
}

/* Compact homepage regular-sessions layout */
.activities-container {
  width: min(100% - 2rem, 1240px);
  max-width: 1240px;
  padding-inline: 0;
}

.activities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(1.5rem, 2.4vw, 2rem);
}

.activities-content-column { order: -1; }
.activities-eyebrow {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.activities-video-heading { padding: 0 0 1.5rem; }
.livestream-glass-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 42, 90, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.livestream-glass-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(11, 61, 168, 0.12);
  border: 1px solid rgba(62, 105, 211, 0.18);
  border-radius: 0.9rem;
}

.livestream-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d81b1b;
  white-space: nowrap;
}

.live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5);
  animation: livestream-pulse 1.8s infinite;
}

@keyframes livestream-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.livestream-glass-title {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(19, 39, 82, 0.72);
  font-weight: 600;
}

.livestream-glass-video {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(18, 52, 109, 0.1);
  box-shadow: 0 10px 30px rgba(15, 41, 86, 0.12);
  background: rgba(14, 34, 71, 0.06);
}

#meetings .livestream-glass-video.ratio {
  border-radius: 0;
  overflow: hidden;
}

.livestream-glass-actions {
  display: flex;
  justify-content: flex-start;
  padding: 0.2rem 0 0;
}

.livestream-glass-meta {
  padding: 0.1rem 0.15rem 0;
  font-size: 0.7rem;
  color: rgba(19, 39, 82, 0.68);
  line-height: 1.45;
}

.livestream-glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.2rem 0.1rem;
  border-top: 1px solid rgba(20, 35, 62, 0.08);
}

.livestream-glass-footer p {
  color: rgba(17, 27, 45, 0.92);
}

@media (max-width: 991.98px) {
  .livestream-glass-shell {
    padding: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .livestream-glass-shell {
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 1.1rem;
  }

  .livestream-glass-header {
    padding: 0.45rem 0.6rem;
    min-height: 2.2rem;
  }

  .livestream-live-badge {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .livestream-glass-title {
    font-size: 0.66rem;
  }

  .livestream-glass-meta {
    font-size: 0.64rem;
  }

  .livestream-glass-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

#meetings .livestream-card { background: transparent; box-shadow: none !important; }
#meetings .calendar-card .card-body { padding: clamp(1rem, 2.5vw, 1.75rem); }
#meetings .calendar-grid { gap: 0.8rem; }
#meetings .calendar-cell {
  width: 2.4rem;
  max-width: 100%;
  min-height: 2.4rem;
  justify-self: center;
  border: 0;
  background: transparent;
}
#meetings .calendar-cell.has-meeting {
  background: rgba(40, 69, 163, 0.13);
  color: var(--primary);
}
#meetings .calendar-cell.today,
#meetings .calendar-cell.active { background: var(--primary); color: #fff; }
#meetings .calendar-weekday span { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.65rem; }
#meetings .calendar-card .btn { border-radius: 50%; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; }
#meetings .meetings-list { gap: 0 !important; border: 1px solid rgba(11,46,74,0.1); border-radius: 0.75rem; overflow: hidden; }
#meetings .meetings-list .card { border-radius: 0; box-shadow: none !important; border-bottom: 1px solid rgba(11,46,74,0.08) !important; }

.activities-calendar-column,
.activities-content-column {
  min-width: 0;
  align-self: start;
}

@media (max-width: 991.98px) {
  .activities-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .activities-container {
    width: min(100% - 1.25rem, 1240px);
  }
}

#meetings.sessions-section {
  min-height: auto;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.sessions-container {
  width: min(100% - 2rem, 1240px);
  max-width: 1240px;
  padding-inline: 0;
}

.sessions-section-heading {
  margin-bottom: 2rem;
}

.sessions-section-heading p {
  margin-top: 0.45rem;
}

.sessions-layout {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  align-items: start;
  gap: clamp(1.5rem, 2.4vw, 2rem);
}

.sessions-calendar-column,
.sessions-list-column {
  min-width: 0;
  align-self: start;
}

.sessions-column-title {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
}

.sessions-layout .calendar-card,
.sessions-layout .official-holiday-list,
.sessions-layout .session-list-card,
.sessions-layout .session-empty-state {
  height: auto;
}

.sessions-layout .calendar-card .card-body {
  padding: 1.1rem;
}

.sessions-layout .meetings-list {
  display: grid;
  gap: 0.85rem;
}

.session-list-card .card-body {
  min-height: 0;
}

.session-list-card-body {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1rem 1.15rem;
}

.session-date-block {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(40, 69, 163, 0.1);
  color: var(--nav-highlight);
  line-height: 1;
}

.session-date-block span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-date-block strong {
  margin-top: 0.25rem;
  font-size: 1.3rem;
}

.session-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.session-card-heading h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.session-card-heading .badge {
  flex: 0 0 auto;
}

.session-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.session-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.session-attendees {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.session-empty-state .card-body {
  padding: 2.5rem 1.5rem;
}

.session-empty-state i {
  color: var(--muted);
  font-size: 1.6rem;
}

.sessions-livestream {
  max-width: 900px;
  margin: 2rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(11, 46, 74, 0.1);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sessions-livestream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.sessions-livestream-header h3 {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.sessions-livestream-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.sessions-live-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sessions-live-label i {
  font-size: 0.48rem;
}

.sessions-livestream-player {
  border-top: 1px solid rgba(11, 46, 74, 0.08);
  background: #0f172a;
}

.sessions-livestream-player iframe {
  border: 0;
}

.sessions-livestream-player .livestream-facebook-panel {
  min-height: 190px;
}

[data-theme="dark"] .sessions-livestream {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--surface-primary);
}

@media (max-width: 991.98px) {
  .sessions-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .sessions-container {
    width: min(100% - 1.25rem, 1240px);
  }

  .session-list-card-body {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .session-card-heading {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sessions-livestream-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

[data-theme="dark"] .btn-light:hover {
  background: var(--surface-tertiary);
}

[data-theme="dark"] footer.bg-primary {
  background: var(--primary) !important;
}

/* Glassmorphism effect for cards */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Smooth transitions for theme switch */
body,
.card,
.navbar,
.btn,
.form-control {
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--hover-duration) var(--hover-ease);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ Q&A Section Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
#qna {
  background: var(--surface-secondary);
}

.qna-section-card {
  border: 1px solid rgba(11, 46, 74, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.qna-index-badge .badge {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.qna-question {
  line-height: 1.5;
  color: var(--text);
}

.qna-answer-box {
  background: var(--pastel-green);
  border-left: 4px solid #22c55e;
}

.qna-answer {
  color: var(--text);
  line-height: 1.7;
}

.qna-index-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qna-index-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.qna-card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Q&A public page styles */
.qna-current .card-body {
  max-width: 780px;
  margin: 0 auto;
}

.qna-notice {
  background: var(--pastel-blue);
  border: 1px solid rgba(40, 69, 163, 0.2);
  max-width: 780px;
  margin: 0 auto;
}

.qna-commented-notice {
  background: var(--pastel-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.qna-waiting {
  max-width: 500px;
  margin: 0 auto;
}

.qna-comment-form {
  background: var(--pastel-blue);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(40, 69, 163, 0.15);
}

.qna-stats {
  background: var(--surface-secondary);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.qna-archive h4 {
  font-weight: 700;
  color: var(--primary);
}

.qna-past-answer {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
}

@media (prefers-color-scheme: dark) {
  .qna-answer-box {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: var(--accent);
  }
  .qna-past-answer {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: var(--accent);
  }
  .qna-notice {
    background: rgba(40, 69, 163, 0.1);
    border-color: rgba(40, 69, 163, 0.25);
  }
  .qna-commented-notice {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
  }
  .qna-comment-form {
    background: rgba(40, 69, 163, 0.08);
    border-color: rgba(40, 69, 163, 0.18);
  }
  .qna-stats {
    background: var(--surface-tertiary);
  }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ Hero Q&A Highlight Card Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬Ã¢â€â‚¬ */
.hero-qna-wrapper {
  justify-content: flex-start;
  overflow-y: auto;
  max-height: calc(92vh - 120px);
}

.budget-card-header {
  padding: 0.5rem 0.25rem;
  flex-shrink: 0;
}

.budget-diamond {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.budget-card {
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.budget-card-answer {
  background: rgba(240, 253, 244, 0.92);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.budget-card.budget-card-q { margin-bottom: 0.75rem; }

.budget-label i,
.budget-label2 i {
  opacity: 0.85;
}

.budget-panel-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--pastel-blue);
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 700;
}

.budget-panel-badge2 {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 1.1rem;
  font-weight: 700;
}


.budget-footer {
  padding-top: 0.35rem;
}

.budget-card-footer {
  background: transparent;
  padding: 0.5rem 0.25rem 0;
  flex-shrink: 0;
}

.budget-card-footer .btn-sm {
  font-size: 0.82rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  .site-header .nav-button-dropdown .btn-danger.show {
    border-radius: 0.5rem;
  }

  .site-header .navbar-section-menu {
    min-width: 100%;
    max-width: none;
    margin-top: 0.35rem;
    border-radius: 0.75rem;
  }

  .hero-qna-wrapper {
    padding: 1.5rem 0.5rem;
  }
  .budget-diamond {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }
  .budget-diamond .fa-lg {
    font-size: 1rem;
  }
}

/* Mobile polish for public pages */
@media (max-width: 767.98px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .site-header .navbar-collapse {
    max-height: calc(100dvh - var(--site-top-offset) - 0.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-header .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    transform: none;
  }

  .hero {
    min-height: auto;
    background-position: center top;
  }

  .hero-content {
    padding: 3rem 0 3.4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-content p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-eyebrow,
  .hero-service-strip span {
    font-size: 0.76rem;
  }

  .hero-service-strip {
    gap: 0.45rem;
  }

  .hero-search-form .input-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    max-width: 100% !important;
    border-radius: 1rem;
  }

  .hero-search-form .input-group-text,
  .hero-search-form .form-control {
    min-height: 3.1rem;
  }

  .hero-search-form .form-control {
    width: auto;
    font-size: 0.95rem;
  }

  .hero-search-form .btn {
    grid-column: 1 / -1;
    min-height: 3rem;
    border-top: 1px solid rgba(15, 33, 65, 0.1) !important;
  }

  .hero .btn-lg {
    width: 100%;
    max-width: 22rem;
  }

  .section-header h2,
  #latest-news .section-header h2 {
    font-size: clamp(1.8rem, 8vw, 2.35rem);
  }

  .glance-section {
    padding-top: 3rem !important;
    padding-bottom: 3.25rem !important;
  }

  .glance-header {
    align-items: flex-start !important;
  }

  .glance-stat-card {
    min-height: 92px;
  }

  .glance-weather-card,
  .glance-map-card,
  .glance-map-card iframe {
    min-height: 260px;
  }

  .updates-content-container {
    max-width: 100%;
  }

  .post-engagement-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .post-comment-count {
    align-self: flex-end;
  }

  .post-metric-actions {
    justify-content: flex-start;
  }

  .post-comment-bubble,
  .post-admin-reply,
  .resolution-detail-box,
  .contact-method strong {
    overflow-wrap: anywhere;
  }

  .news-hero,
  .services-hero,
  .tourism-hero,
  .officials-hero,
  .resolutions-hero {
    padding: 3.4rem 0;
  }

  .news-count-panel,
  .services-count-panel,
  .tourism-count-panel,
  .officials-count-panel {
    width: 100%;
  }

  .resolution-stats {
    grid-template-columns: 1fr;
  }

  .resolution-stats div {
    min-height: 88px;
  }

  .contact-info-card .card-body,
  .contact-form-card .card-body,
  .public-record-card .card-body,
  .resolution-public-card .card-body {
    padding: 1.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .brand-link .h5,
  .footer-brand strong {
    overflow-wrap: anywhere;
  }

  .hero-search-form .form-control::placeholder {
    font-size: 0.88rem;
  }

  .latest-news-slide img {
    height: 220px;
    min-height: 220px;
  }

  .latest-news-reel-video {
    height: 220px;
    min-height: 220px;
  }

  .latest-news-feature-copy h3 {
    font-size: 1.35rem;
  }

  .official-photo-frame,
  .official-public-card .official-photo-img,
  #officials .card-img-top {
    height: 250px;
    min-height: 250px;
  }

  .footer-cost-panel {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .post-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.2rem;
  }

  .social-announcement-card .post-action-btn {
    width: 2.35rem;
    min-height: 2.35rem;
    font-size: 0.9rem;
  }

  .post-inline-comment-form .input-group {
    border-radius: 0.95rem;
  }
}

/* Public officials portrait directory. */
.officials-directory-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-post-carousel .carousel-inner { padding: 0.25rem; }
.home-post-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
}

.officials-directory-filters select { max-width: 320px; }
.officials-directory-filters input { max-width: 385px; }

.officials-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  align-items: start;
}

.officials-compact-grid .official-directory-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 154px;
  padding: 1.25rem;
  border: 1px solid var(--border, #dedede);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.officials-compact-grid .official-directory-portrait {
  width: 112px;
  flex: 0 0 112px;
  border-radius: 5px;
}

.officials-compact-grid .official-directory-details { min-width: 0; padding: 0; }
.officials-compact-grid .official-directory-name {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
}
.officials-compact-grid .official-directory-position {
  font-size: 0.8rem;
  text-align: left;
  text-transform: none;
}
.official-directory-more { margin-top: 0.5rem; font-size: 0.75rem; }
.official-directory-more summary { cursor: pointer; }
.official-directory-more .official-directory-committees,
.official-directory-more .official-directory-description { margin-top: 0.6rem; font-size: 0.8rem; }

@media (max-width: 1399.98px) {
  .officials-compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099.98px) {
  .officials-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699.98px) {
  .officials-compact-grid { grid-template-columns: minmax(0, 1fr); }
  .officials-directory-filters select,
  .officials-directory-filters input { max-width: none; }
}

.officials-directory-section {
  background: var(--background, #fff);
}

.officials-portrait-grid {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 4.5rem;
}

.official-directory-profile {
  color: var(--text-primary, #222);
}

.official-directory-portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #aec9df;
}

.official-directory-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.official-directory-details {
  padding-top: 0.8rem;
}

.official-directory-name {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.65rem);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.official-directory-position {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.official-directory-committees {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

.official-directory-committees li + li {
  margin-top: 0.2rem;
}

.official-directory-description {
  margin: 1rem 0 0;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  .officials-portrait-grid {
    --bs-gutter-y: 3rem;
  }
}

.livestream-glass-header.livestream-section-header {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  color: var(--text);
  border: 0;
  border-radius: 1rem 1rem 0 0;
}

#meetings .livestream-glass-shell {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: 1rem;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#meetings .livestream-glass-video {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#meetings .livestream-glass-actions,
#meetings .livestream-glass-footer {
  padding: 1rem 1.5rem;
}

.livestream-section-header h2,
.livestream-section-header p {
  color: var(--text);
}

/* Compact session details and controls. */
#meetings .meetings-list {
  border-radius: 0.5rem;
}

#meetings .meetings-list .card-body {
  padding: 0.7rem 1rem;
}

#meetings .meetings-list h6,
#meetings .livestream-glass-footer .fw-semibold {
  font-size: 0.875rem;
  line-height: 1.4;
}

#meetings .meetings-list .small,
#meetings .livestream-glass-footer .small {
  font-size: 0.75rem;
}

#meetings .meetings-list .badge,
#meetings .livestream-glass-footer .badge {
  padding: 0.2rem 0.4rem !important;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
}

#meetings .livestream-glass-actions,
#meetings .livestream-glass-footer {
  padding: 0.65rem 1rem;
}

#meetings .livestream-glass-actions .btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.8125rem;
  border-radius: 0.25rem;
}

/* Compact calendar and livestream headings. */
#meetings .livestream-glass-shell,
#meetings .calendar-card {
  border-radius: 0.5rem;
  box-shadow: none !important;
}

#meetings .livestream-section-header {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

#meetings .livestream-section-header h2 {
  font-size: 1rem;
  font-weight: 600 !important;
}

#meetings .livestream-section-header p {
  margin-top: 0.3rem !important;
  font-size: 0.75rem;
}

#meetings .calendar-card .card-body {
  padding: 1rem;
}

#meetings [data-calendar-month-label] {
  font-size: 1.125rem;
  font-weight: 600 !important;
}

#meetings .calendar-card .card-body > .mb-4 {
  margin-bottom: 1rem !important;
}

#meetings .calendar-card .btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
}

#meetings .calendar-grid {
  gap: 0.35rem;
}

#meetings .calendar-cell {
  width: 2rem;
  min-height: 2rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  box-shadow: none;
}

#meetings .calendar-weekday span {
  letter-spacing: 0.04em;
  font-weight: 600;
}

#meetings .calendar-legend {
  font-size: 0.75rem;
  gap: 0.85rem;
}

#meetings .calendar-legend span {
  font-weight: 400;
}



#meetings .upcoming-sessions {
  margin-top: 1rem;
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-radius: 0.5rem;
  background: var(--surface);
  overflow: hidden;
}

#meetings .upcoming-sessions summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

#meetings .upcoming-sessions summary:focus-visible {
  outline: 2px solid var(--nav-highlight);
  outline-offset: -3px;
}

#meetings .upcoming-sessions .meetings-list {
  max-height: 22rem;
  overflow-y: auto;
  border: 0;
  border-top: 1px solid rgba(11, 46, 74, 0.12);
  border-radius: 0;
  overflow-wrap: anywhere;
}

/* Footer contact directory. */
.site-footer .footer-main > div {
  padding-inline: 1.25rem;
}

.site-footer .footer-contact-column {
  text-align: left;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.footer-contact-column p,
.footer-contact-column address {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
  line-height: 1.6;
  font-style: normal;
}

.footer-contact-column p > i,
.footer-contact-column address > i {
  text-align: center;
  color: #fff;
}

@media (min-width: 992px) {
  .site-footer .footer-main {
    align-items: stretch !important;
  }

  .site-footer .footer-main > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
  }
}

/* Compact holiday list. */
#meetings .official-holiday-list .card-body {
  padding: 0.85rem 1rem;
}

#meetings .official-holiday-list h3 {
  font-size: 0.875rem;
  margin-bottom: 0.65rem !important;
}

#meetings .official-holiday-item {
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.5rem;
}

#meetings .official-holiday-date {
  width: 2.7rem;
  min-height: 2rem;
  border-radius: 0.4rem;
  background: #2845a3;
  font-size: 0.6875rem;
  font-weight: 600;
}

#meetings .official-holiday-item p {
  font-size: 0.8125rem;
  line-height: 1.4;
}

#meetings .official-holiday-item small {
  font-size: 0.6875rem;
  line-height: 1.4;
}

.records-directory-panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(128, 128, 128, 0.18);
  border-radius: 1rem;
}

.records-directory-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.records-search {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.records-search .form-control,
.records-search .form-select,
.records-search .btn {
  min-width: 0;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.records-browse {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.records-browse > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}

.records-browse small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.records-browse-action {
  color: var(--nav-highlight);
  white-space: nowrap;
  font-size: 0.8125rem;
}

.records-browse > a:hover .records-browse-action {
  text-decoration: underline;
}

.records-browse > a:focus-visible {
  outline: 2px solid var(--nav-highlight);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
  .records-directory-panel { padding: 1rem; }
  .records-search { grid-template-columns: minmax(0, 1fr) auto; }
  .records-search .form-select { grid-column: 1 / -1; }
  .records-browse { grid-template-columns: 1fr; gap: 0; }
}

/* Consistent, subtle corners on public content surfaces. */
:root {
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.625rem;
}

main .card,
main .records-directory-panel,
main .legis-quick-panel,
main .public-record-list-item,
main .official-holiday-item,
main .contact-quick-panel,
main .contact-method,
main .resolution-filter-card,
#public-records .approved-records-panel,
#meetings .calendar-card,
#meetings .livestream-glass-shell,
#meetings .upcoming-sessions,
#meetings .meetings-list,
#meetings .official-holiday-list,
#meetings .official-holiday-item {
  border-radius: 0.625rem;
}

main .form-control,
main .form-select,
main .btn {
  border-radius: 0.5rem;
}

#meetings .livestream-glass-header.livestream-section-header {
  border-radius: 0.625rem 0.625rem 0 0;
}

/* Joined rows and video edges stay flush inside their rounded containers. */
#meetings .meetings-list .card,
#meetings .upcoming-sessions .meetings-list,
#meetings .livestream-glass-video,
#meetings .livestream-glass-video.ratio {
  border-radius: 0;
}

/* Public records layout matching the supplied reference. */
#public-records.records-directory > .container {
  width: calc(100% - 3rem);
  max-width: 1424px;
  padding-inline: 0;
}

#public-records .records-directory-panel {
  padding: 1.625rem;
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: none;
}

#public-records .records-directory-panel h2 {
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

#public-records .records-search {
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 0.55rem;
}

#public-records .records-search .form-control,
#public-records .records-search .form-select,
#public-records .records-search .btn {
  min-height: 2.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

#public-records .records-browse {
  gap: 1.75rem;
  margin-top: 1.3rem;
}

#public-records .records-browse > a {
  padding: 1.1rem 0 1rem;
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  #public-records.records-directory > .container {
    width: calc(100% - 1.5rem);
  }

  #public-records .records-directory-panel { padding: 1rem; }
  #public-records .records-search { grid-template-columns: minmax(0, 1fr) auto; }
  #public-records .records-browse { gap: 0; }
}

#meetings .session-stream-placeholder {
  padding: 1.25rem 1rem;
  margin: 0;
  font-size: 0.875rem;
}

#meetings .meetings-list .card-body h3 {
  font-size: 0.875rem;
}

/* Give both approved record categories equal emphasis. */
#public-records .records-browse > a {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(40, 69, 163, 0.18);
  border-left: 3px solid var(--nav-highlight);
  border-radius: 0.625rem;
  background: var(--surface-secondary);
}

#public-records .records-browse > a strong {
  color: var(--nav-highlight);
  font-size: 0.9375rem;
  font-weight: 600;
}

#public-records .records-browse > a:hover {
  border-color: var(--nav-highlight);
}

#public-records .public-record-slide-card {
  position: relative;
  min-height: 5.5rem;
  overflow: hidden;
  border: 1px solid rgba(40, 69, 163, 0.18);
  border-left: 0.35rem solid var(--nav-highlight);
  border-radius: 0.35rem;
  color: var(--text);
  background: #fff;
  box-shadow: 0 0.45rem 1rem rgba(40, 69, 163, 0.1), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#public-records .public-record-paper::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, transparent 49%, rgba(40, 69, 163, 0.12) 50%);
  content: "";
}

#public-records .public-record-slide-card:hover,
#public-records .public-record-slide-card:focus-visible {
  border-color: var(--nav-highlight);
  color: var(--text);
  box-shadow: 0 0.65rem 1.25rem rgba(40, 69, 163, 0.13);
  transform: translateY(-2px);
}

#public-records .public-record-slide-card .public-record-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  color: var(--nav-highlight);
  background: rgba(40, 69, 163, 0.1);
}

#public-records .public-record-slide-card .public-record-eyebrow {
  color: var(--nav-highlight);
  font-size: 1rem;
  letter-spacing: 0;
}

#public-records .public-record-paper-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#public-records .public-record-slide-card .records-browse-action {
  color: var(--nav-highlight);
}

#public-records .public-record-carousel-controls {
  color: var(--muted);
}

#public-records .public-record-carousel-btn {
  border-color: rgba(40, 69, 163, 0.25);
  color: var(--nav-highlight);
  background: var(--surface);
}

#public-records .public-record-carousel-btn:hover,
#public-records .public-record-carousel-btn:focus-visible {
  color: #fff;
  background: var(--nav-highlight);
}

#public-records .records-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

#public-records .records-highlight-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 31rem;
  flex-direction: column;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(40, 69, 163, 0.14);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 0.4rem 1rem rgba(11, 46, 74, 0.08);
}

#public-records .records-highlight-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.3rem;
  background: var(--nav-highlight);
  content: "";
}

#public-records .records-highlight-card--featured {
  color: #fff;
  border-color: rgba(40, 69, 163, 0.3);
  background: linear-gradient(145deg, #2845a3, #29479f);
  box-shadow: 0 0.8rem 1.5rem rgba(40, 69, 163, 0.2);
}

#public-records .records-highlight-card--featured::before {
  background: linear-gradient(90deg, #f9a825, #fff, #2845a3);
}

#public-records .records-highlight-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.15rem;
}

#public-records .records-highlight-heading .public-record-icon {
  flex: 0 0 auto;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.25rem;
  color: #17324d;
  background: #fff;
}

#public-records .records-highlight-card:not(.records-highlight-card--featured) .public-record-icon {
  color: var(--nav-highlight);
  background: rgba(40, 69, 163, 0.12);
}

#public-records .records-highlight-card .public-record-paper-label {
  color: var(--muted);
}

#public-records .records-highlight-card--featured .public-record-paper-label,
#public-records .records-highlight-card--featured .public-record-eyebrow,
#public-records .records-highlight-card--featured .records-highlight-copy,
#public-records .records-highlight-card--featured .records-highlight-slider-controls {
  color: rgba(255, 255, 255, 0.82);
}

#public-records .records-highlight-card .public-record-eyebrow {
  color: var(--nav-highlight);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#public-records .records-highlight-card--featured .public-record-eyebrow {
  color: #fff;
}

#public-records .records-highlight-card h3 {
  margin: 0 0 0.65rem;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

#public-records .records-highlight-card--featured h3 {
  color: #fff;
}

#public-records .records-highlight-copy {
  min-height: 3.2rem;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

#public-records .records-highlight-slider {
  margin-top: auto;
}

#public-records .records-highlight-slider .carousel-inner {
  border-radius: 0.25rem;
}

#public-records .records-highlight-record {
  display: grid;
  min-height: 9.25rem;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(40, 69, 163, 0.12);
  border-radius: 0.25rem;
  background: #f7f9fc;
}

#public-records .records-highlight-card--featured .records-highlight-record {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
}

#public-records .records-highlight-record strong {
  color: var(--text);
  font-size: 0.78rem;
}

#public-records .records-highlight-record span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#public-records .records-highlight-record small {
  align-self: end;
  color: var(--muted);
  font-weight: 700;
}

#public-records .records-highlight-card--featured .records-highlight-record strong,
#public-records .records-highlight-card--featured .records-highlight-record span,
#public-records .records-highlight-card--featured .records-highlight-record small {
  color: #fff;
}

#public-records .records-highlight-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

#public-records .records-highlight-slider-controls button {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(40, 69, 163, 0.28);
  border-radius: 0.25rem;
  color: var(--nav-highlight);
  background: transparent;
}

#public-records .records-highlight-card--featured .records-highlight-slider-controls button {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#public-records .records-highlight-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--nav-highlight);
  border-radius: 0.25rem;
  color: var(--nav-highlight);
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
}

#public-records .records-highlight-action:hover,
#public-records .records-highlight-action:focus-visible {
  color: #fff;
  background: var(--nav-highlight);
}

#public-records .records-highlight-card--featured .records-highlight-action {
  color: #14233d;
  border-color: #fff;
}

#public-records .records-highlight-card--featured .records-highlight-action:hover,
#public-records .records-highlight-card--featured .records-highlight-action:focus-visible {
  color: #14233d;
  background: #e9eefb;
}

@media (max-width: 767.98px) {
  #public-records .records-highlight-grid {
    grid-template-columns: 1fr;
  }

  #public-records .records-highlight-card {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  #public-records .records-browse { gap: 0.65rem; }
}

/* Keep the public homepage surfaces crisp and compact. */
body.is-home-page .glance-stat-card,
body.is-home-page .glance-weather-card,
body.is-home-page .glance-map-card,
body.is-home-page .update-announcement-card,
body.is-home-page .home-category-example,
body.is-home-page .calendar-card,
body.is-home-page .official-holiday-list,
body.is-home-page .calendar-empty-state,
body.is-home-page .livestream-glass-shell,
body.is-home-page .livestream-glass-header,
body.is-home-page .livestream-glass-video,
body.is-home-page .records-directory-panel {
  border-radius: 0.35rem;
}

body.is-home-page .post-featured-media,
body.is-home-page .post-reel-frame,
body.is-home-page .post-comments-panel,
body.is-home-page .official-holiday-item,
body.is-home-page .session-panel,
body.is-home-page .session-stream-placeholder {
  border-radius: 0.25rem;
}

body.is-home-page .glance-stat-card,
body.is-home-page .glance-weather-card,
body.is-home-page .glance-map-card,
body.is-home-page .update-announcement-card,
body.is-home-page .calendar-card,
body.is-home-page .official-holiday-list,
body.is-home-page .livestream-glass-shell,
body.is-home-page .records-directory-panel {
  box-shadow: 0 0.35rem 0.9rem rgba(11, 46, 74, 0.08);
}

body.is-home-page .btn,
body.is-home-page .form-control,
body.is-home-page .form-select,
body.is-home-page input,
body.is-home-page textarea,
body.is-home-page select {
  border-radius: 0.25rem;
}

body.is-home-page .post-category-badge,
body.is-home-page .post-pinned-badge,
body.is-home-page .post-metric-pill,
body.is-home-page .home-update-category-tab {
  border-radius: 0.25rem;
}

/* Keep the public navigation aligned with the homepage's sharper surfaces. */
.site-header .navbar .nav-link,
.site-header .nav-button-dropdown .btn-danger,
.site-header .dropdown-menu,
.site-header .navbar-section-menu,
.site-header .dropdown-item,
.site-header .navbar-toggler {
  border-radius: 0.25rem;
}

.site-header .navbar .nav-link {
  padding-inline: 0.72rem;
}

.site-header .nav-button-dropdown .btn-danger {
  padding-inline: 0.55rem;
}

/* Shared public-page geometry and alignment. */
body.public-site {
  --public-content-width: 1440px;
  --public-gutter: clamp(1rem, 3vw, 2.5rem);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.375rem;
  --bs-border-radius-lg: 0.375rem;
  --bs-border-radius-xl: 0.375rem;
  --bs-border-radius-xxl: 0.375rem;
  --bs-border-radius-pill: 0.375rem;
}

body.public-site :is(.card, .modal-content, .dropdown-menu, .form-control, .form-select, .btn) {
  border-radius: 0.375rem;
}

body.public-site #main-content > section > :is(.container, .container-fluid),
body.public-site .government-brand-container,
body.public-site .site-header .navbar > :is(.container, .container-fluid),
body.public-site .footer-container {
  width: 100%;
  max-width: var(--public-content-width);
  margin-inline: auto;
  padding-inline: var(--public-gutter) !important;
}

body.public-site .government-brand-container {
  max-width: none;
  padding-inline: 1rem !important;
}

body.public-site .government-brand-seal,
body.public-site .government-brand-seal img,
body.public-site .citizen-chat-btn,
body.public-site .scroll-top-btn,
body.public-site .scroll-top-btn::before {
  border-radius: 50% !important;
}

body.public-site #main-content :is(.row > *, .card-body, .item-copy, .contact-method > div) {
  min-width: 0;
}

body.public-site #main-content :is(.card-body, .item-copy, .contact-method strong) {
  overflow-wrap: anywhere;
}

body.public-site .officials-compact-grid {
  align-items: stretch;
}

body.public-site .officials-compact-grid .official-directory-profile {
  height: 100%;
}

body.public-site :is(.officials-directory-filters, .legislative-toolbar) {
  align-items: center;
  gap: 0.75rem;
}

body.public-site .officials-directory-filters :is(input, select) {
  min-height: 2.5rem;
}

@media (max-width: 575.98px) {
  body.public-site .legislative-toolbar {
    flex-wrap: wrap;
  }

  body.public-site .legislative-search {
    width: 100%;
    min-width: 0;
  }
}
