/* Gaya blok & pola MTsN 2 Ciamis — dipakai di website dan di editor. */
:root {
	--hijau: #0b5d3b; --hijau-tua: #073d27; --hijau-muda: #e7f2ec;
	--emas: #d4a017; --emas-muda: #fbf3dc; --abu: #5c6b64; --garis: #dfe6e2;
}
.editor-styles-wrapper { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2a24; }
.editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3 { color: var(--hijau-tua); }

.wp-block-button__link, .wp-element-button { background: var(--hijau); color: #fff; border-radius: 999px; padding: .75em 1.5em; font-weight: 700; text-decoration: none; }
.wp-block-button__link:hover { background: var(--hijau-tua); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--hijau); border: 2px solid var(--hijau); }
.wp-block-image img { border-radius: 12px; }
.wp-block-quote { border-left: 4px solid var(--emas); background: var(--emas-muda); padding: 14px 22px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.wp-block-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--hijau-tua); font-size: .92em; }
.wp-block-details { border: 1px solid var(--garis); border-radius: 12px; padding: 12px 18px; margin: 10px 0; background: #fff; }
.wp-block-details summary { font-weight: 700; color: var(--hijau-tua); cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 8px; }

/* Visi */
.pola-visi { background: var(--hijau-muda); border-radius: 16px; padding: 26px 30px; }
.pola-visi-teks { font-size: 1.3em; font-weight: 700; color: var(--hijau); line-height: 1.5; }

/* Langkah bernomor */
ol.pola-langkah { list-style: none; counter-reset: langkah; padding-left: 0; }
ol.pola-langkah > li { counter-increment: langkah; position: relative; padding: 4px 0 16px 58px; min-height: 44px; }
ol.pola-langkah > li::before { content: counter(langkah); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--hijau); color: #fff; display: grid; place-items: center; font-weight: 800; }
ol.pola-langkah > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 2px; width: 2px; background: var(--garis); }

/* Grid kartu & fitur */
.pola-grid { gap: 20px; }
.pola-kartu { background: #fff; border: 1px solid var(--garis); border-radius: 14px; padding: 0 0 16px; overflow: hidden; height: 100%; box-shadow: 0 6px 24px rgba(7,61,39,.06); }
.pola-kartu .wp-block-image { margin: 0 0 12px; }
.pola-kartu .wp-block-image img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pola-kartu h3, .pola-kartu p { padding: 0 18px; margin: 0 0 6px; }
.pola-kartu p { color: var(--abu); font-size: .95em; }
.pola-fitur { background: #fff; border: 1px solid var(--garis); border-radius: 14px; padding: 20px; height: 100%; text-align: center; }
.pola-fitur h3 { font-size: 1.05em; margin: 6px 0; }
.pola-fitur p { color: var(--abu); font-size: .95em; margin: 0; }
p.pola-ikon { font-size: 2.2em; margin: 0 auto 4px; width: 66px; height: 66px; border-radius: 18px; background: var(--hijau-muda); display: grid; place-items: center; color: inherit; }

/* Dua kolom, galeri */
.pola-dua { gap: 32px; align-items: center; }
.pola-galeri { gap: 14px; }
.pola-galeri .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Tabel */
.pola-tabel table { border-collapse: collapse; width: 100%; border-radius: 12px; overflow: hidden; }
.pola-tabel th { background: var(--hijau); color: #fff; text-align: left; padding: 11px 14px; border: 0; }
.pola-tabel td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--garis); }
.pola-tabel tbody tr:nth-child(even) td { background: #f6faf8; }

/* Kotak */
.pola-kotak { background: var(--hijau-muda); border-radius: 14px; padding: 22px 24px; }
.pola-kotak ul { list-style: none; padding-left: 0; }
.pola-kotak li { padding: 6px 0; border-bottom: 1px dashed var(--garis); }
.pola-peta iframe { width: 100%; height: 320px; border: 0; border-radius: 14px; }
.pola-peta p { background: #f6faf8; border: 1px dashed var(--garis); border-radius: 14px; padding: 60px 20px; text-align: center; color: var(--abu); }
.pola-info { background: var(--emas-muda); border-left: 5px solid var(--emas); border-radius: 0 12px 12px 0; padding: 14px 20px; }
.pola-info p { margin: 0; color: #5b4306; }
.pola-ajakan { background: linear-gradient(120deg, var(--hijau-tua), var(--hijau)); border-radius: 18px; padding: 34px; text-align: center; }
.pola-ajakan h2, .pola-ajakan p { color: #fff; }
.pola-ajakan .wp-block-buttons { justify-content: center; }
.pola-ajakan .wp-block-button__link { background: var(--emas); color: var(--hijau-tua); }
.pola-sambutan .wp-block-image img { aspect-ratio: 4/5; object-fit: cover; max-width: 320px; }

@media (max-width: 781px) {
	.pola-visi, .pola-ajakan { padding: 22px; }
}
