/* Komponen konten situs Fisioterapi ITSK — dipakai di widget HTML/Text Editor Elementor.
   Warna mengikuti Global Colors Elementor (Site Settings), jadi cukup ubah di sana. */
:root {
	--fx-primary: var(--e-global-color-primary, #960b27);
	--fx-primary-soft: color-mix(in srgb, var(--fx-primary) 8%, #fff);
	--fx-heading: var(--e-global-color-4d7b7af, #030303);
	--fx-text: var(--e-global-color-text, #4c4c4c);
	--fx-border: var(--e-global-color-b666397, #e4e4e4);
	--fx-bg: var(--e-global-color-1d62194, #f6f4ee);
	--fx-radius: 14px;
}

.fx { color: var(--fx-text); font-size: 16px; line-height: 1.75; }
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
/* body-prefix: menang atas .elementor-kit-XXXX hN yang dimuat setelah file ini */
body .fx h2, body .fx h3, body .fx h4 { color: var(--fx-heading); margin: 0 0 .5em; line-height: 1.3; }
body .fx h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
body .fx h3 { font-size: 1.25rem; }
body .fx h4 { font-size: 1.05rem; }
body .fx .fx-card h3 { font-size: 1.15rem; }
.fx p { margin: 0 0 1em; }
.fx p:last-child { margin-bottom: 0; }
.fx a { color: var(--fx-primary); }

.fx-eyebrow {
	display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase; color: var(--fx-primary);
}
.fx-lead { font-size: 1.08rem; max-width: 760px; }
.fx-center { text-align: center; }
.fx-center .fx-lead { margin-left: auto; margin-right: auto; }

/* Label jenjang — wajib menempel pada setiap blok identitas prodi */
.fx-jenjang {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
	font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: var(--fx-primary); color: #fff;
}
.fx-jenjang--profesi { background: var(--fx-heading); }
.fx-jenjang--rpl { background: #fff; color: var(--fx-primary); box-shadow: inset 0 0 0 1.5px var(--fx-primary); }

.fx-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.fx-grid--lab { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 20px; }
.fx-grid--lab .fx-card { padding: 18px; }
.fx-grid--lab p { font-size: .9rem; line-height: 1.6; }
.fx-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.fx-card {
	background: #fff; border: 1px solid var(--fx-border); border-radius: var(--fx-radius);
	padding: 28px; box-shadow: 0 6px 24px rgba(3, 3, 3, .05); height: 100%;
}
.fx-card--accent { border-top: 4px solid var(--fx-primary); }
.fx-card--soft { background: var(--fx-bg); box-shadow: none; }
.fx-card .fx-jenjang { margin-bottom: 14px; }
.fx-card-icon {
	width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
	background: var(--fx-primary-soft); color: var(--fx-primary); font-size: 1.5rem; margin-bottom: 16px;
}

.fx-quote {
	margin: 0 0 1.2em; padding: 20px 24px; border-left: 4px solid var(--fx-primary);
	background: var(--fx-primary-soft); border-radius: 0 var(--fx-radius) var(--fx-radius) 0;
	font-family: var(--e-global-typography-primary-font-family, serif); font-size: 1.12rem;
	color: var(--fx-heading); line-height: 1.6;
}

.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-list li { position: relative; padding: 0 0 10px 30px; }
.fx-list li::before {
	content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px;
	border-radius: 3px; background: var(--fx-primary); transform: rotate(45deg) scale(.7);
}
.fx-ol { margin: 0; padding: 0; list-style: none; counter-reset: fx; }
.fx-ol li { position: relative; padding: 0 0 14px 44px; counter-increment: fx; }
.fx-ol li::before {
	content: counter(fx); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
	border-radius: 50%; background: var(--fx-primary); color: #fff; font-weight: 700;
	font-size: .85rem; display: grid; place-items: center;
}

/* Daftar dokumen (PDF) */
.fx-docs { display: grid; gap: 14px; }
.fx-doc {
	display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: #fff;
	border: 1px solid var(--fx-border); border-radius: 12px;
}
.fx-doc-icon {
	flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
	background: var(--fx-primary-soft); color: var(--fx-primary); font-weight: 800; font-size: .72rem;
}
.fx-doc-body { flex: 1; min-width: 0; }
.fx-doc-title { margin: 0; font-weight: 600; color: var(--fx-heading); line-height: 1.4; }
.fx-doc-meta { margin: 2px 0 0; font-size: .85rem; }
.fx-doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px;
	font-size: .85rem; font-weight: 600; text-decoration: none !important; line-height: 1.2;
	background: var(--fx-primary); color: #fff !important; border: 1.5px solid var(--fx-primary);
	transition: background .2s, color .2s;
}
.fx-btn:hover { background: #fff; color: var(--fx-primary) !important; }
.fx-btn--ghost { background: #fff; color: var(--fx-primary) !important; }
.fx-btn--ghost:hover { background: var(--fx-primary); color: #fff !important; }
@media (max-width: 640px) {
	.fx-doc { flex-wrap: wrap; }
	.fx-doc-actions { width: 100%; }
}

/* Tabel */
.fx-table-wrap { overflow-x: auto; border: 1px solid var(--fx-border); border-radius: 12px; background: #fff; }
.fx-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.fx-table th {
	background: var(--fx-primary); color: #fff; text-align: left; font-weight: 600;
	padding: 12px 16px; white-space: nowrap; border: 0;
}
.fx-table td { padding: 12px 16px; border: 0; border-top: 1px solid var(--fx-border); vertical-align: top; }
.fx-table tbody tr:nth-child(even) td { background: #fafaf8; }

/* Kotak info & stub */
.fx-note {
	padding: 16px 20px; border-radius: 12px; background: var(--fx-bg);
	border: 1px dashed var(--fx-border); font-size: .95rem;
}
.fx-stub { text-align: center; padding: 56px 24px; }
.fx-stub-icon {
	width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
	background: var(--fx-primary-soft); color: var(--fx-primary); font-size: 2rem;
}
.fx-stub .fx-pill {
	display: inline-block; margin-top: 22px; padding: 9px 26px; border-radius: 999px;
	background: var(--fx-primary); color: #fff; font-size: .85rem; font-weight: 600;
}

/* Identitas prodi (kode, gelar, akreditasi) */
.fx-facts { display: grid; gap: 1px; background: var(--fx-border); border: 1px solid var(--fx-border);
	border-radius: 12px; overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.fx-fact { background: #fff; padding: 18px 20px; }
.fx-facts { background: #fff; } /* sel kosong di baris terakhir tetap putih, bukan abu-abu */
.fx-facts .fx-fact { box-shadow: 0 0 0 1px var(--fx-border); }
.fx-facts { gap: 0; border-radius: 12px; }
.fx-fact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--fx-primary); }
.fx-fact-value { margin-top: 4px; font-weight: 600; color: var(--fx-heading); }

/* Foto (bagan, brosur) */
.fx-figure { margin: 0; }
.fx-figure img { width: 100%; height: auto; border-radius: var(--fx-radius); border: 1px solid var(--fx-border); display: block; }
.fx-figure figcaption { margin-top: 8px; font-size: .85rem; text-align: center; }
.fx-lab img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; width: 100%; display: block; }

/* Tabel Google Sheets ([fisio_sheet]) */
.fx-sheet-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.fx-sheet-tab {
	padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--fx-border); background: #fff;
	font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--fx-heading);
}
.fx-sheet-tab[aria-pressed="true"] { background: var(--fx-primary); border-color: var(--fx-primary); color: #fff; }
.fx-sheet-search {
	margin-left: auto; min-width: 220px; padding: 9px 14px; border-radius: 999px;
	border: 1.5px solid var(--fx-border); font-size: .9rem;
}
@media (max-width: 640px) { .fx-sheet-search { margin-left: 0; width: 100%; } }
.fx-sheet-count { font-size: .85rem; margin: 10px 0 0; }

/* Header: 7 menu utama payung tidak muat di layar laptop (1025–1440px) dengan margin bawaan 30px */
@media (min-width: 1025px) and (max-width: 1440px) {
	.elementor-widget-rstb-nav-menu .primary-menu > li { margin-right: 22px; }
	/* ikon offcanvas + pembatasnya (header utama & sticky); isinya sudah ada di footer */
	.elementor-element-95d60ee, .elementor-element-85d1ac0, .elementor-element-e03eb16,
	.elementor-element-4dd1d42, .elementor-element-cea21b0, .elementor-element-cab2ea7 { display: none !important; }
}

/* Tombol blok File Gutenberg di berita lama mengikuti warna tema */
.wp-block-file .wp-block-file__button {
	background: var(--fx-primary); color: #fff; border-radius: 999px; padding: .5em 1.4em; font-size: .9rem;
}

/* Bagan struktur organisasi berfoto (org_chart() di tools/komponen.py) */
.fx-org { padding: 8px 0; }
.fx-org-level { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
.fx-org-box {
	background: #fff; border: 1px solid var(--fx-border); border-top: 4px solid var(--fx-primary); border-radius: 12px;
	padding: 18px 16px 16px; text-align: center; box-shadow: 0 3px 16px rgba(0,0,0,.07); width: 230px;
	display: flex; flex-direction: column; align-items: center;
}
.fx-org-box--lead { width: 280px; border-top-width: 5px; }
.fx-org-box--kosong { border-top-color: #c9c1b1; }
.fx-org-foto {
	width: 128px; height: 160px; border-radius: 12px; object-fit: cover; object-position: top;
	border: 3px solid var(--fx-bg); background: var(--fx-bg); margin-bottom: 10px;
}
.fx-org-box--lead .fx-org-foto { width: 160px; height: 200px; }
/* gaya img tema (height:auto) menimpa ukuran foto -> dikunci */
body .fx-org .fx-org-foto { height: 160px !important; max-width: none; }
body .fx-org .fx-org-box--lead .fx-org-foto { height: 200px !important; }
.fx-org-jab { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-primary);
	margin-bottom: 6px; line-height: 1.35; }
.fx-org-nama { font-size: .9rem; color: var(--fx-text); line-height: 1.5; }
.fx-org-box--kosong .fx-org-nama { font-style: italic; color: #8a8a8a; }
.fx-org-konektor { width: 2px; height: 28px; background: #d9d4c8; margin: 0 auto; }
.fx-org-cabang { border-top: 2px solid #d9d4c8; margin: 0 auto 0; height: 28px; position: relative; }
.fx-org-cabang::after { content: ""; position: absolute; left: 50%; top: -30px; width: 2px; height: 28px; background: #d9d4c8; }
.fx-org-grup { margin-top: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: #8a8a8a; text-align: center; margin-bottom: 14px; }
.fx-org-cap { text-align: center; font-size: .8rem; color: #8a8a8a; margin-top: 26px; font-style: italic; }
@media (max-width: 600px) {
	.fx-org-box, .fx-org-box--lead { width: 100%; }
	.fx-org-cabang { display: none; }
}
