/**
 * Modern Koronadal City Portal homepage
 *
 * @format
 */

:root {
  --blue: #1769aa;
  --blue-dark: #0d47a1;
  --blue-soft: #eef5ff;
  --yellow: #f3b51b;
  --red: #d92d3f;
  --ink: #172536;
  --muted: #718092;
  --line: #e3eaf2;
  --bg: #f6f8fb;
  --white: #fff;
  --green: #178a62;
  --shadow: 0 18px 40px rgba(23, 47, 74, 0.07);
  --shadow-sm: 0 6px 18px rgba(23, 47, 74, 0.06);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}
.portal-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 205px;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}
.brand small {
  font-size: 7px;
  color: var(--muted);
  margin-top: 3px;
}
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex: 1;
}
.desktop-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: #667587;
  font-size: 8px;
  font-weight: 800;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.official-pill {
  font-size: 6px;
  font-weight: 800;
  color: #657385;
}
.official-pill i {
  color: #2ba66f;
  font-size: 4px;
  margin-right: 4px;
}
.header-service-btn {
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-btn {
  display: none;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.brand-accent {
  height: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.brand-accent i:nth-child(1) {
  background: var(--blue);
}
.brand-accent i:nth-child(2) {
  background: var(--yellow);
}
.brand-accent i:nth-child(3) {
  background: var(--red);
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  background: rgba(10, 30, 50, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(350px, 88vw);
  z-index: 1200;
  background: #fff;
  padding: 18px;
  transform: translateX(105%);
  transition: 0.25s ease;
  box-shadow: -15px 0 40px rgba(16, 42, 67, 0.15);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .brand {
  min-width: 0;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.drawer-nav {
  padding: 12px 0;
}
.drawer-nav a {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 11px;
  color: #506073;
  font-size: 9px;
  font-weight: 700;
}
.drawer-nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.drawer-nav a > i:last-child {
  font-size: 6px;
  color: #a5afba;
}
.drawer-emergency {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff4f5;
  border: 1px solid #f2d6da;
}
.drawer-emergency small,
.drawer-emergency strong,
.drawer-emergency span {
  display: block;
}
.drawer-emergency small {
  font-size: 5px;
  color: var(--red);
  font-weight: 800;
}
.drawer-emergency strong {
  font-size: 22px;
  color: var(--red);
  margin: 2px 0;
}
.drawer-emergency span {
  font-size: 6px;
  color: var(--muted);
}
.portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 20px 0 70px;
}
.home-hero {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 23px;
  background: linear-gradient(135deg, #0d47a1, #1769aa 58%, #2588c9);
  color: #fff;
  padding: 48px 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 15px 45px rgba(13, 71, 161, 0.15);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  max-width: 580px;
}
.hero-kicker {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  display: flex;
  gap: 6px;
  align-items: center;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #69dfa4;
}
.hero-content h1 {
  font-size: 37px;
  line-height: 1.07;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.hero-content p {
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 420px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 7px;
  margin-top: 22px;
}
.primary-action,
.secondary-action {
  height: 39px;
  padding: 0 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7px;
  font-weight: 800;
}
.primary-action {
  background: #fff;
  color: var(--blue);
}
.secondary-action {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.portal-search {
  height: 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  margin: -24px 40px 18px;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 28px rgba(20, 43, 69, 0.1);
}
.portal-search > i {
  font-size: 11px;
  color: var(--blue);
}
.portal-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
  color: var(--ink);
}
.portal-search button {
  border: 0;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #f1f5f8;
  color: #8190a0;
}
.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-strip a {
  min-height: 66px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  display: grid;
  grid-template-columns: 36px 1fr 9px;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.quick-strip a:hover,
.service-card:hover,
.portal-row:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d6e2ee;
}
.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.quick-strip b,
.quick-strip small {
  display: block;
}
.quick-strip b {
  font-size: 7px;
}
.quick-strip small {
  font-size: 5.8px;
  color: var(--muted);
  margin-top: 2px;
}
.quick-strip > a > i {
  font-size: 6px;
  color: #a4afba;
}
.blue {
  background: #eaf3ff;
  color: #1769aa;
}
.cyan {
  background: #e8f8fb;
  color: #13849a;
}
.purple {
  background: #f2edff;
  color: #7354b7;
}
.rose {
  background: #fff0f2;
  color: #c63d55;
}
.indigo {
  background: #eef0ff;
  color: #4d58a8;
}
.green {
  background: #eaf8f2;
  color: #16815d;
}
.teal {
  background: #e7f8f5;
  color: #147f73;
}
.red {
  background: #fff0f1;
  color: #d92d3f;
}
.violet {
  background: #f2edff;
  color: #7252b2;
}
.portal-section {
  margin-top: 28px;
  scroll-margin-top: 85px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 11px;
}
.section-heading > div > span {
  font-size: 6px;
  letter-spacing: 0.13em;
  color: var(--blue);
  font-weight: 800;
}
.section-heading h2 {
  font-size: 17px;
  line-height: 1.15;
  margin: 3px 0;
}
.section-heading p {
  font-size: 7px;
  color: var(--muted);
  margin: 0;
}
.section-count {
  font-size: 5px;
  font-weight: 800;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 7px;
}
.text-link {
  font-size: 6px;
  color: var(--blue);
  font-weight: 800;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}
.service-card {
  min-height: 116px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.2s;
}
.service-icon {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 8px;
}
.service-card strong {
  font-size: 7px;
  line-height: 1.15;
}
.service-card small {
  font-size: 5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.25;
}
.search-empty {
  display: none;
  background: #fff;
  border: 1px dashed #cbd6e2;
  border-radius: 11px;
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 7px;
}
.search-empty.show {
  display: block;
}
.portal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.portal-row {
  min-height: 70px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 11px;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.portal-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.portal-copy {
  min-width: 0;
}
.portal-copy strong,
.portal-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-copy strong {
  font-size: 7px;
}
.portal-copy small {
  font-size: 5.5px;
  color: var(--muted);
  margin-top: 2px;
}
.portal-badge {
  font-size: 4px;
  font-weight: 800;
  color: #738092;
  background: #f3f6f9;
  border-radius: 6px;
  padding: 4px 5px;
}
.portal-row > i {
  font-size: 6px;
  color: #a2adb9;
}
.emergency-panel {
  margin-top: 28px;
  background: #102a43;
  border-radius: 17px;
  padding: 17px;
  color: #fff;
}
.emergency-main {
  display: grid;
  grid-template-columns: 43px 1fr auto;
  align-items: center;
  gap: 10px;
}
.emergency-symbol {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: rgba(217, 45, 63, 0.18);
  color: #ff7f8b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.emergency-main span {
  font-size: 5px;
  color: #ff9aa4;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.emergency-main h2 {
  font-size: 14px;
  margin: 2px 0;
}
.emergency-main p {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}
.emergency-call {
  min-width: 78px;
  padding: 7px 10px;
  background: var(--red);
  border-radius: 10px;
  text-align: center;
  color: #fff;
}
.emergency-call strong,
.emergency-call small {
  display: block;
}
.emergency-call strong {
  font-size: 18px;
  line-height: 1;
}
.emergency-call small {
  font-size: 4px;
  font-weight: 800;
  margin-top: 3px;
}
.hotline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.hotline-grid a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.hotline-grid i {
  font-size: 8px;
  color: #ff9aa4;
}
.hotline-grid b,
.hotline-grid small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hotline-grid b {
  font-size: 5.5px;
}
.hotline-grid small {
  font-size: 4.8px;
  color: rgba(255, 255, 255, 0.52);
  margin-top: 2px;
}
.panel-link {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 5.5px;
  font-weight: 800;
}
.mayor-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 225px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(23, 47, 74, 0.05);
}
.mayor-copy {
  padding: 23px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mayor-label {
  font-size: 5.5px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.mayor-label i {
  margin-right: 4px;
}
.mayor-copy h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 6px 0;
}
.mayor-copy > p {
  font-size: 7px;
  color: #5d6b7b;
  line-height: 1.55;
  max-width: 500px;
  margin: 0;
}
.mayor-motto {
  display: flex;
  gap: 6px;
  margin-top: 11px;
  padding: 9px;
  background: #f5f8fc;
  border-left: 2px solid var(--blue);
  border-radius: 0 9px 9px 0;
  font-size: 5.5px;
  color: #5d6b7b;
  line-height: 1.45;
}
.mayor-motto i {
  color: var(--blue);
}
.mayor-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 5px;
  color: #7a8796;
}
.mayor-meta a {
  color: var(--blue);
  font-weight: 800;
}
.mayor-photo {
  position: relative;
  min-height: 225px;
  background: #eaf0f7;
}
.mayor-photo img {
  width: 100%;
  height: 100%;
  min-height: 225px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.mayor-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 71, 161, 0.15), transparent 65%);
}
.mayor-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: #334154;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 4px;
  font-weight: 800;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.info-card {
  position: relative;
  min-height: 120px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.info-card > span {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.info-card strong {
  font-size: 7px;
  margin-top: 10px;
}
.info-card small {
  font-size: 5.3px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 3px;
  padding-right: 10px;
}
.info-card > i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #a2adb8;
  font-size: 6px;
}
.citizen-banner {
  margin-top: 28px;
  padding: 15px;
  background: linear-gradient(135deg, #eaf3ff, #f8fbff);
  border: 1px solid #d7e5f3;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
}
.citizen-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.citizen-banner span {
  font-size: 5px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.citizen-banner h2 {
  font-size: 12px;
  margin: 2px 0;
}
.citizen-banner p {
  font-size: 5.5px;
  color: var(--muted);
  margin: 0;
}
.citizen-banner > a {
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 5.5px;
  font-weight: 800;
}
.portal-footer {
  background: #102a43;
  color: #fff;
  padding: 23px 15px 85px;
}
.footer-inner {
  width: min(1180px, 100%);
  margin: auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 3px;
}
.footer-brand strong,
.footer-brand span {
  display: block;
}
.footer-brand strong {
  font-size: 8px;
}
.footer-brand span {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-copy {
  font-size: 5.5px;
  color: rgba(255, 255, 255, 0.58);
  max-width: 390px;
  margin-top: 7px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 13px;
}
.footer-links a {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 4.5px;
  color: rgba(255, 255, 255, 0.4);
}
.bottom-nav {
  display: none;
  position: fixed;
  grid-template-columns: repeat(5, 1fr);
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: calc(100% - 12px);
  height: 55px;
  z-index: 1050;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(15px);
  box-shadow: 0 9px 30px rgba(16, 42, 67, 0.16);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 11px;
  color: #8b96a3;
}
.bottom-nav a i {
  font-size: 10px;
}
.bottom-nav a span {
  font-size: 4.5px;
  font-weight: 800;
}
.bottom-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
}
.bottom-nav a.center i {
  width: 29px;
  height: 29px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 12px rgba(23, 105, 170, 0.22);
}
.bottom-nav a.center span {
  color: var(--blue);
}
.view-switcher {
  position: fixed;
  right: 12px;
  bottom: 14px;
  z-index: 1100;
}
.view-trigger {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 7px 20px rgba(16, 42, 67, 0.13);
}
.view-menu {
  position: absolute;
  right: 0;
  bottom: 41px;
  display: none;
  gap: 2px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.13);
}
.view-switcher.open .view-menu {
  display: flex;
}
.view-menu button {
  border: 0;
  background: #fff;
  color: #728091;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 5px;
  font-weight: 800;
}
.view-menu button.active {
  background: var(--blue-soft);
  color: var(--blue);
}
@media (max-width: 900px) {
  .desktop-nav,
  .official-pill,
  .header-service-btn {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header-inner {
    height: 62px;
  }
  .portal-shell {
    width: min(720px, calc(100% - 24px));
    padding-top: 14px;
  }
  .home-hero {
    min-height: 310px;
    padding: 34px;
  }
  .hero-content {
    width: 62%;
  }
  .hero-content h1 {
    font-size: 29px;
  }
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .portal-list {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mayor-card {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .mayor-photo,
  .mayor-photo img {
    min-height: 205px;
  }
}
@media (max-width: 620px) {
  .header-inner {
    width: calc(100% - 18px);
  }
  .brand {
    min-width: 0;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand strong {
    font-size: 10px;
  }
  .brand small {
    font-size: 5.5px;
  }
  .portal-shell {
    width: calc(100% - 16px);
    padding: 9px 0 70px;
  }
  .home-hero {
    min-height: 285px;
    padding: 23px 17px;
    border-radius: 18px;
  }
  .hero-content {
    width: 68%;
  }
  .hero-kicker {
    font-size: 5.5px;
  }
  .hero-content h1 {
    font-size: 22px;
    margin: 8px 0;
  }
  .hero-content p {
    font-size: 6.5px;
  }
  .hero-actions {
    margin-top: 14px;
  }
  .primary-action,
  .secondary-action {
    height: 32px;
    padding: 0 9px;
    font-size: 5.8px;
  }
  .portal-search {
    margin: -19px 7px 12px;
    height: 43px;
  }
  .portal-search input {
    font-size: 7.5px;
  }
  .quick-strip {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .quick-strip a {
    min-height: 55px;
  }
  .portal-section {
    margin-top: 23px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .section-heading p {
    font-size: 6px;
  }
  .section-heading > div > span {
    font-size: 5.5px;
  }
  .service-grid {
    gap: 4px;
  }
  .service-card {
    min-height: 91px;
    border-radius: 11px;
    padding: 7px 3px;
  }
  .service-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 11px;
    margin-bottom: 5px;
  }
  .service-card strong {
    font-size: 6px;
  }
  .service-card small {
    font-size: 4.5px;
  }
  .portal-row {
    grid-template-columns: 35px minmax(0, 1fr) 9px;
    min-height: 63px;
  }
  .portal-logo {
    width: 35px;
    height: 35px;
  }
  .portal-copy strong {
    font-size: 6.5px;
  }
  .portal-copy small {
    font-size: 5px;
  }
  .portal-badge {
    display: none;
  }
  .emergency-panel {
    margin-top: 23px;
    padding: 13px;
    border-radius: 14px;
  }
  .emergency-main {
    grid-template-columns: 35px 1fr auto;
  }
  .emergency-symbol {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }
  .emergency-main h2 {
    font-size: 11px;
  }
  .emergency-main p {
    font-size: 5px;
  }
  .emergency-call {
    min-width: 55px;
  }
  .hotline-grid {
    grid-template-columns: 1fr;
  }
  .hotline-grid b {
    font-size: 5.5px;
  }
  .mayor-card {
    grid-template-columns: 1.18fr 0.82fr;
    min-height: 150px;
  }
  .mayor-copy {
    padding: 11px;
  }
  .mayor-copy h3 {
    font-size: 10px;
  }
  .mayor-copy > p {
    font-size: 5px;
  }
  .mayor-motto {
    font-size: 4.5px;
    padding: 6px;
    margin-top: 7px;
  }
  .mayor-meta {
    font-size: 4.4px;
    margin-top: 7px;
  }
  .mayor-meta span {
    display: none;
  }
  .mayor-photo,
  .mayor-photo img {
    min-height: 150px;
  }
  .mayor-photo span {
    font-size: 3.7px;
    right: 6px;
    bottom: 6px;
  }
  .info-grid {
    gap: 5px;
  }
  .info-card {
    min-height: 106px;
    padding: 9px;
  }
  .info-card > span {
    width: 29px;
    height: 29px;
  }
  .info-card strong {
    font-size: 6px;
  }
  .info-card small {
    font-size: 4.8px;
  }
  .citizen-banner {
    grid-template-columns: 36px 1fr;
    padding: 10px;
  }
  .citizen-badge {
    width: 36px;
    height: 36px;
  }
  .citizen-banner h2 {
    font-size: 9px;
  }
  .citizen-banner p {
    font-size: 4.8px;
  }
  .citizen-banner > a {
    grid-column: 1/-1;
    justify-content: center;
    height: 29px;
    font-size: 5px;
  }
  .portal-footer {
    padding: 19px 11px 76px;
  }
  .footer-bottom {
    display: block;
    line-height: 1.6;
  }
  .footer-bottom span {
    display: block;
  }
  .bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: calc(100% - 12px);
    height: 55px;
    z-index: 1050;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    box-shadow: 0 9px 30px rgba(16, 42, 67, 0.16);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 11px;
    color: #8b96a3;
  }
  .bottom-nav a i {
    font-size: 10px;
  }
  .bottom-nav a span {
    font-size: 4.5px;
    font-weight: 800;
  }
  .bottom-nav a.active {
    background: var(--blue-soft);
    color: var(--blue);
  }
  .bottom-nav a.center i {
    width: 29px;
    height: 29px;
    margin-top: -8px;
    border: 3px solid #fff;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(23, 105, 170, 0.22);
  }
  .bottom-nav a.center span {
    color: var(--blue);
  }
}
@media (max-width: 370px) {
  .service-card {
    min-height: 86px;
  }
  .service-card strong {
    font-size: 5.7px;
  }
  .service-card small {
    font-size: 4.2px;
  }
  .hero-content {
    width: 71%;
  }
  .hero-content h1 {
    font-size: 20px;
  }
}
.force-mobile .portal-shell {
  width: min(430px, calc(100% - 14px));
}
.force-mobile .desktop-nav,
.force-mobile .official-pill,
.force-mobile .header-service-btn {
  display: none;
}
.force-mobile .menu-btn {
  display: block;
}
.force-mobile .service-grid {
  grid-template-columns: repeat(4, 1fr);
}
.force-mobile .portal-list {
  grid-template-columns: 1fr;
}
.force-mobile .info-grid {
  grid-template-columns: 1fr 1fr;
}
.force-mobile .mayor-card {
  grid-template-columns: 1.18fr 0.82fr;
}
.force-desktop .desktop-nav {
  display: flex;
}
.force-desktop .menu-btn {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Hero refinement: solid Koronadal blue, no decorative logo/landscape */
.home-hero {
  background: #1769aa !important;
  min-height: 300px !important;
  padding: 42px 46px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(23, 105, 170, 0.16) !important;
}
.home-hero .hero-content {
  width: 100% !important;
  max-width: 650px !important;
}
.home-hero .hero-kicker {
  color: rgba(255, 255, 255, 0.78) !important;
}
.home-hero .hero-content h1 {
  color: #fff !important;
}
.home-hero .hero-content h1 b {
  color: #fff !important;
}
.home-hero .hero-content p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.home-hero .hero-actions {
  margin-top: 22px !important;
}
.home-hero .secondary-action {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
/* Keep navigation as the compact bottom app bar */
.bottom-nav {
  display: none;
}
@media (max-width: 620px) {
  .home-hero {
    min-height: 245px !important;
    padding: 25px 17px !important;
    border-radius: 17px !important;
  }
  .home-hero .hero-content {
    width: 100% !important;
  }
  .home-hero .hero-content h1 {
    font-size: 24px !important;
  }
  .home-hero .hero-content p {
    font-size: 6.5px !important;
  }
  .home-hero .hero-actions {
    margin-top: 15px !important;
  }
  .bottom-nav {
    display: grid !important;
  }
}
@media (min-width: 621px) {
  .home-hero {
    min-height: 285px !important;
  }
  .home-hero .hero-content h1 {
    font-size: 35px !important;
  }
}
.force-mobile .home-hero {
  min-height: 245px !important;
  padding: 25px 17px !important;
}
.force-mobile .home-hero .hero-content {
  width: 100% !important;
}
.force-mobile .bottom-nav {
  display: grid !important;
}
/* Mobile: hamburger collapses the header instead of opening a sidebar */
.portal-header {
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}
.header-collapsed .portal-header {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: none;
}
.header-collapsed .portal-section,
.header-collapsed .home-hero,
.header-collapsed .portal-shell {
  scroll-margin-top: 12px;
}
@media (max-width: 620px) {
  .header-collapsed .portal-shell {
    padding-top: 9px;
  }
  .header-collapsed .home-hero {
    min-height: 245px !important;
  }
}
.force-mobile.header-collapsed .portal-shell {
  padding-top: 9px !important;
}
/* Smooth polish */
.portal-header,
.menu-btn,
.view-trigger,
.bottom-nav a,
.service-card,
.portal-row,
.quick-strip a,
.info-card {
  transition:
    transform 0.22s cubic-bezier(0.2, 0.75, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.service-card:hover,
.portal-row:hover,
.quick-strip a:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card:active,
.portal-row:active,
.quick-strip a:active,
.info-card:active,
.citizen-banner > a:active {
  transform: scale(0.97);
}
.section-heading > div > span,
.portal-section h2,
.portal-section p {
  transition: color 0.2s ease;
}
.portal-search,
.service-card,
.portal-row,
.quick-strip a,
.info-card,
.citizen-banner,
.mayor-card,
.emergency-panel {
  transition:
    box-shadow 0.25s ease,
    transform 0.22s ease;
}
@media (max-width: 620px) {
  .service-card:hover,
  .portal-row:hover,
  .quick-strip a:hover,
  .info-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
  .service-card:active,
  .portal-row:active,
  .quick-strip a:active,
  .info-card:active {
    transform: scale(0.96);
  }
  .bottom-nav a:active {
    transform: scale(0.94);
  }
}
/* Mobile: remove the top bar entirely */
@media (max-width: 620px) {
  .portal-header {
    display: none;
  }
  .portal-section {
    scroll-margin-top: 12px;
  }
  .home-hero {
    scroll-margin-top: 12px;
  }
}
.force-mobile .portal-header {
  display: none;
}
.force-mobile .portal-section {
  scroll-margin-top: 12px;
}
.force-mobile .home-hero {
  scroll-margin-top: 12px;
}
/* Mobile app design extras */
@media (max-width: 620px) {
  .view-switcher {
    right: 8px;
    bottom: 72px;
  }
  .menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .portal-search {
    border-radius: 12px;
  }
  .section-heading {
    align-items: center;
  }
  .mayor-card {
    grid-template-columns: 1fr;
    border-radius: 15px;
  }
  .mayor-photo {
    order: -1;
    min-height: 175px;
  }
  .mayor-photo img {
    min-height: 175px;
  }
  .mayor-photo:after {
    background: linear-gradient(
      180deg,
      rgba(13, 71, 161, 0.12),
      transparent 70%
    );
  }
  .mayor-copy {
    padding: 18px;
  }
  .mayor-copy h3 {
    font-size: 15px;
  }
  .service-card {
    min-height: 96px;
  }
  .service-icon {
    width: 33px;
    height: 33px;
  }
  .quick-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .quick-strip a {
    border-radius: 13px;
  }
  .citizen-banner {
    border-radius: 14px;
  }
  .home-hero {
    box-shadow: 0 12px 32px rgba(23, 105, 170, 0.18) !important;
  }
}
@media (max-width: 370px) {
  .mayor-photo,
  .mayor-photo img {
    min-height: 145px;
  }
  .mayor-copy {
    padding: 15px;
  }
}
.force-mobile .mayor-card {
  grid-template-columns: 1fr;
}
.force-mobile .mayor-photo {
  order: -1;
  min-height: 175px;
}
.force-mobile .mayor-photo img {
  min-height: 175px;
}
.force-mobile .view-switcher {
  right: 8px;
  bottom: 72px;
}
@supports (padding: max(0px)) {
  .bottom-nav {
    bottom: max(6px, env(safe-area-inset-bottom));
  }
  .portal-shell {
    padding-bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px));
  }
  .portal-footer {
    padding-bottom: max(76px, calc(env(safe-area-inset-bottom) + 70px));
  }
}
/* Mobile: solid blue hero */
@media (max-width: 620px) {
  .home-hero {
    background: #1769aa !important;
  }
  .home-hero .hero-kicker {
    color: rgba(255, 255, 255, 0.78) !important;
  }
}
.force-mobile .home-hero {
  background: #1769aa !important;
}
.force-mobile .home-hero .hero-kicker {
  color: rgba(255, 255, 255, 0.78) !important;
}
/* Hero small logo */
.hero-logo {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 620px) {
  .hero-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 9px;
  }
}
@media (max-width: 370px) {
  .hero-logo {
    width: 34px;
    height: 34px;
  }
}
.force-mobile .hero-logo {
  width: 40px;
  height: 40px;
}


/* 2026 TYPOGRAPHY + MODERN UI OVERHAUL */

/* Larger, clearer typography with a more premium civic-digital feel. */
:root {
  --text-scale: 1;
  --shadow-modern: 0 20px 55px rgba(15, 45, 75, .10);
  --shadow-modern-sm: 0 10px 30px rgba(15, 45, 75, .08);
}
body {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.header-inner {
  height: 76px;
  gap: 30px;
}
.brand {
  min-width: 245px;
  gap: 12px;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand strong { font-size: 15px; }
.brand small { font-size: 10px; margin-top: 4px; }
.desktop-nav { gap: 7px; }
.desktop-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12px;
}
.official-pill { font-size: 10px; }
.official-pill i { font-size: 7px; }
.header-service-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 11px;
}
.portal-shell {
  padding: 28px 0 90px;
}
.home-hero {
  min-height: 390px !important;
  padding: 58px 64px !important;
  border-radius: 28px !important;
  box-shadow: var(--shadow-modern) !important;
}
.home-hero .hero-content {
  max-width: 780px !important;
}
.hero-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  gap: 9px;
}
.live-dot {
  width: 9px;
  height: 9px;
}
.home-hero .hero-content h1,
.hero-content h1 {
  font-size: clamp(48px, 5vw, 72px) !important;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 16px 0;
}
.home-hero .hero-content p,
.hero-content p {
  font-size: 18px !important;
  line-height: 1.65;
  max-width: 650px;
}
.hero-actions { gap: 12px; margin-top: 30px !important; }
.primary-action,
.secondary-action {
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  gap: 10px;
  font-size: 14px;
}
.portal-search {
  height: 68px;
  border-radius: 18px;
  padding: 0 20px;
  margin: -30px 56px 24px;
  box-shadow: var(--shadow-modern);
}
.portal-search > i { font-size: 18px; }
.portal-search input { font-size: 15px; }
.portal-search button {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.quick-strip { gap: 12px; }
.quick-strip a {
  min-height: 88px;
  border-radius: 18px;
  padding: 14px 16px;
  grid-template-columns: 50px 1fr 12px;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(20,43,69,.035);
}
.quick-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 18px;
}
.quick-strip b { font-size: 14px; }
.quick-strip small { font-size: 11px; margin-top: 4px; }
.quick-strip > a > i { font-size: 10px; }
.portal-section { margin-top: 52px; }
.section-heading { margin-bottom: 18px; }
.section-heading > div > span {
  font-size: 10px;
  letter-spacing: .16em;
}
.section-heading h2 {
  font-size: 28px;
  line-height: 1.12;
  margin: 6px 0;
  letter-spacing: -.035em;
}
.section-heading p { font-size: 13px; }
.section-count {
  font-size: 10px;
  padding: 7px 10px;
}
.text-link { font-size: 11px; }
.service-grid { gap: 10px; }
.service-card {
  min-height: 145px;
  border-radius: 18px;
  padding: 16px 8px;
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card strong { font-size: 13px; }
.service-card small { font-size: 10px; margin-top: 5px; }
.search-empty { padding: 18px; font-size: 12px; }
.portal-list { gap: 10px; }
.portal-row {
  min-height: 92px;
  border-radius: 17px;
  padding: 13px;
  grid-template-columns: 50px minmax(0,1fr) auto 16px;
  gap: 13px;
}
.portal-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 18px;
}
.portal-copy strong { font-size: 13px; }
.portal-copy small { font-size: 10px; margin-top: 4px; }
.portal-badge { font-size: 8px; padding: 6px 8px; border-radius: 8px; }
.portal-row > i { font-size: 10px; }
.emergency-panel {
  margin-top: 48px;
  border-radius: 22px;
  padding: 25px;
  box-shadow: var(--shadow-modern);
}
.emergency-main { grid-template-columns: 58px 1fr auto; gap: 16px; }
.emergency-symbol {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 22px;
}
.emergency-main span { font-size: 10px; }
.emergency-main h2 { font-size: 25px; margin: 4px 0; }
.emergency-main p { font-size: 12px; }
.emergency-call {
  min-width: 110px;
  padding: 11px 15px;
  border-radius: 13px;
}
.emergency-call strong { font-size: 26px; }
.emergency-call small { font-size: 8px; }
.hotline-grid { gap: 9px; margin-top: 18px; }
.hotline-grid a { padding: 12px; border-radius: 13px; gap: 10px; }
.hotline-grid i { font-size: 12px; }
.hotline-grid b { font-size: 10px; }
.hotline-grid small { font-size: 9px; }
.panel-link { margin-top: 15px; font-size: 10px; }
.mayor-card {
  min-height: 330px;
  border-radius: 22px;
  box-shadow: var(--shadow-modern-sm);
}
.mayor-copy { padding: 34px; }
.mayor-label { font-size: 10px; }
.mayor-copy h3 { font-size: 28px; margin: 8px 0; }
.mayor-copy > p { font-size: 13px; line-height: 1.65; }
.mayor-motto {
  margin-top: 16px;
  padding: 13px;
  font-size: 10px;
  line-height: 1.55;
}
.mayor-meta { margin-top: 16px; font-size: 9px; }
.mayor-photo, .mayor-photo img { min-height: 330px; }
.mayor-photo span { padding: 7px 10px; border-radius: 9px; font-size: 8px; }
.info-grid { gap: 10px; }
.info-card {
  min-height: 155px;
  padding: 17px;
  border-radius: 18px;
}
.info-card > span {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  font-size: 16px;
}
.info-card strong { font-size: 13px; margin-top: 13px; }
.info-card small { font-size: 10px; margin-top: 5px; }
.info-card > i { right: 14px; bottom: 14px; font-size: 10px; }
.citizen-banner {
  margin-top: 48px;
  padding: 20px;
  border-radius: 19px;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
}
.citizen-badge { width: 54px; height: 54px; border-radius: 15px; font-size: 19px; }
.citizen-banner span { font-size: 9px; }
.citizen-banner h2 { font-size: 20px; margin: 4px 0; }
.citizen-banner p { font-size: 10px; }
.citizen-banner > a {
  height: 44px;
  padding: 0 15px;
  border-radius: 11px;
  gap: 8px;
  font-size: 10px;
}
.portal-footer { padding: 38px 20px 100px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 11px; }
.footer-brand strong { font-size: 13px; }
.footer-brand span { font-size: 9px; }
.footer-copy { font-size: 10px; margin-top: 10px; }
.footer-links { gap: 10px 20px; margin-top: 18px; }
.footer-links a { font-size: 9px; }
.footer-bottom { margin-top: 18px; padding-top: 13px; font-size: 8px; }
.view-trigger { width: 42px; height: 42px; border-radius: 12px; }
.view-menu button { padding: 9px 11px; font-size: 9px; }
.bottom-nav { height: 68px; border-radius: 20px; }
.bottom-nav a i { font-size: 14px; }
.bottom-nav a span { font-size: 8px; }
.bottom-nav a.center i { width: 38px; height: 38px; border-radius: 13px; }

@media (max-width: 900px) {
  .header-inner { height: 70px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .home-hero {
    min-height: 350px !important;
    padding: 48px 42px !important;
  }
  .home-hero .hero-content h1 { font-size: clamp(42px, 7vw, 58px) !important; }
  .home-hero .hero-content p { font-size: 16px !important; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { min-height: 140px; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .portal-shell {
    width: calc(100% - 18px);
    padding: 10px 0 95px;
  }
  .home-hero {
    min-height: 330px !important;
    padding: 34px 22px !important;
    border-radius: 20px !important;
  }
  .hero-logo { width: 48px; height: 48px; margin-bottom: 13px; }
  .home-hero .hero-kicker { font-size: 9px; }
  .home-hero .hero-content h1 {
    font-size: clamp(36px, 10vw, 48px) !important;
    line-height: 1.03;
    margin: 13px 0;
  }
  .home-hero .hero-content p {
    font-size: 15px !important;
    line-height: 1.55;
  }
  .hero-actions { gap: 9px; margin-top: 22px !important; }
  .primary-action, .secondary-action {
    height: 46px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 12px;
  }
  .portal-search {
    height: 58px;
    margin: -23px 8px 17px;
    padding: 0 15px;
    border-radius: 15px;
  }
  .portal-search input { font-size: 14px; }
  .portal-search > i { font-size: 16px; }
  .quick-strip { gap: 8px; }
  .quick-strip a {
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 15px;
    grid-template-columns: 44px 1fr 10px;
  }
  .quick-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
  .quick-strip b { font-size: 13px; }
  .quick-strip small { font-size: 10px; }
  .portal-section { margin-top: 36px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading > div > span { font-size: 9px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 11px; line-height: 1.5; }
  .section-count { font-size: 8px; padding: 6px 8px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .service-card {
    min-height: 135px;
    padding: 13px 8px;
    border-radius: 15px;
  }
  .service-icon {
    width: 48px; height: 48px; border-radius: 13px; font-size: 18px; margin-bottom: 10px;
  }
  .service-card strong { font-size: 13px; }
  .service-card small { font-size: 9px; }
  .portal-list { gap: 8px; }
  .portal-row {
    min-height: 82px;
    grid-template-columns: 46px minmax(0,1fr) 13px;
    padding: 11px;
    border-radius: 14px;
    gap: 11px;
  }
  .portal-logo { width: 46px; height: 46px; border-radius: 12px; font-size: 17px; }
  .portal-copy strong { font-size: 12px; }
  .portal-copy small { font-size: 9px; line-height: 1.4; }
  .portal-badge { display: none; }
  .emergency-panel {
    margin-top: 36px;
    padding: 18px;
    border-radius: 18px;
  }
  .emergency-main { grid-template-columns: 46px 1fr auto; gap: 11px; }
  .emergency-symbol { width: 46px; height: 46px; border-radius: 13px; font-size: 17px; }
  .emergency-main span { font-size: 8px; }
  .emergency-main h2 { font-size: 19px; }
  .emergency-main p { font-size: 10px; line-height: 1.4; }
  .emergency-call { min-width: 72px; padding: 9px 10px; }
  .emergency-call strong { font-size: 21px; }
  .emergency-call small { font-size: 7px; }
  .hotline-grid { grid-template-columns: 1fr; gap: 7px; }
  .hotline-grid a { padding: 10px; }
  .hotline-grid b { font-size: 10px; }
  .hotline-grid small { font-size: 9px; }
  .panel-link { font-size: 9px; }
  .mayor-card { grid-template-columns: 1fr; min-height: 0; }
  .mayor-photo, .mayor-photo img { min-height: 210px; }
  .mayor-copy { padding: 21px; }
  .mayor-label { font-size: 9px; }
  .mayor-copy h3 { font-size: 21px; }
  .mayor-copy > p { font-size: 11px; }
  .mayor-motto { font-size: 9px; }
  .mayor-meta { font-size: 8px; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .info-card { min-height: 145px; padding: 13px; border-radius: 14px; }
  .info-card > span { width: 38px; height: 38px; font-size: 14px; }
  .info-card strong { font-size: 11px; margin-top: 10px; }
  .info-card small { font-size: 9px; }
  .citizen-banner {
    margin-top: 36px;
    grid-template-columns: 44px 1fr;
    padding: 15px;
  }
  .citizen-badge { width: 44px; height: 44px; }
  .citizen-banner span { font-size: 8px; }
  .citizen-banner h2 { font-size: 16px; }
  .citizen-banner p { font-size: 9px; line-height: 1.45; }
  .citizen-banner > a {
    grid-column: 1 / -1;
    justify-content: center;
    height: 43px;
    font-size: 10px;
  }
  .portal-footer { padding: 28px 13px 100px; }
  .footer-brand strong { font-size: 12px; }
  .footer-brand span { font-size: 8px; }
  .footer-copy { font-size: 9px; line-height: 1.5; }
  .footer-links a { font-size: 8px; }
  .footer-bottom { font-size: 7px; }
  .bottom-nav { height: 64px; }
  .bottom-nav a i { font-size: 13px; }
  .bottom-nav a span { font-size: 8px; }
}
@media (max-width: 370px) {
  .home-hero { padding: 29px 18px !important; }
  .home-hero .hero-content h1 { font-size: 34px !important; }
  .home-hero .hero-content p { font-size: 14px !important; }
  .section-heading h2 { font-size: 21px; }
  .service-card strong { font-size: 12px; }
  .service-card small { font-size: 8px; }
  .mayor-copy h3 { font-size: 19px; }
}
.force-mobile .portal-shell { width: min(430px, calc(100% - 14px)); }
.force-mobile .home-hero {
  min-height: 330px !important;
  padding: 34px 22px !important;
}
.force-mobile .home-hero .hero-content { width: 100% !important; }
.force-mobile .home-hero .hero-content h1 { font-size: 40px !important; }
.force-mobile .home-hero .hero-content p { font-size: 15px !important; }
.force-mobile .service-grid { grid-template-columns: repeat(2, 1fr); }
.force-mobile .service-card { min-height: 135px; }
.force-mobile .mayor-card { grid-template-columns: 1fr; }
.force-mobile .mayor-photo { order: -1; min-height: 210px; }
.force-mobile .mayor-photo img { min-height: 210px; }

/* MOBILE FINAL: prevent overlap and establish clear visual priority */
@media (max-width:620px){
  .home-hero{display:block!important;min-height:auto!important;padding:30px 20px 28px!important}
  .home-hero .hero-content{width:100%!important;max-width:none!important}
  .home-hero .hero-content h1{font-size:clamp(34px,10vw,46px)!important;line-height:1.02!important;max-width:360px}
  .home-hero .hero-content p{font-size:15px!important;line-height:1.55!important;max-width:360px!important}
  .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .primary-action,.secondary-action{width:100%!important;min-width:0!important;height:46px!important;justify-content:center!important;font-size:11px!important;padding:0 8px!important}
  .portal-search{margin:12px 2px 20px!important;height:56px!important}
  .quick-strip{grid-template-columns:1fr!important;gap:8px!important}
  .quick-strip a{min-height:68px!important;grid-template-columns:44px minmax(0,1fr) 12px!important}
  .quick-strip b{font-size:13px!important}.quick-strip small{font-size:10px!important}
  .section-heading{align-items:flex-end!important;gap:8px!important}.section-heading>div{min-width:0;flex:1}
  .section-heading h2{font-size:23px!important;line-height:1.12!important}.section-heading p{font-size:11px!important;line-height:1.45!important}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .service-card{min-width:0;min-height:132px!important}.service-card strong{font-size:13px!important;line-height:1.18!important}.service-card small{font-size:9px!important}
  .portal-list{grid-template-columns:1fr!important;gap:8px!important}
  .portal-row{grid-template-columns:46px minmax(0,1fr) 16px!important;min-height:78px!important;min-width:0;padding:11px!important}
  .portal-badge{display:none!important}.portal-copy{min-width:0}.portal-copy strong{font-size:12px!important}.portal-copy small{font-size:9px!important;white-space:normal!important;overflow:visible!important}
  .emergency-main{grid-template-columns:46px minmax(0,1fr)!important;gap:11px!important}.emergency-main h2{font-size:20px!important}.emergency-main p{font-size:10px!important;line-height:1.4!important}
  .emergency-call{grid-column:1/-1!important;width:100%!important;min-width:0!important;min-height:52px;display:flex!important;align-items:center;justify-content:center;gap:10px}.emergency-call strong{font-size:23px!important}.emergency-call small{font-size:8px!important;margin-top:0!important}
  .hotline-grid{grid-template-columns:1fr!important}
  .mayor-card{display:flex!important;flex-direction:column!important;min-height:0!important}.mayor-photo,.mayor-photo img{height:205px!important;min-height:205px!important}.mayor-copy{padding:20px!important}.mayor-copy h3{font-size:22px!important}.mayor-copy>p{font-size:11px!important;line-height:1.6!important}.mayor-motto{font-size:9px!important}
  .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.info-card{min-width:0;min-height:142px!important}.info-card strong{font-size:11px!important}.info-card small{font-size:9px!important}
  .citizen-banner{grid-template-columns:44px minmax(0,1fr)!important}.citizen-banner>a{grid-column:1/-1!important;width:100%;justify-content:center}
  .portal-shell{width:calc(100% - 20px)!important;max-width:430px;padding-bottom:108px!important;overflow:visible}
  .bottom-nav{width:calc(100% - 16px)!important;height:64px!important;bottom:max(7px,env(safe-area-inset-bottom))!important}.bottom-nav a span{font-size:8px!important;white-space:nowrap}
  .view-switcher{right:9px!important;bottom:calc(max(7px,env(safe-area-inset-bottom)) + 73px)!important}.portal-footer{padding-bottom:112px!important}
}
@media (max-width:370px){.home-hero{padding:26px 17px 24px!important}.home-hero .hero-content h1{font-size:32px!important}.home-hero .hero-content p{font-size:13px!important}.section-heading h2{font-size:21px!important}.service-card strong{font-size:12px!important}}
.force-mobile .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.force-mobile .emergency-main{grid-template-columns:46px minmax(0,1fr)!important}.force-mobile .emergency-call{grid-column:1/-1!important}.force-mobile .portal-list{grid-template-columns:1fr!important}.force-mobile .portal-row{grid-template-columns:46px minmax(0,1fr) 16px!important}

/* =========================================================
   KORONADAL CITY — CIVIC UX REFINEMENT
   Designed around: clarity, trust, accessibility, action.
   ========================================================= */
:root{
  --civic-blue:#1769aa;
  --civic-blue-dark:#0d47a1;
  --civic-ink:#142538;
  --civic-muted:#64748b;
  --civic-surface:#ffffff;
  --civic-bg:#f4f7fb;
  --civic-line:#dfe7f0;
  --civic-focus:#1f78bd;
  --civic-success:#16805b;
  --civic-danger:#c92f3f;
  --civic-radius:20px;
  --civic-shadow:0 12px 34px rgba(20,45,72,.08);
}

/* Improve reading rhythm and remove the "tiny government website" feel. */
body{background:var(--civic-bg);color:var(--civic-ink);font-size:16px;line-height:1.5}
button,a,input{font-size:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:3px solid rgba(31,120,189,.28);
  outline-offset:3px;
}

/* Desktop: stronger hierarchy, restrained rather than decorative. */
@media (min-width:901px){
  .portal-shell{max-width:1240px;padding-top:30px}
  .home-hero{
    min-height:420px!important;
    border-radius:28px!important;
    padding:64px 68px!important;
    box-shadow:0 24px 60px rgba(13,71,161,.14)!important;
  }
  .home-hero .hero-content{width:62%;max-width:720px!important}
  .home-hero .hero-content h1{max-width:760px}
  .portal-search{
    margin:-34px 72px 28px!important;
    height:70px!important;
  }
  .quick-strip{grid-template-columns:repeat(3,1fr);gap:14px}
  .portal-section{margin-top:58px}
  .section-heading h2{font-size:30px}
  .service-grid{grid-template-columns:repeat(4,1fr);gap:12px}
  .service-card{min-height:152px}
  .portal-list{gap:12px}
  .portal-row{min-height:96px}
  .emergency-panel{margin-top:54px}
}

/* Tablet: do not squeeze the desktop composition. */
@media (min-width:621px) and (max-width:900px){
  .portal-shell{width:min(760px,calc(100% - 32px))}
  .home-hero{padding:48px!important}
  .home-hero .hero-content{width:100%;max-width:650px}
  .service-grid{grid-template-columns:repeat(4,1fr)!important}
  .portal-list{grid-template-columns:1fr 1fr!important}
}

/* Mobile: deliberate information architecture. */
@media (max-width:620px){
  body{font-size:15px;overflow-x:hidden}
  .portal-shell{
    width:min(430px,calc(100% - 20px))!important;
    padding:10px 0 112px!important;
  }

  /* Header: identity + one navigation action only. */
  .portal-header{z-index:1000}
  .header-inner{height:62px!important;width:calc(100% - 20px)!important}
  .brand{min-width:0!important;gap:9px!important}
  .brand img{width:38px!important;height:38px!important}
  .brand strong{font-size:12px!important;line-height:1.15}
  .brand small{font-size:8px!important}
  .menu-btn{width:40px!important;height:40px!important;border-radius:12px!important}

  /* Hero = first and most important message. */
  .home-hero{
    min-height:0!important;
    padding:30px 20px 26px!important;
    border-radius:22px!important;
    box-shadow:0 18px 44px rgba(13,71,161,.17)!important;
  }
  .home-hero .hero-content{width:100%!important;max-width:none!important}
  .hero-logo{width:44px!important;height:44px!important}
  .home-hero .hero-kicker{font-size:9px!important;letter-spacing:.12em}
  .home-hero .hero-content h1{
    font-size:clamp(35px,10vw,47px)!important;
    line-height:1.02!important;
    letter-spacing:-.055em!important;
    margin:12px 0 14px!important;
    max-width:365px;
  }
  .home-hero .hero-content p{
    font-size:15px!important;
    line-height:1.58!important;
    max-width:370px!important;
  }
  .hero-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:21px!important;
  }
  .primary-action,.secondary-action{
    height:47px!important;
    min-width:0!important;
    width:100%!important;
    padding:0 8px!important;
    justify-content:center!important;
    border-radius:13px!important;
    font-size:11px!important;
  }

  /* Search is a primary task, visually separated from hero. */
  .portal-search{
    height:57px!important;
    margin:13px 2px 24px!important;
    padding:0 14px!important;
    border-radius:16px!important;
    box-shadow:0 8px 25px rgba(20,45,72,.10)!important;
  }
  .portal-search input{font-size:14px!important}
  .portal-search button{width:34px!important;height:34px!important}

  /* Quick links are actions, not decoration. */
  .quick-strip{grid-template-columns:1fr!important;gap:8px!important}
  .quick-strip a{
    min-height:70px!important;
    grid-template-columns:44px minmax(0,1fr) 12px!important;
    padding:10px 12px!important;
    border-radius:16px!important;
  }
  .quick-icon{width:44px!important;height:44px!important;border-radius:13px!important}
  .quick-strip b{font-size:13px!important;line-height:1.2}
  .quick-strip small{font-size:10px!important;line-height:1.35}

  /* Section headings: one clear title + short explanation. */
  .portal-section{margin-top:40px!important;scroll-margin-top:76px!important}
  .section-heading{margin-bottom:14px!important;gap:8px!important;align-items:flex-end!important}
  .section-heading>div{min-width:0;flex:1}
  .section-heading>div>span{font-size:9px!important;letter-spacing:.13em}
  .section-heading h2{font-size:24px!important;line-height:1.1!important;margin:5px 0!important}
  .section-heading p{font-size:11px!important;line-height:1.45!important}
  .section-count,.text-link{font-size:9px!important;white-space:nowrap!important;flex:0 0 auto}

  /* Services: two columns, equal-height tap targets. */
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .service-card{
    min-width:0!important;
    min-height:136px!important;
    padding:14px 9px!important;
    border-radius:17px!important;
    justify-content:center!important;
  }
  .service-icon{width:48px!important;height:48px!important;border-radius:14px!important;font-size:18px!important;margin-bottom:10px!important}
  .service-card strong{font-size:13px!important;line-height:1.22!important}
  .service-card small{font-size:9px!important;line-height:1.35!important}

  /* Government portals: one card per row for scanning. */
  .portal-list{grid-template-columns:1fr!important;gap:8px!important}
  .portal-row{
    min-width:0!important;
    min-height:82px!important;
    grid-template-columns:46px minmax(0,1fr) 14px!important;
    padding:11px!important;
    gap:11px!important;
    border-radius:16px!important;
  }
  .portal-logo{width:46px!important;height:46px!important;border-radius:13px!important}
  .portal-copy{min-width:0!important}
  .portal-copy strong{font-size:12px!important;line-height:1.3!important}
  .portal-copy small{font-size:9px!important;line-height:1.4!important;white-space:normal!important}
  .portal-badge{display:none!important}

  /* Emergency: the one item that must never be visually buried. */
  .emergency-panel{
    margin-top:40px!important;
    padding:18px!important;
    border-radius:20px!important;
    box-shadow:0 12px 30px rgba(16,42,67,.13)!important;
  }
  .emergency-main{
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:11px!important;
  }
  .emergency-symbol{width:46px!important;height:46px!important}
  .emergency-main span{font-size:8px!important}
  .emergency-main h2{font-size:20px!important;line-height:1.12!important}
  .emergency-main p{font-size:10px!important;line-height:1.4!important}
  .emergency-call{
    grid-column:1/-1!important;
    width:100%!important;
    min-height:54px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    border-radius:13px!important;
    margin-top:2px;
  }
  .emergency-call strong{font-size:24px!important}
  .emergency-call small{font-size:8px!important}
  .hotline-grid{grid-template-columns:1fr!important;gap:7px!important}

  /* Mayor's Corner: editorial layout, not a compressed desktop card. */
  .mayor-card{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    border-radius:20px!important;
  }
  .mayor-photo,.mayor-photo img{height:215px!important;min-height:215px!important}
  .mayor-copy{padding:21px!important}
  .mayor-label{font-size:9px!important}
  .mayor-copy h3{font-size:22px!important;line-height:1.12!important}
  .mayor-copy>p{font-size:11px!important;line-height:1.6!important}
  .mayor-motto{font-size:9px!important;line-height:1.5!important}
  .mayor-meta{font-size:8px!important;flex-wrap:wrap}

  /* Supporting information stays secondary. */
  .info-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .info-card{min-width:0!important;min-height:145px!important;padding:13px!important;border-radius:16px!important}
  .info-card>span{width:39px!important;height:39px!important}
  .info-card strong{font-size:11px!important;line-height:1.25!important}
  .info-card small{font-size:9px!important;line-height:1.45!important}

  /* Final citizen CTA: one clear action. */
  .citizen-banner{
    margin-top:40px!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    padding:15px!important;
    border-radius:17px!important;
  }
  .citizen-banner>a{
    grid-column:1/-1!important;
    width:100%!important;
    height:44px!important;
    justify-content:center!important;
    font-size:10px!important;
  }

  /* Navigation never covers content. */
  .bottom-nav{
    display:grid!important;
    width:calc(100% - 16px)!important;
    height:64px!important;
    bottom:max(7px,env(safe-area-inset-bottom))!important;
    border-radius:19px!important;
  }
  .bottom-nav a{min-width:0!important}
  .bottom-nav a i{font-size:13px!important}
  .bottom-nav a span{font-size:8px!important;white-space:nowrap!important}
  .view-switcher{
    right:9px!important;
    bottom:calc(max(7px,env(safe-area-inset-bottom)) + 73px)!important;
  }
  .portal-footer{padding-bottom:112px!important}
}

/* Very small devices: reduce density, never typography hierarchy. */
@media (max-width:370px){
  .portal-shell{width:calc(100% - 14px)!important}
  .home-hero{padding:26px 17px 24px!important}
  .home-hero .hero-content h1{font-size:32px!important}
  .home-hero .hero-content p{font-size:13px!important}
  .service-card{min-height:130px!important}
  .service-card strong{font-size:12px!important}
}

/* Forced mobile mode follows the same civic design system. */
.force-mobile .portal-shell{width:min(430px,calc(100% - 14px))!important}
.force-mobile .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
.force-mobile .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.force-mobile .portal-list{grid-template-columns:1fr!important}
.force-mobile .portal-row{grid-template-columns:46px minmax(0,1fr) 14px!important}
.force-mobile .portal-badge{display:none!important}
.force-mobile .emergency-main{grid-template-columns:46px minmax(0,1fr)!important}
.force-mobile .emergency-call{grid-column:1/-1!important}
.force-mobile .mayor-card{display:flex!important;flex-direction:column!important}
.force-mobile .mayor-photo{order:-1!important;min-height:210px!important}
.force-mobile .mayor-photo img{min-height:210px!important}
\n/* Ongoing development / unavailable service notice */\n.development-notice{display:grid;grid-template-columns:58px minmax(0,1fr);gap:18px;align-items:center;margin:28px 0 0;padding:22px 24px;border:1px solid #dce6f0;border-radius:20px;background:linear-gradient(135deg,#f8fbff,#eef5fb);box-shadow:0 10px 28px rgba(20,45,72,.07)}\n.development-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;background:#e5f0fa;color:#1769aa;font-size:22px}.development-notice span{font-size:10px;font-weight:800;letter-spacing:.14em;color:#1769aa}.development-notice h2{margin:4px 0 5px;font-size:22px;color:#142538}.development-notice p{margin:0;color:#64748b;font-size:13px;line-height:1.55}.development-notice[hidden]{display:none!important}\n@media(max-width:620px){.development-notice{grid-template-columns:44px minmax(0,1fr);gap:12px;margin-top:20px;padding:16px;border-radius:17px}.development-icon{width:44px;height:44px;border-radius:13px;font-size:17px}.development-notice span{font-size:8px}.development-notice h2{font-size:18px}.development-notice p{font-size:10px;line-height:1.5}}\n
/* Services without an active online portal */
.service-unavailable{position:relative;cursor:pointer}.service-unavailable em{display:inline-flex;align-items:center;gap:4px;margin-top:7px;padding:4px 7px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:8px;font-style:normal;font-weight:800;letter-spacing:.03em}.service-unavailable:hover{transform:translateY(-2px)}
@media(max-width:620px){.service-unavailable em{font-size:7px;padding:3px 6px}}

/* =========================================================
   KORONADAL CITY — PROFESSIONAL SERVICE-FIRST HIERARCHY
   ========================================================= */
.home-hero{min-height:330px!important;padding:46px 54px!important;border-radius:24px!important}
.home-hero .hero-content{max-width:760px!important}.hero-logo{display:none!important}
.home-hero .hero-kicker{font-size:11px!important;letter-spacing:.16em!important;margin-bottom:14px!important}
.home-hero .hero-content h1{font-size:42px!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:0 0 12px!important}
.home-hero .hero-content p{font-size:16px!important;max-width:560px!important;line-height:1.55!important}
.hero-actions{margin-top:24px!important}.primary-action,.secondary-action{min-height:48px!important;padding:0 20px!important}
.portal-search{margin-top:-28px!important;position:relative!important;z-index:5!important;height:64px!important;border-radius:18px!important}
.portal-section#services{margin-top:58px!important}.portal-section#services .section-heading{margin-bottom:24px!important}
.portal-section#services .section-heading>div>span{font-size:11px!important;letter-spacing:.16em!important}
.portal-section#services .section-heading h2{font-size:34px!important;line-height:1.08!important;letter-spacing:-.025em!important;margin:7px 0!important}
.portal-section#services .section-heading p{font-size:14px!important}
.portal-section#services .section-count{font-size:11px!important;padding:8px 12px!important;border-radius:999px!important}
.service-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.service-card{min-height:190px!important;padding:22px 18px!important;border-radius:20px!important;align-items:flex-start!important;justify-content:flex-end!important;text-align:left!important;position:relative!important}
.service-icon{width:54px!important;height:54px!important;border-radius:16px!important;font-size:20px!important;position:absolute!important;top:18px!important;left:18px!important;margin:0!important}
.service-card strong{font-size:18px!important;line-height:1.2!important;margin-top:auto!important}.service-card small{font-size:11px!important;line-height:1.4!important;margin-top:5px!important}.service-card em{font-size:8px!important;margin-top:8px!important}
.service-card:hover{transform:translateY(-4px)!important;box-shadow:0 16px 35px rgba(20,45,72,.12)!important}
.portal-section#portals{margin-top:72px!important}.portal-section#portals .section-heading h2{font-size:30px!important}
.quick-strip{margin-top:22px!important}.quick-strip a{min-height:78px!important}
@media(max-width:900px){.home-hero{min-height:300px!important;padding:38px 36px!important}.home-hero .hero-content h1{font-size:36px!important}.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.service-card{min-height:170px!important}.portal-section#services .section-heading h2{font-size:30px!important}}
@media(max-width:620px){
 .home-hero{min-height:265px!important;padding:30px 20px!important;border-radius:20px!important}.home-hero .hero-kicker{font-size:9px!important;margin-bottom:11px!important}.home-hero .hero-content h1{font-size:28px!important;line-height:1.1!important}.home-hero .hero-content p{font-size:12px!important;line-height:1.5!important;max-width:320px!important}.hero-actions{margin-top:18px!important}.primary-action,.secondary-action{min-height:44px!important;padding:0 12px!important;font-size:10px!important}
 .portal-search{margin-top:-22px!important;height:56px!important;border-radius:16px!important}.portal-section#services{margin-top:42px!important}.portal-section#services .section-heading{display:block!important;margin-bottom:18px!important}.portal-section#services .section-heading h2{font-size:26px!important}.portal-section#services .section-heading p{font-size:11px!important}.portal-section#services .section-count{display:inline-flex!important;margin-top:8px!important;font-size:9px!important}
 .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.service-card{min-height:158px!important;padding:16px 12px!important;border-radius:17px!important}.service-icon{width:46px!important;height:46px!important;top:13px!important;left:13px!important;border-radius:13px!important;font-size:17px!important}.service-card strong{font-size:14px!important}.service-card small{font-size:9px!important}.service-card em{font-size:7px!important}
 .portal-section#portals{margin-top:48px!important}.portal-section#portals .section-heading h2{font-size:24px!important}
}
@media(max-width:370px){.home-hero .hero-content h1{font-size:26px!important}.service-card{min-height:150px!important}.service-card strong{font-size:13px!important}}

/* Coming-soon services — intentionally subdued */
.service-unavailable{opacity:.5!important;filter:saturate(.55)!important}.service-unavailable:hover{opacity:.62!important;filter:saturate(.7)!important}.service-unavailable .service-icon{box-shadow:none!important}.service-unavailable em{background:#e8edf2!important;color:#64748b!important}
/* Professional service-card interaction details */
.service-card:not(.service-unavailable)::after{content:"";position:absolute;right:-22px;bottom:-22px;width:78px;height:78px;border-radius:50%;background:rgba(23,105,170,.055);pointer-events:none;transition:transform .25s ease}.service-card:not(.service-unavailable):hover::after{transform:scale(1.35)}
.service-card:not(.service-unavailable)::before{content:"";position:absolute;left:0;top:0;width:4px;height:0;border-radius:20px 0 0 20px;background:#1769aa;transition:height .25s ease}.service-card:not(.service-unavailable):hover::before{height:100%}
.service-card:not(.service-unavailable) .service-icon{box-shadow:0 8px 18px rgba(20,45,72,.10);transition:transform .25s ease,box-shadow .25s ease}.service-card:not(.service-unavailable):hover .service-icon{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 24px rgba(20,45,72,.14)}

/* Refined service motion — restrained, smooth, civic */
.service-card{overflow:hidden;will-change:transform;transition:transform .32s cubic-bezier(.22,.61,.36,1),box-shadow .32s ease,border-color .32s ease!important}
.service-card::before,.service-card::after{transition:all .4s cubic-bezier(.22,.61,.36,1)!important}
.service-card:not(.service-unavailable)::before{opacity:0;height:100%!important;transform:scaleY(.35);transform-origin:center;transition:opacity .3s ease,transform .4s cubic-bezier(.22,.61,.36,1)!important}
.service-card:not(.service-unavailable):hover::before{opacity:1;transform:scaleY(1)}
.service-card:not(.service-unavailable)::after{opacity:0;transform:scale(.7);transition:opacity .4s ease,transform .5s cubic-bezier(.22,.61,.36,1)!important}
.service-card:not(.service-unavailable):hover::after{opacity:1;transform:scale(1.1)}
.service-card:not(.service-unavailable):hover{transform:translateY(-3px)!important;box-shadow:0 12px 28px rgba(20,45,72,.10)!important}
.service-icon{transition:transform .32s cubic-bezier(.22,.61,.36,1),box-shadow .32s ease!important}
.service-card:not(.service-unavailable):hover .service-icon{transform:translateY(-2px) scale(1.025)!important;box-shadow:0 10px 20px rgba(20,45,72,.11)!important}
.service-card strong,.service-card small,.service-card em{transition:transform .3s ease,opacity .3s ease!important}
.service-card:not(.service-unavailable):hover strong{transform:translateX(2px)}
.service-card:not(.service-unavailable):hover small{transform:translateX(2px)}
.service-unavailable{transition:opacity .3s ease,filter .3s ease,transform .3s ease!important}.service-unavailable:hover{transform:translateY(-1px)!important}
@media(prefers-reduced-motion:reduce){.service-card,.service-card::before,.service-card::after,.service-icon,.service-card strong,.service-card small,.service-card em{transition:none!important;animation:none!important}.service-card:hover{transform:none!important}}

/* Futuristic civic service interaction — no bubbles */
.service-card:not(.service-unavailable)::after{
  content:"";position:absolute;right:18px;top:18px;width:34px;height:1px;
  border-radius:0;background:linear-gradient(90deg,transparent,#4fa3dc);
  opacity:0;transform:translateX(-12px);pointer-events:none;
  transition:opacity .35s ease,transform .45s cubic-bezier(.16,1,.3,1)!important
}
.service-card:not(.service-unavailable):hover::after{opacity:.8;transform:translateX(0)}
.service-card:not(.service-unavailable)::before{
  content:"";position:absolute;left:0;top:0;width:2px;height:100%;
  border-radius:0;background:linear-gradient(180deg,transparent,#1769aa 35%,#4fa3dc 65%,transparent);
  opacity:0;transform:scaleY(.2);transform-origin:center;
  transition:opacity .3s ease,transform .45s cubic-bezier(.16,1,.3,1)!important
}
.service-card:not(.service-unavailable):hover::before{opacity:1;transform:scaleY(1)}
.service-card:not(.service-unavailable):hover{
  transform:translateY(-4px)!important;
  border-color:rgba(23,105,170,.28)!important;
  box-shadow:0 16px 34px rgba(13,71,161,.11),0 0 0 1px rgba(23,105,170,.035)!important
}
.service-card:not(.service-unavailable) .service-icon{
  position:relative;overflow:hidden;
  transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,background .35s ease!important
}
.service-card:not(.service-unavailable) .service-icon::after{
  content:"";position:absolute;left:-70%;top:0;width:45%;height:100%;
  transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);
  transition:left .55s cubic-bezier(.16,1,.3,1)
}
.service-card:not(.service-unavailable):hover .service-icon::after{left:125%}
.service-card:not(.service-unavailable):hover .service-icon{
  transform:translateY(-2px) scale(1.035)!important;
  box-shadow:0 10px 24px rgba(13,71,161,.14)!important
}
.service-card strong{transition:letter-spacing .3s ease,transform .3s ease!important}
.service-card:not(.service-unavailable):hover strong{letter-spacing:.01em;transform:translateX(2px)}

/* Koronadal landmarks & city facts */
.landmarks-section{scroll-margin-top:90px}
.landmark-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:14px}
.landmark-card{position:relative;display:flex;flex-direction:column;min-height:310px;overflow:hidden;border:1px solid var(--civic-line);border-radius:20px;background:#fff;box-shadow:var(--civic-shadow);text-decoration:none;color:inherit;transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,border-color .35s ease}
.landmark-card:hover{transform:translateY(-4px);border-color:rgba(23,105,170,.25);box-shadow:0 18px 38px rgba(20,45,72,.11)}
.landmark-featured{grid-row:span 2;min-height:100%}
.landmark-visual{height:138px;position:relative;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0d47a1,#1769aa);color:#fff;overflow:hidden}
.landmark-featured .landmark-visual{height:205px}
.landmark-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 25%,rgba(255,255,255,.09) 50%,transparent 75%);transform:translateX(-100%);transition:transform .8s ease}
.landmark-card:hover .landmark-visual:after{transform:translateX(100%)}
.landmark-visual i{font-size:52px;opacity:.95;transition:transform .45s cubic-bezier(.16,1,.3,1)}
.landmark-card:hover .landmark-visual i{transform:scale(1.07) translateY(-3px)}
.landmark-number{position:absolute;top:14px;left:16px;font-size:10px;font-weight:800;letter-spacing:.14em;opacity:.65}
.landmark-copy{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
.landmark-copy>span{font-size:9px;font-weight:800;letter-spacing:.14em;color:#1769aa}
.landmark-copy h3{margin:7px 0 8px;font-size:18px;line-height:1.25;color:#142538}
.landmark-copy p{margin:0;color:#64748b;font-size:12px;line-height:1.6}
.landmark-copy b{margin-top:auto;padding-top:16px;font-size:11px;color:#1769aa}
.landmark-copy b i{margin-left:5px;font-size:9px}
.city-facts{display:grid;grid-template-columns:repeat(4,1fr);margin-top:18px;border:1px solid var(--civic-line);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(20,45,72,.055)}
.city-facts>div{padding:19px;border-right:1px solid var(--civic-line)}
.city-facts>div:last-child{border-right:0}
.city-facts i{display:block;margin-bottom:11px;color:#1769aa;font-size:17px}
.city-facts strong{display:block;color:#142538;font-size:12px;line-height:1.35}
.city-facts small{display:block;margin-top:5px;color:#64748b;font-size:10px;line-height:1.5}
@media(max-width:900px){.landmark-grid{grid-template-columns:1fr 1fr}.landmark-featured{grid-row:auto}.city-facts{grid-template-columns:1fr 1fr}.city-facts>div:nth-child(2){border-right:0}.city-facts>div:nth-child(-n+2){border-bottom:1px solid var(--civic-line)}}
@media(max-width:620px){.landmark-grid{grid-template-columns:1fr}.landmark-card,.landmark-featured{min-height:0}.landmark-featured .landmark-visual,.landmark-visual{height:145px}.landmark-copy{padding:17px}.landmark-copy h3{font-size:16px}.landmark-copy p{font-size:11px}.city-facts{grid-template-columns:1fr}.city-facts>div{border-right:0!important;border-bottom:1px solid var(--civic-line)!important}.city-facts>div:last-child{border-bottom:0!important}}

/* Unified civic icon palette — emergency remains distinct */
.service-grid .service-icon,
.quick-strip .quick-icon,
.portal-logo,
.info-card>span{
  background:#eaf3fb!important;
  color:#1769aa!important;
}
.service-card .service-icon.green,
.service-card .service-icon.teal,
.service-card .service-icon.purple,
.service-card .service-icon.cyan,
.service-card .service-icon.rose,
.service-card .service-icon.indigo,
.service-card .service-icon.blue{
  background:#eaf3fb!important;color:#1769aa!important;
}
.service-card.emergency-card .service-icon,
.service-card .service-icon.red,
.quick-strip .quick-icon.red,
.emergency-symbol{
  background:#8f1d2c!important;color:#fff!important;
}
.emergency-card{border-color:rgba(143,29,44,.16)!important}
.emergency-card:hover{border-color:rgba(143,29,44,.3)!important;box-shadow:0 16px 34px rgba(143,29,44,.12)!important}
.portal-logo.red,.info-card .red{background:#f5e5e8!important;color:#8f1d2c!important}

/* Larger centered portal cards with futuristic focus motion */
.portal-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.portal-row{
  min-height:170px!important;padding:24px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:11px;position:relative;overflow:hidden;
  border-radius:22px!important;
  transition:transform .42s cubic-bezier(.16,1,.3,1),box-shadow .42s ease,border-color .35s ease,background .35s ease!important
}
.portal-row .portal-logo{width:54px!important;height:54px!important;border-radius:16px!important;display:grid;place-items:center;font-size:19px;transition:transform .42s cubic-bezier(.16,1,.3,1),box-shadow .35s ease!important}
.portal-row .portal-copy{display:flex;flex-direction:column;align-items:center;gap:5px}
.portal-row .portal-copy strong{font-size:14px!important;line-height:1.3;transition:transform .35s ease!important}
.portal-row .portal-copy small{max-width:250px;font-size:10px!important;line-height:1.5;color:#64748b}
.portal-row>i{position:absolute;right:17px;top:17px;font-size:10px;opacity:.35;transition:transform .35s ease,opacity .35s ease!important}
.portal-row::before{
  content:"";position:absolute;left:50%;bottom:0;width:0;height:2px;
  transform:translateX(-50%);background:linear-gradient(90deg,transparent,#1769aa,transparent);
  transition:width .45s cubic-bezier(.16,1,.3,1)
}
.portal-row::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,transparent 35%,rgba(23,105,170,.045) 50%,transparent 65%);
  transform:translateX(-100%);transition:transform .65s cubic-bezier(.16,1,.3,1)
}
.portal-row:hover{
  transform:translateY(-7px) scale(1.025)!important;
  border-color:rgba(23,105,170,.3)!important;
  background:#fff!important;
  box-shadow:0 22px 42px rgba(20,45,72,.13),0 0 0 1px rgba(23,105,170,.035)!important;
  z-index:2
}
.portal-row:hover::before{width:62%}
.portal-row:hover::after{transform:translateX(100%)}
.portal-row:hover .portal-logo{transform:translateY(-3px) scale(1.08);box-shadow:0 12px 25px rgba(23,105,170,.16)!important}
.portal-row:hover .portal-copy strong{transform:translateY(-2px)}
.portal-row:hover>i{opacity:.8;transform:translate(2px,-2px)}
@media(max-width:900px){.portal-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){
  .portal-list{grid-template-columns:1fr}
  .portal-row{min-height:155px!important;padding:22px!important}
}

/* Modern direct-access homepage layout */
.services-section{padding-top:18px}
.services-section .service-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.services-section .service-card{
  min-height:190px!important;padding:24px 20px!important;
  align-items:center;text-align:center;justify-content:center;
  border-radius:22px!important
}
.services-section .service-card .service-icon{width:58px!important;height:58px!important;border-radius:17px!important;font-size:21px!important}
.services-section .service-card strong{font-size:15px!important;line-height:1.25;max-width:190px}
.services-section .service-card small{font-size:10px!important;line-height:1.45;max-width:190px}
.services-section .service-open{position:absolute;right:16px;top:16px;font-size:10px;color:#1769aa;opacity:.28;transition:opacity .3s ease,transform .3s ease}
.services-section .service-card:hover .service-open{opacity:.9;transform:translate(2px,-2px)}
.services-section .service-unavailable{justify-content:center}
.quick-strip{margin-top:12px!important}
.quick-strip>a{min-height:78px!important;transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s ease,border-color .3s ease!important}
.quick-strip>a:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,45,72,.09)!important}
.portal-search{z-index:8!important}
.portal-search input{font-family:inherit}
.landmarks-section{margin-top:12px}
.landmarks-section .section-heading{margin-bottom:18px}
.development-notice{margin-top:18px}
@media(max-width:1100px){.services-section .service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.services-section .service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.services-section .service-card{min-height:165px!important;padding:18px 12px!important}.services-section .service-card .service-icon{width:50px!important;height:50px!important;font-size:18px!important}.services-section .service-card strong{font-size:13px!important}.services-section .service-card small{font-size:9px!important}.services-section .service-open{right:12px;top:12px}}
@media(max-width:430px){.services-section .service-grid{gap:9px}.services-section .service-card{min-height:152px!important;border-radius:18px!important}.services-section .service-card .service-icon{width:46px!important;height:46px!important;border-radius:14px!important}.services-section .service-card strong{font-size:12px!important}.services-section .service-card small{font-size:8.5px!important}}

/* Centered portal services heading */
.services-title{
  width:100%;
  text-align:center;
  margin:0 auto 26px;
  padding:4px 16px 0;
}
.services-title span{
  display:inline-block;
  margin-bottom:7px;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  color:#1769aa;
}
.services-title h2{
  margin:0;
  color:#142538;
  font-size:clamp(24px,3vw,34px);
  line-height:1.12;
  font-weight:800;
  letter-spacing:-.025em;
}
.services-title p{
  max-width:600px;
  margin:9px auto 0;
  color:#64748b;
  font-size:13px;
  line-height:1.55;
}
@media(max-width:620px){
  .services-title{margin-bottom:20px}
  .services-title h2{font-size:24px}
  .services-title p{font-size:11px;max-width:330px}
}

/* Center service card grid and rows */
.services-section .service-grid{
  display:flex!important;
  flex-wrap:wrap;
  justify-content:center!important;
  align-items:stretch;
  margin-left:auto;
  margin-right:auto;
}
.services-section .service-card{
  flex:0 1 calc(25% - 11px);
}
@media(max-width:1100px){
  .services-section .service-card{flex-basis:calc(33.333% - 10px)}
}
@media(max-width:760px){
  .services-section .service-card{flex-basis:calc(50% - 5px)}
}
@media(max-width:430px){
  .services-section .service-card{flex-basis:calc(50% - 4.5px)}
}

/* eGovPH-inspired typography and motion */
:root{
  --egov-blue:#0b5cab;
  --egov-blue-dark:#073b78;
  --egov-ink:#18324d;
  --egov-muted:#60758a;
}
body{
  font-family:"Poppins","Inter","Segoe UI",Arial,sans-serif!important;
  color:var(--egov-ink);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,strong,button,.nav-link,.service-card{
  font-family:"Poppins","Inter","Segoe UI",Arial,sans-serif;
}
.services-title h2{
  font-weight:700!important;
  letter-spacing:-.035em!important;
}
.services-title span{
  letter-spacing:.12em!important;
  font-weight:700!important;
}
.services-title p{
  color:var(--egov-muted)!important;
}
.services-section .service-grid{
  gap:18px!important;
}
.services-section .service-card{
  border:1px solid #e5edf5!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 5px 18px rgba(20,55,90,.055)!important;
  transition:
    transform .38s cubic-bezier(.16,1,.3,1),
    box-shadow .38s ease,
    border-color .28s ease,
    background .28s ease!important;
}
.services-section .service-card::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto auto 0!important;
  width:100%!important;
  height:3px!important;
  background:linear-gradient(90deg,#0b5cab,#38a1e8)!important;
  transform:scaleX(0)!important;
  transform-origin:left!important;
  transition:transform .38s cubic-bezier(.16,1,.3,1)!important;
}
.services-section .service-card:hover{
  transform:translateY(-6px)!important;
  border-color:#c9dced!important;
  box-shadow:0 18px 36px rgba(20,55,90,.12)!important;
}
.services-section .service-card:hover::before{
  transform:scaleX(1)!important;
}
.services-section .service-card .service-icon{
  transition:transform .38s cubic-bezier(.16,1,.3,1),box-shadow .38s ease!important;
}
.services-section .service-card:hover .service-icon{
  transform:translateY(-3px) scale(1.045)!important;
  box-shadow:0 9px 20px rgba(11,92,171,.12)!important;
}
.services-section .service-card strong{
  transition:color .25s ease,transform .35s cubic-bezier(.16,1,.3,1)!important;
}
.services-section .service-card:hover strong{
  color:#0b5cab!important;
  transform:translateY(-1px);
}
.quick-strip>a{
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,border-color .25s ease!important;
}
.quick-strip>a:hover{
  transform:translateY(-4px)!important;
  box-shadow:0 14px 30px rgba(20,55,90,.09)!important;
}
@media(prefers-reduced-motion:reduce){
  .services-section .service-card,.services-section .service-card::before,
  .services-section .service-card .service-icon,.services-section .service-card strong,
  .quick-strip>a{transition:none!important}
}

/* Larger, readable service cards */
.services-section .service-grid{gap:20px!important}
.services-section .service-card{
  min-height:225px!important;
  padding:30px 24px!important;
  flex-basis:calc(25% - 15px);
  gap:10px!important;
}
.services-section .service-card .service-icon{
  width:68px!important;height:68px!important;
  border-radius:19px!important;font-size:24px!important;
  margin-bottom:4px;
}
.services-section .service-card strong{
  font-size:16px!important;
  line-height:1.3!important;
  max-width:245px!important;
}
.services-section .service-card small{
  display:block!important;
  font-size:12px!important;
  line-height:1.55!important;
  max-width:250px!important;
  color:#52677c!important;
  opacity:1!important;
}
.services-section .service-card em{
  font-size:11px!important;
}
@media(max-width:1100px){
  .services-section .service-card{
    flex-basis:calc(33.333% - 14px);
    min-height:215px!important;
  }
}
@media(max-width:760px){
  .services-section .service-grid{gap:13px!important}
  .services-section .service-card{
    flex-basis:calc(50% - 6.5px);
    min-height:205px!important;
    padding:25px 16px!important;
  }
  .services-section .service-card .service-icon{
    width:60px!important;height:60px!important;font-size:21px!important;
  }
  .services-section .service-card strong{
    font-size:14px!important;
    max-width:190px!important;
  }
  .services-section .service-card small{
    font-size:11px!important;
    line-height:1.5!important;
    max-width:190px!important;
  }
}
@media(max-width:430px){
  .services-section .service-card{
    min-height:190px!important;
    padding:21px 12px!important;
  }
  .services-section .service-card .service-icon{
    width:54px!important;height:54px!important;font-size:19px!important;
  }
  .services-section .service-card strong{font-size:13px!important}
  .services-section .service-card small{font-size:10px!important}
}

/* Interactive hero: responsive mouse-follow depth and light field */
.home-hero{
  --mx:50%;
  --my:50%;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:-20%;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(420px circle at var(--mx) var(--my),rgba(255,255,255,.15),transparent 58%),
    linear-gradient(125deg,transparent 25%,rgba(255,255,255,.055) 50%,transparent 75%);
  transform:translate3d(0,0,0);
  transition:background-position .15s ease;
}
.home-hero::after{
  content:"";
  position:absolute;
  left:-15%;
  top:0;
  width:30%;
  height:100%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent);
  transform:skewX(-18deg) translateX(-180%);
  animation:heroLightSweep 8s ease-in-out infinite;
  z-index:0;
}
.home-hero .hero-content{
  position:relative;
  z-index:2;
  transform:translate3d(var(--hero-x,0px),var(--hero-y,0px),0);
  transition:transform .18s cubic-bezier(.16,1,.3,1);
}
.home-hero .hero-logo{
  transition:transform .55s cubic-bezier(.16,1,.3,1),filter .55s ease;
}
.home-hero:hover .hero-logo{
  transform:translate3d(0,-4px,0) scale(1.025);
  filter:drop-shadow(0 10px 22px rgba(0,0,0,.13));
}
.home-hero .hero-kicker{
  transition:transform .35s ease,letter-spacing .35s ease;
}
.home-hero:hover .hero-kicker{
  transform:translateY(-2px);
  letter-spacing:.14em;
}
.home-hero .hero-actions a{
  transition:transform .32s cubic-bezier(.16,1,.3,1),box-shadow .32s ease,background .25s ease;
}
.home-hero .hero-actions a:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px rgba(0,0,0,.16);
}
@keyframes heroLightSweep{
  0%,58%{transform:skewX(-18deg) translateX(-180%);opacity:0}
  66%{opacity:1}
  82%,100%{transform:skewX(-18deg) translateX(520%);opacity:0}
}
@media(max-width:700px){
  .home-hero .hero-content{transform:none!important}
  .home-hero::after{animation-duration:10s}
}
@media(prefers-reduced-motion:reduce){
  .home-hero::after{animation:none}
  .home-hero .hero-content,.home-hero .hero-logo,.home-hero .hero-kicker,
  .home-hero .hero-actions a{transition:none!important;transform:none!important}
}

/* Seamless typography across the main page */
body,
body p,
body span,
body small,
body strong,
body a,
body button,
body input,
body textarea,
body select{
  font-family:"Poppins","Inter","Segoe UI",Arial,sans-serif;
}
.mayor-section,
.mayor-section p,
.mayor-section span,
.mayor-section strong,
.mayor-section small,
.mayor-section a{
  font-family:"Poppins","Inter","Segoe UI",Arial,sans-serif!important;
}
.mayor-section p{
  font-size:14px!important;
  line-height:1.7!important;
  color:#52677c!important;
}
.mayor-section .mayor-copy h2,
.mayor-section h2{
  font-size:clamp(24px,3vw,34px)!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
}
.mayor-section .mayor-copy strong,
.mayor-section .mayor-label{
  font-size:11px!important;
  line-height:1.4!important;
  letter-spacing:.1em!important;
}
.mayor-section .mayor-copy{
  font-size:14px!important;
}
.mayor-section .mayor-copy .mayor-description,
.mayor-section .mayor-copy .description{
  font-size:14px!important;
  line-height:1.7!important;
}
.portal-section .section-heading h2,
.landmarks-section .section-heading h2,
.info-section h2{
  font-size:clamp(23px,2.8vw,32px)!important;
  line-height:1.18!important;
}
.portal-section .section-heading p,
.landmarks-section .section-heading p{
  font-size:13px!important;
  line-height:1.6!important;
}
@media(max-width:620px){
  .mayor-section p,
  .mayor-section .mayor-copy,
  .mayor-section .mayor-copy .mayor-description,
  .mayor-section .mayor-copy .description{
    font-size:12px!important;
    line-height:1.6!important;
  }
  .mayor-section .mayor-copy h2,
  .mayor-section h2{
    font-size:24px!important;
  }
}

/* Mayor's Corner highlight */
.mayor-motto{
  position:relative;
  margin:22px 0 20px!important;
  padding:22px 24px 22px 28px!important;
  border-left:4px solid #1769aa!important;
  border-radius:0 16px 16px 0!important;
  background:linear-gradient(135deg,#eef6fd 0%,#f8fbfe 100%)!important;
  box-shadow:0 10px 28px rgba(23,105,170,.08)!important;
  overflow:hidden;
}
.mayor-motto::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,transparent 25%,rgba(255,255,255,.75) 50%,transparent 75%);
  transform:translateX(-120%);
  animation:mayorMottoSweep 5.5s ease-in-out infinite;
  pointer-events:none;
}
.mayor-motto span{
  position:relative;
  z-index:1;
  display:block;
  color:#0d47a1!important;
  font-size:clamp(18px,2vw,25px)!important;
  line-height:1.42!important;
  font-weight:700!important;
  letter-spacing:-.018em!important;
}
.mayor-motto i{
  color:#1769aa!important;
  font-size:16px!important;
  margin-bottom:8px;
  opacity:.8;
}
.mayor-meta a{
  min-height:48px!important;
  padding:13px 20px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:700!important;
  display:inline-flex!important;
  align-items:center;
  gap:9px;
  background:#1769aa!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(23,105,170,.18)!important;
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,background .25s ease!important;
}
.mayor-meta a:hover{
  transform:translateY(-4px)!important;
  background:#0d47a1!important;
  box-shadow:0 14px 26px rgba(23,105,170,.24)!important;
}
@keyframes mayorMottoSweep{
  0%,55%{transform:translateX(-120%);opacity:0}
  65%{opacity:1}
  82%,100%{transform:translateX(120%);opacity:0}
}
@media(max-width:620px){
  .mayor-motto{padding:18px 17px 18px 21px!important;margin:17px 0!important}
  .mayor-motto span{font-size:17px!important;line-height:1.42!important}
  .mayor-meta a{width:100%;justify-content:center;font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){
  .mayor-motto::after{animation:none!important}
}

/* Final typography override: Mayor's Corner */
.leadership-section .mayor-card,
.leadership-section .mayor-card *{
  font-family:"Sora","Poppins","Inter","Segoe UI",Arial,sans-serif!important;
}
.leadership-section .mayor-copy p{
  font-size:16px!important;
  line-height:1.7!important;
}
.leadership-section .mayor-copy .mayor-motto span{
  font-size:clamp(20px,2.5vw,29px)!important;
  line-height:1.4!important;
  font-weight:700!important;
}
.leadership-section .mayor-copy .mayor-meta a{
  font-size:15px!important;
  min-height:54px!important;
  padding:15px 24px!important;
}
@media(max-width:620px){
  .leadership-section .mayor-copy p{font-size:14px!important}
  .leadership-section .mayor-copy .mayor-motto span{font-size:19px!important}
  .leadership-section .mayor-copy .mayor-meta a{font-size:14px!important;min-height:52px!important}
}

/* =========================================================
   KORONADAL DIGITAL GATEWAY — SIGNATURE GOVERNMENT UI
   Stronger hierarchy, clearer typography, premium civic feel
   ========================================================= */
:root{
  --kg-blue:#0756a3;
  --kg-blue-2:#0b72c8;
  --kg-navy:#082b55;
  --kg-ink:#102a43;
  --kg-muted:#60758a;
  --kg-line:#dce7f2;
  --kg-bg:#f5f8fc;
  --kg-gold:#f5b72b;
  --kg-red:#8f1d2c;
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 8% 8%,rgba(11,114,200,.045),transparent 25%),
    linear-gradient(180deg,#f8fbfe 0%,#f3f7fb 100%)!important;
  color:var(--kg-ink)!important;
  font-family:"Sora","Poppins","Inter","Segoe UI",Arial,sans-serif!important;
}
body,body *{
  font-family:"Sora","Poppins","Inter","Segoe UI",Arial,sans-serif;
}
.portal-shell{overflow:hidden}
.portal-header{
  background:rgba(255,255,255,.94)!important;
  border-bottom:1px solid rgba(8,43,85,.09)!important;
  box-shadow:0 5px 24px rgba(8,43,85,.07)!important;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.header-inner{min-height:76px!important}
.brand strong{font-size:15px!important;font-weight:700!important;letter-spacing:-.025em}
.brand small{font-size:10px!important;letter-spacing:.08em}
.desktop-nav a{
  font-size:12px!important;
  font-weight:600!important;
  transition:color .25s ease,transform .25s ease!important;
}
.desktop-nav a:hover{color:var(--kg-blue)!important;transform:translateY(-1px)}
.official-pill{
  border:1px solid #dce8f3!important;
  background:#f5f9fd!important;
  color:#48657d!important;
  font-size:10px!important;
  font-weight:700!important;
}
.header-service-btn{
  background:var(--kg-blue)!important;
  border-radius:11px!important;
  font-size:11px!important;
  font-weight:700!important;
  box-shadow:0 8px 18px rgba(7,86,163,.16)!important;
}

/* Hero — stronger government landing-page presence */
.home-hero{
  min-height:500px!important;
  border-radius:0 0 30px 30px!important;
  background:
    radial-gradient(700px 360px at 78% 30%,rgba(48,156,236,.28),transparent 62%),
    radial-gradient(500px 300px at 15% 90%,rgba(4,53,105,.42),transparent 68%),
    linear-gradient(125deg,#052f63 0%,#0756a3 52%,#0b72c8 100%)!important;
  box-shadow:0 22px 55px rgba(8,43,85,.17)!important;
}
.home-hero::before{
  background:
    radial-gradient(500px circle at var(--mx) var(--my),rgba(255,255,255,.17),transparent 58%),
    linear-gradient(115deg,transparent 20%,rgba(255,255,255,.035) 50%,transparent 80%)!important;
}
.home-hero::after{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent)!important;
}
.home-hero .hero-content{
  max-width:980px!important;
  padding-top:58px!important;
  padding-bottom:58px!important;
}
.hero-logo img{
  width:82px!important;
  height:82px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 12px 25px rgba(0,0,0,.2));
}
.hero-kicker{
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.17em!important;
}
.home-hero h1{
  font-size:clamp(44px,7vw,76px)!important;
  line-height:.99!important;
  letter-spacing:-.055em!important;
  font-weight:600!important;
  text-shadow:0 8px 30px rgba(0,0,0,.12);
}
.home-hero h1 b{font-weight:800!important}
.home-hero p{
  max-width:680px!important;
  margin:22px auto 0!important;
  font-size:16px!important;
  line-height:1.65!important;
  opacity:.94!important;
}
.hero-actions{margin-top:30px!important;gap:12px!important}
.hero-actions a{
  min-height:52px!important;
  padding:14px 22px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:700!important;
}
.hero-actions .primary-action{
  background:#fff!important;
  color:var(--kg-blue)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
.hero-actions .secondary-action{
  border:1px solid rgba(255,255,255,.4)!important;
  background:rgba(255,255,255,.1)!important;
  backdrop-filter:blur(8px);
}

/* Search */
.portal-search{
  max-width:780px!important;
  min-height:62px!important;
  margin:-31px auto 0!important;
  position:relative!important;
  z-index:10!important;
  border:1px solid #dbe7f2!important;
  box-shadow:0 14px 38px rgba(8,43,85,.12)!important;
  border-radius:18px!important;
  background:#fff!important;
}
.portal-search input{
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:500!important;
}
.portal-search i{color:var(--kg-blue)!important}

/* Quick access */
.quick-strip{
  max-width:1120px!important;
  margin:26px auto 0!important;
  gap:12px!important;
}
.quick-strip>a{
  min-height:78px!important;
  padding:14px 17px!important;
  border:1px solid #e0e9f2!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 7px 20px rgba(8,43,85,.055)!important;
}
.quick-strip>a b{font-size:12px!important;font-weight:700!important}
.quick-strip>a small{font-size:10px!important;color:#71869a!important}
.quick-icon{
  width:43px!important;height:43px!important;
  border-radius:12px!important;
  font-size:16px!important;
}

/* Universal section hierarchy */
.portal-section{
  max-width:1240px!important;
  padding-top:78px!important;
  padding-bottom:78px!important;
}
.section-heading{
  margin-bottom:30px!important;
}
.section-heading>div>span,
.services-title>span{
  font-size:10px!important;
  letter-spacing:.16em!important;
  font-weight:800!important;
  color:var(--kg-blue)!important;
}
.section-heading h2,
.services-title h2{
  color:var(--kg-navy)!important;
  font-weight:700!important;
  letter-spacing:-.04em!important;
}
.section-heading p,
.services-title p{
  color:var(--kg-muted)!important;
  font-size:13px!important;
  line-height:1.65!important;
}

/* Services — hero of the portal */
.services-section{
  position:relative;
}
.services-section::before{
  content:"";
  position:absolute;
  left:50%;
  top:25px;
  width:720px;height:260px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse,rgba(11,114,200,.07),transparent 68%);
  pointer-events:none;
}
.services-title{
  position:relative;
  z-index:1;
  margin-bottom:34px!important;
}
.services-title h2{font-size:clamp(30px,4vw,43px)!important}
.services-title p{font-size:14px!important}
.services-section .service-grid{
  position:relative;
  z-index:1;
  gap:18px!important;
}
.services-section .service-card{
  min-height:245px!important;
  padding:30px 24px!important;
  border:1px solid #dce7f1!important;
  border-radius:19px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 8px 24px rgba(8,43,85,.065)!important;
}
.services-section .service-card::before{
  height:4px!important;
  background:linear-gradient(90deg,var(--kg-blue),#38a1e8)!important;
}
.services-section .service-card .service-icon{
  width:68px!important;height:68px!important;
  border-radius:18px!important;
  background:#eaf3fb!important;
  color:var(--kg-blue)!important;
  font-size:23px!important;
  box-shadow:inset 0 0 0 1px rgba(7,86,163,.06)!important;
}
.services-section .service-card strong{
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:700!important;
  color:var(--kg-navy)!important;
}
.services-section .service-card small{
  font-size:12px!important;
  line-height:1.6!important;
  color:#61778b!important;
}
.services-section .service-card:hover{
  transform:translateY(-8px)!important;
  box-shadow:0 20px 42px rgba(8,43,85,.13)!important;
}
.services-section .emergency-card{
  border-color:rgba(143,29,44,.18)!important;
}
.services-section .emergency-card .service-icon{
  background:#8f1d2c!important;
  color:#fff!important;
}

/* Emergency — make it a strong utility block */
.emergency-panel{
  max-width:1240px!important;
  margin:10px auto 0!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.13),transparent 28%),
    linear-gradient(135deg,#741725,#a12638)!important;
  box-shadow:0 18px 42px rgba(143,29,44,.18)!important;
}
.emergency-main{padding:32px!important}
.emergency-main h2{font-size:clamp(25px,3vw,34px)!important}
.emergency-main p{font-size:13px!important}
.emergency-call{
  min-width:105px!important;
  min-height:80px!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#8f1d2c!important;
  box-shadow:0 10px 25px rgba(0,0,0,.12)!important;
}
.emergency-call strong{font-size:30px!important}
.hotline-grid a{
  border-color:rgba(255,255,255,.15)!important;
  background:rgba(255,255,255,.07)!important;
}

/* Landmarks */
.landmarks-section{
  background:linear-gradient(180deg,transparent,rgba(7,86,163,.025))!important;
}
.landmark-grid{gap:16px!important}
.landmark-card{
  border:1px solid #dfe8f1!important;
  border-radius:19px!important;
  background:#fff!important;
  box-shadow:0 7px 22px rgba(8,43,85,.055)!important;
  overflow:hidden!important;
  transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .4s ease,border-color .3s ease!important;
}
.landmark-card:hover{
  transform:translateY(-7px)!important;
  border-color:#bfd5e8!important;
  box-shadow:0 18px 38px rgba(8,43,85,.11)!important;
}
.landmark-visual{
  background:linear-gradient(135deg,#073b78,#0b72c8)!important;
  min-height:135px!important;
}
.landmark-copy{padding:21px!important}
.landmark-copy h3{font-size:17px!important;color:var(--kg-navy)!important}
.landmark-copy p{font-size:12px!important;line-height:1.65!important;color:var(--kg-muted)!important}
.city-facts{
  border-top:1px solid #dfe8f1!important;
  margin-top:25px!important;
  padding-top:24px!important;
}
.city-facts>div{
  padding:18px!important;
  border:1px solid #e4ebf2!important;
  border-radius:15px!important;
  background:#fff!important;
}
.city-facts strong{font-size:12px!important}
.city-facts small{font-size:10px!important;line-height:1.55!important}

/* Mayor — signature feature */
.leadership-section .mayor-card{
  border:1px solid #d5e3ef!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 15% 10%,rgba(11,114,200,.08),transparent 35%),
    #fff!important;
  box-shadow:0 18px 48px rgba(8,43,85,.10)!important;
}
.leadership-section .mayor-copy{padding:42px!important}
.leadership-section .mayor-copy h3{
  font-size:clamp(25px,3vw,38px)!important;
  color:var(--kg-navy)!important;
  letter-spacing:-.035em!important;
}
.leadership-section .mayor-copy>p{
  font-size:16px!important;
  line-height:1.75!important;
  color:#526b80!important;
}
.leadership-section .mayor-motto{
  margin:24px 0!important;
  padding:24px 27px!important;
  border-left:5px solid var(--kg-gold)!important;
  border-radius:0 17px 17px 0!important;
  background:linear-gradient(135deg,#f1f7fd,#fbfdff)!important;
}
.leadership-section .mayor-motto span{
  font-size:clamp(20px,2.6vw,30px)!important;
  line-height:1.38!important;
  font-weight:700!important;
  color:var(--kg-blue)!important;
}
.leadership-section .mayor-meta a{
  min-height:56px!important;
  padding:15px 24px!important;
  border-radius:13px!important;
  background:var(--kg-blue)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:700!important;
  box-shadow:0 10px 23px rgba(7,86,163,.2)!important;
}
.leadership-section .mayor-photo{
  min-height:420px!important;
  background:linear-gradient(145deg,#06376d,#0a65b4)!important;
}

/* Information */
.info-grid{gap:16px!important}
.info-card{
  min-height:165px!important;
  padding:24px!important;
  border:1px solid #dfe8f1!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 7px 22px rgba(8,43,85,.05)!important;
  transition:transform .35s ease,box-shadow .35s ease,border-color .3s ease!important;
}
.info-card:hover{
  transform:translateY(-6px)!important;
  border-color:#bfd5e8!important;
  box-shadow:0 17px 34px rgba(8,43,85,.1)!important;
}
.info-card strong{font-size:14px!important;color:var(--kg-navy)!important}
.info-card small{font-size:11px!important;line-height:1.6!important;color:var(--kg-muted)!important}

/* Citizen CTA */
.citizen-banner{
  max-width:1240px!important;
  margin:10px auto 80px!important;
  padding:30px 34px!important;
  border:1px solid #cfe0ee!important;
  border-radius:22px!important;
  background:linear-gradient(120deg,#edf6fd,#fff)!important;
  box-shadow:0 14px 36px rgba(8,43,85,.07)!important;
}
.citizen-banner h2{font-size:clamp(22px,3vw,30px)!important;color:var(--kg-navy)!important}
.citizen-banner p{font-size:13px!important;color:var(--kg-muted)!important}
.citizen-banner>a{
  min-height:50px!important;
  padding:14px 20px!important;
  border-radius:12px!important;
  background:var(--kg-blue)!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:0 9px 20px rgba(7,86,163,.17)!important;
}

/* Footer */
.portal-footer{
  background:#061f3d!important;
  border-top:4px solid var(--kg-blue-2)!important;
}
.footer-inner{max-width:1240px!important}
.footer-brand strong{font-size:15px!important}
.footer-copy,.footer-links a,.footer-bottom{font-size:11px!important}
.footer-links a:hover{color:#6fc1ff!important}

/* Mobile */
@media(max-width:760px){
  .home-hero{
    min-height:460px!important;
    border-radius:0 0 22px 22px!important;
  }
  .home-hero .hero-content{padding:42px 20px!important}
  .hero-logo img{width:66px!important;height:66px!important}
  .home-hero h1{
    font-size:clamp(38px,12vw,56px)!important;
    letter-spacing:-.05em!important;
  }
  .home-hero p{font-size:13px!important;line-height:1.6!important}
  .hero-actions a{min-height:49px!important;padding:13px 17px!important;font-size:12px!important}
  .portal-search{margin:-26px 14px 0!important;min-height:56px!important}
  .portal-search input{font-size:12px!important}
  .quick-strip{margin:18px 14px 0!important}
  .quick-strip>a{min-height:68px!important;padding:11px!important}
  .portal-section{padding-top:58px!important;padding-bottom:58px!important}
  .services-title h2{font-size:30px!important}
  .services-title p{font-size:12px!important}
  .services-section .service-card{
    min-height:215px!important;
    padding:24px 15px!important;
    border-radius:16px!important;
  }
  .services-section .service-card strong{font-size:13px!important}
  .services-section .service-card small{font-size:10.5px!important}
  .services-section .service-card .service-icon{
    width:58px!important;height:58px!important;font-size:20px!important;
  }
  .emergency-panel{margin:0 14px!important;border-radius:20px!important}
  .emergency-main{padding:23px!important}
  .emergency-main h2{font-size:24px!important}
  .landmark-grid{grid-template-columns:1fr!important}
  .city-facts{grid-template-columns:1fr 1fr!important}
  .leadership-section .mayor-copy{padding:27px 20px!important}
  .leadership-section .mayor-copy>p{font-size:14px!important}
  .leadership-section .mayor-motto{padding:20px!important}
  .leadership-section .mayor-motto span{font-size:19px!important}
  .leadership-section .mayor-photo{min-height:310px!important}
  .citizen-banner{margin:0 14px 58px!important;padding:23px!important}
}
@media(max-width:430px){
  .quick-strip{grid-template-columns:1fr!important}
  .quick-strip>a{width:100%!important}
  .services-section .service-grid{gap:11px!important}
  .services-section .service-card{
    min-height:195px!important;
    padding:19px 11px!important;
  }
  .services-section .service-card strong{font-size:12px!important}
  .services-section .service-card small{font-size:9.5px!important}
  .services-section .service-card .service-icon{
    width:52px!important;height:52px!important;font-size:18px!important;
  }
  .city-facts{grid-template-columns:1fr!important}
}

/* Respect accessibility */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
  }
}

/* Tighten top spacing before City Portal Services */
.services-section{
  padding-top:38px!important;
}
.services-section .services-title{
  margin-top:0!important;
  padding-top:0!important;
}
@media(max-width:760px){
  .services-section{padding-top:30px!important}
}

/* Emergency section: compact heading + larger agency-specific marks */
.emergency-main{
  padding:22px 28px!important;
  min-height:0!important;
}
.emergency-heading>span{
  font-size:9px!important;
  letter-spacing:.14em!important;
  font-weight:800!important;
}
.emergency-heading h2{
  margin:4px 0 3px!important;
  font-size:clamp(21px,2.4vw,28px)!important;
  line-height:1.15!important;
}
.emergency-heading p{
  margin:0!important;
  font-size:11px!important;
  line-height:1.45!important;
}
.emergency-symbol{display:none!important}
.hotline-grid{
  gap:12px!important;
  padding:0 28px 18px!important;
}
.hotline-grid a.hotline-card{
  min-height:86px!important;
  padding:14px 15px!important;
  gap:13px!important;
  border-radius:14px!important;
}
.hotline-card .hotline-logo{
  flex:0 0 54px;
  width:54px!important;
  height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
  font-size:23px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)!important;
}
.hotline-police .hotline-logo{background:rgba(42,111,194,.9)!important}
.hotline-fire .hotline-logo{background:rgba(211,71,48,.95)!important}
.hotline-hospital .hotline-logo{background:rgba(28,139,105,.95)!important}
.hotline-card b{
  font-size:12px!important;
  line-height:1.35!important;
}
.hotline-card small{
  display:block!important;
  margin-top:4px!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.3!important;
}
.emergency-call{
  min-width:92px!important;
  min-height:66px!important;
}
.emergency-call strong{font-size:25px!important}
.emergency-call small{font-size:8px!important}
@media(max-width:760px){
  .emergency-main{
    padding:18px 20px!important;
  }
  .emergency-heading h2{font-size:22px!important}
  .emergency-heading p{font-size:10px!important}
  .hotline-grid{padding:0 20px 16px!important;grid-template-columns:1fr!important}
  .hotline-grid a.hotline-card{min-height:80px!important}
}

/* Emergency — title, 911, then three readable agency cards */
.emergency-panel{
  padding:0!important;
  overflow:hidden!important;
}
.emergency-main{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:14px!important;
  padding:30px 24px 24px!important;
}
.emergency-heading>span{
  font-size:10px!important;
  letter-spacing:.18em!important;
  font-weight:800!important;
}
.emergency-heading h2{
  margin:7px 0 0!important;
  font-size:clamp(25px,3vw,34px)!important;
  font-weight:700!important;
}
.emergency-heading p{display:none!important}
.emergency-call{
  width:150px!important;
  min-width:150px!important;
  min-height:70px!important;
  padding:9px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:16px!important;
}
.emergency-call strong{font-size:32px!important;line-height:1!important}
.emergency-call small{font-size:9px!important;margin-top:4px!important;letter-spacing:.12em!important}
.hotline-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  padding:0 24px 24px!important;
}
.hotline-grid a.hotline-card{
  min-height:118px!important;
  padding:18px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:9px!important;
  border-radius:16px!important;
}
.hotline-card .hotline-logo{
  width:52px!important;
  height:52px!important;
  flex-basis:52px!important;
  border-radius:14px!important;
  font-size:22px!important;
}
.hotline-card b{
  display:block!important;
  font-size:13px!important;
  line-height:1.35!important;
}
.hotline-card small{
  display:block!important;
  margin-top:5px!important;
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:800!important;
}
.emergency-panel .panel-link{
  display:block!important;
  text-align:center!important;
  padding:0 20px 20px!important;
  font-size:11px!important;
}
@media(max-width:760px){
  .emergency-main{padding:25px 18px 20px!important}
  .emergency-heading h2{font-size:25px!important}
  .emergency-call{width:140px!important;min-width:140px!important}
  .hotline-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    padding:0 12px 18px!important;
  }
  .hotline-grid a.hotline-card{
    min-height:126px!important;
    padding:13px 7px!important;
  }
  .hotline-card .hotline-logo{
    width:46px!important;height:46px!important;flex-basis:46px!important;font-size:19px!important;
  }
  .hotline-card b{font-size:11px!important}
  .hotline-card small{font-size:10px!important}
}
@media(max-width:430px){
  .hotline-grid{gap:6px!important;padding-left:10px!important;padding-right:10px!important}
  .hotline-grid a.hotline-card{min-height:118px!important;padding:11px 5px!important}
  .hotline-card b{font-size:10px!important}
  .hotline-card small{font-size:9px!important}
}

/* Official agency logos in emergency cards */
.hotline-card .hotline-logo img{
  width:40px!important;
  height:40px!important;
  object-fit:contain!important;
  display:block!important;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.hotline-police .hotline-logo img{width:42px!important;height:48px!important}
.hotline-fire .hotline-logo img{width:46px!important;height:46px!important}
.hotline-hospital .hotline-logo img{width:44px!important;height:44px!important}
@media(max-width:760px){
  .hotline-card .hotline-logo img{width:35px!important;height:35px!important}
  .hotline-police .hotline-logo img{width:36px!important;height:41px!important}
  .hotline-fire .hotline-logo img,.hotline-hospital .hotline-logo img{width:38px!important;height:38px!important}
}

/* Modern emergency interaction — restrained motion, no pulsing circles */
.emergency-panel .hotline-card{
  position:relative!important;
  overflow:hidden!important;
  transform:translateZ(0);
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,border-color .28s ease,background-color .28s ease!important;
}
.emergency-panel .hotline-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent 20%,rgba(255,255,255,.16) 48%,transparent 72%);
  transform:translateX(-125%);
  transition:transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.emergency-panel .hotline-card::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:0;
  height:3px;
  border-radius:99px 99px 0 0;
  background:currentColor;
  opacity:.0;
  transform:scaleX(.35);
  transform-origin:center;
  transition:transform .3s ease,opacity .3s ease;
}
.emergency-panel .hotline-card:hover{
  transform:translateY(-7px);
  box-shadow:0 18px 30px rgba(8,43,85,.13)!important;
}
.emergency-panel .hotline-card:hover::before{transform:translateX(125%)}
.emergency-panel .hotline-card:hover::after{opacity:.28;transform:scaleX(1)}
.emergency-panel .hotline-card .hotline-logo{
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease!important;
}
.emergency-panel .hotline-card:hover .hotline-logo{
  transform:translateY(-2px) scale(1.05);
  box-shadow:0 8px 18px rgba(8,43,85,.12);
}
.emergency-panel .hotline-card b,
.emergency-panel .hotline-card small{
  transition:transform .25s ease,color .25s ease;
}
.emergency-panel .hotline-card:hover b{transform:translateY(-1px)}
.emergency-panel .hotline-card:hover small{color:inherit}
.emergency-panel .emergency-call{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s ease!important;
}
.emergency-panel .emergency-call::before{
  content:"";
  position:absolute;
  inset:-40%;
  background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.26) 50%,transparent 58%);
  transform:translateX(-70%) rotate(8deg);
  transition:transform .65s cubic-bezier(.22,1,.36,1);
  z-index:-1;
}
.emergency-panel .emergency-call:hover{
  transform:translateY(-4px) scale(1.025);
  box-shadow:0 16px 30px rgba(0,0,0,.18)!important;
}
.emergency-panel .emergency-call:hover::before{transform:translateX(70%) rotate(8deg)}
.emergency-panel .panel-link{
  transition:gap .25s ease,color .25s ease,transform .25s ease!important;
}
.emergency-panel .panel-link:hover{
  transform:translateY(-1px);
}
.emergency-panel .panel-link i{
  transition:transform .25s ease;
}
.emergency-panel .panel-link:hover i{transform:translateX(5px)}
@media(max-width:760px){
  .emergency-panel .hotline-card:hover{transform:translateY(-4px)}
  .emergency-panel .emergency-call:hover{transform:translateY(-2px) scale(1.015)}
}
@media(prefers-reduced-motion:reduce){
  .emergency-panel .hotline-card,
  .emergency-panel .emergency-call,
  .emergency-panel .hotline-card .hotline-logo,
  .emergency-panel .panel-link,
  .emergency-panel .panel-link i{
    transition:none!important;
  }
  .emergency-panel .hotline-card::before,
  .emergency-panel .emergency-call::before{display:none!important}
}

/* Final global typography lock */
html,body,body *,button,input,textarea,select{
  font-family:"Sora","Poppins","Inter","Segoe UI",Arial,sans-serif!important;
}

/* Font Awesome must stay on icon elements */
i[class^="fa-"],i[class*=" fa-"],svg[class^="fa-"],svg[class*=" fa-"],
.fa,.fas,.far,.fab,.fal,.fad,.fa-solid,.fa-regular,.fa-brands{
  font-family:"Font Awesome 6 Free","Font Awesome 6 Brands"!important;
  font-style:normal!important;
}
.fas,.fa-solid{font-weight:900!important}
.far,.fa-regular{font-weight:400!important}
.fab,.fa-brands{font-weight:400!important}

/* Quick Search directly below the main search field */
.quick-search{
  width:min(780px,calc(100% - 32px));
  margin:12px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:7px;
  position:relative;
  z-index:9;
}
.quick-search-label{
  margin-right:4px;
  color:#718092;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.quick-search a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:6px 11px;
  border:1px solid #dfe8f1;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:#496176;
  font-size:10px;
  font-weight:700;
  box-shadow:0 4px 12px rgba(8,43,85,.045);
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease;
}
.quick-search a i{font-size:10px}
.quick-search a:hover{
  transform:translateY(-2px);
  background:#eef5ff;
  border-color:#c8ddf1;
  color:#0756a3;
  box-shadow:0 7px 16px rgba(8,43,85,.09);
}
@media(max-width:600px){
  .quick-search{
    width:calc(100% - 24px);
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding:2px 0 5px;
    scrollbar-width:none;
  }
  .quick-search::-webkit-scrollbar{display:none}
  .quick-search-label{flex:0 0 auto}
  .quick-search a{flex:0 0 auto}
}

/* Larger, more visible Quick Search */
.quick-search{
  width:min(820px,calc(100% - 28px))!important;
  margin:16px auto 0!important;
  gap:9px!important;
}
.quick-search-label{
  margin-right:7px!important;
  color:#526b80!important;
  font-size:11px!important;
  letter-spacing:.14em!important;
  font-weight:800!important;
}
.quick-search a{
  min-height:42px!important;
  padding:9px 16px!important;
  gap:8px!important;
  border:1px solid #cbdbea!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#173b5c!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:0 7px 18px rgba(8,43,85,.08)!important;
}
.quick-search a i{
  font-size:13px!important;
  color:#0756a3!important;
}
.quick-search a:hover{
  transform:translateY(-3px)!important;
  background:#eef6ff!important;
  border-color:#9fc5e6!important;
  color:#0756a3!important;
  box-shadow:0 11px 23px rgba(8,43,85,.13)!important;
}
@media(max-width:600px){
  .quick-search{
    width:calc(100% - 20px)!important;
    margin-top:14px!important;
    gap:8px!important;
    padding:2px 0 7px!important;
  }
  .quick-search-label{
    font-size:10px!important;
    margin-right:3px!important;
  }
  .quick-search a{
    min-height:40px!important;
    padding:9px 14px!important;
    font-size:11px!important;
  }
  .quick-search a i{font-size:12px!important}
}

/* Quick Search — final compact navigation treatment */
.quick-search{
  width:min(980px,calc(100% - 32px))!important;
  margin:18px auto 0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:auto repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
}
.quick-search-label{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:50px!important;
  padding:0 12px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  color:#60758a!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.quick-search a{
  min-width:0!important;
  min-height:50px!important;
  padding:10px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:1px solid #d6e2ed!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#173b5c!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.2!important;
  box-shadow:0 5px 16px rgba(8,43,85,.07)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease,color .2s ease!important;
}
.quick-search a i{
  flex:0 0 auto!important;
  width:18px!important;
  text-align:center!important;
  color:#0756a3!important;
  font-size:14px!important;
}
.quick-search a:hover{
  transform:translateY(-2px)!important;
  border-color:#a9c8e3!important;
  background:#f5faff!important;
  color:#0756a3!important;
  box-shadow:0 10px 22px rgba(8,43,85,.11)!important;
}
@media(max-width:900px){
  .quick-search{
    grid-template-columns:auto repeat(5,minmax(120px,1fr))!important;
    overflow-x:auto!important;
    justify-content:start!important;
    scrollbar-width:none!important;
  }
  .quick-search::-webkit-scrollbar{display:none}
  .quick-search-label{position:sticky;left:0;z-index:2;background:#f8fbfe!important}
  .quick-search a{white-space:nowrap!important}
}
@media(max-width:600px){
  .quick-search{
    width:calc(100% - 20px)!important;
    margin-top:14px!important;
    gap:7px!important;
  }
  .quick-search-label{
    min-height:46px!important;
    padding:0 9px!important;
    font-size:9px!important;
  }
  .quick-search a{
    min-height:46px!important;
    padding:9px 12px!important;
    border-radius:11px!important;
    font-size:10px!important;
  }
  .quick-search a i{font-size:13px!important}
}
