/* News detail page. Green hero, cover image overlapping a cream reading sheet, green related row.
   Card styles for the related row come from berita.css. */
body.pe-single {
	--pe-green: #163B35;
	--pe-gold: #C4AB74;
	--pe-gold-dark: #9A7B3E; /* gold that holds contrast on cream */
	--pe-cream: #FFF9F0;
	--pe-ink: #2A3A36;
	margin: 0;
	background: var(--pe-green);
	font-family: "Mulish", sans-serif;
}

.pe-post-progress {
	position: fixed;
	inset: 0 0 auto;
	z-index: 200;
	height: 3px;
	background: var(--pe-gold);
	transform: scaleX(0);
	transform-origin: left;
}

/* Elementor wraps the header template in a div as tall as the header, which leaves the
   header's own position: sticky no room; make the wrapper sticky instead. */
.pe-site-header { position: sticky; top: 0; z-index: 100; }

/* ── Hero ── */
.pe-post-hero {
	max-width: 880px;
	margin: 0 auto;
	padding: 56px 24px 0;
	color: #fff;
	text-align: center;
}
.pe-post-crumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	color: rgba(255, 255, 255, .6);
	font-size: 14px;
}
.pe-post-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.pe-post-crumbs a:hover { color: var(--pe-gold); }
.pe-post-crumbs span:last-child:not([aria-hidden]) { color: var(--pe-gold); font-weight: 600; }

body.pe-single .pe-post-title {
	margin: 20px 0 16px;
	color: #fff;
	font-family: inherit;
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.pe-post-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
}

/* ── Cover ── */
.pe-post-cover {
	position: relative;
	z-index: 1;
	max-width: 1040px;
	margin: 40px auto 0;
	padding: 0 24px;
}
body.pe-single .pe-post-cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}

/* ── Reading sheet ── */
.pe-post-sheet {
	margin-top: 48px;
	padding: 64px 24px 88px;
	background: var(--pe-cream);
}
.pe-post-sheet.has-cover {
	margin-top: -140px; /* cover overlaps the top of the sheet */
	padding-top: 204px;
}

.pe-post-content,
.pe-post-footer {
	max-width: 720px;
	margin: 0 auto;
}

.pe-post-content {
	color: var(--pe-ink);
	font-size: 18px;
	line-height: 1.8;
	overflow-wrap: break-word;
}
.pe-post-content > :first-child { margin-top: 0; }
.pe-post-content p { margin: 0 0 1.3em; }
.pe-post-content h2,
.pe-post-content h3,
.pe-post-content h4 {
	margin: 2em 0 .7em;
	color: var(--pe-green);
	font-family: inherit;
	font-weight: 800;
	line-height: 1.3;
	scroll-margin-top: 120px;
}
.pe-post-content h2 { font-size: 28px; }
.pe-post-content h3 { font-size: 22px; }
.pe-post-content h4 { font-size: 19px; }
.pe-post-content strong { color: var(--pe-green); }
.pe-post-content a {
	color: var(--pe-green);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--pe-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.pe-post-content a:hover { color: var(--pe-gold-dark); }

.pe-post-content ul,
.pe-post-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.pe-post-content li { margin-bottom: .6em; padding-left: .3em; }
.pe-post-content li::marker { color: var(--pe-gold-dark); font-weight: 800; }

.pe-post-content blockquote {
	margin: 2em 0;
	padding: 22px 26px;
	border-left: 4px solid var(--pe-gold);
	border-radius: 0 16px 16px 0;
	background: #fff;
	box-shadow: 0 6px 20px rgba(22, 59, 53, .06);
	font-style: normal;
}
.pe-post-content blockquote p:last-child { margin-bottom: 0; }
.pe-post-content blockquote cite { display: block; margin-top: 8px; color: #6B7C78; font-size: 15px; font-style: normal; }

.pe-post-content hr {
	width: 100%;
	height: 1px;
	margin: 2.6em 0;
	border: 0;
	background: rgba(22, 59, 53, .14);
}

.pe-post-content img,
.pe-post-content video,
.pe-post-content iframe { max-width: 100%; height: auto; border-radius: 14px; }
.pe-post-content figure { margin: 2em 0; }
.pe-post-content figcaption { margin-top: 10px; color: #6B7C78; font-size: 14px; text-align: center; }

.pe-post-content table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 16px; }
.pe-post-content th,
.pe-post-content td { padding: 12px 14px; border-bottom: 1px solid rgba(22, 59, 53, .12); text-align: left; }
.pe-post-content th { background: var(--pe-green); color: #fff; }

/* ── Article footer: tags, share, CTA ── */
.pe-post-footer { margin-top: 48px; }
.pe-post-tags,
.pe-post-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
	border-top: 1px solid rgba(22, 59, 53, .12);
}
.pe-post-label {
	margin-right: 6px;
	color: var(--pe-green);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.pe-post-tag {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(196, 171, 116, .18);
	color: #6E5527;
	font-size: 14px;
	font-weight: 600;
}
body.pe-single .pe-post-share__btn {
	padding: 8px 16px;
	border: 1.5px solid rgba(22, 59, 53, .25);
	border-radius: 999px;
	background: transparent;
	color: var(--pe-green);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
body.pe-single .pe-post-share__btn:hover,
body.pe-single .pe-post-share__btn:focus-visible {
	border-color: var(--pe-green);
	background: var(--pe-green);
	color: #fff;
}

.pe-post-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 28px;
	padding: 32px;
	border-radius: 24px;
	background: var(--pe-green) radial-gradient(circle at 100% 0, rgba(196, 171, 116, .28), transparent 55%);
	color: #fff;
}
body.pe-single .pe-post-cta h2 { margin: 0 0 6px; color: #fff; font-family: inherit; font-size: 24px; font-weight: 800; }
.pe-post-cta p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.6; }
body.pe-single .pe-post-cta__btn {
	flex: none;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--pe-gold);
	color: var(--pe-green);
	font-weight: 800;
	text-decoration: none;
	transition: background-color .2s;
}
body.pe-single .pe-post-cta__btn:hover { background: var(--pe-cream); }

/* Comments (theme's comments.php / WordPress comment form) */
.pe-post-footer #comments,
.pe-post-footer #respond { margin-top: 48px; color: var(--pe-ink); font-size: 15px; }
body.pe-single .pe-post-footer .comments-title,
body.pe-single .pe-post-footer .comment-reply-title { margin: 0 0 8px; color: var(--pe-green); font-family: inherit; font-size: 24px; font-weight: 800; }
.pe-post-footer #comments a,
.pe-post-footer #respond a { color: var(--pe-green); font-weight: 600; text-decoration-color: var(--pe-gold); }
.pe-post-footer #respond label { display: block; margin: 16px 0 6px; color: var(--pe-green); font-weight: 700; }
body.pe-single .pe-post-footer #respond :is(textarea, input[type="text"], input[type="email"], input[type="url"]) {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid rgba(22, 59, 53, .2);
	border-radius: 12px;
	background: #fff;
	color: var(--pe-ink);
	font-family: inherit;
	font-size: 16px;
}
body.pe-single .pe-post-footer #respond :is(textarea, input):focus { border-color: var(--pe-gold); outline: 3px solid rgba(196, 171, 116, .3); }
body.pe-single .pe-post-footer #respond input[type="submit"] {
	margin-top: 8px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--pe-green);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}
body.pe-single .pe-post-footer #respond input[type="submit"]:hover { background: var(--pe-gold); color: var(--pe-green); }

/* ── Related ── */
.pe-post-related {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 24px 24px;
}
.pe-post-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
}
body.pe-single .pe-post-related__head h2 { margin: 0; color: #fff; font-family: inherit; font-size: 32px; font-weight: 800; }
.pe-post-related__head a { color: var(--pe-gold); font-weight: 700; text-decoration: none; }
.pe-post-related__head a:hover { color: #fff; }
.pe-berita__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.pe-berita__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.pe-post-hero { padding-top: 40px; }
	.pe-post-cover { margin-top: 28px; padding: 0 16px; }
	body.pe-single .pe-post-cover img { border-radius: 16px; }
	.pe-post-sheet { padding: 48px 20px 64px; }
	.pe-post-sheet.has-cover { margin-top: -72px; padding-top: 112px; }
	.pe-post-content { font-size: 17px; }
	.pe-post-content h2 { font-size: 24px; }
	.pe-post-content h3 { font-size: 20px; }
	.pe-post-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
	.pe-post-related { padding-top: 56px; }
	.pe-berita__grid--3 { grid-template-columns: minmax(0, 1fr); }
}
