/* Single posts, pages, the testimony form and the 404 page. */

/* ---------- Post header ---------- */
.entry-header { padding-top: 20px; }

.entry-cats { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 8px; }
.entry-cats .cat-chip {
	padding: 4px 8px 5px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	margin-bottom: 7px;
	font-family: var(--f-ui);
	font-size: 13px;
	line-height: 20px;
	color: var(--c-crumb);
}
.entry-meta__updated strong { color: #000; font-weight: 700; }

.entry-title {
	max-width: 80%;
	margin: 8px 0;
	font-family: var(--f-ui);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	word-wrap: break-word;
}
@media (max-width: 1140px) {
	.entry-title { max-width: 100%; font-size: 30px; }
}
@media (max-width: 1018px) { .entry-title { font-size: 28px; } }
@media (max-width: 767px) { .entry-title { font-size: 24px; } }

.entry-subtitle {
	max-width: 70%;
	margin: 0 0 8px;
	color: #444;
	font-size: 15px;
	line-height: 1.5;
}
@media (max-width: 767px) { .entry-subtitle { max-width: 100%; } }

.entry-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-top: 12px;
}
.entry-author {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--f-ui);
	font-size: 13px;
}
.entry-author__avatar img,
.author-box__avatar img { border-radius: 50%; }
.entry-author__avatar img { width: 30px; height: 30px; }
.entry-author__name { color: #000; font-weight: 700; }
.entry-author__name:hover { color: var(--c-accent); }
@media (max-width: 767px) {
	.entry-byline { flex-direction: column; align-items: flex-start; }
}

.entry-sep {
	height: 0;
	margin: 20px 0;
	border: 0;
	border-top: 1px dashed #e0e0e0;
}

.layout-sidebar > .entry-main { margin-top: 22px; min-width: 0; }
@media (max-width: 767px) { .layout-sidebar > .entry-main { margin-top: 2px; } }

/* ---------- Share buttons ---------- */
.share { display: flex; flex-wrap: wrap; gap: 4px; }
.share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 14px;
	background: #516eab;
	color: #fff;
	font-family: var(--f-ui);
	font-size: 12px;
	line-height: 1;
}
.share__btn:hover { color: #fff; opacity: 0.85; }
.share__btn .icon { font-size: 16px; }
.share__btn--facebook { background: #516eab; }
.share__btn--twitter { background: #29c5f6; }
.share__btn--whatsapp { background: #7bbf6a; }
.share__btn--telegram { background: #40b3e0; }
@media (max-width: 767px) {
	.share__btn { padding: 0 12px; }
}

/* ---------- Featured media ---------- */
.entry-media { margin: 0 0 20px; }
.entry-media a { display: block; }
.entry-media img { width: 100%; height: auto; }
.entry-media__caption {
	margin-top: 6px;
	color: #444;
	font-size: 11px;
	font-style: italic;
	line-height: 17px;
}

.post-video {
	position: relative;
	margin-bottom: 20px;
	aspect-ratio: 16 / 9;
	background: #000;
}
.post-video iframe,
.post-video video,
.post-video embed,
.post-video object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Top ad sits on a grey band, as on the old template. */
.entry-main .ad--single_top { padding: 6px 0 20px; background: var(--c-panel); }
@media (max-width: 767px) {
	.entry-main .ad--single_top { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

/* ---------- Entry content (Newspaper .td-post-content / .td-page-content) ---------- */
.entry-content {
	margin-top: 21px;
	padding-bottom: 16px;
	color: #222;
	font-family: Verdana, BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 15px;
	line-height: 1.74;
	overflow-wrap: break-word;
}
.entry-content::after { content: ''; display: table; clear: both; }
@media (max-width: 767px) { .entry-content { margin-top: 16px; } }

.entry-content p { margin: 0 0 26px; }
.entry-content p:empty { display: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { display: block; height: auto; margin-bottom: 21px; }
.entry-content figure { margin: 0 0 26px; }
.entry-content figure img { margin-bottom: 0; }
.entry-content embed,
.entry-content iframe,
.entry-content object { max-width: 100% !important; }
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; width: 100%; height: auto; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: var(--f-head);
	font-weight: 400;
	color: #111;
	margin: 6px 0;
}
.entry-content h1 { font-size: 32px; line-height: 40px; margin: 33px 0 23px; }
.entry-content h2 { font-size: 27px; line-height: 38px; margin: 30px 0 20px; }
.entry-content h3 { font-size: 22px; line-height: 30px; margin: 27px 0 17px; }
.entry-content h4 { font-size: 19px; line-height: 29px; margin: 24px 0 14px; }
.entry-content h5 { font-size: 17px; line-height: 25px; margin: 21px 0 11px; }
.entry-content h6 { font-size: 16px; line-height: 24px; margin: 21px 0 11px; }
.entry-content > :first-child { margin-top: 0; }

.entry-content ul,
.entry-content ol { margin: 0 0 26px; padding: 0; }
.entry-content li { margin: 0 0 10px 21px; line-height: inherit; }
.entry-content li:last-child { margin-bottom: 0; }
.entry-content li > ul,
.entry-content li > ol { margin-bottom: 0; }

/* Alignment */
.entry-content .aligncenter { display: block; clear: both; margin: 6px auto; text-align: center; }
.entry-content img.aligncenter { margin-bottom: 21px; }
.entry-content .alignleft { float: left; max-width: 50%; margin: 6px 24px 6px 0; }
.entry-content .alignright { float: right; max-width: 50%; margin: 6px 0 6px 24px; }
.entry-content .alignnone { display: inline-block; margin: 0 5px; }
@media (max-width: 1018px) {
	.entry-content .alignleft, .entry-content .alignright { max-width: 220px; }
}
@media (max-width: 767px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 auto 21px;
		text-align: center;
	}
	.entry-content .alignnone { margin: 0 10px 0 0; }
}

/* Captions */
.entry-content .wp-caption { max-width: 100%; text-align: center; }
.entry-content .wp-caption img { max-width: 100%; margin-bottom: 0; }
.entry-content .wp-caption-text,
.entry-content figcaption,
.entry-content .wp-element-caption {
	margin: 6px 0 26px;
	color: #444;
	font-size: 11px;
	font-style: italic;
	line-height: 17px;
	text-align: left;
}

/* Quotes: big centred pull quote, like the old theme. */
.entry-content blockquote {
	position: relative;
	margin: 40px 5% 38px;
	padding: 0;
	border: 0;
	font-style: italic;
	text-align: center;
}
.entry-content blockquote p {
	margin-bottom: 0;
	color: var(--c-accent);
	font-family: var(--f-ui);
	font-size: 32px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 11px; }
@media (max-width: 1018px) { .entry-content blockquote p { font-size: 24px; } }
@media (max-width: 767px) {
	.entry-content blockquote { margin: 20px 3% 18px; }
	.entry-content blockquote p { font-size: 20px; }
}

/* Tables */
.entry-content table { width: 100%; margin-bottom: 21px; border-collapse: collapse; border-spacing: 0; }
.entry-content th,
.entry-content td { padding: 2px 8px; border: 1px solid #ededed; }
.entry-content th { text-align: left; }
.entry-content pre { overflow: auto; margin: 24px 0; padding: 4px 10px; background: #f1f1f1; }
.entry-content code { padding: 2px 6px; background: #f1f1f1; }
.entry-content pre code { padding: 0; background: none; }

.page-links { margin: 0 0 26px; font-family: var(--f-ui); font-size: 13px; }

/* "Baca Juga" related posts (template-parts/read-also.php) */
.entry-content .read-also { margin: 26px 0; }
.entry-content .read-also__title {
	margin: 0 0 10px;
	font-family: var(--f-ui);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-navy);
}
.entry-content .read-also__list { margin: 0; padding-left: 20px; }
.entry-content .read-also__list li { margin: 0 0 8px; }
.entry-content .read-also__list a { font-weight: 700; }

/* Footnotes (mu-plugin darsya-core/footnotes.php) */
.footnote-ref { font-size: 0.75em; line-height: 0; }
.footnote-ref a { padding: 0 2px; }
.footnotes { margin-top: 30px; font-size: 13px; line-height: 1.6; color: #444; }
.footnotes hr { border: 0; border-top: 1px solid var(--c-divider); margin-bottom: 16px; }
.footnotes ol { padding-left: 20px; }
.footnote-back { text-decoration: none; }

/* ---------- Tags, share, author box ---------- */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 10px;
	font-family: var(--f-ui);
	font-size: 11px;
}
.entry-tags__label {
	padding: 6px 12px;
	color: #000;
	font-weight: 700;
	text-transform: uppercase;
}
.entry-tags__tag {
	padding: 6px 12px;
	background: #f2f2f2;
	color: #111;
	font-weight: 400;
}
.entry-tags__tag:hover { background: var(--c-accent); color: #fff; }
@media (max-width: 767px) { .entry-tags { justify-content: flex-start; } }

.entry-share-bottom { margin: 30px 0; }
.entry-share-bottom .share { justify-content: center; }

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 21px;
	margin-bottom: 30px;
	padding: 21px;
	border: 1px dashed #ededed;
	font-family: var(--f-ui);
}
.author-box__avatar { flex: none; }
.author-box__avatar img { width: 96px; height: 96px; }
.author-box__name { display: block; margin: 7px 0 8px; color: #222; font-size: 18px; font-weight: 700; line-height: 21px; }
.author-box__name:hover { color: var(--c-accent); }
.author-box__bio { font-size: 13px; line-height: 21px; }
@media (max-width: 1018px) {
	.author-box { gap: 15px; padding: 15px; }
	.author-box__avatar img { width: 60px; height: 60px; }
	.author-box__name { margin: 0 0 6px; }
}
@media (max-width: 767px) {
	.author-box { flex-direction: column; align-items: center; text-align: center; }
	.author-box__name { margin-top: 0; }
}

/* ---------- Sidebar of single posts ---------- */
.sidebar--single .ad--single_sidebar {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--c-divider);
}
.sidebar--single .sidebar__block { margin-bottom: 30px; }
.sidebar--single .sidebar__block .block-title { margin-bottom: 20px; }
.sidebar--single .cards--list .card--side { align-items: flex-start; }
.sidebar--single .cards--list .card--side .card__title { margin-bottom: 4px; }
@media (max-width: 767px) { .sidebar--single { margin-top: 30px; } }

/* ---------- Related news ---------- */
.related { margin-top: 30px; }
.related .cards--5 { margin-bottom: 30px; }
.related__ad { padding: 20px 0 0; background: var(--c-panel); }
.related__ad .ad { margin-bottom: 0; padding-bottom: 20px; }
.related__ad:not(:has(.ad)) { display: none; }
@media (min-width: 768px) and (max-width: 1018px) {
	.related .card__body > .cat-chip { display: none; }
}
@media (max-width: 767px) {
	.related .cards--5 { gap: 10px; }
	.related .card { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--c-divider); }
	.related .card:last-child { padding-bottom: 0; border-bottom: 0; }
	.related .card__image { flex: 0 0 30%; }
	.related .card__media { padding-top: 80% !important; }
	.related .card__body { flex: 1; min-width: 0; padding-top: 0; }
}

/* ---------- Pages ---------- */
.page-wrap { padding-top: 20px; }
.page-title {
	margin: 0 0 19px;
	color: #111;
	font-family: var(--f-head);
	font-size: 30px;
	font-weight: 400;
	line-height: 38px;
}
@media (max-width: 1018px) { .page-title { font-size: 26px; line-height: 34px; } }
@media (max-width: 767px) { .page-title { font-size: 24px; line-height: 32px; } }
.layout-full > .page-main { min-width: 0; }
.page-main > .entry-content { margin-top: 0; padding-bottom: 26px; }
.layout-sidebar > .page-main { min-width: 0; }

/* ACF front-end form (testimony page) */
.entry-content--form .acf-form-fields { margin: 0; padding: 0; list-style: none; }
.entry-content--form .acf-field { margin: 0 0 20px; padding: 0; border: 0; }
.entry-content--form .acf-label label { display: block; margin-bottom: 6px; font-family: var(--f-ui); font-weight: 700; }
.entry-content--form .acf-label .description { color: var(--c-muted); font-size: 12px; font-weight: 400; }
.entry-content--form .acf-required { color: var(--c-red); }
.entry-content--form input[type="text"],
.entry-content--form input[type="email"],
.entry-content--form input[type="url"],
.entry-content--form input[type="number"],
.entry-content--form textarea,
.entry-content--form select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--c-border);
	background: #fff;
	color: var(--c-text);
	font: inherit;
}
.entry-content--form input:focus,
.entry-content--form textarea:focus { border-color: var(--c-accent); outline: 0; }
.entry-content--form .acf-form-submit { margin-top: 10px; }
.entry-content--form .acf-button,
.entry-content--form input[type="submit"] {
	display: inline-block;
	padding: 10px 24px;
	border: 0;
	background: var(--c-navy);
	color: #fff;
	font-family: var(--f-ui);
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}
.entry-content--form .acf-button:hover,
.entry-content--form input[type="submit"]:hover { background: var(--c-accent); }
.entry-content--form .acf-spinner { margin-left: 10px; }
.entry-content--form .acf-notice { margin-bottom: 20px; padding: 10px 14px; background: var(--c-panel); }

/* ---------- 404 ---------- */
.not-found { margin: 80px 0 120px; text-align: center; }
.not-found__title {
	max-width: 68%;
	margin: 0 auto 20px;
	color: var(--c-navy);
	font-family: var(--f-ui);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.3;
}
.not-found__code { margin: 0 0 20px; color: #000; font-size: 16px; line-height: 1.4; }
.btn--large {
	padding: 12px 40px;
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
}
.btn--large:hover { background: var(--c-accent); }
@media (max-width: 1018px) {
	.not-found { margin: 40px 0 80px; }
}
@media (max-width: 767px) {
	.not-found { margin: 20px 0 60px; }
	.not-found__title { max-width: 100%; font-size: 24px; }
}
