/**
 * Hospital Core — CSS independen & tahan-tema.
 * =====================================================================
 * Prinsip desain (dirancang agar konsisten di theme apa pun: Kadence,
 * Astra, Woodmart, atau lainnya):
 *
 * 1. Semua markup plugin dibungkus kelas `.hc-scope`. Variabel warna,
 *    reset ringan, dan box-sizing hanya berlaku DI DALAM scope ini —
 *    tidak pernah membocori style ke elemen theme.
 *
 * 2. TIPOGRAFI diwarisi dari theme. Plugin TIDAK pernah men-set
 *    `font-family`; ukuran/berat huruf memakai `em`/rem relatif terhadap
 *    font theme. Warna teks & judul memakai `inherit` (warna theme).
 *
 * 3. WARNA AKSEN default mengikuti theme lewat CSS variable
 *    (Kadence `--global-palette1`, Astra `--ast-global-color-0`,
 *    Woodmart `--wd-primary-color`), fallback ke teal. Admin bisa
 *    meng-override lewat Pengaturan (inline style di-attach setelah file
 *    ini). Turunan gelap/lembut dihitung otomatis via `color-mix`.
 *
 * 4. Garis, panel, dan teks redup diturunkan dari `currentColor` theme
 *    (memakai `color-mix ... transparent`) sehingga adaptif ke warna
 *    teks/background theme, bukan abu-abu hardcoded.
 *
 * 5. Setiap `var()` penting punya nilai fallback + properti visual kunci
 *    diberi `!important` terbatas, agar TIDAK pernah "hilang" walau CSS
 *    theme mencoba menimpanya.
 * =====================================================================
 */

/* ------------------------------------------------------------------ */
/* Scope: variabel + reset (hanya di dalam .hc-scope)                  */
/* ------------------------------------------------------------------ */
.hc-scope {
	/* Kadence (--global-palette1) diprioritaskan, lalu Woodmart, lalu Astra,
	   terakhir fallback teal. Rantai var() otomatis melompat ke berikutnya
	   bila variabel tema tidak terdefinisi. */
	--hc-accent: var( --global-palette1, var( --wd-primary-color, var( --ast-global-color-0, #0d9488 ) ) );
	--hc-accent-strong: color-mix( in srgb, var( --hc-accent ) 78%, #000 );
	--hc-on-accent: #ffffff;
	--hc-soft: color-mix( in srgb, var( --hc-accent ) 12%, transparent );
	--hc-line: color-mix( in srgb, currentColor 14%, transparent );
	--hc-panel: color-mix( in srgb, currentColor 4%, transparent );
	--hc-muted: color-mix( in srgb, currentColor 62%, transparent );

	/* Warna puncak gradasi hero arsip. OPAQUE (dicampur ke putih, bukan ke
	   transparent seperti --hc-soft) supaya gradasi turun mulus ke putih
	   tanpa terpengaruh warna latar tema di belakangnya. */
	--hc-hero-top: color-mix( in srgb, var( --hc-accent ) 15%, #ffffff );

	color: inherit;
	line-height: 1.6;
}

.hc-scope,
.hc-scope *,
.hc-scope *::before,
.hc-scope *::after {
	box-sizing: border-box;
}

/* Reset ringan: nol-kan margin/list bawaan theme untuk elemen yang kita render. */
.hc-scope h1,
.hc-scope h2,
.hc-scope h3,
.hc-scope p {
	margin: 0;
	padding: 0;
	color: inherit;
}

.hc-scope ul,
.hc-scope li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-scope img {
	max-width: 100%;
	height: auto;
	display: block;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.hc-scope a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Container level (root yang memuat konten penuh, bukan kartu)        */
/* ------------------------------------------------------------------ */
.hc-scope.hc-archive,
.hc-scope.hc-doctor,
.hc-scope.hc-single-service {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: 32px 20px 56px;
}

.hc-scope .hc-archive__title {
	font-size: 1.9em;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 20px;
}

/* Deskripsi Singkat (Pengaturan > tab halaman > Deskripsi Singkat), tampil
   tepat di bawah judul arsip/halaman. */
.hc-scope .hc-archive__desc {
	margin: -12px 0 20px;
	max-width: 62ch;
	font-size: 1.05em;
	line-height: 1.6;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
}

/* ================================================================== */
/* HERO ARSIP — judul halaman dengan gradasi turun ke putih.            */
/* Dipakai oleh SEMUA halaman arsip (Dokter, Layanan, Jadwal, Hasil     */
/* Pencarian) lewat partial parts/archive-hero.php + hc_archive_hero(). */
/*                                                                      */
/* <header class="hc-hero"> SENGAJA tanpa max-width supaya gradasinya   */
/* melebar penuh (full-bleed); pembatas lebar ada di .hc-hero__inner    */
/* yang memakai max-width + padding SAMA PERSIS dengan .hc-scope        */
/* .hc-archive di atas, sehingga judul tetap segaris dengan konten      */
/* di bawahnya.                                                         */
/* ================================================================== */
/**
 * Gradasi diakhiri TRANSPARENT, bukan #fff.
 *
 * Halaman rujukan bisa memakai putih karena hero-nya duduk di dalam wrapper
 * yang memang di-set putih (body-nya sendiri abu-abu #f9fafb). Plugin ini
 * theme-agnostic: hero langsung menempel pada latar tema, yang belum tentu
 * putih. Kalau gradasi dipaksa berakhir di #fff sementara latar tema abu-abu
 * muda, muncul GARIS SAMBUNGAN yang terlihat jelas di tepi bawah hero --
 * itulah "gradasi tidak mulus" yang terjadi.
 *
 * Dengan transparent, ujung gradasi otomatis menyatu ke warna latar tema apa
 * pun, jadi mulus di semua tema tanpa perlu tahu warnanya.
 */
.hc-scope.hc-hero {
	position: relative;
	overflow: hidden;
	padding: clamp( 34px, 6vw, 64px ) 0 clamp( 28px, 4vw, 44px );
	background:
		radial-gradient( 900px 420px at 12% -10%, var( --hc-soft, rgba( 13, 148, 136, 0.12 ) ), transparent 65% ),
		linear-gradient( 180deg, var( --hc-hero-top, #e2f2f0 ), transparent );
}

.hc-scope .hc-hero__inner {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

/* Kontainer konten tepat setelah hero: padding atas dirapatkan supaya jarak
   hero -> filter tidak menumpuk dua kali (hero sudah punya padding bawah). */
.hc-scope.hc-hero + .hc-scope.hc-archive {
	padding-top: 28px;
}

.hc-scope .hc-hero__title {
	font-size: clamp( 1.75rem, 4.6vw, 2.75rem );
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0;
}

.hc-scope .hc-hero__text {
	max-width: 64ch;
	margin: 12px 0 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 1.03em;
	line-height: 1.6;
}

/* Kartu statistik ringkas (jumlah data, kategori, dst). */
.hc-scope .hc-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.hc-scope .hc-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 130px;
	margin: 0;
	padding: 12px 18px;
	background: rgba( 255, 255, 255, 0.78 );
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 12px;
	backdrop-filter: blur( 6px );
	-webkit-backdrop-filter: blur( 6px );
}

.hc-scope .hc-hero__stat-num {
	font-size: 1.38em;
	font-weight: 800;
	line-height: 1.1;
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-hero__stat-label {
	font-size: 0.78em;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
}

/* Slot "Setelah Page Title" ikut masuk hero -> rapatkan jaraknya. */
.hc-scope .hc-hero .hc-custom--after-title {
	margin-top: 14px;
}

/* Breadcrumb di dalam hero: jaraknya lebih rapat ke judul dibanding
   breadcrumb di halaman detail (yang berdiri sendiri di atas konten). */
.hc-scope .hc-hero .hc-breadcrumb {
	margin-bottom: 14px;
}

/* CATATAN: container plugin SENGAJA mempertahankan max-width + margin auto
   + padding sendiri (lihat aturan .hc-scope.hc-archive di atas). Sempat
   dicoba menonaktifkannya di dalam wrapper Kadence (.wrap.kt-clear) dengan
   asumsi tema sudah membatasi lebar — ternyata TIDAK, dan konten jadi mepet
   ke tepi kiri layar. Jangan diulang: biarkan plugin mengatur lebarnya
   sendiri agar konsisten di semua tema. */

/* ------------------------------------------------------------------ */
/* Slot kustom dari Pengaturan (Setelah Judul / Setelah Konten)         */
/* ------------------------------------------------------------------ */
.hc-scope .hc-custom {
	line-height: 1.7;
}

.hc-scope .hc-custom > *:first-child {
	margin-top: 0;
}

.hc-scope .hc-custom > *:last-child {
	margin-bottom: 0;
}

.hc-scope .hc-custom p {
	margin: 0 0 1em;
}

.hc-scope .hc-custom a {
	color: var( --hc-accent-strong, #0b7a70 );
	text-decoration: underline;
}

.hc-scope .hc-custom--after-title {
	margin: 0 0 22px;
}

.hc-scope .hc-custom--after-content {
	margin: 34px 0 0;
	padding-top: 26px;
	border-top: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

/* Di detail dokter, slot after_title berada di dalam kartu identitas
   (rata tengah mengikuti kartu). */
.hc-scope .hc-doctor__card .hc-custom--after-title {
	margin: 10px 0 0;
	font-size: 0.9em;
}

/* ------------------------------------------------------------------ */
/* Filter / pencarian arsip (Dokter, Layanan, Jadwal)                  */
/* Gaya kartu putih tipis + field berbentuk PIL, mengikuti bar filter   */
/* halaman arsip Promo RSKO Jakarta. Hanya TAMPILAN -- struktur markup  */
/* & logika filter (archive-filter.js, query string) tidak diubah.      */
/* ------------------------------------------------------------------ */
.hc-scope .hc-filter {
	/* Fallback bila HC_Settings::inline_css() belum sempat override. Nilai
	   sebenarnya per breakpoint diatur di Settings > Hospital Core > Umum >
	   Bar Filter Halaman Arsip. */
	--hc-filter-font: 15px;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.06 );
}

.hc-scope .hc-filter__field {
	position: relative;
	flex: 1 1 190px;
	min-width: 0;
}

.hc-scope .hc-filter__field--search {
	flex: 2 1 260px;
}

.hc-scope .hc-filter__ico {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY( -50% );
	color: var( --hc-muted, rgba( 0, 0, 0, 0.55 ) );
	pointer-events: none;
}

/* Field berbentuk pil, garis tepi TRANSPARAN saat idle (mengandalkan beda
   warna latar terhadap kartu putih) lalu memunculkan garis + ring aksen
   saat fokus -- sama seperti bar filter halaman rujukan. */
.hc-scope .hc-filter__input,
.hc-scope .hc-filter__select {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	color: inherit;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.03 ) );
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: var( --hc-filter-font, 15px );
	line-height: 1.2;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	/* Placeholder/isian yang lebih panjang dari ruang tersisa dipangkas rapi
	   dengan "…" alih-alih terpotong kasar di tengah karakter -- penting di
	   ponsel, tempat kolomnya paling sempit. */
	text-overflow: ellipsis;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hc-scope .hc-filter__input {
	padding-left: 42px; /* ruang untuk ikon cari */
}

/* Panah kustom untuk select (independen dari tema). */
.hc-scope .hc-filter__select {
	padding-right: 38px;
	font-weight: 600;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	cursor: pointer;
}

.hc-scope .hc-filter__input:focus,
.hc-scope .hc-filter__select:focus {
	outline: none;
	background-color: #fff;
	border-color: var( --hc-accent, #0d9488 );
	box-shadow: 0 0 0 4px var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
}

.hc-scope .hc-filter__input::placeholder {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.55 ) );
}

.hc-scope .hc-filter__submit,
.hc-scope .hc-filter__reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 46px;
	margin: 0;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

/* Submit = tombol utama beraksen. */
.hc-scope .hc-filter__submit {
	color: var( --hc-on-accent, #fff );
	background: var( --hc-accent, #0d9488 );
	border: 1px solid var( --hc-accent, #0d9488 );
}

.hc-scope .hc-filter__submit:hover,
.hc-scope .hc-filter__submit:focus {
	background: var( --hc-accent-strong, #0b7a70 );
	border-color: var( --hc-accent-strong, #0b7a70 );
	color: var( --hc-on-accent, #fff );
}

.hc-scope .hc-filter__reset {
	color: var( --hc-accent-strong, #0b7a70 );
	background: transparent;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-filter__reset:hover {
	color: var( --hc-accent, #0d9488 );
	border-color: var( --hc-accent, #0d9488 );
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
}

.hc-scope .hc-archive__count {
	margin: 18px 0 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.92em;
}

.hc-scope .hc-archive__count strong {
	color: inherit;
	font-weight: 700;
}

.hc-scope .hc-archive__empty {
	margin: 28px 0;
	padding: 26px;
	text-align: center;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	background: var( --hc-panel, rgba( 0, 0, 0, 0.03 ) );
	border-radius: 14px;
}

@media ( max-width: 600px ) {
	.hc-scope .hc-filter {
		gap: 10px;
	}

	.hc-scope .hc-filter__field,
	.hc-scope .hc-filter__field--search {
		flex: 1 1 100%;
	}

	.hc-scope .hc-filter__submit,
	.hc-scope .hc-filter__reset {
		flex: 1 1 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Paginasi (arsip Dokter/Layanan & Jadwal Dokter)                     */
/* ------------------------------------------------------------------ */
.hc-scope .navigation.pagination {
	margin-top: 34px;
}

.hc-scope .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.hc-scope .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 11px;
	color: inherit;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.hc-scope .navigation.pagination a.page-numbers:hover {
	color: var( --hc-accent-strong, #0b7a70 );
	border-color: var( --hc-accent, #0d9488 );
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
}

.hc-scope .navigation.pagination .page-numbers.current {
	color: var( --hc-on-accent, #fff );
	background: var( --hc-accent, #0d9488 );
	border-color: var( --hc-accent, #0d9488 );
}

.hc-scope .navigation.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ------------------------------------------------------------------ */
/* Kapsul spesialis (dipakai kartu & header single dokter)          */
/* ------------------------------------------------------------------ */
.hc-scope .hc-spec-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.hc-scope .hc-spec {
	display: inline-block !important;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.35 !important;
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) ) !important;
	padding: 5px 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
}

/* Varian Subspesialis: gaya outline supaya beda dari Spesialis (yang solid). */
.hc-scope .hc-spec--sub {
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	background: transparent !important;
	border: 1px solid var( --hc-accent, #0d9488 ) !important;
}

/* ------------------------------------------------------------------ */
/* Badge jenis pelayanan (kartu & single layanan)                      */
/* ------------------------------------------------------------------ */
.hc-scope .hc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.hc-scope .hc-badge {
	display: inline-block !important;
	font-size: 0.72em;
	font-weight: 600;
	line-height: 1.35 !important;
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) ) !important;
	padding: 4px 12px !important;
	border: 0 !important;
	border-radius: 999px !important;
}

/* ------------------------------------------------------------------ */
/* Tombol                                                              */
/* ------------------------------------------------------------------ */
.hc-scope .hc-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 12px 22px;
	border-radius: 999px !important;
	border: 1px solid var( --hc-accent, #0d9488 ) !important;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

.hc-scope .hc-btn__ico {
	flex: 0 0 auto;
	display: block;
}

.hc-scope .hc-btn--primary {
	background: var( --hc-accent, #0d9488 ) !important;
	color: var( --hc-on-accent, #fff ) !important;
	border-color: var( --hc-accent, #0d9488 ) !important;
}

.hc-scope .hc-btn--primary:hover,
.hc-scope .hc-btn--primary:focus {
	background: var( --hc-accent-strong, #0b7a70 ) !important;
	border-color: var( --hc-accent-strong, #0b7a70 ) !important;
	color: var( --hc-on-accent, #fff ) !important;
}

.hc-scope .hc-btn--outline {
	background: transparent !important;
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	border-color: var( --hc-accent, #0d9488 ) !important;
}

.hc-scope .hc-btn--outline:hover,
.hc-scope .hc-btn--outline:focus {
	background: var( --hc-accent, #0d9488 ) !important;
	color: var( --hc-on-accent, #fff ) !important;
}

/* ------------------------------------------------------------------ */
/* Grid & Kartu (Dokter / Layanan)                                     */
/* ------------------------------------------------------------------ */
/* Kolom EKSPLISIT (bukan auto-fit) supaya kartu selalu proporsional berapa
   pun jumlah item. Dokter memakai kartu HORIZONTAL (2 kolom desktop -> 1
   kolom mobile); Layanan memakai kartu VERTIKAL (4/3/2 kolom). */
.hc-scope .hc-grid {
	display: grid;
	gap: 24px;
	margin: 26px 0 0;
}

.hc-scope .hc-grid--doctor {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.hc-scope .hc-grid--service {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
}

/* Fallback bila .hc-grid dipakai tanpa modifier (mis. dari kode theme). */
.hc-scope .hc-grid:not( .hc-grid--doctor ):not( .hc-grid--service ) {
	grid-template-columns: repeat( auto-fill, minmax( 230px, 1fr ) );
}

@media ( max-width: 1024px ) {
	.hc-scope .hc-grid--service {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		gap: 20px;
	}
}

@media ( max-width: 820px ) {
	.hc-scope .hc-grid--doctor {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media ( max-width: 720px ) {
	.hc-scope .hc-grid--service {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 16px;
	}
}

.hc-scope.hc-doctor-card,
.hc-scope.hc-service-card {
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	/* Radius kartu = radius foto (12) + padding frame (12) => sudut konsentris
	   presisi antara foto dan kartu. */
	border-radius: 24px;
	transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.hc-scope.hc-doctor-card:hover,
.hc-scope.hc-service-card:hover {
	box-shadow: 0 18px 34px -18px rgba( 15, 23, 42, 0.3 );
	transform: translateY( -3px );
}

/* ================== Kartu Dokter — HORIZONTAL (desktop) ==================
   Kartu diberi padding sehingga FOTO mendapat "frame" di dalam kartu (tidak
   menempel ke tepi). Radius foto = radius kartu - padding (konsentris) supaya
   sudutnya presisi & rapi. */
.hc-scope.hc-doctor-card {
	display: grid;
	grid-template-columns: 38% minmax( 0, 1fr );
	gap: 18px;
	padding: 12px;
}

/* Foto SELALU 1:1. Desktop: kolom foto cukup lebar sehingga tingginya
   (>= tinggi konten) menentukan tinggi baris -> foto tetap persegi.
   Mobile: kartu ditumpuk (lihat media query) -> foto persegi penuh di atas. */
.hc-scope .hc-doctor-card__photo {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
}

.hc-scope .hc-doctor-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%; /* prioritaskan wajah saat ter-crop */
	transition: transform 0.4s ease;
}

.hc-scope.hc-doctor-card:hover .hc-doctor-card__photo img {
	transform: scale( 1.05 );
}

.hc-scope .hc-doctor-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 8px 10px 8px 0;
}

/* Wrapper identitas SENGAJA transparan di desktop & tablet: nama, spesialis,
   dan subspesialis tetap menjadi flex item langsung .hc-doctor-card__body,
   sehingga tata letak lebar identik seperti tanpa wrapper. Wrapper baru
   "diaktifkan" hanya di layar ponsel (lihat @media 600px di bawah). */
.hc-scope .hc-doctor-card__ident {
	display: contents;
}

.hc-scope .hc-doctor-card__name {
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.hc-scope .hc-doctor-card__name a:hover {
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-doctor-card__spec {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 3px 0 0;
	color: var( --hc-accent-strong, #0b7a70 );
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1.35;
}

.hc-scope .hc-doctor-card__spec-ico {
	flex: 0 0 auto;
}

.hc-scope .hc-doctor-card__subspec {
	margin: 2px 0 0;
	padding-left: 22px; /* sejajar dengan teks spesialis (di bawah ikon) */
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.35;
}

.hc-scope .hc-doctor-card__excerpt {
	margin: 6px 0 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.88em;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* TABLET (601–820px): kartu jadi 1 per baris, tapi TETAP horizontal dengan
   proporsi 38% seperti desktop -- tidak ada aturan khusus yang dibutuhkan.

   PONSEL (<=600px): kartu tetap horizontal, namun foto dikunci ke ukuran
   ringkas (maks 130px) supaya tidak lagi memenuhi lebar layar; identitas
   duduk di sampingnya, lalu ringkasan & tombol melebar PENUH di bawah agar
   tidak terjepit di kolom sempit. Foto tetap 1:1.

   Teknik: .hc-doctor-card__body dijadikan `display: contents` sehingga
   anak-anaknya (identitas, ringkasan, footer) naik menjadi grid item kartu
   dan bisa ditempatkan lintas kolom. Penempatan memakai auto-placement --
   bukan grid-row eksplisit -- supaya saat ringkasan kosong, footer otomatis
   naik tanpa menyisakan baris kosong. */
@media ( max-width: 600px ) {
	.hc-scope.hc-doctor-card {
		grid-template-columns: clamp( 92px, 28vw, 130px ) minmax( 0, 1fr );
		column-gap: 14px;
		row-gap: 12px;
		padding: 14px;
	}

	.hc-scope .hc-doctor-card__body {
		display: contents;
	}

	.hc-scope .hc-doctor-card__photo {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}

	/* Di ponsel wrapper identitas menjadi blok nyata (bukan `contents` lagi)
	   supaya ketiga barisnya tetap menyatu di kolom kanan foto. */
	.hc-scope .hc-doctor-card__ident {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 2px;
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}

	.hc-scope .hc-doctor-card__name {
		font-size: 1em;
	}

	.hc-scope .hc-doctor-card__excerpt {
		grid-column: 1 / -1;
		margin: 0;
	}

	.hc-scope .hc-doctor-card__footer {
		grid-column: 1 / -1;
		margin-top: 0;
		padding-top: 12px;
		border-top: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	}
}

.hc-scope .hc-doctor-card__footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: auto;
	padding-top: 14px;
}

.hc-scope .hc-doctor-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	font-size: 0.88em;
	font-weight: 600;
}

.hc-scope .hc-doctor-card__more span {
	transition: transform 0.15s ease;
}

.hc-scope .hc-doctor-card__more:hover span {
	transform: translateX( 3px );
}

.hc-scope .hc-btn--sm {
	padding: 9px 16px;
	font-size: 0.82em;
}

/* ================================================================== */
/* Halaman Jadwal Dokter (/jadwal-dokter)                              */
/* ================================================================== */
/* Grid masonry via multi-column: tinggi kartu bervariasi (jumlah jadwal
   beda) tapi tetap rapat tanpa celah baris. */
.hc-scope .hc-sched-grid {
	column-count: 2;
	column-gap: 24px;
	margin-top: 26px;
}

.hc-scope.hc-sched-card {
	display: inline-block; /* item multi-column */
	width: 100%;
	margin: 0 0 24px;
	padding: 16px;
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 20px;
	box-shadow: 0 12px 26px -20px rgba( 15, 23, 42, 0.28 );
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

.hc-scope .hc-sched-card__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-sched-card__photo {
	flex: 0 0 88px;
	width: 88px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
}

.hc-scope .hc-sched-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}

.hc-scope .hc-sched-card__ident {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hc-scope .hc-sched-card__name {
	font-size: 1em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	overflow-wrap: break-word;
}

.hc-scope .hc-sched-card__name a:hover {
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-sched-card__spec {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var( --hc-accent-strong, #0b7a70 );
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.35;
}

.hc-scope .hc-sched-card__subspec {
	margin: 0;
	padding-left: 21px; /* sejajar teks spesialis (ikon 15px + gap 6px) */
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.78em;
	font-weight: 500;
	line-height: 1.35;
}

.hc-scope .hc-sched-card__cta {
	align-self: flex-start;
	margin-top: 8px;
}

/* Jadwal di dalam kartu dibuat DATAR (tanpa kotak bertumpuk) supaya ringan. */
.hc-scope .hc-sched-card__schedule .hc-schedule__group {
	border: 0;
	border-radius: 0;
	overflow: visible;
	margin-bottom: 14px;
}

.hc-scope .hc-sched-card__schedule .hc-schedule__group:last-child {
	margin-bottom: 0;
}

.hc-scope .hc-sched-card__schedule .hc-schedule__loc {
	padding: 0 0 8px;
	background: transparent;
	border-bottom: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-sched-card__schedule .hc-schedule__row {
	padding: 9px 0;
}

@media ( max-width: 820px ) {
	.hc-scope .hc-sched-grid {
		column-count: 1;
	}
}

/* ================== Kartu Layanan — KOMPAK (Foto, Nama, Lokasi) ==================
   Sengaja minimal: cuma 3 data supaya tinggi kartu konsisten di grid (tidak
   lagi timpang akibat panjang excerpt/badge yang beda-beda per layanan).
   Kartu = SATU link utuh (bukan div + anchor terpisah) karena tidak ada lagi
   elemen interaktif lain di dalamnya -- area klik jadi lebih besar & simpel. */
.hc-scope.hc-service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden; /* media rata atas -> clip ke radius kartu */
	color: inherit;
}

.hc-scope .hc-service-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
}

.hc-scope .hc-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.hc-scope.hc-service-card:hover .hc-service-card__media img {
	transform: scale( 1.05 );
}

.hc-scope .hc-service-card__body {
	padding: 13px 14px 15px;
}

.hc-scope .hc-service-card__title {
	font-size: 0.96em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 5px;
	overflow-wrap: break-word;
}

.hc-scope.hc-service-card:hover .hc-service-card__title {
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-service-card__location {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var( --hc-accent-strong, #0b7a70 );
	font-size: 0.82em;
	font-weight: 600;
	margin: 0;
}

/* Ikon inline generik (dipakai a.l. pin lokasi di kartu Layanan). */
.hc-scope .hc-ico {
	flex: 0 0 auto;
	color: var( --hc-accent, #0d9488 );
}

.hc-scope .hc-service-card__icon {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	padding: 6px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.15 );
}

.hc-scope .hc-service-card__icon img {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

/* ================================================================== */
/* Breadcrumb — DIPAKAI BERSAMA oleh Single Dokter & Single Layanan     */
/* (lihat hc_breadcrumb() di hc-template-tags.php + parts/breadcrumb.php) */
/* Beranda / {Arsip} / {Judul}. Satu set style, satu partial -> kedua    */
/* halaman detail dijamin identik, tidak ada drift desain di antara keduanya. */
/* ================================================================== */
.hc-scope .hc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.86em;
	line-height: 1.4;
}

.hc-scope .hc-breadcrumb a {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	transition: color 0.15s ease;
}

.hc-scope .hc-breadcrumb a:hover,
.hc-scope .hc-breadcrumb a:focus {
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-breadcrumb__sep {
	opacity: 0.5;
}

.hc-scope .hc-breadcrumb__current {
	color: inherit;
	font-weight: 600;
}

/* ================================================================== */
/* Single Dokter — layout 2 kolom (kartu identitas + konten ber-tab)   */
/* ================================================================== */

.hc-scope .hc-doctor__layout {
	display: grid;
	grid-template-columns: 320px minmax( 0, 1fr );
	gap: 40px;
	align-items: start;
}

/* ---- Kartu identitas (aside) ----
   Latar/garis/radius/bayangan diwarisi dari token kartu bersama (lihat grup
   selector ".hc-card, .hc-doctor__card, ..." di bagian Single Layanan), jadi
   di sini hanya sisa yang khas kartu ini: sticky, padding, rata tengah. */
.hc-scope .hc-doctor__card {
	position: sticky;
	top: 24px;
	overflow: hidden;
	padding: 28px 24px 24px;
	text-align: center;
}

/* CATATAN: sebelumnya ada garis aksen gradient setinggi 5px di tepi atas kartu
   (::before). Dihapus atas permintaan -- kartu kini bersih tanpa garis hijau. */

.hc-scope .hc-doctor__card-photo {
	position: relative;
	width: 100%;
	max-width: 250px;
	margin: 0 auto 20px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 18px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
	box-shadow: 0 0 0 5px var( --hc-soft, rgba( 13, 148, 136, 0.12 ) ), 0 18px 30px -20px rgba( 15, 23, 42, 0.45 );
}

.hc-scope .hc-doctor__card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hc-scope .hc-doctor__card .hc-spec-list {
	justify-content: center;
	margin-bottom: 12px;
}

.hc-scope .hc-doctor__card-name {
	font-size: 1.3em;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
}

/* Gender + Bahasa -- info ringkas, hanya tampil kalau datanya diisi. */
.hc-scope .hc-doctor__card-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	margin: 8px 0 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.85em;
}

.hc-scope .hc-doctor__card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hc-scope .hc-doctor__card-meta-ico {
	flex: 0 0 auto;
	color: var( --hc-accent-strong, #0b7a70 );
}

.hc-scope .hc-doctor__card-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-doctor__card-cta .hc-btn {
	width: 100%;
	padding: 13px 20px;
}

/* ---- Kolom konten ---- */
.hc-scope .hc-doctor__main {
	min-width: 0;
}

/* Judul di dalam kartu konten. Ukurannya sama di Single Dokter & Single
   Layanan supaya kedua halaman detail terbaca sebagai satu keluarga. */
.hc-scope .hc-section-title {
	font-size: 1.16em;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0 0 18px;
}

.hc-scope .hc-prose {
	line-height: 1.8;
}

.hc-scope .hc-prose p {
	margin: 0 0 1em;
}

.hc-scope .hc-prose p:last-child {
	margin-bottom: 0;
}

.hc-scope .hc-empty-note {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
}

/* Riwayat Pendidikan — bullet list dari editor jadi timeline bertitik.
   Rail setipis mungkin + titik bergaya CINCIN (isi putih, garis aksen) supaya
   terbaca sebagai penanda urutan yang halus, bukan bulatan pekat yang berat. */
.hc-scope .hc-education-history ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-left: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-education-history li {
	position: relative;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 0 20px 24px !important;
	line-height: 1.6;
}

.hc-scope .hc-education-history li:last-child {
	padding-bottom: 0 !important;
}

.hc-scope .hc-education-history li::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var( --hc-accent, #0d9488 );
	box-shadow: 0 0 0 3px #fff;
}

/* Jadwal Praktik — panel per lokasi, baris: hari (kiri) : jam (kanan). */
.hc-scope .hc-schedule__group {
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 14px;
}

.hc-scope .hc-schedule__group:last-child {
	margin-bottom: 0;
}

/* Di DALAM kartu konten, panel jadwal dibuat DATAR (tanpa kotak + radius
   sendiri). Kotak bergaris di dalam kotak bergaris terbaca berat & ramai --
   di sini cukup judul lokasi bergaris bawah lalu daftar barisnya. */
.hc-scope .hc-card .hc-schedule__group {
	border: 0;
	border-radius: 0;
	overflow: visible;
	margin-bottom: 0;
}

.hc-scope .hc-card .hc-schedule__group + .hc-schedule__group {
	margin-top: 24px;
}

.hc-scope .hc-schedule__loc {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	margin: 0;
	padding: 14px 20px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
	border-bottom: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-card .hc-schedule__loc {
	padding: 0 0 10px;
	background: transparent;
}

.hc-scope .hc-card .hc-schedule__row {
	padding: 12px 0;
}

.hc-scope .hc-schedule__loc-ico {
	flex: 0 0 auto;
	color: var( --hc-accent-strong, #0b7a70 );
}

/* Layanan yang Ditangani (di halaman detail dokter) -- daftar kapsul teks,
   bukan kartu penuh: di halaman ini layanan berperan sebagai TAUTAN RINGKAS,
   sehingga kartu bergambar justru mencuri perhatian dari profil dokter. */
.hc-scope .hc-service-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hc-scope .hc-service-pill {
	display: inline-flex !important;
	align-items: center;
	padding: 10px 18px !important;
	color: var( --hc-accent-strong, #0b7a70 ) !important;
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) ) !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	font-size: 0.92em;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none !important;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hc-scope .hc-service-pill:hover,
.hc-scope .hc-service-pill:focus {
	color: var( --hc-on-accent, #fff ) !important;
	background: var( --hc-accent, #0d9488 ) !important;
	border-color: var( --hc-accent, #0d9488 ) !important;
	transform: translateY( -1px );
}

/* Hormati preferensi sistem "kurangi animasi". */
@media ( prefers-reduced-motion: reduce ) {
	.hc-scope .hc-service-pill {
		transition: none;
	}

	.hc-scope .hc-service-pill:hover,
	.hc-scope .hc-service-pill:focus {
		transform: none;
	}
}

.hc-scope .hc-schedule__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-top: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-schedule__row:first-child {
	border-top: 0;
}

.hc-scope .hc-schedule__day {
	position: relative;
	font-weight: 600;
	padding-left: 18px;
}

.hc-scope .hc-schedule__day::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY( -50% );
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --hc-accent, #0d9488 );
}

.hc-scope .hc-schedule__time {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.95em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ================================================================== */
/* Single Layanan — susunan KARTU bertingkat (gaya halaman detail Promo   */
/* RSKO Jakarta): kartu hero (media | info) -> kartu konten + sidebar      */
/* sticky -> kartu Dokter yang Menangani.                                 */
/*                                                                        */
/* PENTING: semua blok utama tetap ANAK LANGSUNG dari                      */
/* .hc-scope.hc-single-service sehingga garis kiri/kanannya identik.       */
/* Jangan menambahkan pembungkus ber-max-width sendiri di dalam halaman    */
/* ini -- versi lama pernah begitu (kolom 800px di-tengahkan sementara     */
/* breadcrumb di luarnya) dan menghasilkan DUA garis kiri (selisih ~170px) */
/* yang terlihat tidak presisi. Kalau perlu membatasi lebar baca, batasi   */
/* KONTAINER halamannya, bukan sebagian elemen saja.                       */
/* ================================================================== */

/* Token kartu -- SATU definisi dipakai bersama oleh Single Layanan DAN
   Single Dokter (.hc-card) serta kartu identitas dokter, supaya ketebalan
   garis, radius, dan bayangannya identik di seluruh plugin. Ubah di sini
   sekali, semua kartu ikut berubah. */
.hc-scope .hc-single-service__hero,
.hc-scope .hc-single-service__content,
.hc-scope .hc-single-service__doctors,
.hc-scope .hc-box,
.hc-scope .hc-card,
.hc-scope .hc-doctor__card {
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 15, 23, 42, 0.09 ) );
	border-radius: 20px;
	/* Dua lapis bayangan yang sangat tipis: lapis pertama menegaskan tepi
	   kartu, lapis kedua mengangkatnya sedikit dari latar. Penting karena
	   banyak tema memakai latar halaman yang nyaris putih -- kartu putih di
	   atasnya bisa "hilang" batasnya kalau hanya mengandalkan border tipis. */
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.05 ), 0 4px 12px -6px rgba( 15, 23, 42, 0.10 );
}

/* Kartu konten generik halaman detail (Profil Singkat, Riwayat Pendidikan,
   dst). Jarak antar-kartu memakai selector sibling: kartu pertama otomatis
   tanpa margin atas, tanpa perlu aturan khusus. */
.hc-scope .hc-card {
	padding: 26px;
}

.hc-scope .hc-card + .hc-card {
	margin-top: 20px;
}

/* ---- 1. Kartu hero: media (kiri) + info (kanan) ---- */
.hc-scope .hc-single-service__hero {
	display: grid;
	grid-template-columns: minmax( 0, 45fr ) minmax( 0, 55fr );
	gap: 40px;
	align-items: center;
	padding: 30px;
}

/* Tanpa foto & tanpa icon -> hero jadi satu kolom penuh (tidak ada kolom
   kosong yang menyisakan ruang menganga). */
.hc-scope .hc-single-service__hero--nomedia {
	grid-template-columns: minmax( 0, 1fr );
}

.hc-scope .hc-single-service__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.04 ) );
	display: flex;
	align-items: center;
	justify-content: center;
}

.hc-scope .hc-single-service__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fallback saat layanan belum punya foto tapi punya icon: icon ditampilkan
   mengambang di tengah panel, TIDAK di-crop seperti foto. */
.hc-scope .hc-single-service__media-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	padding: 20px;
	border-radius: 20px;
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
}

.hc-scope .hc-single-service__media-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hc-scope .hc-single-service__info {
	min-width: 0;
}

.hc-scope .hc-single-service__pills {
	margin: 0 0 12px;
}

.hc-scope .hc-single-service__title {
	font-size: 2.15em;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0;
}

.hc-scope .hc-single-service__lead {
	margin: 12px 0 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 1.02em;
	line-height: 1.65;
}

/* ---- Strip fakta (Lokasi / Spesialis / Jenis / Dokter) ---- */
.hc-scope .hc-facts {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 10px;
	list-style: none !important;
	margin: 20px 0 0 !important;
	padding: 0 !important;
}

.hc-scope .hc-facts__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	list-style: none !important;
	margin: 0 !important;
	padding: 12px 14px;
	border-radius: 12px;
	background: var( --hc-panel, rgba( 0, 0, 0, 0.03 ) );
}

.hc-scope .hc-facts__ico {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var( --hc-accent, #0d9488 );
}

.hc-scope .hc-facts__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hc-scope .hc-facts__label {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
}

.hc-scope .hc-facts__value {
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.4;
	margin-top: 2px;
	overflow-wrap: break-word;
}

.hc-scope .hc-single-service__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

/* ---- 2. Baris bawah: kartu konten + sidebar sticky ---- */
.hc-scope .hc-single-service__body {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 340px;
	gap: 28px;
	align-items: start;
	margin-top: 28px;
}

/* Tanpa konten -> sisakan sidebar saja, melebar penuh. */
.hc-scope .hc-single-service__body--nocontent {
	grid-template-columns: minmax( 0, 1fr );
}

.hc-scope .hc-single-service__content {
	padding: 30px;
	min-width: 0;
}

/* Judul section di dalam kartu dinaikkan sedikit dari .hc-section-title
   bersama (yang dipakai halaman Dokter) -- di-scope ke halaman ini saja
   supaya halaman Dokter tidak ikut berubah. */
.hc-scope .hc-single-service__content > .hc-section-title,
.hc-scope .hc-single-service__doctors > .hc-section-title {
	font-size: 1.35em;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 16px;
}

.hc-scope .hc-single-service__side {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.hc-scope .hc-box {
	padding: 20px;
	border-radius: 14px;
}

.hc-scope .hc-box--accent {
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
	border-color: transparent;
	box-shadow: none;
}

.hc-scope .hc-box__title {
	font-size: 1.05em;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 8px;
}

.hc-scope .hc-box__text {
	margin: 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.65 ) );
	font-size: 0.92em;
	line-height: 1.6;
}

.hc-scope .hc-box__actions {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 14px;
}

.hc-scope .hc-box__actions .hc-btn {
	width: 100%;
}

/* ---- 3. Kartu Dokter yang Menangani ---- */
.hc-scope .hc-single-service__doctors {
	padding: 30px;
	margin-top: 28px;
	scroll-margin-top: 24px; /* target anchor #hc-dokter-terkait tidak mepet ke tepi atas */
}

.hc-scope .hc-single-service__doctors .hc-grid {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Kartu hasil pencarian (SearchWP)                                    */
/* ------------------------------------------------------------------ */
.hc-scope.hc-search-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	color: inherit;
}

.hc-scope.hc-search-card img {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 10px;
}

.hc-scope .hc-search-card__body {
	display: flex;
	flex-direction: column;
}

.hc-scope .hc-search-card__title {
	font-weight: 600;
}

.hc-scope .hc-search-card__meta {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.85em;
}

/* ------------------------------------------------------------------ */
/* Search bar live (Dokter & Layanan) — shortcode/block/Elementor      */
/* ------------------------------------------------------------------ */
.hc-scope.hc-search-bar {
	/* Default fallback (dipakai kalau HC_Settings::inline_css() belum sempat
	   override, mis. saat file CSS ini dibuka langsung). Nilai sebenarnya
	   diatur di Settings > Hospital Core > Umum > Search Bar, per breakpoint
	   Desktop (>782px) / Tablet (481–782px) / Mobile (≤480px). */
	--hc-search-radius: 999px;
	--hc-search-font: 15px;

	position: relative;
	width: 100%;
	max-width: 640px;
}

.hc-scope .hc-search-bar__form {
	display: flex;
	align-items: stretch;
	gap: 8px;
	padding: 6px;
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: var( --hc-search-radius, 999px );
	box-shadow: 0 14px 30px -18px rgba( 15, 23, 42, 0.35 );
}

.hc-scope .hc-search-bar__field {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

.hc-scope .hc-search-bar__ico {
	position: absolute;
	left: 16px;
	color: var( --hc-accent-strong, #0b7a70 );
	pointer-events: none;
}

.hc-scope .hc-search-bar__input {
	width: 100%;
	min-width: 0; /* izinkan input mengecil di dalam flex container, bukan mendorong lebar. */
	height: 44px;
	margin: 0;
	padding: 0 36px 0 42px;
	color: inherit;
	background: transparent;
	border: none;
	border-radius: var( --hc-search-radius, 999px );
	font-size: var( --hc-search-font, 15px );
	line-height: 1.2;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	/* Kalau placeholder/isian tetap lebih panjang dari ruang yang tersisa
	   (mis. bahasa lain yang lebih verbose), potong rapi dengan "…" alih-alih
	   terpotong kasar di tengah karakter. */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hc-scope .hc-search-bar__input::placeholder {
	color: var( --hc-muted, rgba( 0, 0, 0, 0.55 ) );
}

.hc-scope .hc-search-bar__clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY( -50% );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.55 ) );
	background: transparent;
	border: none;
	border-radius: 50%;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.hc-scope .hc-search-bar__clear:hover {
	color: var( --hc-accent-strong, #0b7a70 );
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
}

.hc-scope .hc-search-bar__submit {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 24px;
	color: var( --hc-on-accent, #fff );
	background: var( --hc-accent, #0d9488 );
	border: 1px solid var( --hc-accent, #0d9488 );
	border-radius: var( --hc-search-radius, 999px );
	font-size: calc( var( --hc-search-font, 15px ) - 1px );
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hc-scope .hc-search-bar__submit:hover,
.hc-scope .hc-search-bar__submit:focus {
	background: var( --hc-accent-strong, #0b7a70 );
	border-color: var( --hc-accent-strong, #0b7a70 );
	color: var( --hc-on-accent, #fff );
}

.hc-scope .hc-search-bar__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc( 100% + 10px );
	z-index: 60;
	max-height: 420px;
	overflow-y: auto;
	padding: 8px;
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 16px;
	box-shadow: 0 24px 48px -20px rgba( 15, 23, 42, 0.4 );
}

.hc-scope .hc-search-bar__group-label {
	margin: 6px 10px 2px;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.55 ) );
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hc-scope .hc-search-bar__panel .hc-search-card {
	padding: 8px 10px;
	border-radius: 10px;
	text-decoration: none;
}

.hc-scope .hc-search-bar__panel .hc-search-card:hover,
.hc-scope .hc-search-bar__panel .hc-search-card:focus {
	background: var( --hc-soft, rgba( 13, 148, 136, 0.12 ) );
	outline: none;
}

.hc-scope .hc-search-bar__loading,
.hc-scope .hc-search-bar__empty {
	padding: 14px 10px;
	color: var( --hc-muted, rgba( 0, 0, 0, 0.6 ) );
	font-size: 0.9em;
	text-align: center;
}

.hc-scope .hc-search-bar__viewall {
	display: block;
	margin-top: 4px;
	padding: 10px;
	color: var( --hc-accent-strong, #0b7a70 );
	font-weight: 700;
	font-size: 0.88em;
	text-align: center;
	text-decoration: none;
	border-top: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-search-bar__viewall:hover,
.hc-scope .hc-search-bar__viewall:focus {
	color: var( --hc-accent, #0d9488 );
	outline: none;
}

.hc-scope mark.hc-search-bar__hl {
	background: transparent;
	color: var( --hc-accent-strong, #0b7a70 );
	font-weight: 700;
	padding: 0;
}

/* Fallback breakpoint (dipakai kalau inline CSS dari HC_Settings::inline_css()
   tidak tersedia, mis. file ini dimuat langsung di luar alur plugin). Nilai
   sebenarnya + breakpoint yang sama diatur admin lewat Settings > Hospital
   Core, dan menimpa var ini lewat inline style. */
@media ( max-width: 782px ) {
	.hc-scope.hc-search-bar {
		--hc-search-font: 14px;
	}
}

@media ( max-width: 480px ) {
	.hc-scope.hc-search-bar {
		--hc-search-font: 13px;
	}

	/* Perkecil "chrome" (ikon, jarak, tombol) supaya ruang untuk teks lebih
	   lega di layar sempit -- ini yang bikin placeholder panjang dulu terpotong. */
	.hc-scope .hc-search-bar__ico {
		left: 12px;
	}

	.hc-scope .hc-search-bar__input {
		padding: 0 28px 0 32px;
	}

	.hc-scope .hc-search-bar__clear {
		right: 4px;
		width: 22px;
		height: 22px;
	}

	.hc-scope .hc-search-bar__submit {
		padding: 0 16px;
	}
}

/* ------------------------------------------------------------------ */
/* Halaman Hasil Pencarian (/pencarian)                                */
/* ------------------------------------------------------------------ */
.hc-scope.hc-search-results .hc-search-results__bar {
	margin: 18px 0 28px;
}

.hc-scope .hc-search-results__section {
	margin-top: 30px;
}

.hc-scope .hc-search-results__section h2 {
	margin: 0 0 10px;
	font-size: 1.18em;
	font-weight: 700;
}

.hc-scope .hc-search-results__list {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
	border-radius: 14px;
	padding: 4px 16px;
}

.hc-scope .hc-search-results__list .hc-search-card {
	padding: 12px 0;
	border-bottom: 1px solid var( --hc-line, rgba( 0, 0, 0, 0.12 ) );
}

.hc-scope .hc-search-results__list .hc-search-card:last-child {
	border-bottom: none;
}

/* ------------------------------------------------------------------ */
/* Responsif                                                           */
/* ------------------------------------------------------------------ */

/* Tablet & mobile: layout dokter jadi 1 kolom, kartu berhenti sticky. */
@media ( max-width: 880px ) {
	/**
	 * Layout menumpuk jadi SATU kolom, sehingga jarak kartu identitas -> kartu
	 * konten (grid gap) dan jarak antar-kartu konten (margin) sama-sama jadi
	 * jarak VERTIKAL yang bersebelahan langsung. Keduanya WAJIB bernilai sama,
	 * kalau tidak ritmenya terlihat timpang: celah di atas satu kartu beda
	 * dengan celah di bawahnya.
	 *
	 * Di desktop hal ini tidak jadi soal karena grid gap di sana adalah jarak
	 * HORIZONTAL (sidebar | konten), jadi nilainya memang tidak perlu sama.
	 *
	 * Nilainya 40px (bukan 20px seperti desktop). Angka ini SENGAJA lebih besar
	 * dari halaman rujukan (rskojakarta.id memakai 16-24px di mobile): kartu
	 * putih di atas latar tema yang nyaris putih (selisih hanya ~8 dari 255)
	 * punya kontras tepi rendah, jadi butuh celah lebih lega supaya batas
	 * antar-kartu tetap terbaca jelas di layar kecil.
	 */
	.hc-scope .hc-doctor__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hc-scope .hc-card + .hc-card {
		margin-top: 40px;
	}

	/**
	 * WAJIB position:static, JANGAN relative.
	 *
	 * Aturan dasar kartu ini memakai `position:sticky; top:24px` untuk perilaku
	 * menempel saat digulir di desktop. Kalau di mobile hanya position-nya yang
	 * diganti ke `relative`, properti `top:24px` TETAP BERLAKU -- elemen
	 * relative digeser 24px ke bawah SECARA VISUAL tanpa mengubah ruang yang
	 * dipesannya di layout. Akibatnya kartu ini "menabrak" ke bawah dan
	 * memakan 24px dari celah di bawahnya, sehingga jarak ke kartu berikutnya
	 * terlihat 24px lebih rapat daripada jarak antar-kartu lainnya (pernah
	 * membuat kartu terlihat menempel saat gap disetel 24px).
	 *
	 * Dengan `static`, `top` diabaikan sepenuhnya sehingga jarak yang terlihat
	 * benar-benar sama dengan nilai gap. `top:auto` ditulis eksplisit sebagai
	 * pengaman kalau suatu saat position-nya diubah lagi.
	 */
	.hc-scope .hc-doctor__card {
		position: static;
		top: auto;
	}

	/* Batasi lebar kartu di layar sedang supaya tidak melebar berlebihan. */
	.hc-scope .hc-doctor__card {
		max-width: 520px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Single Layanan: hero & baris bawah jadi 1 kolom, sidebar berhenti sticky.
   Breakpoint 900px mengikuti halaman rujukan (detail Promo RSKO Jakarta). */
@media ( max-width: 900px ) {
	.hc-scope .hc-single-service__hero,
	.hc-scope .hc-single-service__body {
		grid-template-columns: minmax( 0, 1fr );
		gap: 24px;
	}

	.hc-scope .hc-single-service__side {
		position: static;
	}

	/* Foto hero lebih landscape saat menumpuk (4/3 terlalu tinggi di mobile). */
	.hc-scope .hc-single-service__media {
		aspect-ratio: 16 / 9;
	}
}

/* Strip fakta: 2 kolom terlalu sempit di ponsel -> turun ke 1 kolom. */
@media ( max-width: 560px ) {
	.hc-scope .hc-facts {
		grid-template-columns: minmax( 0, 1fr );
	}

	.hc-scope .hc-single-service__actions .hc-btn {
		flex: 1 1 100%;
	}

	/* Kartu statistik hero: geser mendatar (bukan membungkus jadi banyak
	   baris yang memakan tinggi layar) -- pola yang sama dipakai halaman
	   rujukan. Scrollbar disembunyikan supaya tetap bersih. */
	.hc-scope.hc-hero {
		padding-bottom: 22px;
	}

	.hc-scope .hc-hero__stats {
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 8px;
		margin-top: 16px;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.hc-scope .hc-hero__stats::-webkit-scrollbar {
		display: none;
	}

	.hc-scope .hc-hero__stat {
		flex: 0 0 auto;
		min-width: 108px;
		padding: 9px 14px;
	}

	.hc-scope .hc-hero__stat-num {
		font-size: 1.18em;
	}
}

/* Bar filter dirapatkan & dibuat penuh-lebar di ponsel (mengikuti pola
   halaman rujukan) supaya tidak terpotong / berdesakan. */
@media ( max-width: 640px ) {
	.hc-scope .hc-filter {
		padding: 12px;
		gap: 10px;
	}

	.hc-scope .hc-filter__field {
		flex: 1 1 100%;
	}

	.hc-scope .hc-filter__submit,
	.hc-scope .hc-filter__reset {
		flex: 1 1 100%;
	}
}

@media ( max-width: 782px ) {
	.hc-scope.hc-archive,
	.hc-scope.hc-doctor,
	.hc-scope.hc-single-service {
		padding: 24px 16px 44px;
	}

	/* Padding bawah sengaja lebih besar dari sisi lain: tepat di atasnya ada
	   tombol CTA penuh-lebar, kalau paddingnya sama tombol terasa mepet ke
	   tepi kartu. */
	.hc-scope .hc-doctor__card {
		padding: 20px 20px 24px;
	}

	.hc-scope .hc-doctor__card-photo {
		max-width: min( 260px, 66vw );
	}

	.hc-scope .hc-doctor__card-name {
		font-size: 1.25em;
	}

	.hc-scope .hc-single-service__title {
		font-size: 1.55em;
	}

	/* Padding kartu dirapatkan supaya isi tidak terlalu mepet di layar kecil. */
	.hc-scope .hc-single-service__hero,
	.hc-scope .hc-single-service__content,
	.hc-scope .hc-single-service__doctors,
	.hc-scope .hc-card {
		padding: 20px;
	}

	.hc-scope .hc-single-service__hero,
	.hc-scope .hc-single-service__content,
	.hc-scope .hc-single-service__doctors,
	.hc-scope .hc-box {
		border-radius: 16px;
	}
}
