/* front-page.css — layout magazine homepage bersunah.com (child theme).
   Palet: #1b4332 / #2d6a4f · heading font: Lora (editorial serif, var --fb-font-head di style.css) */

.fb-wrap {
	--fb-ink: #1d1d1f;
	--fb-muted: #6e6e73;
	--fb-line: #e8e8ed;
	--fb-accent: #1b4332;
	--fb-accent-2: #2d6a4f;
	--fb-card: #ffffff;
	--fb-bg: #ffffff;
	--fb-shadow-sm: 0 1px 2px rgba(16, 24, 21, 0.04), 0 1px 3px rgba(16, 24, 21, 0.06);
	--fb-shadow-md: 0 4px 10px rgba(16, 24, 21, 0.06), 0 12px 28px rgba(16, 24, 21, 0.08);
	/* Isi penuh .ast-container induk (max-w 1240, pad 0 20) supaya tepi kiri/kanan
	   konten homepage sejajar persis dengan logo header (QA #4). */
	max-width: none;
	margin: 0;
	padding: 32px 0 56px;
	color: var(--fb-ink);
	font-size: 16px;
	line-height: 1.6;
}

.fb-wrap * { box-sizing: border-box; }
.fb-wrap a { color: inherit; text-decoration: none; }
.fb-wrap a:hover .fb-card-title,
.fb-wrap a:hover .fb-flash-title,
.fb-wrap a:hover .fb-pop-title { color: var(--fb-accent-2); }
.fb-wrap img { display: block; max-width: 100%; height: auto; }

/* ---- 1. HERO ---- */
.fb-hero { margin-bottom: 48px; }
.fb-band { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.fb-band-title {
	flex: 1 1 420px;
	margin: 0;
	font-family: var(--fb-font-head);
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var(--fb-ink);
}
.fb-band-rule { flex: 1 1 100%; margin: 0; border: 0; border-top: 3px solid var(--fb-accent); }
.fb-band-aside { flex: 0 1 340px; display: flex; flex-direction: column; gap: 14px; }
.fb-band-tag { margin: 0; color: var(--fb-muted); font-size: 15px; }
.fb-btn {
	align-self: flex-start;
	padding: 9px 18px;
	border: 1px solid var(--fb-line);
	border-radius: 999px;
	background: var(--fb-card);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.fb-btn:hover { border-color: var(--fb-accent); color: var(--fb-accent); box-shadow: var(--fb-shadow-sm); }

.fb-hero-row {
	display: grid;
	grid-template-columns: 1fr 1.15fr 1fr;
	gap: 20px;
	align-items: stretch;
}
.fb-lead-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 8px 4px;
}
.fb-badge {
	align-self: flex-start;
	padding: 4px 12px;
	border: 1px solid #cde3d8;
	border-radius: 999px;
	background: #edf5f1;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-accent);
}
.fb-lead-title { margin: 0; font-family: var(--fb-font-head); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; }
.fb-card-title { margin: 0; font-family: var(--fb-font-head); font-size: 18px; font-weight: 700; line-height: 1.32; transition: color 0.2s ease; }
.fb-excerpt { margin: 0; color: var(--fb-muted); font-size: 14.5px; line-height: 1.6; }
.fb-date { color: var(--fb-muted); font-size: 12.5px; }

.fb-lead-media {
	border-radius: 16px;
	overflow: hidden;
	background: var(--fb-bg);
	min-height: 260px;
	box-shadow: var(--fb-shadow-md);
}
.fb-lead-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fb-side-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--fb-line);
	border-radius: 16px;
	background: var(--fb-card);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-side-card:hover { transform: translateY(-3px); box-shadow: var(--fb-shadow-md); }
.fb-card-img-link { border-radius: 12px; overflow: hidden; }
.fb-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; }
.fb-card-img-link:hover .fb-card-img { transform: scale(1.04); }

/* ---- 2. FEATURED GRID ---- */
.fb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 48px;
}
.fb-grid-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--fb-line);
	border-radius: 16px;
	background: var(--fb-card);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fb-grid-card:hover { transform: translateY(-3px); box-shadow: var(--fb-shadow-md); }
.fb-grid-body { display: flex; flex-direction: column; gap: 8px; }

/* ---- kolom utama + sidebar ---- */
.fb-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	align-items: start;
	margin-bottom: 48px;
}

/* ---- 3. BREAKING NEWS ---- */
.fb-section-title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	font-family: var(--fb-font-head);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.fb-section-title span { position: relative; padding-left: 16px; }
.fb-section-title span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: var(--fb-accent);
}
.fb-section-title::after { content: ""; flex: 1; border-top: 1px solid var(--fb-line); }
.fb-breaking { display: flex; flex-direction: column; }
.fb-row {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--fb-line);
	transition: background-color 0.2s ease;
}
.fb-row:first-of-type { padding-top: 0; }
.fb-row:hover { background-color: #fafafb; }
.fb-row-img-link { border-radius: 14px; overflow: hidden; }
.fb-row-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; }
.fb-row-img-link:hover .fb-row-img { transform: scale(1.04); }
.fb-row-body { display: flex; flex-direction: column; gap: 8px; }
.fb-more {
	align-self: center;
	margin-top: 24px;
	padding: 10px 22px;
	border: 1px solid var(--fb-line);
	border-radius: 999px;
	background: var(--fb-card);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.fb-more:hover { border-color: var(--fb-accent); color: var(--fb-accent); box-shadow: var(--fb-shadow-sm); }

/* ---- 4. SIDEBAR ---- */
.fb-sidebar { display: flex; flex-direction: column; gap: 28px; }
.fb-widget {
	padding: 16px;
	border: 1px solid var(--fb-line);
	border-radius: 16px;
	background: var(--fb-card);
	box-shadow: var(--fb-shadow-sm);
}
.fb-widget-title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fb-muted);
}
.fb-flash-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fb-line);
}
.fb-flash-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fb-flash-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fb-flash-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; transition: color 0.2s ease; }
.fb-flash-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }

.fb-pop-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fb-line);
}
.fb-pop-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fb-pop-rank {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 1px solid var(--fb-line);
	border-radius: 50%;
	background: var(--fb-card);
	font-size: 13px;
	font-weight: 800;
	color: var(--fb-accent);
}
.fb-pop-text { display: flex; flex-direction: column; gap: 3px; }
.fb-pop-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; transition: color 0.2s ease; }
.fb-pop-meta { font-size: 12px; color: var(--fb-muted); }

.fb-follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-follow-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--fb-line);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.fb-follow-item:hover { border-color: var(--fb-accent); color: var(--fb-accent); }
.fb-follow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fb-accent-2); flex: 0 0 auto; }

.fb-trend-list { display: flex; flex-direction: column; gap: 10px; }
.fb-trend-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--fb-line);
	border-radius: 12px;
	background: var(--fb-card);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fb-trend-item:hover { border-color: var(--fb-accent); box-shadow: var(--fb-shadow-sm); }
.fb-trend-name { font-size: 15px; font-weight: 700; }
.fb-trend-count { font-size: 12.5px; color: var(--fb-muted); white-space: nowrap; }

/* ---- 5. JELAJAHI KATEGORI (dulu placeholder "Ruang iklan") ---- */
.fb-browse { grid-column: 1 / -1; }
.fb-browse-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.fb-browse-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 18px;
	border: 1px solid var(--fb-line);
	border-radius: 16px;
	background: var(--fb-card);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.fb-browse-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--fb-shadow-md);
	border-color: var(--fb-accent-2);
}
.fb-browse-name { font-family: var(--fb-font-head); font-size: 17px; font-weight: 700; color: var(--fb-ink); }
.fb-browse-count { font-size: 12.5px; color: var(--fb-muted); }

/* ---- 6. NEWSLETTER ---- */
.fb-newsletter {
	padding: 48px 24px;
	border: 1px solid var(--fb-line);
	border-radius: 20px;
	background: var(--fb-card);
	box-shadow: var(--fb-shadow-sm);
	text-align: center;
}
.fb-nl-title { margin: 0 0 8px; font-family: var(--fb-font-head); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.fb-nl-sub { margin: 0 0 24px; color: var(--fb-muted); font-size: 15px; }
.fb-nl-form { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fb-nl-input {
	width: min(360px, 100%);
	padding: 13px 18px;
	border: 1px solid var(--fb-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--fb-ink);
}
.fb-nl-input:focus-visible { outline: 2px solid var(--fb-accent-2); outline-offset: 2px; }
.fb-nl-btn {
	padding: 13px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--fb-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}
.fb-nl-btn:hover { background: var(--fb-accent-2); box-shadow: var(--fb-shadow-sm); }

/* ---- placeholder post tanpa featured image (QA #5) ---- */
.fb-noimg {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	background-color: #f1f5f3;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%239db8ab' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><circle cx='8.5' cy='10' r='1.5'/><path d='M21 16l-5-5-4 4-2-2-5 5'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
}
.fb-flash-thumb.fb-noimg {
	width: 72px;
	height: 54px;
	aspect-ratio: auto;
	border-radius: 10px;
}

/* ---- aksesibilitas: focus-visible di seluruh elemen interaktif homepage ---- */
.fb-wrap a:focus-visible,
.fb-wrap button:focus-visible,
.fb-wrap input:focus-visible {
	outline: 2px solid var(--fb-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---- responsif ---- */
@media (max-width: 980px) {
	.fb-wrap { padding: 32px 24px 56px; }
	.fb-hero-row { grid-template-columns: 1fr 1fr; }
	.fb-lead-media { grid-column: 1 / -1; order: -1; }
	.fb-grid { grid-template-columns: 1fr 1fr; }
	.fb-columns { grid-template-columns: 1fr; }
	.fb-row { grid-template-columns: 180px minmax(0, 1fr); }
	.fb-browse-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.fb-hero-row, .fb-grid { grid-template-columns: 1fr; }
	.fb-row { grid-template-columns: 1fr; }
	.fb-follow-grid { grid-template-columns: 1fr; }
	.fb-browse-grid { grid-template-columns: 1fr; }
}
