:root {
  --ink: #172344;
  --muted: #5b6682;
  --line: #dce2f2;
  --brand: #2b4593;
  --brand-dark: #1a2d68;
  --accent: #d64f3f;
  --soft: #f0f3fb;
  --surface: #ffffff;
  --warm: #f7f8fc;
  --blue: #1f5f9d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
}

.topbar .wrap,
.nav .wrap,
.footer-grid,
.hero-grid,
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar .wrap {
  min-height: 42px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav .wrap {
  min-height: 78px;
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 260px;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-dark);
}

.period-picker {
  position: relative;
}

.period-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  cursor: pointer;
}

.period-toggle {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(26, 45, 104, .08);
}

.period-toggle-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-size: 17px;
}

.period-toggle-text {
  min-width: 58px;
  text-align: left;
  line-height: 1.1;
}

.period-toggle-text small,
.period-toggle-text strong {
  display: block;
}

.period-toggle-text small {
  color: var(--muted);
  font-size: 10px;
}

.period-toggle-text strong {
  margin-top: 3px;
  font-size: 12px;
}

.period-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: 0;
  width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 26, 61, .18);
}

.period-menu[hidden] {
  display: none;
}

.period-menu > strong {
  display: block;
  padding: 4px 8px 8px;
  color: var(--ink);
  font-size: 12px;
}

.period-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.period-menu button:hover,
.period-menu button.active {
  background: var(--soft);
  color: var(--brand);
}

.period-menu button span {
  width: 20px;
  color: var(--brand);
  text-align: center;
}

.menu-toggle {
  display: none;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 9px;
  font-weight: 800;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #354365;
  font-size: 14px;
  font-weight: 700;
}

.menu a[aria-current="page"] {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(43, 69, 147, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover,
.quick-card:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.quick-card:focus-visible,
.period-toggle:focus-visible,
.period-menu button:focus-visible,
.menu-toggle:focus-visible,
.menu a:focus-visible {
  outline: 3px solid #91a9f0;
  outline-offset: 3px;
}

.btn.secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: #c6cee7;
  box-shadow: none;
}

.btn.emergency {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(214, 79, 63, .18);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(10, 22, 55, .91) 0%, rgba(18, 35, 78, .76) 40%, rgba(19, 37, 81, .2) 72%),
    var(--hero-image) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.bpjs-partnership {
  display: block;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.bpjs-partnership-inner {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d9e4f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 45, 104, .09);
}

.bpjs-partnership img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bpjs-partnership-copy {
  display: grid;
  gap: 6px;
  padding: 18px 28px 18px 0;
}

.bpjs-partnership-copy small {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bpjs-partnership-copy strong {
  color: var(--brand-dark);
  font-size: clamp(23px, 2.3vw, 34px);
  line-height: 1.1;
}

.bpjs-partnership-copy span {
  color: var(--muted);
  font-size: 14px;
}

.bpjs-partnership-copy b {
  margin-top: 4px;
  color: var(--brand);
  font-size: 13px;
}

.hero-grid {
  min-height: 560px;
}

.hero-copy {
  width: min(660px, 100%);
  padding: 54px 0 118px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(6, 13, 35, .2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c6cee7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
.hero-title {
  margin: 20px 0 18px;
  color: #172344;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero h1 {
  color: #fff;
}

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

.hero .eyebrow {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .94);
  color: var(--brand-dark);
  text-shadow: none;
}

.time-status {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(10, 21, 53, .58);
  box-shadow: 0 12px 30px rgba(5, 12, 32, .2);
  backdrop-filter: blur(10px);
}

.time-status strong,
.time-status span {
  display: block;
  line-height: 1.3;
}

.time-status strong {
  font-size: 15px;
}

.time-status span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.time-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .16);
}

.hero-period {
  display: none;
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  bottom: 92px;
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-period::after {
  content: "";
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .28);
}

.hero-period i {
  position: absolute;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
  transition: transform .35s ease;
}

.hero-period .period-pagi { transform: translateX(0); }
.hero-period .period-siang { transform: translateX(62px); }
.hero-period .period-sore { transform: translateX(124px); }
.hero-period .period-malam { transform: translateX(186px); }

h2 {
  margin: 0;
  color: #172344;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  color: #22315d;
  font-size: 21px;
  line-height: 1.25;
}

p {
  margin: 0;
}

.lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: #52607c;
  font-size: 19px;
}

.hero-actions,
.quick-actions,
.service-grid,
.doctor-grid,
.news-grid,
.feature-grid,
.schedule-grid,
.article-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(3, max-content);
}

.quick-actions {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: -72px auto 0;
  grid-template-columns: repeat(4, 1fr);
}

.quick-card,
.service-card,
.doctor-card,
.news-card,
.feature-card,
.schedule-card,
.article-card,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quick-card {
  min-height: 136px;
  padding: 20px;
  box-shadow: 0 20px 44px rgba(27, 43, 91, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.service-direction {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(98, 128, 210, .34), transparent 30%),
    linear-gradient(135deg, #17285e 0%, #2b4593 100%);
  color: #fff;
}

.service-direction::before {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.direction-heading {
  position: relative;
  max-width: 820px;
  margin-bottom: 30px;
}

.direction-heading > span,
.direction-vision span,
.direction-card > span {
  display: block;
  margin-bottom: 9px;
  color: #c9d7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.direction-heading h2 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 52px);
}

.direction-heading p {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
}

.direction-vision {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: #f8faff;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(7, 15, 44, .18);
}

.direction-vision span,
.direction-card > span {
  color: var(--brand);
}

.direction-vision h3 {
  max-width: 980px;
  margin: 0;
  color: #14234c;
  font-size: clamp(21px, 2.5vw, 31px);
  line-height: 1.35;
}

.direction-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 23px;
}

.direction-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.direction-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.direction-card ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 20px;
}

.direction-card li {
  padding-left: 5px;
  color: #3e4b6d;
  font-size: 14px;
  line-height: 1.55;
}

.direction-card li::marker {
  color: var(--brand);
  font-weight: 900;
}

.direction-values {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.direction-values article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(10, 24, 68, .25);
}

.direction-values i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.direction-values strong {
  color: #fff;
  font-size: 15px;
}

.direction-values p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  line-height: 1.5;
}

.muted,
.quick-card span,
.service-card p,
.doctor-card p,
.news-card p,
.feature-card p,
.schedule-card p,
.article-card p,
.metric-card p {
  color: var(--muted);
}

section,
.page-section {
  padding: 86px 0;
}

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

.section-head p {
  max-width: 500px;
  color: var(--muted);
}

.services {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.service-grid,
.doctor-grid,
.news-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.feature-card,
.schedule-card,
.metric-card {
  min-height: 230px;
  padding: 28px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #435170;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.warm {
  background: var(--warm);
}

.doctor-card {
  overflow: hidden;
}

.doctor-card img,
.article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--soft);
}

.doctor-card div,
.article-card div,
.news-card {
  padding: 22px;
}

.article-card {
  color: inherit;
}

.article-detail {
  display: grid;
  gap: 24px;
  max-width: 880px;
}

.article-detail.longform {
  max-width: 920px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.article-detail img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
}

.rich-content {
  color: #435170;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content table {
  margin: 0 0 18px;
}

.rich-content a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-content th,
.rich-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.gallery-grid,
.content-blocks {
  display: grid;
  gap: 18px;
}

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

.gallery-grid img,
.content-block img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.content-block {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.year-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.year-tabs a {
  min-width: 92px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: var(--brand-dark);
  font-weight: 900;
  background: #fff;
}

.year-tabs a.active {
  background: var(--brand);
  color: #fff;
}

.metric-image {
  width: 100%;
  height: 150px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.inm-section {
  padding-top: 58px;
}

.inm-year-title {
  margin: 22px 0 36px;
  text-align: center;
}

.inm-year-title h2 {
  font-size: clamp(38px, 6vw, 58px);
}

.inm-list {
  display: grid;
  gap: 56px;
}

.inm-item {
  display: grid;
  gap: 24px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.inm-item:last-child {
  border-bottom: 0;
}

.inm-image {
  width: min(820px, 100%);
  max-height: 720px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.inm-copy {
  width: min(820px, 100%);
  margin: 0 auto;
}

.inm-copy strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 18px;
}

.inm-copy h3 {
  font-size: clamp(26px, 4vw, 42px);
}

.inm-copy p {
  color: var(--muted);
}

.inm-blocks {
  gap: 42px;
}

.inm-content-block {
  grid-template-columns: 1fr;
}

.inm-content-block img {
  width: min(860px, 100%);
  max-height: 760px;
  margin: 0 auto;
  object-fit: contain;
}

.doctor-table {
  display: grid;
  gap: 12px;
}

.clinic-schedule {
  background: linear-gradient(180deg, #f5f7fc 0%, #fff 100%);
}

.clinic-schedule .section-head > div {
  display: grid;
  gap: 14px;
}

.clinic-schedule .section-head h2 {
  max-width: 720px;
}

.clinic-filters {
  display: flex;
  gap: 9px;
  margin-bottom: 28px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.clinic-filters button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #c9d2eb;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.clinic-filters button:hover,
.clinic-filters button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.doctor-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.doctor-schedule-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(27, 43, 91, .09);
}

.doctor-schedule-card[hidden] {
  display: none;
}

.doctor-photo {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #edf2ff, #dce5fa);
  color: var(--brand);
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.doctor-photo span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(43, 69, 147, .2);
  border-radius: 50%;
  background: #fff;
  font-size: 23px;
  font-weight: 900;
}

.doctor-photo small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.doctor-schedule-copy {
  padding: 22px;
}

.clinic-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.doctor-schedule-copy h3 {
  min-height: 52px;
  margin-bottom: 14px;
  font-size: 19px;
}

.doctor-schedule-copy dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.doctor-schedule-copy dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.doctor-schedule-copy dt {
  color: var(--muted);
  font-size: 12px;
}

.doctor-schedule-copy dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.schedule-note {
  color: var(--muted);
  font-size: 11px;
}

.schedule-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px;
  border-radius: 12px;
  background: var(--brand-dark);
  color: #fff;
}

.schedule-help strong,
.schedule-help span {
  display: block;
}

.schedule-help span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.schedule-poster-details {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.schedule-poster-details summary {
  padding: 16px 18px;
  color: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
}

.schedule-poster-details .schedule-poster {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.schedule-poster {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.schedule-poster img {
  width: 100%;
  max-height: 780px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.doctor-table article {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .9fr .8fr 1.2fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.doctor-table span,
.doctor-table small {
  color: var(--muted);
}

.cta {
  padding: 70px 0;
  background: var(--brand-dark);
  color: #fff;
}

.cta h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
}

.page-hero {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(26, 45, 104, .94), rgba(43, 69, 147, .8)),
    url("media/gedung-rs-siti-miriam.jpg") center / cover no-repeat;
  color: #fff;
}

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

.page-hero .lead {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
}

.panel {
  padding: 28px;
}

.schedule-grid {
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
}

.schedule-card img {
  width: 100%;
  border-radius: 8px;
}

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

.article-card {
  overflow: hidden;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card strong {
  display: block;
  color: var(--brand-dark);
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #354365;
  font-weight: 700;
}

footer {
  padding: 52px 0;
  background: #101a3d;
  color: #d7e8ea;
}

.footer-grid {
  align-items: flex-start;
}

footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

footer p {
  color: #bdd0d3;
}

.preview-hero {
  padding: 58px 0;
}

.preview-workspace {
  min-height: 900px;
  padding: 28px 18px 48px;
  background: #eef2f8;
}

.preview-controls {
  width: min(1400px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 16px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.preview-controls label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.preview-controls select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.preview-devices {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 9px;
  background: var(--soft);
}

.preview-devices button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.preview-devices button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 3px 10px rgba(26, 45, 104, .1);
}

.preview-description {
  width: min(1400px, 100%);
  margin: 12px auto 18px;
  color: var(--muted);
  font-size: 13px;
}

.preview-stage {
  width: 100%;
  min-height: 780px;
  padding: 22px;
  overflow: auto;
  border-radius: 14px;
  background: #dfe5ef;
}

.preview-device {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #aeb9cc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 26, 61, .18);
  transition: width .25s ease;
}

.preview-device-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #172344;
}

.preview-device-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8190b3;
}

.preview-device-bar span {
  min-width: 0;
  margin-left: 6px;
  overflow: hidden;
  color: #dfe6f7;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.preview-device iframe {
  width: 100%;
  height: 740px;
  display: block;
  border: 0;
  background: #fff;
}

@media (max-width: 980px) {
  .nav .wrap {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(16, 26, 61, .12);
  }

  .menu.is-open {
    display: grid;
    gap: 4px;
  }

  .menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  .menu a[aria-current="page"] {
    background: var(--soft);
  }

  .menu .btn {
    margin-top: 6px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(10, 22, 55, .92) 0%, rgba(18, 35, 78, .7) 62%, rgba(19, 37, 81, .28) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .doctor-cards {
    grid-template-columns: 1fr;
  }

  .direction-values {
    grid-template-columns: 1fr;
  }

  .preview-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-period {
    right: 24px;
  }

  .hero-actions,
  .service-grid,
  .doctor-grid,
  .doctor-table article,
  .gallery-grid,
  .content-block,
  .article-meta,
  .news-grid,
  .feature-grid,
  .split,
  .schedule-grid,
  .article-grid,
  .metric-grid,
  .cta .wrap {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -46px;
  }

  .section-head,
  .footer-grid {
    display: grid;
  }
}

@media (max-width: 560px) {
  .bpjs-partnership {
    padding: 0;
  }

  .bpjs-partnership-inner {
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bpjs-partnership img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .bpjs-partnership-copy {
    display: none;
  }

  .preview-hero {
    padding: 42px 0;
  }

  .preview-workspace {
    padding: 14px 10px 30px;
  }

  .preview-devices {
    overflow-x: auto;
  }

  .preview-stage {
    min-height: 680px;
    padding: 12px;
  }

  .preview-device iframe {
    height: 640px;
  }
  .topbar {
    font-size: 11px;
  }

  .topbar .wrap {
    min-height: 32px;
    padding: 4px 0;
  }

  .topbar .wrap span:last-child {
    display: none;
  }

  .nav .wrap {
    min-height: 62px;
    gap: 8px;
  }

  .nav-start {
    flex: 1;
    min-width: 0;
    gap: 7px;
  }

  .brand {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand > span {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand small {
    display: none;
  }

  .period-toggle {
    width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 4px;
    border-radius: 9px;
  }

  .period-toggle-text,
  .period-toggle > span:last-child {
    display: none;
  }

  .period-toggle-icon {
    width: 28px;
    height: 28px;
  }

  .period-menu {
    right: 0;
    left: auto;
  }

  .menu-toggle {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero,
  .hero-grid {
    min-height: 470px;
  }

  .hero-copy {
    padding: 30px 0 66px;
  }

  .hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero .lead {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero .eyebrow {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  .time-status {
    margin-bottom: 12px;
    padding: 7px 10px;
  }

  .time-status strong {
    font-size: 13px;
  }

  .time-status span {
    font-size: 11px;
  }

  .hero-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .quick-actions {
    width: min(100% - 24px, 1160px);
    gap: 10px;
    margin-top: -34px;
  }

  .quick-card {
    min-height: 118px;
    padding: 14px;
  }

  .quick-card strong {
    margin-bottom: 5px;
    font-size: 15px;
  }

  .quick-card span {
    font-size: 12px;
    line-height: 1.45;
  }

  .service-direction {
    padding: 58px 0;
  }

  .direction-heading {
    margin-bottom: 22px;
  }

  .direction-heading h2 {
    font-size: 32px;
  }

  .direction-heading p {
    font-size: 14px;
  }

  .direction-vision {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .direction-vision h3 {
    font-size: 19px;
  }

  .direction-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .direction-card {
    padding: 20px;
  }

  .direction-card li {
    font-size: 13px;
  }

  .direction-values {
    margin-top: 12px;
  }

  .clinic-schedule .section-head {
    gap: 12px;
  }

  .clinic-filters {
    margin-right: -16px;
    margin-bottom: 18px;
  }

  .doctor-cards {
    gap: 12px;
  }

  .doctor-schedule-card {
    grid-template-columns: 86px 1fr;
    min-height: 218px;
    border-radius: 10px;
  }

  .doctor-photo span {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .doctor-schedule-copy {
    padding: 16px 14px;
  }

  .doctor-schedule-copy h3 {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .doctor-schedule-copy dl div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .schedule-help {
    display: grid;
    padding: 18px;
  }

  .hero-period {
    display: none;
  }

  .btn {
    width: 100%;
  }

  section,
  .page-section {
    padding: 48px 0;
  }

  h2 {
    font-size: 28px;
  }

  .service-card,
  .feature-card,
  .schedule-card,
  .metric-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .menu-toggle span:last-child {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    justify-content: center;
  }

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