:root {
  --primary: #0b4f8c;
  --primary-700: #083d6d;
  --secondary: #0a8fdc;
  --accent: #16a34a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef6fc;
  --text: #172033;
  --muted: #526172;
  --border: #d9e2ec;
  --shadow: 0 18px 45px rgba(8, 61, 109, 0.12);
  --radius: 8px;
  --max: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
body.dark {
  --bg: #0d1724;
  --surface: #121f30;
  --surface-2: #172840;
  --text: #eef6ff;
  --muted: #b7c6d6;
  --border: #2a3e55;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
body.contrast {
  --primary: #003f7f;
  --secondary: #005ea8;
  --accent: #008a2e;
  --text: #000000;
  --muted: #1c1c1c;
  --border: #111111;
  background: #ffffff;
}
body.large-text { font-size: 18px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #facc15; outline-offset: 3px; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 76px 0; }
.section.alt { background: var(--surface); }
.eyebrow {
  color: var(--secondary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
h1, h2, h3, h4 {
  font-family: Poppins, Segoe UI, Arial, sans-serif;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 16px; color: var(--muted); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border: 2px solid #000;
}
.skip-link:focus { top: 12px; }

.utility {
  background: var(--primary-700);
  color: #fff;
  font-size: .88rem;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
}
.ticker { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ticker strong { color: #c7ebff; white-space: nowrap; }
.ticker span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.utility button, .icon-button {
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: inherit;
  min-height: 34px;
  min-width: 34px;
  border-radius: 6px;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
body.dark .site-header { background: rgba(18,31,48,.96); }
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--primary);
}
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 18px rgba(11,79,140,.25);
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px;
  flex: 0 0 auto;
}
.brand small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; }
.nav-toggle { display: none; background: var(--primary); color: #fff; border: 0; padding: 10px 12px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { list-style: none; position: relative; }
.nav a, .nav button.menu-trigger {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 26px 10px;
  font-weight: 800;
  cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--primary); }
.mega {
  position: absolute;
  right: 0;
  top: 100%;
  display: none;
  width: min(760px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
}
.mega p { font-size: .9rem; margin-bottom: 8px; }

.search-panel {
  display: none;
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  box-shadow: var(--shadow);
}
.search-panel.active { display: block; }
.search-row { display: flex; gap: 10px; }
.search-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--surface);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #092f55;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,34,62,.95) 0%, rgba(7,34,62,.78) 42%, rgba(7,34,62,.24) 76%);
  z-index: 1;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 780px;
  padding: 78px 0 110px;
}
.hero p { color: #d9ecff; font-size: 1.12rem; max-width: 720px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.btn.secondary { background: #fff; color: var(--primary); border-color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.accent { background: var(--accent); border-color: var(--accent); }

.doc-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-link:hover {
  color: #075c43;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.doc-actions.compact {
  margin-top: 12px;
  margin-bottom: 0;
}

.doc-actions.compact .btn {
  min-height: 38px;
  padding: 8px 12px;
}

.doc-actions .btn.ghost {
  color: var(--primary);
  border-color: var(--primary);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.strip-item { padding: 18px; border-right: 1px solid var(--border); }
.strip-item:last-child { border-right: 0; }
.strip-item strong { display: block; color: var(--primary); font-size: 1.4rem; }

.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 24px rgba(8,61,109,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(238, 246, 252, .95), rgba(240, 253, 244, .95));
  box-shadow: var(--shadow);
  border-color: rgba(10,143,220,.45);
}

.card:hover .icon {
  background: #0b4f8c;
  color: #fff;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 900;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head p { max-width: 680px; }

.stats {
  background: linear-gradient(135deg, var(--primary), #06335e);
  color: #fff;
}
.stats p { color: #d9ecff; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
}
.stat strong { display: block; font-size: clamp(1.7rem, 3vw, 2.6rem); }

.program-card { padding: 0; overflow: hidden; }
.program-media {
  min-height: 150px;
  background: linear-gradient(135deg, #dff3ff, #eefcf3);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 900;
}
.program-body { padding: 22px; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.pill {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 800;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline { border-left: 3px solid var(--secondary); padding-left: 24px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
}

.accordion button {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 16px;
  text-align: left;
  font-weight: 900;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}
.accordion-panel {
  display: none;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
}
.accordion-panel.active { display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--surface-2); color: var(--primary); }

.form {
  display: grid;
  gap: 14px;
}
.form input, .form textarea, .form select {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 12px 13px;
  width: 100%;
}
.form textarea { min-height: 130px; resize: vertical; }

.breadcrumb { padding: 22px 0; color: var(--muted); font-weight: 700; }
.page-hero {
  background: linear-gradient(135deg, var(--primary), #06335e);
  color: #fff;
  padding: 68px 0;
}
.page-hero p { color: #d9ecff; max-width: 760px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dff3ff, #f1fff5);
  border: 1px solid var(--border);
  display: grid;
  align-content: end;
  padding: 16px;
  color: var(--primary);
  font-weight: 900;
}

.site-footer {
  background: #071c33;
  color: #fff;
  padding: 58px 0 24px;
}
.site-footer p, .site-footer a { color: #c8d8e7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; }
.footer-grid a { display: block; padding: 5px 0; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px; border-radius: 6px; border: 0; }
.copyright { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.floating-contact, .back-to-top {
  position: fixed;
  right: 18px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}
.floating-contact { bottom: 82px; background: var(--accent); }
.back-to-top { bottom: 22px; background: var(--primary); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
  }
  .nav.active { display: flex; }
  .nav a, .nav button.menu-trigger { padding: 12px; text-align: left; width: 100%; }
  .mega { position: static; width: 100%; box-shadow: none; grid-template-columns: 1fr; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
  .hero-strip, .stat-grid, .grid.cols-4, .footer-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .utility .container { align-items: flex-start; flex-direction: column; padding: 8px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 58px 0 190px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .stat-grid, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .section-head { display: block; }
  .newsletter, .search-row { flex-direction: column; }
}

/* Government-style compact portal home */
.portal-home {
  background: #f4f6f8;
}

.gov-top {
  background: #efefef;
  border-bottom: 1px solid #d7d7d7;
  color: #1c2733;
  font-size: .82rem;
}

.gov-top .container {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gov-top-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gov-top button {
  border: 1px solid #b8c2cc;
  background: #fff;
  min-height: 26px;
  border-radius: 2px;
  cursor: pointer;
}

.gov-header {
  background: #fff;
  border-bottom: 1px solid #d8e0e8;
}

.gov-brand-row {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #0b4f8c;
}

.gov-brand strong {
  display: block;
  font-family: Poppins, Segoe UI, Arial, sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.gov-brand small {
  display: block;
  color: #3e5064;
  font-weight: 700;
  margin-top: 4px;
}

.gov-emblem {
  width: 66px;
  height: 66px;
  border: 3px solid #0b4f8c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0b4f8c;
  font-weight: 900;
}

.gov-logo {
  width: 76px;
  height: 76px;
  border: 2px solid #0b4f8c;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(11,79,140,.12);
}

.gov-search {
  width: min(520px, 42vw);
}

.gov-search .search-row input {
  border-radius: 2px;
}

.gov-search .btn,
.portal-home .btn {
  border-radius: 2px;
}

.gov-nav {
  background: #0b4f8c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 80;
}

.gov-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gov-nav .nav {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.gov-nav .nav a {
  display: block;
  color: #fff;
  padding: 14px 16px;
  font-size: .95rem;
  font-weight: 800;
  border-right: 1px solid rgba(255,255,255,.18);
}

.gov-nav .nav a:hover {
  background: #083d6d;
  color: #fff;
}

.notice-strip {
  background: #fff8e6;
  border-bottom: 1px solid #ecd28b;
  color: #172033;
}

.notice-strip .container {
  min-height: 50px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.notice-strip .container > span {
  min-width: 0;
  overflow: hidden;
}

.notice-strip strong {
  background: #b42318;
  color: #fff;
  padding: 7px 10px;
  border-radius: 2px;
  font-size: .9rem;
}

.notice-text {
  display: block;
  color: #0b2b55;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.notice-text::before {
  content: attr(data-text);
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  animation: notice-marquee 28s linear infinite;
  will-change: transform;
}

.notice-strip:hover .notice-text::before {
  animation-play-state: paused;
}

@keyframes notice-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.gov-hero {
  background: #eaf2f9;
  border-bottom: 1px solid #cddce9;
  padding: 24px 0 28px;
}

.gov-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: clamp(18px, 2vw, 30px);
}

.gov-hero-copy {
  background: #fff;
  border: 1px solid #d8e0e8;
  border-left: 4px solid #0b4f8c;
  padding: clamp(28px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  box-shadow: 0 18px 38px rgba(11, 79, 140, .08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.gov-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 48%, rgba(255,255,255,.78) 100%),
    url("../images/mission-skilled-wall-flag.jpeg") center / cover no-repeat;
}

.gov-hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(11,79,140,.08), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(22,163,74,.12), transparent 28%);
}

.gov-hero-copy > * {
  width: auto;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.gov-hero-copy .eyebrow {
  color: #0077d9;
  font-size: clamp(.84rem, 1vw, .98rem);
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 8px;
  text-shadow: none;
}

.gov-hero-copy h1 {
  color: #0b4f8c;
  font-size: clamp(2rem, 4vw, 3.3rem);
  text-shadow: none;
}

.gov-hero-copy .stacked-title {
  color: #070d1d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 4.8vw, 4.35rem);
  font-weight: 900;
  line-height: .92;
  margin-bottom: 16px;
}

.stacked-title span {
  display: block;
}

.gov-hero-copy p {
  color: #0b2b55;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.48;
  max-width: 720px;
  margin-bottom: 16px;
  text-shadow: none;
}

.gov-hero-copy .hero-actions {
  gap: 18px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
}

.gov-hero-copy .btn.accent {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 1rem;
}

.gov-hero-copy .btn.secondary {
  background: transparent;
  border-color: transparent;
  color: #003f7f;
  min-height: 52px;
  padding: 14px 18px;
  font-size: 1rem;
  box-shadow: none;
  text-shadow: none;
}

.gov-hero-copy.hero-image-card {
  padding: 0;
  background: #fff;
  min-height: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
}

.gov-hero-copy.hero-image-card::before,
.gov-hero-copy.hero-image-card::after {
  display: none;
}

.gov-hero-copy.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.gov-hero-image {
  display: block;
  min-height: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d9e6;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(6, 59, 104, .12);
  position: relative;
}

.gov-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider {
  position: relative;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.72);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 59, 104, .42), transparent);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.hero-slide.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
  background: rgba(7, 28, 51, .55);
  padding: 7px 9px;
  border-radius: 999px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dots button.active {
  background: #fff;
}

@media (max-width: 1380px) and (min-width: 981px) {
  .gov-hero-grid {
    grid-template-columns: 1fr;
    max-width: 1100px;
  }

  .gov-hero-copy.hero-image-card,
  .gov-hero-image {
    max-width: 1100px;
    margin: 0 auto;
  }
}

.portal-panel {
  padding: 24px 0;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  column-gap: 22px;
  row-gap: 14px;
  align-items: stretch;
}

.portal-stack {
  display: grid;
  gap: 18px;
  align-content: start;
  height: 100%;
}

.portal-side,
.portal-main {
  background: #fff;
  border: 1px solid #c9d9e6;
  box-shadow: 0 10px 24px rgba(6, 66, 49, .06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portal-stack .portal-side {
  height: 100%;
}

.portal-stack .portal-side a {
  display: flex;
  align-items: center;
  flex: 1;
}

.portal-main {
  height: auto;
}

.portal-notices {
  grid-column: 1 / -1;
  height: auto;
}

.portal-notices h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.portal-side h2,
.section-title {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(90deg, #063b68, #075c43);
  color: #fff;
  border-bottom: 3px solid #f97316;
}

.portal-side h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.08;
}

.section-title .eyebrow,
.section-title h2 {
  color: #fff;
  margin: 0;
}

.section-title h2 {
  font-size: 1.1rem;
}

.portal-side a {
  display: block;
  padding: 10px 16px;
  border-top: 1px solid #dbe8e2;
  color: #063b68;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(11,79,140,.06), rgba(22,163,74,.05));
}

.portal-side a:hover {
  background: #fff7ed;
  color: #075c43;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 118px;
  gap: 0;
  flex: none;
}

.service-box {
  min-height: 104px;
  padding: 14px 18px;
  border-top: 1px solid #e3e8ef;
  border-right: 1px solid #e3e8ef;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.service-box:hover {
  background: #f2f8fd;
}

.service-box.image-reveal {
  min-height: 118px;
}

.service-box.image-reveal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .28s ease, transform .45s ease;
}

.service-box.image-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, rgba(4, 32, 58, .88), rgba(7, 92, 67, .62));
  transition: opacity .28s ease;
}

.service-box.image-reveal:hover img,
.service-box.image-reveal:focus-visible img {
  opacity: 1;
  transform: scale(1);
}

.service-box.image-reveal:hover::after,
.service-box.image-reveal:focus-visible::after {
  opacity: 1;
}

.service-box span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #0b4f8c;
  color: #fff;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.service-box strong,
.service-box small {
  display: block;
  position: relative;
  z-index: 2;
}

.service-box strong {
  color: #172033;
  font-size: 1rem;
}

.service-box small {
  color: #526172;
  font-size: .88rem;
  line-height: 1.35;
  margin-top: 2px;
}

.service-box.image-reveal:hover span,
.service-box.image-reveal:focus-visible span {
  background: #f97316;
}

.service-box.image-reveal:hover strong,
.service-box.image-reveal:hover small,
.service-box.image-reveal:focus-visible strong,
.service-box.image-reveal:focus-visible small {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.notice-card {
  padding: 10px 14px;
  border-top: 1px solid #dbe8e2;
  background: linear-gradient(90deg, rgba(255, 247, 237, .9), rgba(240, 253, 244, .9));
  border-left: 4px solid #f97316;
  margin: 8px 10px;
  box-shadow: 0 8px 18px rgba(11, 79, 140, .06);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.notice-card:hover {
  background: linear-gradient(135deg, #eef6fc, #f0fdf4);
  border-left-color: #0b4f8c;
  box-shadow: 0 12px 24px rgba(11, 79, 140, .12);
  transform: translateY(-2px);
}

.notice-card strong {
  display: block;
  color: #075c43;
  font-size: .9rem;
}

.notice-card p {
  margin: 4px 0 0;
  font-size: .92rem;
  line-height: 1.35;
}

.notice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, .55fr);
  gap: 10px;
  padding: 10px;
}

.portal-notices .notice-card {
  margin: 0;
}

.view-link {
  color: #0b4f8c;
  font-weight: 900;
  text-decoration: underline;
}

.portal-side .view-link {
  margin: 0 10px 12px;
  background: #063b68;
  color: #fff;
  text-align: center;
  margin-top: auto;
}

.portal-side .view-link:hover {
  background: #075c43;
  color: #fff;
}

.portal-notices .view-link {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin: 0;
  border-top: 0;
}

.portal-stats {
  padding: 32px 0;
}

.portal-home .section {
  padding: 46px 0;
}

.compliance-section {
  background: #fff;
  border-top: 1px solid #d8e0e8;
  border-bottom: 1px solid #d8e0e8;
}

.legal-grid,
.objective-grid {
  display: grid;
  gap: 16px;
}

.legal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.objective-grid {
  grid-template-columns: repeat(3, 1fr);
}

.legal-grid > div,
.legal-grid > a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 16px;
  min-height: 92px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.legal-grid > div:hover,
.legal-grid > a:hover {
  background: linear-gradient(135deg, #eef6fc, #f0fdf4);
  border-left-color: #f97316;
  box-shadow: 0 12px 24px rgba(11, 79, 140, .12);
  transform: translateY(-2px);
}

.legal-grid strong,
.legal-grid span {
  display: block;
}

.legal-grid strong {
  color: var(--primary);
  font-size: .9rem;
  text-transform: uppercase;
}

.legal-grid span {
  margin-top: 6px;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-list p {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.legal-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 980px) {
  .gov-top .container,
  .gov-brand-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .gov-search {
    width: 100%;
  }

  .gov-nav .container {
    display: block;
    padding: 10px 0;
  }

  .gov-nav .nav {
    display: none;
    margin-top: 10px;
  }

  .gov-nav .nav.active {
    display: block;
  }

  .gov-nav .nav a {
    border-top: 1px solid rgba(255,255,255,.18);
    border-right: 0;
  }

  .gov-hero-grid,
  .portal-layout,
  .legal-grid,
  .objective-grid {
    grid-template-columns: 1fr;
  }

  .gov-hero-copy,
  .gov-hero-image {
    min-height: auto;
  }

  .gov-hero-copy {
    min-height: 520px;
    padding: 34px;
  }

  .gov-hero-copy.hero-image-card {
    min-height: auto;
    padding: 0;
  }

  .gov-hero-copy.hero-image-card img {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .gov-hero-copy::after {
    background:
      linear-gradient(135deg, rgba(11,79,140,.08), transparent 42%),
      radial-gradient(circle at 88% 18%, rgba(22,163,74,.12), transparent 28%);
  }

  .gov-hero-copy > * {
    width: min(92%, 560px);
    margin-left: 0;
  }

  .gov-hero-image {
    aspect-ratio: 16 / 9;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .notice-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .notice-strip .container {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .gov-brand {
    align-items: flex-start;
  }

  .gov-emblem {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .gov-logo,
  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .gov-hero-copy .stacked-title {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .gov-hero-copy .btn.accent,
  .gov-hero-copy .btn.secondary {
    min-height: 52px;
    padding: 14px 16px;
  }
}
