.post-container {
	position: relative;
	font-family: var(--font-body);
}

.post-header {
	margin-bottom: 2rem;
}

.post-breadcrumb {
	display: block;
	margin-top: 1.5rem;
	margin-bottom: 1.25rem;
}

.post-featured-image__caption,
.breadcrumb-list {
    font-family: var(--font-body);
}

.breadcrumb-list {
	display: flex;
	align-items: center;
	font-size: .875rem;
	color: var(--color-primary);
	list-style: none;
	padding: 0;
	margin: 0;
	height: 24px;
	font-family: var(--font-body);
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	position: relative;
	height: 100%;
}

.breadcrumb-item.home-item {
	margin-right: 0rem;
}

.breadcrumb-item.home-item svg {
	color: var(--color-primary);
	display: block;
	margin-top: 2px;
}

.breadcrumb-item a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
	padding-right: 1.5rem;
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	text-transform: uppercase;
}

html[theme="darkmode"] .breadcrumb-item a, html[theme="darkmode"] .breadcrumb-item:not(:last-child) a::after, html[theme="darkmode"] .post-title, html[theme="darkmode"] .post-excerpt p, html[theme="darkmode"] .post-content, html[theme="darkmode"] .section-title, html[theme="darkmode"] .latest-news-list__item a, html[theme="darkmode"] .related-tags-list__item a, html[theme="darkmode"] .post-author-info__desc a, html[theme="darkmode"] .share-item, html[theme="darkmode"] .related-posts-title, html[theme="darkmode"]  {
    color: var(--color-text-inverse);
}

.breadcrumb-item.category-item a {
	text-transform: uppercase;
	letter-spacing: .5px;
	font-size: .9rem;
	margin-top: 2px;
	align-items: center;
}

.breadcrumb-item:not(:last-child) a::after {
	content: ">";
	position: absolute;
	right: .5rem;
	top: 55%;
	transform: translateY(-50%);
	color: var(--color-primary);
	font-size: .975rem;
	font-weight: 600;
}

.breadcrumb-list .breadcrumb-item.active,
.breadcrumb-list .breadcrumb-item:last-child {
    display: none;
}

/* 2. Hapus pemisah (>) dari item yang SEKARANG menjadi terakhir */
.breadcrumb-list .breadcrumb-item:nth-last-child(2) a::after {
    display: none;
}

.breadcrumb-last-visible a::after {
	display: none !important;
}

.post-title {
	font-family: var(--font-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: .45rem;
	color: #1a202c;
}

.post-excerpt p {
	color: #4b5563;
	font-family: var(--font-body);
}

.post-meta {
	display: block;
	margin-bottom: 1rem;
	font-size: .75rem;
	color: #6b7280;
	font-family: var(--font-body);
}

.post-meta__date span {
	margin-right: .5rem;
}

.post-header-meta-flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-family: var(--font-body);
}

.post-tags__link {
	display: inline-block;
	background-color: var(--color-primary);
	color: #fff;
	border-radius: 9999px;
	padding: .25rem 1rem;
	font-size: .875rem;
	font-weight: 500;
	text-transform: capitalize;
	text-decoration: none;
	font-family: var(--font-body);
}

.post-featured-image__picture::before {
	content: "";
	height: var(--ornament-paper);
	background-color: rgb(var(--color-white));
	width: calc(100% - var(--ornament-paper));
	position: absolute;
	z-index: 1;
	bottom: -1px;
	left: 0;
	right: var(--ornament-paper);
}

.post-featured-image__picture::after {
	content: "";
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: var(--ornament-paper) 0 0 var(--ornament-paper);
	border-color: transparent transparent transparent rgb(var(--color-primary-rgb));
	transform: rotate(0deg);
	position: absolute;
	right: 0;
	bottom: -1px;
	z-index: 2;
}

.post-share {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--color-primary);
}

.share-item {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease, color .2s ease;
	color: var(--color-primary);
}

.share-item:hover {
	transform: translateY(-2px);
	color: #0f3e99;
}

.share-item--link {
	position: relative;
}

.share-item-copied {
	position: absolute;
	bottom: -28px;
	right: -8px;
	font-size: .75rem;
	font-weight: 600;
	background-color: rgba(26, 86, 219, .1);
	color: var(--color-primary);
	border-radius: 9999px;
	padding: 4px 8px;
	display: none;
	white-space: nowrap;
}

.post-featured-image {
	position: relative;
	margin-left: -1rem;
	margin-right: -1rem;
	overflow: visible;
}

.post-featured-image__picture {
    display: block;
    position: relative;
    /* Hapus properti height atau padding-top lain yang mungkin ada */
    height: auto !important; 
    
    /* KUNCI: Gunakan rasio dari atribut gambar asli Anda untuk kepastian */
    /* Berdasarkan inspect elemen Anda: 1200 / 675 = 1.777, yaitu 16:9 */
    aspect-ratio: 1200 / 675;
    
    background-color: #f0f0f0;
    overflow: hidden;
}

.post-featured-image__picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.post-featured-image__caption, .wp-block-image :where(figcaption) {
	color: #565656;
	position: relative;
	z-index: 3;
	font-size: .75rem;
	line-height: 1rem;
	padding-left: 1rem;
	padding-right: 1.5rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	max-height: calc(1rem * 2);
}

.wp-block-image :where(figcaption) {
    padding-left: 0rem;
    padding-top: 0.5rem;
}

.wp-block-image img {
    border-radius: 5px;
}

/* Styling untuk Auto-Split Infinite Scroll */

.content-section {
    position: relative;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}


.section-content {
    line-height: 1.7;
    font-size: 16px;
}

/* Iklan antar sections */
.ad-between-sections {
    margin: 30px auto;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-width: 728px;
    position: relative;
}

.ad-between-sections::before {
    content: "Advertisement";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* Visual indicator untuk section aktif (opsional) */
.content-section.active {
    /* Optional: highlight active section */
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.content-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 480px) {
    .content-section {
        margin-bottom: 25px;
    }
    
    .section-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Print styles */
@media print {
    .ad-between-sections {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

@supports not ((-webkit-line-clamp: 2) and (-webkit-box-orient: vertical)) {
	.post-featured-image__caption {
		max-height: 2rem;
		text-overflow: ellipsis;
	}
}

.post-content {
	line-height: 1.75;
	font-family: var(--font-body);
	color: #000;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
	margin-top: 1em;
	margin-bottom: 1em;
	font-family: var(--font-heading);
	font-weight: 700;
	color: #1a202c;
	line-height: 2.35rem;
}

.post-content p {
	margin-bottom: 1.5rem;
	line-height: 1.5rem;
}

.post-excerpt p {
	line-height: 1.5rem;
	margin-top: .7rem;
}

.post-content a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-content a:hover {
	text-decoration: none;
}

.post-footer {
	margin-top: 2.5rem;
	font-family: var(--font-body);
}

.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	font-family: var(--font-heading);
	margin-bottom: 1rem;
	color: #1a202c;
}

.latest-news-list {
	list-style: none;
	padding-left: .5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.latest-news-list__item a {
	display: block;
	position: relative;
	padding-left: 1rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: #1a202c;
	font-family: var(--font-body);
}

.latest-news-list__item a::before {
	content: "";
	position: absolute;
	left: 0;
	transform: translateY(50%);
	width: 10px;
	height: 10px;
	background-color: var(--color-primary);
	border-radius: 50%;
}

.latest-news-list__item a:hover {
	color: var(--color-primary);
}

.related-tags-list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin-bottom: 1rem;
}

.related-tags-list__item a {
	display: block;
	background-color: rgb(230 242 254);
	border-radius: 9999px;
	padding: .25rem 1rem;
	margin-right: .5rem;
	margin-bottom: .5rem;
	font-weight: 500;
	font-size: .875rem;
	text-decoration: none;
	color: var(--color-primary);
	font-family: var(--font-body);
	transition: background-color .2s ease;
}

.related-tags-list__item a:hover {
	background-color: rgba(26, 86, 219, .2);
}

.post-author-box {
	border-bottom: 1px solid #e5e7eb;
	margin-top: 2rem;
	margin-bottom: 2.5rem;
	position: relative;
	padding-bottom: 1.5rem;
}

.post-author-box__heading {
	display: block;
	margin-bottom: 1rem;
	position: relative;
	line-height: 1;
}

.post-author-box__heading span {
	background-color: #fff;
	position: relative;
	display: inline-block;
	font-weight: 600;
	padding-right: .75rem;
	z-index: 1;
	font-family: var(--font-body);
}

.post-author-box__heading::before {
	content: "";
	width: 100%;
	border-top: 1px solid #e5e7eb;
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 0;
}

.post-author-box__container {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.post-author-info {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	flex: 1;
	margin-bottom: 0;
	font-family: var(--font-body);
}

.post-author-info__avatar {
	width: 2.5rem;
	height: 2.5rem;
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	background-color: #e5e7eb;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.post-author-info__avatar img {
	position: absolute;
	inset: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.post-author-info__avatar .initial-avatar {
	font-weight: bold;
	font-size: 1.2rem;
	color: #4b5563;
}

.post-author-info__desc {
	flex: 1;
	padding-left: .75rem;
	font-weight: 600;
	min-width: 0;
	margin-top: 2px;
}

.post-author-info__desc .label {
	display: block;
	font-size: .75rem;
	font-weight: 400;
	color: #6b7280;
}

.post-author-info__desc a, .post-author-info__desc span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: -3px;
}

.post-author-info__desc a:hover {
	color: var(--color-primary);
}

.site-main {
	padding: 0rem 0;
}


.related-posts-title {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: #1a202c;
}

.related-posts-container {
	display: flex;
	flex-direction: column;
	margin-left: -1rem;
	margin-right: -1rem;
}

.related-post-content .related-post-title {
	margin-top: -5;
	margin-bottom: 8px;
	order: 1;
}

.related-post-item {
	margin-bottom: 1.5rem;
	margin-left: 1rem;
	margin-right: 1rem;
	display: block;
}

.related-post-content .related-post-excerpt {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: .875rem;
	line-height: 1.5;
	color: #666;
	order: 2;
}

.related-post-content .related-post-meta {
	margin-top: -4px;
	order: 3;
}

.related-post-content h4, .related-post-content p {
	margin: 0;
}

.related-post-image {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	margin-bottom: 1.5rem;
	background-color: #f0f0f0;
}

.related-post-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-post-content {
	display: flex;
	flex-direction: column;
	padding: 4px;
	line-height: 1.625;
	padding-left: 1rem;
	padding-right: 1rem;
	position: relative;
}

.related-post-title {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
	display: block;
	font-family: var(--font-heading);
}

.related-post-title a {
	color: inherit;
	text-decoration: none;
}

.related-post-title a:hover {
	color: var(--color-primary);
}

.related-post-excerpt {
	font-size: .875rem;
	line-height: 1.25rem;
	margin-bottom: .5rem;
	color: #4b5563;
}

.related-post-meta {
	display: flex;
	column-gap: .5rem;
}

.related-post-category {
	font-size: .75rem;
	line-height: 1rem;
	font-weight: 500;
	text-transform: capitalize;
	color: var(--color-primary);
	text-decoration: none;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.related-post-category:hover {
	text-decoration: underline;
}


@media (min-width: 768px) {
	.post-author-box__container {
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
	}
	
	.post-author-info {
		margin-right: 2rem;
		flex: 0 1 auto;
		min-width: 0;
		max-width: calc(50% - 1rem);
	}
	
	.post-author-info:last-child {
		margin-right: 0;
	}
}

@media (max-width: 768px) {
    .content-area {
		flex: 1;
		min-width: 0;
	}
	
	    .content-section {
        margin-bottom: 30px;
    }
    
    .ad-between-sections {
        margin: 20px auto;
        padding: 15px;
    }
    
    .section-content {
        font-size: 15px;
    }
	
	.sidebar {
		width: 300px;
		flex-shrink: 0;
		display: none;
	}
	
	#secondary.sidebar, .sidebar {
		position: relative;
	}
	
	.related-post-image {
		position: relative;
		aspect-ratio: 2/1;
		overflow: hidden;
		margin-left: -16px;
		margin-right: -16px;
		margin-bottom: 1.5rem;
	}
	
	.related-post-content {
		padding-left: 0rem;
		padding-right: 0rem;
	}
	
	.post-title {
		font-family: var(--font-heading);
		font-size: 22px;
		font-weight: 700;
		line-height: 1.625;
		margin-bottom: .45rem;
		color: #1a202c;
	}
	
	li.breadcrumb-item.breadcrumb-category {
	    margin-top: 4px;
	}
	
	section#zonamerdeka_recommendations-5 {
        display: none;
    }
}

@media (min-width: 1024px) {
	.related-posts-container {
		flex-direction: row;
		flex-wrap: wrap;
		margin-left: 0;
		margin-right: 0;
	}
	
	.related-post-item {
		width: calc(50% - .75rem);
		display: inline-block;
		margin-left: 0;
		margin-right: 1.5rem;
	}
	
	.related-post-item:nth-child(even) {
		margin-right: 0;
	}
	
	.related-post-content {
		padding-left: 10px;
		padding-right: 10px;
	}
	
	.post-author-box__container {
		flex-direction: row;
		align-items: flex-start;
	}
	
	.post-featured-image {
		margin-left: 0;
		margin-right: 0;
	}
}

@supports not (gap: 2rem) {
	.content-area {
		margin-right: 2rem;
	}
}

@media (prefers-color-scheme: dark) {
	.share-item-copied {
		color: #303542;
	}
}

/* Tampilkan Wrapper di mobile dan beri posisi sebagai acuan */
@media (max-width: 767px) {
    .in-article-ad-sticky-wrapper {
        display: block;
        position: relative;
        height: 800px;
        background-color: rgba(0, 0, 0, 0.03);
        margin: 2rem 0;
        padding: 1rem 0; 
    }

    .in-article-ad.ad-middle-content {
        position: -webkit-sticky;
        position: sticky;
        top: 10px; 
        max-width: 400px;
        margin: 0 auto;
    }
}