/* =========================================================
   RS. Harapan Keluarga — Front stylesheet
   Bootstrap 5.3 + token kustom (light / dark)
   ========================================================= */
:root {
  --hk-primary: #6B2FA0;
  --hk-primary-rgb: 107, 47, 160;
  --hk-primary-600: #5A2489;
  --hk-primary-900: #2A0F47;
  --hk-primary-soft: #F3ECFA;
  --hk-accent: #12A594;
  --hk-danger: #E5484D;
  --hk-bg: #FFFFFF;
  --hk-surface: #FFFFFF;
  --hk-surface-2: #F8F5FC;
  --hk-border: #E8E1F0;
  --hk-text: #1C1528;
  --hk-muted: #6E6680;
  --hk-radius-lg: 28px;
  --hk-radius: 18px;
  --hk-radius-sm: 12px;
  --hk-shadow: 0 18px 40px -24px rgba(42, 15, 71, .35);
  --hk-nav-h: 76px;

  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--hk-text);
  --bs-body-bg: var(--hk-bg);
  --bs-primary: var(--hk-primary);
  --bs-primary-rgb: var(--hk-primary-rgb);
  --bs-link-color: var(--hk-primary);
  --bs-link-color-rgb: var(--hk-primary-rgb);
  --bs-link-hover-color: var(--hk-primary-600);
  --bs-border-color: var(--hk-border);
  --bs-secondary-color: var(--hk-muted);
  --bs-focus-ring-color: rgba(var(--hk-primary-rgb), .3);
}

[data-bs-theme="dark"] {
  --hk-primary: #A774DB;
  --hk-primary-rgb: 167, 116, 219;
  --hk-primary-600: #BE96E6;
  --hk-primary-900: #1E0F30;
  --hk-primary-soft: #241834;
  --hk-bg: #110B19;
  --hk-surface: #1A1225;
  --hk-surface-2: #160F20;
  --hk-border: #2F2340;
  --hk-text: #EDE7F5;
  --hk-muted: #A79DB8;
  --hk-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --bs-body-color: var(--hk-text);
  --bs-body-bg: var(--hk-bg);
  --bs-emphasis-color: #fff;
  --bs-tertiary-bg: var(--hk-surface);
}

html { scroll-padding-top: calc(var(--hk-nav-h) + 16px); }
body { -webkit-font-smoothing: antialiased; background: var(--hk-bg); color: var(--hk-text); }
h1, h2, h3, h4, h5, h6 { color: var(--hk-text); font-weight: 700; letter-spacing: -.02em; }
.text-muted, .text-secondary { color: var(--hk-muted) !important; }
a { text-decoration: none; }
::selection { background: rgba(var(--hk-primary-rgb), .2); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(var(--hk-primary-rgb), .55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & forms ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.25rem; --bs-btn-padding-y: .65rem; border-radius: 999px; }
.btn-primary {
  --bs-btn-bg: var(--hk-primary); --bs-btn-border-color: var(--hk-primary);
  --bs-btn-hover-bg: var(--hk-primary-600); --bs-btn-hover-border-color: var(--hk-primary-600);
  --bs-btn-active-bg: var(--hk-primary-600); --bs-btn-active-border-color: var(--hk-primary-600);
  --bs-btn-disabled-bg: var(--hk-primary); --bs-btn-disabled-border-color: var(--hk-primary);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #170B24; --bs-btn-hover-color: #170B24; --bs-btn-active-color: #170B24; --bs-btn-disabled-color: #170B24; }
.btn-outline-primary {
  --bs-btn-color: var(--hk-primary); --bs-btn-border-color: var(--hk-primary);
  --bs-btn-hover-bg: var(--hk-primary); --bs-btn-hover-border-color: var(--hk-primary); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hk-primary); --bs-btn-active-border-color: var(--hk-primary);
}
.btn-soft { background: var(--hk-primary-soft); color: var(--hk-primary); border: 0; }
.btn-soft:hover, .btn-soft:focus { background: var(--hk-primary); color: #fff; }
.btn-emergency { background: var(--hk-danger); color: #fff; border: 0; }
.btn-emergency:hover, .btn-emergency:focus { background: #c9363b; color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; }

.form-control, .form-select {
  border-radius: var(--hk-radius-sm); border-color: var(--hk-border); padding: .7rem .95rem;
  background-color: var(--hk-surface); color: var(--hk-text);
}
.form-control:focus, .form-select:focus { border-color: var(--hk-primary); box-shadow: 0 0 0 .25rem rgba(var(--hk-primary-rgb), .15); background-color: var(--hk-surface); color: var(--hk-text); }
.form-label { font-weight: 600; font-size: .875rem; }
.form-check-input:checked { background-color: var(--hk-primary); border-color: var(--hk-primary); }

/* Tom Select */
.ts-wrapper.single .ts-control, .ts-wrapper .ts-control { border-radius: var(--hk-radius-sm); border-color: var(--hk-border); padding: .7rem .95rem; background: var(--hk-surface); color: var(--hk-text); box-shadow: none; font-size: 1rem; }
.ts-wrapper.focus .ts-control { border-color: var(--hk-primary); box-shadow: 0 0 0 .25rem rgba(var(--hk-primary-rgb), .15); }
.ts-dropdown { border-radius: var(--hk-radius-sm); border-color: var(--hk-border); background: var(--hk-surface); color: var(--hk-text); overflow: hidden; margin-top: 4px; }
.ts-dropdown .active { background: var(--hk-primary-soft); color: var(--hk-primary); }
.ts-dropdown .option, .ts-dropdown .no-results { padding: .55rem .95rem; }
.ts-control input { color: var(--hk-text) !important; }
.ts-wrapper.is-invalid .ts-control { border-color: var(--bs-danger); }
.ts-wrapper.disabled .ts-control { opacity: .6; }

/* ---------- Topbar & Navbar ---------- */
.topbar { background: var(--hk-primary-900); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar .sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

.site-nav {
  position: sticky; top: 0; z-index: 1030; min-height: var(--hk-nav-h);
  background: color-mix(in srgb, var(--hk-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--hk-border); box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
.site-nav .navbar-brand img { height: 46px; width: auto; }
[data-bs-theme="dark"] .logo-adapt { background: #fff; border-radius: 12px; padding: 4px 8px; }
.site-nav .nav-link { font-weight: 600; color: var(--hk-text); padding: .5rem .9rem !important; border-radius: 999px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .nav-link.show { color: var(--hk-primary); background: var(--hk-primary-soft); }
.site-nav .dropdown-menu { border-radius: var(--hk-radius); border-color: var(--hk-border); padding: .5rem; box-shadow: var(--hk-shadow); background: var(--hk-surface); }
.site-nav .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 500; color: var(--hk-text); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item.active { background: var(--hk-primary-soft); color: var(--hk-primary); }
.dropdown-menu-services { min-width: 460px; }
.dropdown-menu-services .dropdown-item i { width: 22px; color: var(--hk-primary); }
.navbar-toggler { border: 1px solid var(--hk-border); border-radius: 12px; padding: .5rem .7rem; color: var(--hk-text); }
.navbar-toggler:focus { box-shadow: none; }

.theme-toggle { background: var(--hk-surface-2); border: 1px solid var(--hk-border); color: var(--hk-text); }
.theme-toggle:hover { color: var(--hk-primary); border-color: var(--hk-primary); }
.theme-toggle .fa-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-bs-theme="dark"] .theme-toggle .fa-moon { display: none; }

@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: var(--hk-radius); padding: 1rem; margin-top: .75rem; box-shadow: var(--hk-shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .dropdown-menu-services { min-width: 0; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--hk-surface-2); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); margin-bottom: .6rem; }
.section-head p { color: var(--hk-muted); font-size: 1.05rem; margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow { font-weight: 700; display: inline-flex; gap: .5rem; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
@media (max-width: 767.98px) { .section { padding: 72px 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 140px; background: var(--hk-primary-soft); border-radius: 0 0 48px 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; bottom: -45%; width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--hk-primary-rgb), .16), transparent 65%); pointer-events: none;
}
.hero .carousel-item { transition: opacity .8s ease; }
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin-bottom: 1.25rem; text-wrap: balance; }
.hero-text { font-size: 1.125rem; color: var(--hk-muted); max-width: 46ch; margin-bottom: 2rem; }
.hero-arch {
  position: relative; aspect-ratio: 4 / 4.6; max-height: 540px; margin-left: auto;
  border-radius: 999px 999px 36px 36px; overflow: hidden; background: rgba(var(--hk-primary-rgb), .15);
  box-shadow: 0 40px 80px -40px rgba(42, 15, 71, .6);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease; }
.carousel-item.active .hero-arch img { transform: scale(1); }
.hero-arch .arch-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: rgba(var(--hk-primary-rgb), .4); }
.hero-arch .arch-badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: center; gap: .75rem;
  background: color-mix(in srgb, var(--hk-surface) 92%, transparent); backdrop-filter: blur(8px);
  border-radius: 18px; padding: .8rem 1rem; font-size: .875rem; color: var(--hk-text);
}
.arch-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hk-accent); box-shadow: 0 0 0 5px rgba(18,165,148,.2); flex: none; }

.hero-progress { display: flex; gap: .5rem; margin-top: 2.25rem; }
.hero-progress button { flex: 0 0 56px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: rgba(var(--hk-primary-rgb), .2); overflow: hidden; position: relative; }
.hero-progress button span { position: absolute; inset: 0; width: 0; background: var(--hk-primary); }
.hero-progress button.active span { animation: hk-progress 6s linear forwards; }
@keyframes hk-progress { to { width: 100%; } }

.care-dock { position: relative; margin-top: -96px; z-index: 5; }
.care-dock-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; background: var(--hk-surface);
  border: 1px solid var(--hk-border); border-radius: var(--hk-radius-lg); box-shadow: var(--hk-shadow); overflow: hidden;
}
.dock-item { padding: 1.5rem 1.75rem; display: flex; gap: 1rem; align-items: center; color: var(--hk-text); }
.dock-item + .dock-item { border-left: 1px solid var(--hk-border); }
.dock-item .dock-icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 1.25rem; background: var(--hk-primary-soft); color: var(--hk-primary); }
.dock-item h6 { margin: 0 0 .15rem; font-weight: 700; }
.dock-item small { color: var(--hk-muted); }
a.dock-item:hover { background: var(--hk-surface-2); color: var(--hk-text); }
.dock-item.is-emergency .dock-icon { background: rgba(229,72,77,.12); color: var(--hk-danger); }
.dock-search { position: relative; flex: 1; }
.dock-search input { border-radius: 999px; padding-right: 3.25rem; }
.dock-search button { position: absolute; right: 5px; top: 5px; bottom: 5px; width: 40px; height: auto; border-radius: 50%; }
@media (max-width: 991.98px) {
  .care-dock-inner { grid-template-columns: 1fr; }
  .dock-item + .dock-item { border-left: 0; border-top: 1px solid var(--hk-border); }
  .hero { padding-bottom: 120px; }
  .hero-arch { max-height: 380px; margin: 2rem auto 0; aspect-ratio: 4 / 3.6; border-radius: 200px 200px 28px 28px; }
}

/* ---------- About ---------- */
.about-media { position: relative; border-radius: var(--hk-radius-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--hk-primary-soft); }
.about-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
  border: 0; background: #fff; color: #6B2FA0; font-size: 1.4rem; display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(255,255,255,.25); transition: transform .2s;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.accreditation-chip {
  position: absolute; right: 16px; top: 16px; background: #fff; border-radius: 16px; padding: .5rem .75rem;
  display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: #1C1528;
}
.accreditation-chip img { height: 34px; }
.stat-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hk-border); margin-top: 2rem; padding-top: 1.5rem; row-gap: 1rem; }
.stat-row .stat { flex: 1 1 25%; min-width: 120px; padding-right: 1rem; }
.stat-row .stat + .stat { padding-left: 1rem; border-left: 1px solid var(--hk-border); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--hk-primary); letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--hk-muted); }
.nav-pills-soft { gap: .5rem; }
.nav-pills-soft .nav-link { border-radius: 999px; font-weight: 600; color: var(--hk-muted); background: transparent; border: 1px solid var(--hk-border); }
.nav-pills-soft .nav-link.active { background: var(--hk-primary-soft); color: var(--hk-primary); border-color: transparent; }
.mission-list { list-style: none; padding: 0; margin: 0; }
.mission-list li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.mission-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .15rem; width: 22px; height: 22px; border-radius: 50%; background: var(--hk-primary-soft); color: var(--hk-primary); font-size: .65rem; display: grid; place-items: center; }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 1.25rem; }
.svc { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; border-radius: var(--hk-radius-lg); background: var(--hk-surface); border: 1px solid var(--hk-border); color: var(--hk-text); overflow: hidden; transition: border-color .2s; }
.svc:hover { border-color: var(--hk-primary); color: var(--hk-text); }
.svc .svc-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--hk-primary-soft); color: var(--hk-primary); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.svc h3 { font-size: 1.15rem; margin: 1.25rem 0 .4rem; }
.svc p { color: var(--hk-muted); font-size: .92rem; margin: 0; }
.svc .svc-more { margin-top: 1rem; font-weight: 700; font-size: .875rem; color: var(--hk-primary); }
.svc.is-hero { grid-column: span 2; grid-row: span 2; padding: 0; border: 0; color: #fff; min-height: 420px; background: var(--hk-primary-900); }
.svc.is-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc.is-hero:hover img { transform: scale(1.04); }
.svc.is-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(30, 10, 50, .9)); }
.svc.is-hero .svc-body { position: relative; z-index: 1; margin-top: auto; padding: 2rem; }
.svc.is-hero h3 { color: #fff; font-size: 1.6rem; }
.svc.is-hero p { color: rgba(255,255,255,.85); max-width: 42ch; }
.svc.is-hero .svc-more { color: #fff; }
.svc.is-wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: start; gap: 1.5rem; }
.svc.is-wide h3 { margin-top: 0; }
.svc.is-full { grid-column: 1 / -1; }
.svc.is-emergency .svc-icon { background: rgba(229,72,77,.12); color: var(--hk-danger); }
@media (max-width: 991.98px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .bento { grid-template-columns: 1fr; } .svc.is-hero, .svc.is-wide, .svc.is-full { grid-column: span 1; } .svc.is-wide { flex-direction: column; align-items: start; } }

.svc-grid .svc { height: 100%; }

/* ---------- Doctors ---------- */
.chip-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-filter button, .chip-filter a { border: 1px solid var(--hk-border); background: var(--hk-surface); color: var(--hk-text); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .875rem; }
.chip-filter button:hover, .chip-filter a:hover { border-color: var(--hk-primary); color: var(--hk-primary); }
.chip-filter button.active, .chip-filter a.active { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
[data-bs-theme="dark"] .chip-filter button.active, [data-bs-theme="dark"] .chip-filter a.active { color: #170B24; }
.doctor-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; transition: opacity .2s; }
.doctor-strip > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .doctor-strip { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }
.is-loading { opacity: .4; pointer-events: none; }
.doctor-card { background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: var(--hk-radius-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.doctor-photo { position: relative; aspect-ratio: 4 / 4.4; background: linear-gradient(160deg, var(--hk-primary-soft), color-mix(in srgb, var(--hk-primary) 22%, var(--hk-primary-soft))); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: relative; z-index: 1; }
.doctor-photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--hk-primary); letter-spacing: -.04em; }
.doctor-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.doctor-body h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
.doctor-body .spec { color: var(--hk-primary); font-size: .85rem; font-weight: 600; }
.doctor-body .btn { margin-top: auto; }
.doctor-body .btn-group-doc { margin-top: auto; padding-top: .75rem; display: flex; gap: .5rem; }
.strip-nav .btn { border: 1px solid var(--hk-border); background: var(--hk-surface); color: var(--hk-text); }
.strip-nav .btn:hover { border-color: var(--hk-primary); color: var(--hk-primary); }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--hk-border); }
.schedule-list li:last-child { border-bottom: 0; }
.doctor-modal-photo { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; object-position: top; background: var(--hk-primary-soft); }

/* ---------- Appointment ---------- */
.appointment-panel { background: var(--hk-primary-900); color: #fff; border-radius: 40px; padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden; }
.appointment-panel::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; border: 80px solid rgba(255,255,255,.04); pointer-events: none; }
[data-bs-theme="dark"] .appointment-panel { background: #241237; }
.appointment-panel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.appointment-panel .lead-text { color: rgba(255,255,255,.75); }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 1rem; padding: .9rem 0; color: rgba(255,255,255,.8); }
.steps li::before { content: counter(step); width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-weight: 700; font-size: .875rem; color: #fff; }
.steps strong { color: #fff; display: block; }
.appointment-form { background: var(--hk-surface); color: var(--hk-text); border-radius: var(--hk-radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); position: relative; }

/* ---------- Partners ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: hk-marquee 40s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes hk-marquee { to { transform: translateX(-50%); } }
.partner-logo { width: 180px; height: 96px; flex: none; border-radius: var(--hk-radius); background: #fff; border: 1px solid var(--hk-border); display: grid; place-items: center; padding: 1rem 1.5rem; }
.partner-logo img { max-height: 54px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner-logo:hover img { filter: none; opacity: 1; }
.partner-grid .partner-logo { width: 100%; height: 120px; }

/* ---------- Post cards ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; color: var(--hk-text); }
.post-card:hover { color: var(--hk-text); }
.post-thumb { aspect-ratio: 16 / 10; border-radius: var(--hk-radius); overflow: hidden; background: var(--hk-primary-soft); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; color: rgba(var(--hk-primary-rgb), .45); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(var(--hk-primary-rgb), .06) 14px 28px); }
.post-type { position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--hk-surface); color: var(--hk-primary); font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.post-card h3 { font-size: 1.1rem; line-height: 1.4; margin: 1rem 0 .4rem; transition: color .2s; }
.post-card:hover h3 { color: var(--hk-primary); }
.post-card p { color: var(--hk-muted); font-size: .92rem; }
.post-meta { font-size: .8rem; color: var(--hk-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.accordion-faq .accordion-item { border: 1px solid var(--hk-border); border-radius: var(--hk-radius) !important; margin-bottom: .75rem; overflow: hidden; background: var(--hk-surface); }
.accordion-faq .accordion-button { font-weight: 700; padding: 1.15rem 1.35rem; background: var(--hk-surface); color: var(--hk-text); box-shadow: none; border-radius: 0 !important; }
.accordion-faq .accordion-button:not(.collapsed) { color: var(--hk-primary); }
.accordion-faq .accordion-button:focus { box-shadow: none; }
.accordion-faq .accordion-body { color: var(--hk-muted); padding-top: 0; }
.ask-ai-card { background: var(--hk-primary-soft); border-radius: var(--hk-radius-lg); padding: 1.75rem; }

/* ---------- Contact ---------- */
.map-frame { border-radius: var(--hk-radius-lg); overflow: hidden; height: 100%; min-height: 360px; border: 1px solid var(--hk-border); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
[data-bs-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.contact-line { display: flex; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--hk-border); }
.contact-line:last-child { border-bottom: 0; }
.contact-line > i { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--hk-primary-soft); color: var(--hk-primary); }
.contact-line small { display: block; color: var(--hk-muted); }
.contact-line a, .contact-line span { color: var(--hk-text); font-weight: 600; }
.card-soft { background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: var(--hk-radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }

/* ---------- Page header ---------- */
.page-header { background: var(--hk-primary-soft); padding: 56px 0 52px; border-radius: 0 0 40px 40px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: .6rem 0 .6rem; }
.page-header p { color: var(--hk-muted); max-width: 60ch; margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--hk-muted); --bs-breadcrumb-item-active-color: var(--hk-muted); font-size: .875rem; margin: 0; }

/* ---------- Article ---------- */
.article-content { font-size: 1.075rem; line-height: 1.85; max-width: 72ch; }
.article-content h2, .article-content h3 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.article-content img { border-radius: var(--hk-radius); height: auto; }
.article-content ul { padding-left: 1.25rem; }
.article-cover { border-radius: var(--hk-radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 2rem; background: var(--hk-primary-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--hk-surface-2); border: 1px solid var(--hk-border); font-size: .8rem; color: var(--hk-muted); }
.share-btns a, .share-btns button { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--hk-border); color: var(--hk-text); background: transparent; }
.share-btns a:hover, .share-btns button:hover { background: var(--hk-primary); border-color: var(--hk-primary); color: #fff; }
.sticky-side { position: sticky; top: calc(var(--hk-nav-h) + 24px); }
.mini-post { display: flex; gap: .9rem; align-items: center; padding: .75rem 0; color: var(--hk-text); border-bottom: 1px solid var(--hk-border); }
.mini-post:last-child { border-bottom: 0; }
.mini-post .thumb { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; background: var(--hk-primary-soft); display: grid; place-items: center; color: var(--hk-primary); }
.mini-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post h6 { font-size: .9rem; margin: 0 0 .2rem; line-height: 1.35; }
.mini-post:hover h6 { color: var(--hk-primary); }

.comment { display: flex; gap: 1rem; padding: 1.25rem 0; }
.comment + .comment { border-top: 1px solid var(--hk-border); }
.comment img.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.comment-main { flex: 1; min-width: 0; }
.comment .comment-head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.comment .comment-head strong { font-size: .95rem; }
.comment .comment-head small { color: var(--hk-muted); }
.comment .comment-body { margin: .35rem 0 .5rem; white-space: pre-line; overflow-wrap: anywhere; }
.comment .replies { margin-top: .5rem; padding-left: 1rem; border-left: 2px solid var(--hk-primary-soft); }
.comment .replies .comment { padding: .9rem 0; }
.badge-staff { background: var(--hk-primary-soft); color: var(--hk-primary); font-size: .7rem; padding: .2rem .55rem; border-radius: 999px; font-weight: 700; }
.btn-reply { background: none; border: 0; padding: 0; color: var(--hk-primary); font-weight: 600; font-size: .85rem; }
.reply-indicator { background: var(--hk-primary-soft); border-radius: 12px; padding: .6rem .9rem; font-size: .875rem; }
.comment.is-new { animation: hk-flash 1.8s ease; border-radius: 12px; }
@keyframes hk-flash { from { background: rgba(var(--hk-primary-rgb), .14); } to { background: transparent; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hk-primary-900); color: rgba(255,255,255,.72); padding: 80px 0 0; margin-top: 96px; }
[data-bs-theme="dark"] .site-footer { background: #0B0712; border-top: 1px solid var(--hk-border); }
.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.footer-logo { background: #fff; border-radius: 16px; padding: .6rem .9rem; display: inline-flex; gap: .75rem; align-items: center; }
.footer-logo img { height: 42px; }
.footer-emergency { background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.35); border-radius: var(--hk-radius); padding: 1.25rem; }
.footer-emergency a { color: #fff; font-weight: 700; font-size: 1.15rem; }
.social { display: flex; gap: .5rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: #6B2FA0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3.5rem; padding: 1.5rem 0; font-size: .85rem; }

/* ---------- Floating actions ---------- */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; gap: .75rem; align-items: end; }
.fab { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.4rem; color: #fff; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); position: relative; transition: transform .2s; }
.fab:hover { color: #fff; transform: translateY(-2px); }
.fab-wa { background: #25D366; }
.fab-ai { background: var(--hk-primary); }
[data-bs-theme="dark"] .fab-ai, [data-bs-theme="dark"] .fab-ai:hover { color: #170B24; }
.fab-top { width: 46px; height: 46px; font-size: 1rem; background: var(--hk-surface); color: var(--hk-text); border: 1px solid var(--hk-border); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; }
.fab-top:hover { color: var(--hk-primary); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab .fab-tip { position: absolute; right: 68px; white-space: nowrap; background: var(--hk-text); color: var(--hk-bg); font-size: .78rem; font-weight: 600; padding: .35rem .7rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab:hover .fab-tip, .fab:focus-visible .fab-tip { opacity: 1; }
.fab-emergency-mobile { position: fixed; left: 16px; bottom: 20px; z-index: 1040; box-shadow: 0 12px 28px -10px rgba(229,72,77,.7); }

.chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 1045; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(.92); opacity: 0; visibility: hidden; transition: all .22s ease;
}
.chat-panel.open { transform: none; opacity: 1; visibility: visible; }
.chat-head { padding: 1rem 1.1rem; display: flex; align-items: center; gap: .75rem; background: #6B2FA0; color: #fff; }
[data-bs-theme="dark"] .chat-head { background: #3A1E5C; }
.chat-head .bot-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.chat-head small { opacity: .85; display: flex; align-items: center; gap: .35rem; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5EF2C2; }
.chat-head .btn { color: #fff; width: 34px; height: 34px; }
.chat-head .btn:hover { background: rgba(255,255,255,.15); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--hk-surface-2); }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg.bot { background: var(--hk-surface); border: 1px solid var(--hk-border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--hk-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
[data-bs-theme="dark"] .msg.user { color: #170B24; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--hk-muted); animation: hk-typing 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hk-typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-suggest { display: flex; gap: .4rem; flex-wrap: wrap; padding: .6rem 1rem 0; background: var(--hk-surface); }
.chat-suggest button { border: 1px solid var(--hk-border); background: var(--hk-surface); color: var(--hk-primary); border-radius: 999px; font-size: .78rem; padding: .3rem .7rem; font-weight: 600; }
.chat-suggest button:hover { border-color: var(--hk-primary); }
.chat-form { display: flex; gap: .5rem; padding: .75rem 1rem .5rem; background: var(--hk-surface); }
.chat-form input { border-radius: 999px; }
.chat-note { font-size: .7rem; color: var(--hk-muted); text-align: center; padding: 0 1rem .7rem; background: var(--hk-surface); margin: 0; }

/* ---------- Misc ---------- */
.modal-content { border-radius: var(--hk-radius-lg); border-color: var(--hk-border); background: var(--hk-surface); }
.modal-header, .modal-footer { border-color: var(--hk-border); }
.emergency-number { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-radius: var(--hk-radius); background: rgba(229,72,77,.08); color: var(--hk-text); margin-bottom: .75rem; font-weight: 700; font-size: 1.15rem; }
.emergency-number:hover { background: rgba(229,72,77,.16); color: var(--hk-text); }
.emergency-number i { color: var(--hk-danger); }
.pagination { --bs-pagination-active-bg: var(--hk-primary); --bs-pagination-active-border-color: var(--hk-primary); --bs-pagination-color: var(--hk-text); --bs-pagination-bg: var(--hk-surface); --bs-pagination-border-color: var(--hk-border); --bs-pagination-hover-color: var(--hk-primary); --bs-pagination-hover-bg: var(--hk-primary-soft); --bs-pagination-focus-box-shadow: none; gap: .35rem; flex-wrap: wrap; }
.pagination .page-link { border-radius: 12px !important; min-width: 42px; text-align: center; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--hk-muted); }
.empty-state i { font-size: 2.5rem; color: rgba(var(--hk-primary-rgb), .4); margin-bottom: 1rem; display: block; }
.swal2-popup { border-radius: 24px !important; font-family: var(--bs-body-font-family) !important; background: var(--hk-surface) !important; color: var(--hk-text) !important; }
.swal2-title, .swal2-html-container { color: var(--hk-text) !important; }
.swal2-styled.swal2-confirm { border-radius: 999px !important; background: #6B2FA0 !important; }
.swal2-styled.swal2-deny, .swal2-styled.swal2-cancel { border-radius: 999px !important; }
.booking-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; color: var(--hk-primary); background: var(--hk-primary-soft); border-radius: 14px; padding: .6rem 1rem; display: inline-block; }
.search-pill { position: relative; }
.search-pill input { border-radius: 999px; padding-left: 2.75rem; }
.search-pill i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--hk-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ---------- Konten dari editor (tahap 3) ---------- */
.article-content iframe, .article-content .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--hk-radius); margin: 1rem 0; display: block; }
.article-content blockquote { border-left: 4px solid var(--hk-primary); background: var(--hk-primary-soft); padding: 1rem 1.25rem; border-radius: 0 var(--hk-radius-sm) var(--hk-radius-sm) 0; margin: 1.5rem 0; }
.article-content pre { background: var(--hk-surface-2); border: 1px solid var(--hk-border); border-radius: var(--hk-radius-sm); padding: 1rem; overflow-x: auto; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content ol { padding-left: 1.25rem; }
.article-content li[data-list="bullet"] { list-style-type: disc; }
.article-content p:empty { display: none; }
