/* =========================================================
   PP Article Feed — stylesheet
   Kelas di-prefix "pp-af-" agar tidak bentrok dengan tema.
========================================================= */

.pp-af-widget {
	width: 100%;
	max-width: 420px;
	margin: 0 auto 24px;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
	position: relative;
	isolation: isolate;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}
.pp-af-widget *,
.pp-af-widget *::before,
.pp-af-widget *::after {
	box-sizing: inherit;
}

.pp-af-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-size: cover;
	background-position: center;
}

.pp-af-header {
	padding: 26px 22px 60px;
	position: relative;
}

.pp-af-brand {
	font-size: 13px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.3px;
	margin: 0 0 10px;
}

.pp-af-title {
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	margin: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.pp-af-tag {
	display: inline-block;
	margin-top: 10px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.22);
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.3px;
}

.pp-af-body {
	background: #fff;
	margin-top: -34px;
	border-radius: 20px;
	position: relative;
	padding: 6px 0 16px;
}

.pp-af-list {
	max-height: 380px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.pp-af-list::-webkit-scrollbar {
	width: 5px;
}
.pp-af-list::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 4px;
}

.pp-af-item {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: inherit;
}
.pp-af-item:last-child {
	border-bottom: none;
}
.pp-af-item:hover .pp-af-headline {
	text-decoration: underline;
}

.pp-af-text {
	flex: 1;
	min-width: 0;
}

.pp-af-headline {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
	color: #16181d;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pp-af-date {
	font-size: 12.5px;
	color: #8a8f98;
	margin: 0;
}

.pp-af-thumb {
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 12px;
	object-fit: cover;
	background: #e5e7eb;
}

.pp-af-footer {
	padding: 12px 20px 4px;
}

.pp-af-cta {
	display: block;
	text-align: center;
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	border: 1.5px solid var(--pp-af-accent, #7c3aed);
	color: var(--pp-af-accent, #7c3aed);
	font-weight: 700;
	font-size: 14.5px;
	background: #fff;
	text-decoration: none;
	cursor: pointer;
}
.pp-af-cta:hover {
	background: #faf5ff;
	color: var(--pp-af-accent, #7c3aed);
}

.pp-af-empty {
	padding: 24px 20px;
	text-align: center;
	color: #9aa0ab;
	font-size: 13.5px;
}

/* Responsive: layar sangat kecil */
@media (max-width: 380px) {
	.pp-af-title {
		font-size: 20px;
	}
	.pp-af-thumb {
		width: 64px;
		height: 64px;
	}
}
