/**
 * Storefront — Baca Juga (kartu rujukan di tengah artikel).
 *
 * Selector di-scope ke .stfr-baca-juga. Warna/radius bisa ditimpa lewat
 * CSS variable inline dari widget Baca Juga.
 */

.stfr-baca-juga {
	--stfr-bj-accent: #D4B038;
	--stfr-bj-label: #8A6D1C;
	--stfr-bj-title: #1D3B32;
	--stfr-bj-text: #55645D;
	--stfr-bj-bg: #F4F8F4;
	--stfr-bj-radius: 20px;

	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 32px 0;
	clear: both;
	-webkit-font-smoothing: antialiased;
}

.stfr-baca-juga *,
.stfr-baca-juga *::before,
.stfr-baca-juga *::after {
	box-sizing: border-box;
}

.stfr-baca-juga__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 28px 24px 32px;
	background: linear-gradient(135deg, var(--stfr-bj-bg), #FFFCF3);
	border: 1px solid rgba(29, 59, 50, .1);
	border-left: 0;
	border-radius: var(--stfr-bj-radius);
	box-shadow: 0 8px 24px rgba(29, 59, 50, .06);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

/* Garis aksen kiri mengikuti lengkung sudut kartu */
.stfr-baca-juga__card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 10px;
	background: var(--stfr-bj-accent);
}

.stfr-baca-juga__card:hover,
.stfr-baca-juga__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(29, 59, 50, .1);
	text-decoration: none;
}

.stfr-baca-juga__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.stfr-baca-juga__label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--stfr-bj-label);
}

.stfr-baca-juga__title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--stfr-bj-title);
}

.stfr-baca-juga__desc {
	font-size: 16px;
	line-height: 1.6;
	color: var(--stfr-bj-text);
}

.stfr-baca-juga__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--stfr-bj-accent);
	color: var(--stfr-bj-title);
	transition: transform .2s ease;
}

.stfr-baca-juga__card:hover .stfr-baca-juga__arrow,
.stfr-baca-juga__card:focus-visible .stfr-baca-juga__arrow {
	transform: translateX(4px);
}

@media (max-width: 600px) {
	.stfr-baca-juga__card {
		gap: 14px;
		padding: 18px 18px 18px 24px;
	}

	.stfr-baca-juga__title {
		font-size: 18px;
	}

	.stfr-baca-juga__desc {
		font-size: 14px;
	}

	.stfr-baca-juga__arrow {
		width: 40px;
		height: 40px;
	}

	.stfr-baca-juga__arrow svg {
		width: 16px;
		height: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stfr-baca-juga__card,
	.stfr-baca-juga__arrow {
		transition: none;
	}
}
