/* =========================================================
   POSTS / BERITA — file terpisah (tidak menyentuh site.css)
   ========================================================= */

/* ==================== INDEX (LIST) ==================== */

/* Hero section khusus halaman berita */
.page-hero--media {
	padding: 120px 0 80px;
	background: linear-gradient(120deg, #062636, #057494);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.page-hero--media::after {
	content: "";
	position: absolute;
	right: -100px;
	top: -100px;
	width: 400px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(25, 182, 216, .25) 0%, transparent 70%);
	pointer-events: none;
}
.page-hero--media .hero-meta {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
	font-size: .88rem;
	color: #b5d8e4;
}
.page-hero--media .hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.page-hero--media .hero-meta span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #19b6d8;
	display: inline-block;
}

/* Search & filter bar */
.posts-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}
.posts-toolbar .result-count {
	color: #627684;
	font-size: .9rem;
	font-weight: 600;
}
.posts-toolbar .result-count b {
	color: #0a1e2b;
	font-weight: 800;
}

/* Modern news grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

/* Featured (first item) */
.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dce7ec;
	border-radius: 18px;
	overflow: hidden;
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
	position: relative;
}
.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(0, 65, 85, .12);
	border-color: transparent;
}

.post-card .post-thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(145deg, #0b5368, #19b6d8);
}
.post-card .post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
.post-card:hover .post-thumb img {
	transform: scale(1.08);
}

.post-card .post-cat {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	background: rgba(255, 255, 255, .95);
	color: #05212b;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	z-index: 2;
}

.post-card .post-body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card .post-date {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #7a93a0;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.post-card h3 {
	font-size: 1.15rem;
	line-height: 1.4;
	margin-bottom: 10px;
	color: #0a1e2b;
	letter-spacing: -.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-card:hover h3 { color: #0089b0; }

.post-card p {
	color: #5b6f7a;
	font-size: .9rem;
	line-height: 1.6;
	flex: 1;
	margin-bottom: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card .post-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #0089b0;
	font-size: .88rem;
	transition: gap .25s ease;
	align-self: flex-start;
}
.post-card:hover .post-more { gap: 10px; }

/* Featured card (item pertama jadi besar) */
.posts-grid .post-card.is-featured {
	grid-column: span 2;
}
.posts-grid .post-card.is-featured .post-thumb {
	aspect-ratio: 16 / 8;
}
.posts-grid .post-card.is-featured h3 {
	font-size: 1.55rem;
	-webkit-line-clamp: 3;
}
.posts-grid .post-card.is-featured p {
	font-size: .95rem;
	-webkit-line-clamp: 3;
}

/* Empty state */
.posts-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 24px;
	background: #f7fbfc;
	border: 1px dashed #cfe0e6;
	border-radius: 18px;
}
.posts-empty b {
	display: block;
	font-size: 1.15rem;
	color: #0a1e2b;
	margin-bottom: 6px;
}
.posts-empty span { color: #627684; font-size: .9rem; }

/* Pagination modern */
.pagination-wrap {
	margin-top: 50px;
	display: flex;
	justify-content: center;
}
.pagination-wrap nav > div:first-child { display: none; } /* hide "Showing X of Y" */
.pagination-wrap nav > div:last-child { display: flex; gap: 6px; align-items: center; }

.pagination-wrap a,
.pagination-wrap span[aria-current="page"] > span,
.pagination-wrap span[aria-disabled="true"] > span {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	font-weight: 700;
	font-size: .88rem;
	border: 1.5px solid #dce7ec;
	background: #fff;
	color: #0a1e2b;
	transition: all .2s ease;
	text-decoration: none;
}
.pagination-wrap a:hover {
	border-color: #19b6d8;
	color: #0089b0;
	transform: translateY(-2px);
}
.pagination-wrap span[aria-current="page"] > span {
	background: #061a26;
	border-color: #061a26;
	color: #fff;
}
.pagination-wrap span[aria-disabled="true"] > span {
	opacity: .4;
	cursor: not-allowed;
}

/* ==================== SHOW (DETAIL) ==================== */

/* Article hero */
.article-hero--modern {
	padding: 100px 0 60px;
	background: #f2f8fa;
	position: relative;
	overflow: hidden;
}
.article-hero--modern::before {
	content: "";
	position: absolute;
	left: -80px;
	top: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(25, 182, 216, .12) 0%, transparent 70%);
	pointer-events: none;
}
.article-hero--modern .narrow {
	position: relative;
	z-index: 1;
}
.article-hero--modern .eyebrow {
	display: inline-block;
	padding: 5px 14px;
	background: #fff;
	border: 1px solid #dce7ec;
	border-radius: 999px;
	font-size: .7rem;
	letter-spacing: .1em;
	color: #0089b0;
	margin-bottom: 16px;
}
.article-hero--modern h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.15;
	color: #071d29;
	letter-spacing: -.02em;
	margin-bottom: 20px;
}
.article-meta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	color: #627684;
	font-size: .88rem;
	align-items: center;
}
.article-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.article-meta .meta-item svg {
	color: #0089b0;
	flex-shrink: 0;
}
.article-meta .meta-divider {
	width: 1px;
	height: 16px;
	background: #dce7ec;
}

/* Article body */
.article-body {
	padding: 60px 0 80px;
	background: #fff;
}
.article-body .container.narrow {
	max-width: 780px;
}

.article-cover {
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 20px 60px rgba(0, 65, 85, .10);
}
.article-cover img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

.article-content {
	font-size: 1.08rem;
	line-height: 1.85;
	color: #2a404e;
}
.article-content p {
	margin-bottom: 1.4em;
}
.article-content h2 {
	font-size: 1.6rem;
	color: #071d29;
	margin: 2em 0 .8em;
	letter-spacing: -.01em;
}
.article-content h3 {
	font-size: 1.3rem;
	color: #071d29;
	margin: 1.6em 0 .6em;
}
.article-content ul,
.article-content ol {
	margin: 1em 0 1.4em 1.4em;
}
.article-content li { margin-bottom: .5em; }
.article-content a {
	color: #0089b0;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.article-content a:hover { color: #19b6d8; }
.article-content blockquote {
	border-left: 4px solid #19b6d8;
	padding: 8px 0 8px 20px;
	margin: 1.6em 0;
	font-style: italic;
	color: #4a5f6b;
	background: #f7fbfc;
	border-radius: 0 10px 10px 0;
}
.article-content img {
	border-radius: 14px;
	margin: 1.6em 0;
	height: auto;
}

/* Share & back */
.article-footer {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #dce7ec;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.article-share {
	display: flex;
	gap: 10px;
	align-items: center;
}
.article-share span {
	font-size: .82rem;
	font-weight: 700;
	color: #627684;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-right: 6px;
}
.article-share a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #f2f8fa;
	color: #0a1e2b;
	border: 1px solid #dce7ec;
	transition: all .25s ease;
}
.article-share a:hover {
	background: #0089b0;
	color: #fff;
	border-color: transparent;
	transform: translateY(-3px);
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #0089b0;
	font-size: .92rem;
	transition: gap .25s ease;
}
.back-link:hover { gap: 12px; }

/* Related posts */
.related-section {
	padding: 70px 0 90px;
	background: #f7fbfc;
	border-top: 1px solid #e6eef2;
}
.related-section h2 {
	font-size: 1.6rem;
	color: #071d29;
	margin-bottom: 28px;
	letter-spacing: -.01em;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.posts-grid .post-card.is-featured { grid-column: span 2; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.posts-grid,
	.related-grid { grid-template-columns: 1fr; }
	.posts-grid .post-card.is-featured { grid-column: auto; }
	.posts-grid .post-card.is-featured .post-thumb { aspect-ratio: 16 / 10; }
	.posts-grid .post-card.is-featured h3 { font-size: 1.15rem; -webkit-line-clamp: 2; }

	.article-hero--modern { padding: 70px 0 40px; }
	.article-body { padding: 40px 0 60px; }
	.article-content { font-size: 1rem; }
	.article-footer { flex-direction: column; align-items: flex-start; }
}