/**
 * Artikel lembaga — template ber-brand DonasiPro.
 * Warna: --dp-brand (Warna Utama) untuk tombol & tautan,
 * --dp-side / --dp-side-deep (warna logo) untuk pita judul & footer.
 */

body.dpa-page,
.dpa-scope {
	--dpa-ink: #142033;
	--dpa-soft: #5b6880;
	--dpa-line: #e6e9f0;
	--dpa-bg: #f6f7fb;
	--dpa-radius: 16px;
	--dpa-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--dpa-serif: "Lora", Georgia, "Times New Roman", serif;
}

body.dpa-page {
	margin: 0;
	background: var(--dpa-bg);
	color: var(--dpa-ink);
	font-family: var(--dpa-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.dpa-page *, body.dpa-page *::before, body.dpa-page *::after,
.dpa-scope *, .dpa-scope *::before, .dpa-scope *::after { box-sizing: border-box; }
:where(body.dpa-page) img { max-width: 100%; height: auto; }
:where(body.dpa-page) a { color: var(--dp-brand-dark, #11803a); }

.dpa-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.dpa-wrap-narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.dpa-wrap-wide { max-width: 1020px; margin-left: auto; margin-right: auto; padding: 0 20px; }

/* ---------------- Header ---------------- */
.dpa-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--dpa-line);
}
body.admin-bar .dpa-header { top: 32px; }
.dpa-header::before { content: ""; display: block; height: 4px; background: var(--dp-side, var(--dp-brand)); }
.dpa-header-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.dpa-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--dpa-ink) !important; margin-right: auto; min-width: 0; }
.dpa-brand img { height: 42px; width: auto; max-width: 150px; object-fit: contain; }
.dpa-brand-mark { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--dp-side, var(--dp-brand)); color: #fff; font-weight: 800; }
.dpa-brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpa-nav { display: flex; align-items: center; gap: 4px; }
.dpa-nav a { text-decoration: none; color: var(--dpa-soft) !important; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.dpa-nav a:hover, .dpa-nav a.is-active { color: var(--dpa-ink) !important; background: #f1f3f8; }
.dpa-burger { display: none; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--dpa-ink); padding: 6px; }

.dpa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--dp-brand); color: var(--dp-brand-ink, #fff) !important;
	font-weight: 700; font-size: 15px; text-decoration: none;
	padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
	box-shadow: 0 6px 16px -6px rgba(var(--dp-brand-rgb, 22,163,74), .55);
	transition: transform .12s, box-shadow .12s, background .12s;
}
.dpa-btn:hover { background: var(--dp-brand-dark); transform: translateY(-1px); }
.dpa-nav a.dpa-nav-cta { color: var(--dp-brand-ink, #fff) !important; background: var(--dp-brand); padding: 9px 16px; margin-left: 6px; box-shadow: none; }
.dpa-nav a.dpa-nav-cta:hover { background: var(--dp-brand-dark); color: var(--dp-brand-ink, #fff) !important; }

/* ---------------- Chips ---------------- */
.dpa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dpa-chip {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
	color: var(--dp-brand-dark) !important; background: var(--dp-brand-soft); text-decoration: none;
	padding: 4px 10px; border-radius: 999px;
}

/* ---------------- Artikel ---------------- */
.dpa-main { min-height: 50vh; }
.dpa-article { padding: 36px 0 24px; }
.dpa-crumbs { font-size: 13px; color: var(--dpa-soft); margin-bottom: 18px; }
.dpa-crumbs a { color: var(--dpa-soft) !important; text-decoration: none; }
.dpa-crumbs a:hover { color: var(--dpa-ink) !important; text-decoration: underline; }
.dpa-title { font-family: var(--dpa-sans); color: var(--dpa-ink); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin: 0 0 14px; }
.dpa-lead { font-family: var(--dpa-serif); font-size: 20px; line-height: 1.55; color: #3b475c; margin: 0 0 20px; }
.dpa-meta { display: flex; align-items: center; gap: 12px; padding: 14px 0 6px; border-top: 1px solid var(--dpa-line); margin-top: 8px; }
.dpa-meta img { border-radius: 50%; }
.dpa-meta div { display: flex; flex-direction: column; line-height: 1.35; }
.dpa-meta strong { font-size: 14.5px; }
.dpa-meta span { font-size: 13px; color: var(--dpa-soft); }

.dpa-hero { margin: 22px auto 34px; }
.dpa-hero img { width: 100%; border-radius: var(--dpa-radius); display: block; box-shadow: 0 20px 40px -24px rgba(20, 32, 51, .45); aspect-ratio: 16 / 9; object-fit: cover; }
.dpa-hero figcaption { font-size: 13px; color: var(--dpa-soft); text-align: center; margin-top: 8px; }

.dpa-content { font-family: var(--dpa-serif); font-size: 19px; line-height: 1.8; color: #1e293b; }
.dpa-content > * { margin-top: 0; margin-bottom: 1.15em; }
.dpa-content h2, .dpa-content h3, .dpa-content h4 { font-weight: 700; font-family: var(--dpa-sans); color: var(--dpa-ink); letter-spacing: -.015em; line-height: 1.3; margin-top: 1.8em; margin-bottom: .6em; }
.dpa-content h2 { font-size: 27px; }
.dpa-content h3 { font-size: 22px; }
.dpa-content a { color: var(--dp-brand-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dpa-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--dp-side, var(--dp-brand)); font-style: italic; color: #334155; font-size: 21px; }
.dpa-content img, .dpa-content figure img { border-radius: 12px; }
.dpa-content figure { margin-left: 0; margin-right: 0; }
.dpa-content figcaption { font-family: var(--dpa-sans); font-size: 13px; color: var(--dpa-soft); text-align: center; }
.dpa-content ul, .dpa-content ol { padding-left: 1.3em; }
.dpa-content li { margin-bottom: .4em; }
.dpa-content li::marker { color: var(--dp-brand); }
.dpa-content table { width: 100%; border-collapse: collapse; font-family: var(--dpa-sans); font-size: 15px; }
.dpa-content th, .dpa-content td { border-bottom: 1px solid var(--dpa-line); padding: 8px 10px; text-align: left; }
.dpa-content .wp-block-button__link { background: var(--dp-brand); color: var(--dp-brand-ink, #fff); border-radius: 12px; font-family: var(--dpa-sans); font-weight: 700; }
.dpa-content iframe { max-width: 100%; border-radius: 12px; }

.dpa-article-foot { margin-top: 26px; }
.dpa-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dpa-tags a { font-size: 13.5px; color: var(--dpa-soft) !important; background: #fff; border: 1px solid var(--dpa-line); padding: 4px 11px; border-radius: 999px; text-decoration: none; }
.dpa-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; border-top: 1px solid var(--dpa-line); border-bottom: 1px solid var(--dpa-line); font-size: 14px; }
.dpa-share span { color: var(--dpa-soft); font-weight: 600; margin-right: 4px; }
.dpa-share a, .dpa-share button { font: inherit; font-weight: 600; font-size: 13.5px; color: var(--dpa-ink) !important; background: #fff; border: 1px solid var(--dpa-line); padding: 7px 13px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.dpa-share a:hover, .dpa-share button:hover { border-color: var(--dp-brand); }
.dpa-share .dpa-share-wa { background: #25d366; border-color: #25d366; color: #fff !important; }

/* Ajakan donasi */
.dpa-cta {
	display: grid; grid-template-columns: 240px 1fr; gap: 0; margin: 30px 0 10px;
	background: #fff; border: 1px solid var(--dpa-line); border-radius: 20px; overflow: hidden;
	box-shadow: 0 18px 40px -28px rgba(20, 32, 51, .45);
}
.dpa-cta-img { display: block; height: 100%; }
.dpa-cta-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 190px; }
.dpa-cta-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--dp-side, var(--dp-brand)); }
.dpa-cta:not(:has(.dpa-cta-img)) { grid-template-columns: 1fr; }
.dpa-cta-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dp-side, var(--dp-brand)); }
.dpa-cta h2 { font-weight: 700; font-size: 21px; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.dpa-cta h2 a { color: var(--dpa-ink) !important; text-decoration: none; }
.dpa-progress { height: 9px; background: #eef1f6; border-radius: 99px; overflow: hidden; }
.dpa-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--dp-brand), var(--dp-brand-dark)); border-radius: 99px; }
.dpa-cta-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 14px; color: var(--dpa-soft); }
.dpa-cta-nums strong { font-size: 19px; color: var(--dpa-ink); }
.dpa-cta .dpa-btn { align-self: flex-start; margin-top: 4px; }

/* Program Pilihan */
.dpa-programs { margin: 30px 0 10px; background: #fff; border: 1px solid var(--dpa-line); border-top: 4px solid var(--dp-side, var(--dp-brand)); border-radius: 20px; padding: 22px 22px 16px; box-shadow: 0 18px 40px -30px rgba(20, 32, 51, .45); }
.dpa-programs-head { margin-bottom: 8px; }
.dpa-programs-head h2 { font-family: var(--dpa-sans); font-weight: 800; font-size: 22px; letter-spacing: -.015em; margin: 4px 0 0; color: var(--dpa-ink); }
.dpa-plist { list-style: none; margin: 0; padding: 0; }
.dpa-pitem { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--dpa-line); }
.dpa-pitem:first-child { border-top: 0; }
.dpa-pimg { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--dp-brand-soft); }
.dpa-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dpa-pimg span { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; color: var(--dp-side, var(--dp-brand)); }
.dpa-pbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dpa-pbody h3 { margin: 0; font-family: var(--dpa-sans); font-weight: 700; font-size: 16px; line-height: 1.35; letter-spacing: -.005em; }
.dpa-pbody h3 a { color: var(--dpa-ink) !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dpa-pbody h3 a:hover { color: var(--dp-brand-dark) !important; }
.dpa-pbody .dpa-progress { height: 7px; }
.dpa-pnums { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; font-size: 13px; color: var(--dpa-soft); font-family: var(--dpa-sans); }
.dpa-pnums strong { color: var(--dpa-ink); font-size: 14.5px; }
.dpa-pbtn { padding: 10px 18px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.dpa-pall { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--dp-brand-dark) !important; font-family: var(--dpa-sans); }
.dpa-pall:hover { text-decoration: underline; }

/* ---------------- Kartu & grid ---------------- */
.dpa-grid { display: grid; grid-template-columns: repeat(var(--dpa-cols, 3), minmax(0, 1fr)); gap: 24px; }
.dpa-card { background: #fff; border: 1px solid var(--dpa-line); border-radius: var(--dpa-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.dpa-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(20, 32, 51, .5); }
.dpa-card-img { display: block; aspect-ratio: 16 / 10; background: var(--dp-brand-soft); overflow: hidden; }
.dpa-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dpa-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 46px; font-weight: 800; color: var(--dp-side, var(--dp-brand)); background: linear-gradient(135deg, var(--dp-brand-soft), #fff); }
.dpa-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dpa-card-body .dpa-chip { align-self: flex-start; }
.dpa-card-title { font-weight: 700; font-size: 18px; line-height: 1.35; margin: 0; letter-spacing: -.01em; font-family: var(--dpa-sans); }
.dpa-card-title a { color: var(--dpa-ink) !important; text-decoration: none; }
.dpa-card-title a:hover { color: var(--dp-brand-dark) !important; }
.dpa-card-excerpt { margin: 0; color: var(--dpa-soft); font-size: 14.5px; line-height: 1.55; }
.dpa-card-meta { margin-top: auto; font-size: 12.5px; color: #8a96aa; }

.dpa-featured { grid-column: 1 / -1; }
.dpa-featured .dpa-card { flex-direction: row; }
.dpa-featured .dpa-card-img { flex: 0 0 56%; aspect-ratio: auto; min-height: 320px; }
.dpa-featured .dpa-card-body { padding: 28px 30px; justify-content: center; }
.dpa-featured .dpa-card-title { font-size: 28px; line-height: 1.2; }
.dpa-featured .dpa-card-excerpt { font-size: 16px; }

/* ---------------- Arsip ---------------- */
.dpa-band { background: linear-gradient(135deg, var(--dp-side, var(--dp-brand)) 0%, var(--dp-side-deep, var(--dp-brand-dark)) 100%); color: var(--dp-side-ink, #fff); padding: 46px 0 52px; margin-bottom: 26px; position: relative; overflow: hidden; }
.dpa-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.dpa-band-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.dpa-band h1 { font-weight: 800; color: inherit; margin: 6px 0 0; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.025em; line-height: 1.12; }
.dpa-band-desc { max-width: 640px; opacity: .9; margin-top: 10px; }
.dpa-band-desc p { margin: 0; }
.dpa-catbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 18px; margin-bottom: 6px; scrollbar-width: thin; }
.dpa-catbar a { flex: 0 0 auto; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--dpa-soft) !important; background: #fff; border: 1px solid var(--dpa-line); padding: 8px 14px; border-radius: 999px; }
.dpa-catbar a small { color: #9aa5b6; font-weight: 600; margin-left: 2px; }
.dpa-catbar a.is-active { background: var(--dpa-ink); border-color: var(--dpa-ink); color: #fff !important; }
.dpa-catbar a.is-active small { color: rgba(255, 255, 255, .7); }
.dpa-pagination { display: flex; justify-content: center; gap: 6px; margin: 34px 0 46px; flex-wrap: wrap; }
.dpa-pagination .page-numbers { text-decoration: none; min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--dpa-line); color: var(--dpa-ink) !important; font-weight: 600; font-size: 14px; }
.dpa-pagination .current { background: var(--dp-brand); border-color: var(--dp-brand); color: var(--dp-brand-ink, #fff) !important; }
.dpa-empty { text-align: center; color: var(--dpa-soft); padding: 50px 0; }

.dpa-related { background: #fff; border-top: 1px solid var(--dpa-line); padding: 40px 0 50px; margin-top: 30px; }
.dpa-section-title { font-weight: 800; font-size: 24px; letter-spacing: -.015em; margin: 0 0 20px; }
.dpa-sc-title { font-family: var(--dpa-sans); margin: 0 0 16px; }

/* ---------------- Footer ---------------- */
.dpa-footer { background: var(--dp-side-deep, #0f172a); color: var(--dp-side-ink, #fff); margin-top: 0; }
.dpa-footer-in { display: flex; justify-content: space-between; gap: 30px; padding-top: 40px; padding-bottom: 28px; flex-wrap: wrap; }
.dpa-footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 520px; }
.dpa-footer-brand img { height: 48px; width: auto; background: #fff; padding: 6px; border-radius: 12px; }
.dpa-footer-brand strong { font-size: 18px; font-weight: 800; }
.dpa-footer-brand p { margin: 4px 0 0; opacity: .78; font-size: 14px; }
.dpa-footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.dpa-footer-links a { color: var(--dp-side-ink, #fff) !important; opacity: .85; text-decoration: none; font-weight: 600; font-size: 14px; }
.dpa-footer-links a:hover { opacity: 1; text-decoration: underline; }
.dpa-footer-copy { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 16px; padding-bottom: 22px; font-size: 13px; opacity: .7; }

/* ---------------- Layar sempit ---------------- */
@media (max-width: 960px) {
	.dpa-grid { --dpa-cols: 2 !important; }
	.dpa-featured .dpa-card { flex-direction: column; }
	.dpa-featured .dpa-card-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.dpa-featured .dpa-card-title { font-size: 22px; }
}
@media (max-width: 820px) {
	.dpa-burger { display: block; }
	.dpa-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--dpa-line); box-shadow: 0 16px 30px -20px rgba(20, 32, 51, .4); }
	.dpa-nav.is-open { display: flex; }
	.dpa-nav a { padding: 11px 12px; }
	.dpa-nav a.dpa-nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
	.dpa-header-in { position: relative; }
}
@media (max-width: 640px) {
	.dpa-grid { --dpa-cols: 1 !important; gap: 18px; }
	.dpa-content { font-size: 18px; }
	.dpa-lead { font-size: 18px; }
	.dpa-cta { grid-template-columns: 1fr; }
	.dpa-programs { padding: 18px 16px 12px; border-radius: 16px; }
	.dpa-pitem { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
	.dpa-pimg { width: 64px; height: 64px; }
	.dpa-pbtn { grid-column: 1 / -1; width: 100%; }
	.dpa-cta-img img { min-height: 0; aspect-ratio: 16 / 9; }
	.dpa-hero { padding: 0; }
	.dpa-hero img { border-radius: 0; }
	body.admin-bar .dpa-header { top: 0; }
}
.dpa-card-img, .dpa-pimg { text-decoration: none !important; }
