/*
Theme Name: Puske One
Description: Tema WordPress ringan, cepat, aman dan responsif untuk website Puskesmas / fasilitas kesehatan. Tanpa jQuery, tanpa framework CSS, ikon SVG inline, satu file CSS & satu file JS (defer).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: puske-one
Tags: two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready, accessibility-ready
*/

/* ===== Token ===== */
:root {
	--g-900: #0a4a25;
	--g-800: #0d5c2f;
	--g-700: #0f7a3a;
	--g-600: #16924a;
	--g-500: #22a85a;
	--g-100: #d8f1e1;
	--g-50: #eef9f2;
	--ink: #13241a;
	--text: #36463d;
	--muted: #6b7a72;
	--line: #e3ebe6;
	--bg: #f6faf7;
	--white: #fff;
	--radius: 16px;
	--shadow: 0 4px 14px rgba(15, 60, 35, .07);
	--shadow-lg: 0 14px 40px rgba(15, 60, 35, .12);
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-script: "Kaushan Script", "Segoe Script", "Brush Script MT", cursive;
	--header-h: 78px;
	--fs: 15px;
	--container: 1240px;
	--hero-h: 520px;
	--hero-ov: 1;
}

/* ===== Reset ringan ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.6; color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--g-700); text-decoration: none; }
a:hover { color: var(--g-600); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--g-500); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

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

/* Aksesibilitas (wajib WP) */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; z-index: 1000; top: 8px; left: 8px; padding: 12px 18px; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow-lg); }
.site-main:focus { outline: 0; }

/* ===== Tombol ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.4em; border: 0; border-radius: 999px; background: var(--g-700); color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--g-800); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: .55em 1.1em; font-size: 13px; }
.btn--block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.link-more .icon { width: 16px; height: 16px; }

/* ===== Topbar ===== */
.topbar { background: var(--g-800); color: #e3f4e9; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__info { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 6px 0; }
.topbar__info li { display: flex; align-items: center; gap: 8px; }
.topbar__info .icon { width: 16px; height: 16px; opacity: .9; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.social .icon { width: 18px; height: 18px; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 60, 35, .04); }
.admin-bar .site-header { top: 32px; }
.puske-static-header .site-header { position: relative; top: auto; }
.header__inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__logo { display: block; flex: none; }
.brand__svg { width: 54px; height: 54px; display: block; }
.brand__img { display: block; max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 800; font-size: 18px; line-height: 1.1; text-transform: uppercase; max-width: 13ch; }
.brand__tagline { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.menu li { position: relative; }
.menu a { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; transition: background .2s, color .2s; }
.menu a:hover { color: var(--g-700); }
.menu a .icon { width: 17px; height: 17px; }
.menu > .current-menu-item > a,
.menu > .current_page_item > a,
.menu > .current-menu-ancestor > a,
.menu > .current_page_ancestor > a { background: var(--g-700); color: #fff; }
.menu .menu-item-has-children > a::after,
.menu .page_item_has_children > a::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.menu .sub-menu,
.menu .children { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu,
.menu li:hover > .children, .menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a, .menu .children a { border-radius: 8px; padding: 9px 12px; font-weight: 500; }
.menu .sub-menu a:hover, .menu .children a:hover { background: var(--g-50); }
.menu .sub-menu .sub-menu, .menu .children .children { left: 100%; top: -8px; }
.submenu-toggle { display: none; }

.search-form { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.search-form input { flex: 1; min-width: 0; width: 170px; border: 0; padding: 10px 16px; font-size: 13px; background: transparent; outline: 0; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form button { flex: none; display: grid; place-items: center; width: 44px; border: 0; background: var(--g-700); color: #fff; cursor: pointer; }
.search-form button:hover { background: var(--g-800); }
.search-form .icon { width: 18px; height: 18px; }
.header-search--mobile { display: none; }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
	.nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; }
	.nav-toggle .icon { width: 24px; height: 24px; }
	.nav-toggle .icon-shut, .nav-open .nav-toggle .icon-open { display: none; }
	.nav-open .nav-toggle .icon-shut { display: inline-block; }
	.header-search--desktop { display: none; }

	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px 22px; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); }
	.nav-open .primary-nav { display: block; }
	.menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 2px; }
	.menu a { border-radius: 10px; padding: 12px 14px; }
	.menu .menu-item-has-children > a, .menu .page_item_has_children > a { padding-right: 52px; }
	.menu .menu-item-has-children > a::after, .menu .page_item_has_children > a::after { display: none; }
	.menu .sub-menu, .menu .children { position: static; display: none; min-width: 0; padding: 0 0 4px 14px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.menu li.is-open > .sub-menu, .menu li.is-open > .children { display: block; }
	.submenu-toggle { display: grid; place-items: center; position: absolute; right: 4px; top: 3px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--g-50); color: var(--g-700); cursor: pointer; }
	.submenu-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(-135deg); }
	.header-search--mobile { display: block; margin-top: 14px; }
	.header-search--mobile .search-form input { width: auto; }
}

@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ===== Hero ===== */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(min(400px, var(--hero-h)), 38vw, var(--hero-h)); overflow: hidden; background: linear-gradient(120deg, var(--g-50), #fff 55%, var(--g-100)); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.hero__slide--empty { background:
	radial-gradient(circle at 78% 40%, rgba(34, 168, 90, .22), transparent 40%),
	radial-gradient(circle at 92% 85%, rgba(15, 122, 58, .18), transparent 35%),
	linear-gradient(120deg, var(--g-50), #fff 50%, var(--g-100)); }
.hero__overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--hero-ov); background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 30%, rgba(255, 255, 255, .25) 52%, rgba(255, 255, 255, 0) 62%); }
.hero__content { padding-block: 48px 84px; }
.hero__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; }
.hero__title span { display: block; color: var(--g-600); }
.hero__tagline { max-width: 15ch; margin: 0 0 16px; font-family: var(--font-script); font-size: clamp(22px, 2.5vw, 32px); line-height: 1.2; color: var(--ink); }
.hero__desc { max-width: 42ch; margin: 0 0 24px; color: #24342b; }
.slider-btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--g-700); color: #fff; cursor: pointer; box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.slider-btn:hover { background: var(--g-800); }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn--soft { width: 34px; height: 34px; background: var(--white); color: var(--g-700); border: 1px solid var(--line); }
.slider-btn--soft:hover { background: var(--g-50); }
.hero > .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.hero > .slider-btn--prev { left: 16px; }
.hero > .slider-btn--next { right: 16px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #c6d6cc; cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button[aria-current="true"] { width: 24px; background: var(--g-600); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 52px; z-index: 3; }

@media (max-width: 768px) {
	.hero { min-height: 0; }
	.hero__img { object-position: 70% center; }
	.hero__overlay { background: linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .8)); }
	.hero > .slider-btn { display: none; }
	.hero__content { padding-block: 40px 80px; }
	.hero__dots { bottom: 48px; }
}

/* ===== Layanan unggulan ===== */
.services { position: relative; z-index: 4; margin-top: -34px; }
.services--flat { margin-top: 30px; }
.services__list { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.service { position: relative; }
.service:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: var(--line); }
.service__link { display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px; border-radius: 12px; color: inherit; }
a.service__link:hover { background: var(--g-50); color: inherit; }
.service__icon { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--g-50); color: var(--g-700); }
.service__icon .icon { width: 27px; height: 27px; }
.service__title { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--ink); }
.service__sub { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }

@media (max-width: 1100px) {
	.services__list { grid-template-columns: repeat(3, 1fr); row-gap: 6px; }
	.service:nth-child(3n + 1)::before { display: none; }
}
@media (max-width: 600px) {
	.services__list { grid-template-columns: repeat(2, 1fr); padding: 8px; }
	.service:nth-child(n)::before { display: block; }
	.service:nth-child(2n + 1)::before { display: none; }
	.service__link { flex-direction: column; text-align: center; gap: 8px; padding: 12px 8px; }
}

/* ===== Kartu & grid beranda ===== */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; min-height: 56px; }
.card__head--green { background: linear-gradient(90deg, var(--g-700), var(--g-600)); color: #fff; }
.card__head--light { border-bottom: 1px solid var(--line); }
.card__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; color: inherit; }
.card__title .icon { width: 24px; height: 24px; }
.card__head--light .card__title { color: var(--ink); }
.card__head--light .card__title .icon { color: var(--g-700); }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.card__more:hover { color: #fff; text-decoration: underline; }
.card__more .icon { width: 16px; height: 16px; }
.card__body { padding: 8px 18px 18px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--g-700); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.empty-note { color: var(--muted); padding-block: 14px; margin: 0; }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; align-items: start; }
.home-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-grid--1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
	.home-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-grid--3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .home-grid, .home-grid--2 { grid-template-columns: minmax(0, 1fr); } }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item__thumb { position: relative; flex: 0 0 116px; display: grid; place-items: center; width: 116px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--g-50); color: var(--g-600); }
.news-item__thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.news-item__thumb .icon { width: 28px; height: 28px; }
.news-item__title { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.news-item__title a { color: var(--ink); }
.news-item__title a:hover { color: var(--g-700); }
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.meta .icon { width: 14px; height: 14px; }

.schedule { list-style: none; margin: 0 0 18px; padding: 0; }
.schedule li { display: grid; grid-template-columns: 22px minmax(118px, auto) 1fr; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.schedule .icon { width: 20px; height: 20px; color: var(--g-700); }
.schedule__time { font-weight: 700; color: var(--ink); }

.online-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.online-item { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 16px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; transition: transform .2s, box-shadow .2s; }
.online-item:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.online-item .icon { width: 38px; height: 38px; }
.tone-blue { background: #e8f1fd; } .tone-blue .icon { color: #2563eb; }
.tone-green { background: #e3f6ea; } .tone-green .icon { color: #16a34a; }
.tone-orange { background: #fdefe2; } .tone-orange .icon { color: #f26a14; }
.tone-purple { background: #f1e9fd; color: #6d28d9 !important; } .tone-purple .icon { color: #7c3aed; }
.tone-teal { background: #e0f6f5; } .tone-teal .icon { color: #0d9488; }
.tone-red { background: #fde8e8; } .tone-red .icon { color: #dc2626; }
@media (max-width: 380px) { .online-grid { grid-template-columns: 1fr; } }

/* ===== Tentang + Testimoni ===== */
.about { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 30px; padding-block: 44px 28px; }
.about__media { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--g-50); box-shadow: var(--shadow); }
.about__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__media .brand__svg { width: 96px; height: 96px; }
.eyebrow { margin: 0 0 4px; color: var(--g-700); font-weight: 700; font-size: 13.5px; }
.about__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.about__text p { font-size: 14px; }
.checklist { list-style: none; margin: 0 0 18px; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13.5px; }
.checklist .icon { width: 18px; height: 18px; color: var(--g-600); }

.testimonial { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--g-50); }
.testimonial__head { display: flex; align-items: center; gap: 12px; }
.testimonial__mark { width: 38px; height: 38px; color: var(--g-600); }
.testimonial__title { margin: 0; font-size: 17px; }
.testimonial__slides { display: grid; flex: 1; }
.t-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.t-slide.is-active { opacity: 1; visibility: visible; }
.t-quote { margin: 16px 0 20px; font-style: italic; font-size: 14px; color: #33463b; }
.t-person { display: flex; align-items: center; gap: 14px; }
.t-person strong { display: block; color: var(--ink); font-size: 14.5px; }
.t-person small { display: block; color: var(--muted); font-size: 12.5px; }
.t-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.t-avatar--initial { display: grid; place-items: center; background: var(--g-600); color: #fff; font-weight: 700; font-size: 24px; }
.t-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }

.about--no-testi { grid-template-columns: 1fr 1.2fr; }
.about--only-testi { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 1100px) {
	.about { grid-template-columns: 1fr 1fr; }
	.about--only-testi { grid-template-columns: minmax(0, 1fr); }
	.testimonial { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .about, .about--no-testi { grid-template-columns: minmax(0, 1fr); } }

/* ===== Section umum, galeri, mitra ===== */
.section { padding-block: 28px; }
.section--gallery { border-top: 1px solid var(--line); }
.section--partners { background: var(--bg); padding-bottom: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.section-title .icon { width: 24px; height: 24px; color: var(--g-700); }

.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gallery-item { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--g-50); color: var(--g-600); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item > .icon { width: 30px; height: 30px; opacity: .6; }
.gallery-item__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: 13px; font-weight: 600; }
.gallery-grid--archive { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .gallery-grid, .gallery-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gallery-grid, .gallery-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.partners { display: flex; align-items: center; gap: 10px; }
.partners > .slider-btn { flex: none; }
.partners__track { flex: 1; display: flex; gap: 16px; margin: 0; padding: 6px 2px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.partners__track::-webkit-scrollbar { display: none; }
.partner { flex: 0 0 calc((100% - 64px) / 5); scroll-snap-align: start; display: grid; place-items: center; min-height: 84px; padding: 10px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); text-align: center; font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--ink); }
.partner a { display: grid; place-items: center; width: 100%; height: 100%; color: inherit; }
.partner img { display: block; max-height: 56px; width: auto; object-fit: contain; }
.partner__fallback { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.partner__icon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--g-50); color: var(--g-700); box-sizing: content-box; }
.partner__name { font-size: 12px; line-height: 1.3; }
.partner a:hover .partner__icon { background: var(--g-700); color: #fff; }
@media (max-width: 1100px) { .partner { flex-basis: calc((100% - 32px) / 3); } }
@media (max-width: 600px) { .partner { flex-basis: calc((100% - 16px) / 2); } .partners > .slider-btn { display: none; } }

/* ===== Footer ===== */
.site-footer { background: radial-gradient(circle at 10% 0%, var(--g-800), transparent 50%), var(--g-900); color: #d3e9da; font-size: 13.5px; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1.25fr 1fr 1fr auto; gap: 28px; padding-block: 42px; }
.footer__grid--no-qr { grid-template-columns: 1.35fr 1.25fr 1fr 1fr; }
.footer__col { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .15); }
.footer__title { margin-bottom: 14px; color: #fff; font-size: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.footer-list .icon { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.footer-list a { display: inline-flex; align-items: flex-start; gap: 10px; color: inherit; }
.footer-list a:hover { color: #fff; }
.footer-menu .icon { width: 15px; height: 15px; margin-top: 3px; }
.site-footer .brand { color: #fff; }
.site-footer .brand__name { font-size: 20px; }
.site-footer .brand__tagline { color: #cfe5d6; }
.site-footer .brand__svg { width: 64px; height: 64px; }
.footer__social { margin-top: 22px; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .55); }
.footer__qr { text-align: left; }
.footer__qr-img { display: block; width: 104px; height: 104px; padding: 6px; background: #fff; border-radius: 8px; }
.footer__qr p { max-width: 14ch; margin: 10px 0 0; font-size: 12.5px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .14); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; font-size: 12.5px; }
.footer__bottom p { margin: 0; }
.footer__motto { display: flex; align-items: center; gap: 10px; font-style: italic; }
.footer__motto .icon { width: 56px; height: 24px; color: #4ade80; }

@media (max-width: 1100px) {
	.footer__grid, .footer__grid--no-qr { grid-template-columns: 1fr 1fr; }
	.footer__col { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) { .footer__grid, .footer__grid--no-qr { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ===== Halaman dalam ===== */
.page-hero { padding: 36px 0; background: linear-gradient(120deg, var(--g-50), var(--g-100)); border-bottom: 1px solid var(--line); }
.page-hero__title { margin: 0; font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; }
.page-hero__title span { color: var(--g-700); }
.breadcrumb { margin-top: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--g-700); }
.breadcrumb__sep { margin: 0 4px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-block: 36px 48px; }
.layout--full { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.layout--wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-grid--1 { grid-template-columns: minmax(0, 1fr); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid, .post-grid--3 { grid-template-columns: minmax(0, 1fr); } }
.post-card { display: flex; flex-direction: column; }
.post-card__thumb { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--g-50); color: var(--g-600); overflow: hidden; }
.post-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb .icon { width: 40px; height: 40px; }
.post-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 16px 18px 20px; }
.post-card__title { margin: 8px 0; font-size: 17px; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--g-700); }
.post-card__excerpt { font-size: 14px; color: var(--muted); flex: 1; }
.archive-desc { margin-bottom: 20px; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.entry-thumb { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 16px; line-height: 1.8; color: #2e3d34; overflow-wrap: break-word; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--g-600); background: var(--g-50); border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--g-50); }
.entry-content pre { overflow-x: auto; padding: 16px; background: #0f1d15; color: #e6f2ea; border-radius: 10px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
/* Gambar di isi berita: selalu penuh selebar konten, sama seperti gambar unggulan.
   Galeri, emoji & avatar dikecualikan. */
.single-post .entry-content img:not(.emoji, .wp-smiley, .avatar, .wp-block-gallery img, .gallery img) {
	display: block; float: none; width: 100% !important; max-width: 100%; height: auto !important; margin: 1.5em 0; border-radius: var(--radius);
}
.single-post .entry-content figure:not(.wp-block-gallery, .wp-block-gallery figure, .gallery figure, .wp-block-embed, .wp-block-table, .wp-block-pullquote),
.single-post .entry-content .wp-caption,
.single-post .entry-content .wp-block-image:not(.wp-block-gallery .wp-block-image) {
	display: block; float: none; width: 100% !important; max-width: 100%; margin: 1.5em 0;
}
.single-post .entry-content figure img:not(.wp-block-gallery img, .gallery img),
.single-post .entry-content .wp-caption img { margin: 0; }
.single-post .entry-content .wp-block-image figcaption,
.single-post .entry-content .wp-caption-text { text-align: center; margin-top: 8px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.entry-tags a { padding: 4px 12px; border-radius: 999px; background: var(--g-50); font-size: 13px; }
.page-links { margin-top: 20px; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sticky, .bypostauthor { position: relative; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.post-navigation a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; font-size: 14px; }
.post-navigation a:hover { border-color: var(--g-500); }
.post-navigation small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: 1; } }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.page-numbers .icon { width: 18px; height: 18px; }

.sidebar .widget { margin-bottom: 22px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.widget-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--g-100); font-size: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--g-700); }
.widget .search-form input { width: auto; }
.widget--recent .news-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget--recent .news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.widget--recent .news-item__thumb { flex-basis: 84px; width: 84px; height: 56px; }
.widget--recent .news-item__title { font-size: 13.5px; }

.empty-state { padding: 40px 0; text-align: center; }
.empty-state__code { margin: 0; font-size: 88px; font-weight: 800; line-height: 1; color: var(--g-600); }
.empty-state .search-form { max-width: 420px; margin: 20px auto; }
.empty-state .search-form input { width: auto; }

/* ===== Komentar & form ===== */
.comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: 13px; font-weight: 600; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="tel"], input[type="number"], textarea, select { width: 100%; padding: 10px 14px; border: 1px solid #cfdad3; border-radius: 10px; background: var(--white); }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100); }
.search-form input[type="search"] { border: 0; box-shadow: none; }

/* ===== Tombol WhatsApp melayang ===== */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 14px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: transform .2s, box-shadow .2s, background .2s; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; background: #1ebe5b; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .26); }
.wa-float__icon { flex: none; width: 30px; height: 30px; }
.wa-float__label { padding-right: 6px; white-space: nowrap; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; opacity: .5; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 720px) {
	.wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; }
	.wa-float__label { display: none; }
}

/* ===== Cetak ===== */
@media print {
	.wa-float, .topbar, .site-header, .site-footer, .sidebar, .comments, .post-navigation { display: none !important; }
	body { color: #000; }
}
