:root {
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-soft: #ecfdf5;
  --primary: #047857;
  --primary-dark: #065f46;
  --primary-soft: #d1fae5;
  --accent: #0ea5e9;
  --warning: #f59e0b;
  --danger: #dc2626;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe8e1;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 248, 0.88);
  border-bottom: 1px solid rgba(219, 232, 225, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(4, 120, 87, 0.28);
}

.brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 92px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.22), transparent 28%),
    linear-gradient(135deg, #f7fbf8 0%, #ecfdf5 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 32px rgba(4, 120, 87, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost {
  box-shadow: none;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0 0;
}

.quick-facts div {
  padding: 18px;
  border: 1px solid rgba(219, 232, 225, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-illustration {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: linear-gradient(145deg, #d1fae5, #e0f2fe);
}

.sun {
  position: absolute;
  right: 48px;
  top: 40px;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #fde68a;
  box-shadow: 0 0 0 18px rgba(253, 230, 138, 0.34);
}

.building {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 54px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: end;
  gap: 12px;
}

.building span {
  display: block;
  height: 138px;
  border-radius: 22px 22px 10px 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.building span:nth-child(2) {
  height: 188px;
  background: var(--primary);
}

.pulse-line {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 34px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px;
}

.service-strip span,
.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid.three {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.info-card,
.news-card,
.profile-panel,
.admin-form,
.login-card,
.map-card,
.gallery-card,
.admin-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.info-card {
  padding: 24px;
}

.info-card p,
.section-heading p,
.contact-list,
.site-footer p {
  color: var(--muted);
}

.info-card a,
.text-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--primary);
}

.icon-box svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.vision-box {
  margin-top: 26px;
  padding: 24px;
  border-left: 6px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
}

.vision-box ul,
.profile-panel ul {
  padding-left: 20px;
}

.profile-panel {
  padding: 28px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.news-card,
.gallery-card {
  overflow: hidden;
}

.news-card a {
  text-decoration: none;
}

.news-card h3 a:hover,
.read-more:hover {
  color: var(--primary-dark);
}

.news-media,
.gallery-media {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.news-media img,
.gallery-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-body,
.gallery-body {
  padding: 22px;
}

.read-more {
  display: inline-flex;
  margin-top: 4px;
  color: var(--primary-dark);
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card:first-child {
  grid-column: span 2;
}

.map-card {
  overflow: hidden;
}

.map-iframe {
  display: block;
  width: 100%;
  min-height: 450px;
  border: 0;
}

.map-placeholder {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 32px;
  text-align: center;
  background: linear-gradient(145deg, #e0f2fe, #dcfce7);
}

.map-placeholder svg {
  width: 170px;
  fill: none;
  stroke: var(--primary-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.article-hero {
  padding: 74px 0 52px;
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, #f7fbf8 0%, #ecfdf5 100%);
}

.article-shell {
  max-width: 900px;
}

.article-shell h1 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.article-content-section {
  background: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.article-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.article-cover {
  display: grid;
  min-height: 300px;
  place-items: center;
  background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content > p {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 34px 20px;
  color: #243044;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-content > p:first-of-type {
  padding-top: 34px;
}

.article-content > p:last-child {
  padding-bottom: 42px;
}

.article-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.article-sidebar h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.side-news {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
}

.side-news span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-news:hover strong {
  color: var(--primary-dark);
}

.admin-section {
  background: #0f172a;
  color: #e2e8f0;
}

.admin-section .eyebrow,
.admin-section a {
  color: #7dd3fc;
}

.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.login-card,
.admin-panel {
  color: var(--text);
}

.login-card {
  max-width: 620px;
  padding: 24px;
}

.inline-form {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.form-message {
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 800;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.tab-btn.active {
  background: #fff;
  color: var(--text);
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: grid;
  gap: 18px;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  color: var(--text);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-btn {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.hidden {
  display: none !important;
}

.site-footer {
  padding: 34px 0;
  background: #08111f;
  color: #e2e8f0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid a {
  color: #e2e8f0;
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .quick-facts,
  .card-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 60px;
  }

  .quick-facts,
  .card-grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .admin-header,
  .footer-grid,
  .admin-item,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-illustration {
    min-height: 280px;
  }

  .building {
    left: 28px;
    right: 28px;
  }

  .brand small {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .article-content > p {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Visual refresh: cleaner government-health portal look. */
:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #eef8f3;
  --primary: #057a55;
  --primary-dark: #07533f;
  --primary-soft: #dff5ea;
  --accent: #0b86c6;
  --text: #102033;
  --muted: #5b6b7d;
  --line: #d9e6df;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.09);
  --radius: 18px;
  --radius-sm: 10px;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    linear-gradient(180deg, rgba(238, 248, 243, 0.78) 0, rgba(244, 248, 246, 0) 420px),
    var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}

.topbar {
  border-bottom: 1px solid rgba(217, 230, 223, 0.82);
  background: #0d2f25;
  color: #d7f7e7;
  font-size: 13px;
  font-weight: 700;
}

.topbar-grid {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar a {
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(217, 230, 223, 0.95);
  box-shadow: 0 10px 30px rgba(16, 32, 51, 0.05);
}

.nav {
  min-height: 74px;
}

.brand strong {
  display: block;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: #6b7c8d;
  font-weight: 700;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #057a55, #0b86c6);
}

.nav-links a {
  color: #34475b;
  font-size: 14px;
  font-weight: 800;
}

.nav-links .btn-ghost {
  border-color: #bfe3d2;
  background: #effaf4;
  color: var(--primary-dark);
}

.hero {
  padding: 72px 0 76px;
  background:
    linear-gradient(115deg, rgba(5, 122, 85, 0.09), rgba(11, 134, 198, 0.06)),
    linear-gradient(180deg, #ffffff 0%, #edf8f2 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.13em;
}

h1,
h2 {
  color: #102033;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.45rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
}

h3 {
  color: #12243a;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 650px;
  color: #516273;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.btn {
  border-radius: 12px;
  min-height: 48px;
  padding-inline: 18px;
}

.btn-primary {
  background: #057a55;
  box-shadow: 0 14px 26px rgba(5, 122, 85, 0.22);
}

.btn-secondary,
.btn-ghost {
  border-color: #c8dcd1;
  background: #fff;
}

.quick-facts {
  grid-template-columns: 1fr;
  max-width: 610px;
  gap: 10px;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.quick-facts dd {
  color: #21354a;
  font-size: 0.95rem;
}

.hero-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(16, 32, 51, 0.13);
}

.hero-illustration {
  min-height: 330px;
  background:
    radial-gradient(circle at 72% 18%, rgba(253, 230, 138, 0.72), transparent 18%),
    linear-gradient(145deg, #e9f7ef, #dff2fb);
}

.building span {
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.service-strip {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.service-strip span,
.pill-list span {
  background: #eef8f3;
  color: #07533f;
}

.card-grid.three {
  margin-top: -32px;
}

.info-card,
.news-card,
.gallery-card,
.profile-panel,
.admin-form,
.login-card,
.map-card,
.admin-item,
.article-content,
.article-sidebar {
  border-color: rgba(217, 230, 223, 0.95);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 26px;
}

.info-card h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.section-heading {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

#news-list.card-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.news-card {
  grid-column: span 4;
  border-radius: 18px;
  background: #fff;
}

.news-card:first-child {
  grid-column: span 6;
}

.news-card:nth-child(2),
.news-card:nth-child(3) {
  grid-column: span 3;
}

.news-media {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(5, 122, 85, 0.16), rgba(11, 134, 198, 0.14)),
    #eef8f3;
}

.news-card:first-child .news-media,
.news-card:first-child .news-media img {
  min-height: 280px;
}

.news-media img,
.gallery-media img {
  height: 215px;
}

.news-card:first-child .news-body {
  padding: 26px;
}

.news-card:first-child h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.meta {
  color: #637486;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.read-more,
.text-link,
.info-card a {
  color: var(--primary-dark);
  text-underline-offset: 4px;
}

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

.gallery-card:first-child {
  grid-column: span 1;
}

.admin-section {
  background:
    radial-gradient(circle at 10% 0, rgba(11, 134, 198, 0.16), transparent 28%),
    #102033;
}

.site-footer {
  background: #0d1d2d;
}

.article-hero {
  padding: 64px 0 48px;
  background:
    linear-gradient(115deg, rgba(5, 122, 85, 0.08), rgba(11, 134, 198, 0.05)),
    #ffffff;
}

.article-shell {
  max-width: 980px;
}

.article-shell h1 {
  max-width: 920px;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 1.04;
}

.article-meta span {
  border-radius: 12px;
  background: #eef8f3;
  color: #385168;
}

.article-content-section {
  background: #f7faf8;
}

.article-layout {
  grid-template-columns: minmax(0, 780px) minmax(280px, 1fr);
  justify-content: center;
}

.article-content {
  border-radius: 20px;
}

.article-cover {
  min-height: 340px;
  background:
    linear-gradient(135deg, rgba(5, 122, 85, 0.14), rgba(11, 134, 198, 0.12)),
    #eef8f3;
}

.article-content > p {
  max-width: 700px;
  color: #243548;
  font-size: 1.07rem;
  line-height: 1.86;
}

.article-content > p:first-of-type::first-letter {
  float: left;
  padding: 8px 8px 0 0;
  color: var(--primary-dark);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.78;
}

.article-sidebar {
  border-radius: 18px;
  background: #ffffff;
}

.article-sidebar h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.side-news {
  border: 1px solid var(--line);
  background: #f8fbf9;
}

@media (max-width: 940px) {
  .topbar-grid,
  .topbar-grid div {
    justify-content: center;
    text-align: center;
  }

  .hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  #news-list.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card,
  .news-card:first-child,
  .news-card:nth-child(2),
  .news-card:nth-child(3) {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar {
    display: none;
  }

  .hero {
    padding: 48px 0 58px;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
  }

  #news-list.card-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .news-card:first-child .news-media,
  .news-card:first-child .news-media img {
    min-height: 210px;
  }

  .article-cover {
    min-height: 230px;
  }

  .article-content > p:first-of-type::first-letter {
    float: none;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
  }
}

/* Final restyle: polished civic health portal. */
:root {
  --bg: #f6f3ea;
  --surface: #fffdf8;
  --surface-soft: #edf8f2;
  --primary: #006b4f;
  --primary-dark: #064735;
  --primary-soft: #d9f1e6;
  --accent: #126e9f;
  --gold: #d9a441;
  --text: #142033;
  --muted: #657385;
  --line: #e1dfd5;
  --shadow: 0 18px 50px rgba(20, 32, 51, 0.1);
  --shadow-strong: 0 28px 80px rgba(20, 32, 51, 0.16);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(217, 164, 65, 0.16), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(0, 107, 79, 0.13), transparent 26rem),
    linear-gradient(180deg, #fffaf0 0%, #f3f8f4 42%, #f7f4ec 100%);
}

.section {
  padding: 92px 0;
}

.topbar {
  background: linear-gradient(90deg, #063629, #0b5944);
  color: #e7fff2;
}

.topbar-grid {
  min-height: 42px;
}

.site-header {
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(225, 223, 213, 0.9);
}

.nav {
  min-height: 82px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: linear-gradient(145deg, #006b4f 0%, #0b755b 48%, #126e9f 100%);
  box-shadow: 0 16px 32px rgba(0, 107, 79, 0.25);
}

.brand strong {
  color: #0d2b22;
  font-size: 1.08rem;
}

.nav-links {
  gap: 2px;
}

.nav-links a {
  color: #2f4356;
  border-radius: 12px;
}

.nav-links a:hover {
  background: #edf8f2;
  color: var(--primary-dark);
}

.nav-links .btn-ghost {
  background: var(--primary-dark);
  color: #fff;
}

.hero {
  padding: 86px 0 96px;
  background:
    linear-gradient(90deg, rgba(6, 71, 53, 0.93), rgba(0, 107, 79, 0.82)),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, 0.45), transparent 28rem);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--gold), #f3d892, var(--gold));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
}

.hero .eyebrow,
.hero h1,
.hero .lead {
  color: #fff;
}

.hero .eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.hero h1 {
  max-width: 760px;
  text-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
}

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

.hero .btn-primary {
  background: #f6c75d;
  color: #1b2b18;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.quick-facts div {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.quick-facts dt {
  color: rgba(255, 255, 255, 0.68);
}

.quick-facts dd {
  color: #fff;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-strong);
}

.hero-illustration {
  background:
    radial-gradient(circle at 78% 18%, rgba(246, 199, 93, 0.88), transparent 74px),
    linear-gradient(145deg, #f9f2df, #d8f0e5 64%, #cbe8f6);
}

.service-strip {
  background: #fffdf8;
}

.service-strip span,
.pill-list span {
  border: 1px solid #cfe7dc;
  background: #f2faf6;
}

.intro-section {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), #fffdf8 80%);
}

.card-grid.three {
  margin-top: -50px;
}

.info-card,
.news-card,
.gallery-card,
.profile-panel,
.vision-box,
.table-shell,
.map-card,
.admin-form,
.login-card,
.admin-item,
.article-content,
.article-sidebar {
  border: 1px solid rgba(225, 223, 213, 0.95);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card {
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.icon-box {
  background: linear-gradient(145deg, #e6f7ee, #fff4d7);
  color: var(--primary-dark);
}

.section-muted {
  background:
    linear-gradient(180deg, #edf8f2 0%, #fffdf8 100%);
}

.section-heading {
  border-bottom: 0;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 80px;
  background: linear-gradient(90deg, rgba(0, 107, 79, 0.28), transparent);
}

.table-shell {
  border-radius: 22px;
  overflow: hidden;
}

th {
  background: #f7f3e8;
  color: #43546a;
}

td {
  background: rgba(255, 253, 248, 0.65);
}

#jadwal .table-shell {
  background: transparent;
}

#jadwal table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
  padding: 12px;
}

#jadwal thead th {
  border-bottom: 0;
  background: transparent;
}

#jadwal tbody tr {
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

#jadwal tbody td {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}

#jadwal tbody td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 18px 0 0 18px;
}

#jadwal tbody td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 18px 18px 0;
}

@media (max-width: 720px) {
  #jadwal .table-shell {
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  #jadwal table,
  #jadwal thead,
  #jadwal tbody,
  #jadwal tr,
  #jadwal th,
  #jadwal td {
    display: block;
  }

  #jadwal table {
    padding: 0;
    border-spacing: 0;
  }

  #jadwal thead {
    display: none;
  }

  #jadwal tbody {
    display: grid;
    gap: 14px;
  }

  #jadwal tbody tr {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 0 14px 36px rgba(20, 32, 51, 0.08);
  }

  #jadwal tbody td {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 12px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
  }

  #jadwal tbody td::before {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #jadwal tbody td:nth-child(1)::before {
    content: "Poli";
  }

  #jadwal tbody td:nth-child(2)::before {
    content: "Hari";
  }

  #jadwal tbody td:nth-child(3)::before {
    content: "Jam";
  }
}

.news-card,
.gallery-card {
  border-radius: 22px;
}

.news-card:hover,
.gallery-card:hover,
.info-card:hover,
.side-news:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.news-media,
.gallery-media,
.article-cover {
  background:
    radial-gradient(circle at 25% 18%, rgba(246, 199, 93, 0.38), transparent 100px),
    linear-gradient(135deg, #e5f6ee, #dbeef8);
}

.news-body,
.gallery-body {
  padding: 24px;
}

.news-card:first-child h3 {
  color: #102033;
}

.read-more {
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf8f2;
  text-decoration: none;
}

.gallery-grid {
  gap: 22px;
}

.contact-grid {
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.contact-list p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.86);
}

.map-card {
  border-radius: 26px;
  padding: 10px;
  background: #fffdf8;
}

.map-iframe {
  min-height: 470px;
  border-radius: 18px;
}

.admin-section {
  background:
    radial-gradient(circle at 82% 4%, rgba(217, 164, 65, 0.18), transparent 24rem),
    linear-gradient(135deg, #102033, #063629 70%);
}

.admin-tabs {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn {
  border-radius: 12px;
}

input,
textarea,
select {
  border-color: #d8d6ca;
  background: #fffdf8;
}

.article-hero {
  background:
    linear-gradient(90deg, rgba(6, 71, 53, 0.94), rgba(0, 107, 79, 0.84)),
    radial-gradient(circle at 80% 10%, rgba(217, 164, 65, 0.34), transparent 22rem);
}

.article-hero .text-link,
.article-hero .eyebrow,
.article-hero h1 {
  color: #fff;
}

.article-meta span {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.article-content-section {
  background: linear-gradient(180deg, #fffdf8, #f5f0e5);
}

.article-sidebar {
  background: #fffdf8;
}

.side-news {
  background: #fbf8f0;
}

.site-footer {
  background: linear-gradient(135deg, #0b1f33, #063629);
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .section-heading::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 58px 0 74px;
  }

  .card-grid.three {
    margin-top: -38px;
  }

  .nav {
    min-height: 74px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }
}

/* Official logo placement. */
.brand-mark {
  flex: 0 0 auto;
  padding: 6px;
  border: 1px solid rgba(0, 107, 79, 0.14);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 107, 79, 0.16);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-agency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 16px;
  min-height: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.header-agency img {
  display: block;
  width: auto;
  max-width: 138px;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 940px) {
  .header-agency {
    margin-left: 0;
    padding: 6px 10px;
  }

  .header-agency img {
    max-width: 98px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .header-agency {
    display: none;
  }
}

.quick-facts div {
  border: 0;
}

/* Remade hero section. */
.hero {
  min-height: calc(100dvh - 124px);
  display: flex;
  align-items: center;
  padding: 88px 0 108px;
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 199, 93, 0.28), transparent 15rem),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.14), transparent 18rem),
    linear-gradient(118deg, #073f31 0%, #0f684f 48%, #2c8a6b 100%);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 0.72fr);
  gap: clamp(44px, 7vw, 92px);
}

.hero-copy {
  max-width: 720px;
}

.hero .eyebrow {
  margin-bottom: 22px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.35rem, 6vw, 6.1rem);
  line-height: 0.92;
}

.hero .lead {
  max-width: 610px;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.62;
}

.hero-actions {
  margin-top: 26px;
}

.hero .btn {
  min-height: 56px;
  border-radius: 16px;
  padding-inline: 22px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  gap: 12px;
  margin-top: 34px;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 17px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.quick-facts dt {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.quick-facts dd {
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-official-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 36px 90px rgba(5, 28, 25, 0.32);
}

.hero-official-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--gold), #f8dd8c, var(--primary));
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 30px 20px;
}

.hero-card-head img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 7px;
  border: 1px solid rgba(0, 107, 79, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(20, 32, 51, 0.08);
}

.hero-card-head p,
.hero-card-main p {
  margin: 0;
}

.hero-card-head p,
.hero-card-label,
.hero-card-footer > span {
  color: #607285;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card-head strong {
  display: block;
  color: #102033;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.hero-card-main {
  margin: 0 22px;
  padding: 34px 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 16%, rgba(246, 199, 93, 0.55), transparent 88px),
    linear-gradient(140deg, #f8f2df 0%, #e3f5ec 52%, #d7edf7 100%);
}

.hero-card-main h2 {
  max-width: 390px;
  margin: 10px 0 22px;
  color: #102033;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.95rem, 3vw, 2.65rem);
  line-height: 1.04;
}

.hero-card-facts {
  display: grid;
  gap: 10px;
}

.hero-card-facts span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #21354a;
  font-weight: 800;
}

.hero-card-facts span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(0, 107, 79, 0.12);
}

.hero-card-footer {
  padding: 22px 30px 30px;
}

.hero-card-footer > span {
  display: block;
  margin-bottom: 12px;
}

.hero-official-card .service-strip {
  padding: 0;
  border-top: 0;
  background: transparent;
}

.hero-official-card .service-strip span {
  min-height: 38px;
  border-color: rgba(0, 107, 79, 0.18);
  background: #f2faf6;
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.75rem, 17vw, 4.15rem);
  }

  .hero-card-head,
  .hero-card-footer {
    padding-inline: 22px;
  }

  .hero-card-main {
    margin-inline: 14px;
    padding: 28px 22px;
  }
}

/* Profile section refresh. */
#profil {
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 164, 65, 0.12), transparent 20rem),
    linear-gradient(180deg, #fbf8f0 0%, #f5fbf7 100%);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 34px;
  align-items: start;
}

.profile-intro-card,
.profile-panel {
  border: 1px solid rgba(225, 223, 213, 0.95);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.profile-intro-card {
  padding: clamp(28px, 4vw, 44px);
}

.profile-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-kicker .eyebrow {
  margin: 0;
}

.mini-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(0, 107, 79, 0.14);
  border-radius: 14px;
  background: #fff;
}

.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-intro-card h2 {
  max-width: 620px;
  margin-bottom: 18px;
}

.profile-lead {
  max-width: 690px;
  color: #34475b;
  font-size: 1.06rem;
  line-height: 1.8;
}

.vision-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.vision-box > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdf8;
}

.vision-box h3,
.profile-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vision-box h3::before,
.profile-panel h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.14);
}

.vision-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vision-box li {
  position: relative;
  padding-left: 22px;
  color: #34475b;
}

.vision-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.profile-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.profile-panel-section {
  padding: 30px;
}

.profile-service-summary {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 10%, rgba(217, 164, 65, 0.22), transparent 7rem),
    linear-gradient(145deg, #edf8f2, #fffdf8);
}

.profile-service-summary span {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-service-summary strong {
  max-width: 440px;
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.profile-service-summary p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.profile-objective {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(0, 107, 79, 0.14);
  border-radius: 20px;
  background: #edf8f2;
}

.profile-objective span {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-objective strong {
  color: var(--text);
  font-size: 1.1rem;
}

.value-list {
  display: grid;
  gap: 10px;
}

.value-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.value-item span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 900;
}

.value-item strong {
  color: var(--text);
  font-size: 0.94rem;
}

.profile-panel-section + .profile-panel-section {
  border-top: 1px solid var(--line);
  background: rgba(237, 248, 242, 0.45);
}

.structure-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.structure-list li {
  display: grid;
  grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
}

.structure-list span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.structure-list strong {
  color: var(--text);
  font-weight: 800;
}

.profile-panel .pill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-panel .pill-list span {
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  background: #fffdf8;
}

@media (max-width: 1040px) {
  .profile-layout,
  .vision-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-intro-card,
  .profile-panel-section {
    padding: 22px;
  }

  .structure-list li,
  .profile-panel .pill-list {
    grid-template-columns: 1fr;
  }
}

/* Footer refresh. */
.site-footer {
  padding: 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(217, 164, 65, 0.18), transparent 22rem),
    linear-gradient(135deg, #0c2235 0%, #063629 72%);
  color: #edf8f2;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.55fr) minmax(280px, 0.8fr);
  gap: 38px;
  padding: 54px 0 36px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-row img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 7px;
  border-radius: 18px;
  background: #fff;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.footer-brand span,
.footer-brand p,
.footer-contact span,
.footer-contact a,
.footer-bottom {
  color: rgba(237, 248, 242, 0.78);
}

.footer-brand p {
  max-width: 520px;
  margin: 0 0 18px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(237, 248, 242, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-social a:hover {
  border-color: rgba(246, 199, 93, 0.55);
  color: #f6c75d;
}

.footer-links h2,
.footer-contact h2 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links a {
  width: fit-content;
  color: rgba(237, 248, 242, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #f6c75d;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-contact p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.footer-contact strong {
  color: #f6c75d;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-contact a {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(237, 248, 242, 0.13);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Admin login demo page. */
.admin-page-shell .admin-section {
  min-height: calc(100dvh - 124px);
  background:
    radial-gradient(circle at 18% 10%, rgba(246, 199, 93, 0.2), transparent 20rem),
    radial-gradient(circle at 86% 0%, rgba(18, 110, 159, 0.18), transparent 24rem),
    linear-gradient(135deg, #102033 0%, #063629 72%);
}

.admin-page-shell .admin-header {
  margin-bottom: 30px;
}

.admin-page-shell .admin-header h1 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.admin-page-shell .admin-header p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(237, 248, 242, 0.78);
}

.admin-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 34px;
  align-items: stretch;
}

.admin-login-copy,
.admin-login-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.admin-login-copy {
  display: grid;
  align-content: end;
  min-height: 480px;
  padding: clamp(28px, 5vw, 48px);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 54, 41, 0.88) 100%),
    radial-gradient(circle at 78% 18%, rgba(246, 199, 93, 0.42), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #fff;
  overflow: hidden;
}

.admin-login-badge {
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-login-copy h2 {
  max-width: 620px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.admin-login-copy p {
  max-width: 620px;
  color: rgba(237, 248, 242, 0.82);
  font-size: 1.05rem;
}

.admin-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-login-points span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

.admin-login-card {
  display: grid;
  align-content: center;
  gap: 16px;
  max-width: none;
  padding: clamp(28px, 4vw, 42px);
  background: rgba(255, 253, 248, 0.96);
  color: var(--text);
}

.login-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.login-card-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 7px;
  border: 1px solid rgba(0, 107, 79, 0.14);
  border-radius: 18px;
  background: #fff;
}

.login-card-brand strong,
.login-card-brand span {
  display: block;
}

.login-card-brand strong {
  color: var(--primary-dark);
  font-size: 1.22rem;
}

.login-card-brand span,
.login-hint {
  color: var(--muted);
}

.admin-login-card input {
  min-height: 54px;
  border-radius: 16px;
}

.admin-login-card .btn {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
}

.login-hint {
  margin: 0;
  font-size: 0.92rem;
}

.login-hint code {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .admin-login-layout {
    grid-template-columns: 1fr;
  }

  .admin-login-copy {
    min-height: 360px;
  }
}

/* Admin dashboard polish for demo upload. */
.admin-panel {
  gap: 24px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 0.8fr);
  gap: 14px;
}

.admin-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(225, 223, 213, 0.95);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.13);
}

.admin-stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(0, 107, 79, 0.08);
}

.admin-stat-card.primary {
  background:
    radial-gradient(circle at 85% 12%, rgba(246, 199, 93, 0.32), transparent 8rem),
    linear-gradient(135deg, #fffdf8, #edf8f2);
}

.admin-stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.admin-stat-card.primary strong {
  font-size: clamp(1.35rem, 2.1vw, 2rem);
}

.admin-stat-card p {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--muted);
}

.admin-tabs {
  position: sticky;
  top: 94px;
  z-index: 4;
  width: fit-content;
  max-width: 100%;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.tab-btn {
  border: 0;
  background: transparent;
}

.tab-btn.active {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.admin-tab.active {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: start;
}

#profile-admin.admin-tab.active {
  grid-template-columns: 1fr;
}

.admin-form {
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.98);
}

.admin-form h2 {
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.admin-form label {
  color: #26384c;
  font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-radius: 16px;
  background: #fffaf0;
}

.weekday-picker {
  display: grid;
  grid-column: span 2;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf0;
}

.weekday-picker legend {
  padding: 0 6px;
  color: #26384c;
  font-size: 0.92rem;
  font-weight: 800;
}

.weekday-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-right: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 107, 79, 0.16);
  border-radius: 999px;
  background: #fffdf8;
  cursor: pointer;
}

.weekday-picker input {
  width: auto;
  min-height: auto;
  accent-color: var(--primary);
}

.admin-list {
  align-content: start;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.admin-item {
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
}

.admin-item .meta {
  margin: 4px 0 0;
}

.admin-actions .btn {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px;
}

@media (max-width: 1050px) {
  .admin-dashboard-grid,
  .admin-tab.active {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stat-card.primary {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-grid,
  .admin-tab.active {
    grid-template-columns: 1fr;
  }

  .admin-stat-card.primary {
    grid-column: span 1;
  }

  .admin-tabs {
    position: static;
    width: 100%;
  }

  .tab-btn {
    flex: 1 1 45%;
  }
}

/* Auto image slideshow. */
.slideshow-section {
  padding: 58px 0 68px;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 164, 65, 0.13), transparent 18rem),
    linear-gradient(180deg, #fffaf0 0%, #f5fbf7 100%);
}

.slideshow-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.slideshow-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.slideshow-heading p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.slideshow-heading code {
  color: var(--primary-dark);
  font-weight: 800;
}

.image-slideshow {
  position: relative;
}

.slideshow-viewport {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 7.2;
  margin-inline: auto;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #102033;
  box-shadow: 0 26px 74px rgba(20, 32, 51, 0.18);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 900ms ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: -34px;
  width: calc(100% + 68px);
  height: calc(100% + 68px);
  object-fit: cover;
  filter: blur(26px) saturate(1.08) brightness(0.72);
  transform: scale(1.06);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 54, 41, 0.34), rgba(6, 54, 41, 0.06), rgba(6, 54, 41, 0.26)),
    linear-gradient(180deg, rgba(16, 32, 51, 0.14), rgba(16, 32, 51, 0.28));
}

.slide-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: clamp(10px, 1.6vw, 18px);
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.22));
}

.slideshow-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 63, 49, 0.56);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.slide-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.slide-dot.active {
  width: 28px;
  background: #f6c75d;
}

@media (max-width: 780px) {
  .slideshow-viewport {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
}

.brand {
  order: 1;
}

.nav-links {
  order: 2;
  margin-left: auto;
}

.header-agency {
  order: 3;
  margin-left: 18px;
}

.nav-toggle {
  order: 4;
}
