/*
Theme Name: Suka News
Theme URI: https://suka-web.com
Author: Suka Web
Description: Tema WordPress sebagai fondasi website berita.
Version: 0.1.0
Text Domain: suka-news
*/

/*
 * CSS visual akan kita kembangkan pada tahap berikutnya.
 * Untuk sekarang, aturan minimum ini hanya menjaga konten tetap nyaman dibaca.
 */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	color: #1f2937;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 99999;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	border-radius: 5px;
	background: #fff;
	color: var(--color-base);
	font-weight: 700;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
	outline-offset: 3px;
}

#primary-content:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

:root {
	--color-base: #0f172a;
	--color-accent: #b91c1c;
	--site-width: 1050px;
}

.site-main {
	width: min(var(--site-width), calc(100% - 2rem));
	margin-inline: auto;
}

.site-footer {
	margin-top: 4rem;
	padding-block: 3rem;
	background: var(--color-base);
	color: #fff;
}

.footer-container {
	display: grid;
	grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.7fr);
	gap: 4rem;
	width: min(var(--site-width), calc(100% - 2rem));
	margin-inline: auto;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 2rem;
}

.footer-logo .custom-logo {
	max-width: 240px;
	max-height: 90px;
}

.footer-logo--white .custom-logo {
	filter: brightness(0) invert(1);
}

.footer-description {
	margin: 0;
	color: #cbd5e1;
	font-size: 0.9rem;
}

.footer-copyright {
	margin: auto 0 0;
	color: #cbd5e1;
	font-size: 0.875rem;
}

.footer-copyright a {
	color: #fff;
	font-weight: inherit;
	text-decoration: none;
	text-underline-offset: 3px;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
	color: #fff;
	text-decoration: underline;
}

.footer-content {
	display: grid;
	gap: 1.5rem;
}

.footer-newsletter {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 1fr);
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
}

.footer-newsletter h2,
.footer-newsletter p {
	margin: 0;
}

.footer-newsletter h2 {
	font-size: 1.1rem;
}

.footer-newsletter p {
	margin-top: 0.25rem;
	color: #cbd5e1;
	font-size: 0.85rem;
}

.newsletter-form {
	display: flex;
	padding: 4px;
	border-radius: 999px;
	background: #fff;
}

.newsletter-form input {
	min-width: 0;
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
}

.newsletter-form button {
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.footer-social {
	display: flex;
	gap: 0.65rem;
}

.footer-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #fff;
	transition: background 180ms ease, border-color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
	border-color: var(--color-accent);
	background: var(--color-accent);
}

.footer-social svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.footer-social svg .icon-fill {
	fill: currentColor;
	stroke: none;
}

.secondary-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 1rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	list-style: none;
}

.secondary-menu a {
	color: #cbd5e1;
	font-size: 0.875rem;
	text-decoration: none;
}

.secondary-menu a:hover,
.secondary-menu a:focus {
	color: #fff;
}

.header-container {
	width: min(var(--site-width), calc(100% - 2rem));
	margin-inline: auto;
}

.header-top {
	border-bottom: 1px solid #e5e7eb;
	background: #f8fafc;
}

.header-top__inner {
	display: grid;
	grid-template-columns: 1fr minmax(280px, 1.35fr) 1fr;
	align-items: center;
	gap: 2rem;
	min-height: 64px;
}

.header-date {
	margin: 0;
	font-size: 0.875rem;
	color: #475569;
}

.header-search .search-form {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 4px;
	border: 1px solid #dbe2ea;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.header-search .search-form:focus-within {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 16%, transparent);
}

.header-search .search-form__label {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}

.header-search .search-form__leading-icon {
	position: absolute;
	left: 0.85rem;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #94a3b8;
	stroke-linecap: round;
	stroke-width: 1.8;
	pointer-events: none;
}

.header-search .search-field {
	min-width: 0;
	width: 100%;
	padding: 0.65rem 0.75rem 0.65rem 2.55rem;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--color-base);
	font: inherit;
}

.header-search .search-field::placeholder {
	color: #94a3b8;
}

.header-search .search-field::-webkit-search-cancel-button {
	cursor: pointer;
}

.header-search .search-submit {
	display: inline-grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
	cursor: pointer;
	transition: filter 180ms ease, transform 180ms ease;
}

.header-search .search-submit:hover {
	filter: brightness(0.9);
	transform: translateY(-1px);
}

.header-search .search-submit:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
	outline-offset: 2px;
}

.header-search .search-submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.header-links {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}

.header-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: var(--color-base);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.header-button--primary {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.header-branding__inner {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr);
	align-items: center;
	gap: 2rem;
	min-height: 150px;
	padding-block: 1.25rem;
}

.site-logo,
.header-ad {
	min-height: 90px;
}

.site-logo {
	display: flex;
	align-items: center;
}

.custom-logo {
	display: block;
	max-height: 100px;
	width: auto;
}

.header-ad {
	display: grid;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

.header-ad__image {
	display: block;
	width: 100%;
	height: auto;
}

.header-ad__item {
	width: 100%;
}

.header-navigation {
	position: relative;
	z-index: 1000;
	border-bottom: 3px solid var(--color-accent);
	background: var(--color-base);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.header-navigation.is-fixed {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
}

.admin-bar .header-navigation.is-fixed {
	top: 32px;
}

.primary-navigation {
	display: flex;
	align-items: stretch;
}

.primary-menu-panel {
	flex: 1;
}

.menu-toggle {
	display: none;
}

.submenu-toggle {
	display: none;
}

.primary-menu {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	flex: 1;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li {
	display: flex;
	align-items: stretch;
	min-height: 46px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-menu a {
	display: flex;
	align-items: center;
	padding: 0.75rem 0.9rem;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus {
	background: var(--color-accent);
}

.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a,
.primary-menu > .current_page_item > a {
	background: var(--color-accent);
	color: #fff;
}

.primary-menu .menu-item-has-children {
	position: relative;
}

.primary-menu .menu-item-has-children > a::after {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 0.4rem;
	border-top: 3px solid var(--color-accent);
	border-radius: 0 0 7px 7px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.primary-menu .sub-menu a {
	padding: 0.65rem 0.75rem;
	border: 0;
	border-radius: 4px;
	color: var(--color-base);
	font-size: 0.85rem;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
	background: color-mix(in srgb, var(--color-accent) 10%, white);
	color: var(--color-accent);
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 782px) {
	.admin-bar .header-navigation.is-fixed {
		top: 46px;
	}
}

@media (max-width: 780px) {
	.header-top__inner,
	.header-branding__inner {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.header-top__inner {
		padding-block: 1rem;
	}

	.header-links {
		justify-content: flex-start;
	}

	.header-branding__inner {
		min-height: 0;
	}

	.site-logo,
	.header-ad {
		min-height: 0;
		justify-content: flex-start;
	}

	.footer-container,
	.footer-newsletter {
		grid-template-columns: 1fr;
	}

	.footer-container {
		gap: 2rem;
	}
}

.post-card {
	padding-block: 1.5rem;
	border-bottom: 1px solid #d1d5db;
}

.post-card__title {
	margin-top: 0;
}

img {
	max-width: 100%;
	height: auto;
}

/* Halaman depan dan sidebar global. */
.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 30fr) minmax(0, 45fr) minmax(220px, 25fr);
	align-items: start;
	gap: 2rem;
	padding-block: 2.5rem;
}

.section-title,
.sidebar-widget__title {
	display: flex;
	align-items: center;
	min-height: 48px;
	box-sizing: border-box;
	margin: 0 0 1.25rem;
	padding: 0.7rem 0.85rem;
	border-left: 4px solid var(--color-accent);
	border-radius: 4px;
	background: var(--color-base);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1.2;
}

.news-feed {
	padding: 0 1rem 1rem;
	border-radius: 8px;
	background: var(--color-base);
}

.news-feed .section-title {
	margin-inline: -1rem;
	border-radius: 4px 4px 0 0;
}

.trending-list,
.news-feed__list {
	display: grid;
}

.trending-news,
.site-sidebar {
	position: sticky;
	top: 1rem;
}

.trending-item {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 0.75rem;
	padding-block: 1rem;
	border-bottom: 1px solid #e2e8f0;
}

.trending-item__number {
	color: #cbd5e1;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
}

.news-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 0.45rem;
}

.news-category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--color-accent);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.news-category:hover,
.news-category:focus {
	filter: brightness(0.9);
	color: #fff;
}

.trending-item__title,
.feed-card__title {
	margin: 0;
	line-height: 1.35;
}

.trending-item__title {
	font-size: 1rem;
}

.trending-item a,
.feed-card a {
	color: var(--color-base);
	text-decoration: none;
}

.trending-item a:hover,
.feed-card a:hover {
	color: var(--color-accent);
}

.trending-item a.news-category,
.feed-card a.news-category,
.trending-item a.news-category:hover,
.feed-card a.news-category:hover {
	color: #fff;
}

.trending-item time,
.feed-card time {
	color: #64748b;
	font-size: 0.75rem;
}

.news-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	color: #64748b;
	font-size: 0.75rem;
}

.news-views {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.news-views svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.feed-card {
	display: grid;
	grid-template-columns: minmax(130px, 38%) 1fr;
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feed-card__thumbnail img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	object-fit: cover;
}

.feed-card__title {
	font-size: 1.05rem;
}

.news-feed .feed-card a {
	color: #fff;
}

.news-feed .feed-card a:hover {
	color: var(--color-accent);
}

.news-feed .feed-card time,
.news-feed .feed-card__excerpt,
.news-feed .news-meta {
	color: #cbd5e1;
}

.feed-card__excerpt {
	margin-top: 0.5rem;
	color: #475569;
	font-size: 0.875rem;
}

.feed-card__excerpt p {
	margin: 0;
}

.feed-ad {
	display: grid;
	gap: 0.75rem;
	margin-block: 1rem;
	padding: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
}

.feed-ad img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.load-more-news {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease;
}

.load-more-news:hover,
.load-more-news:focus-visible {
	border-color: var(--color-accent);
	background: var(--color-accent);
}

.load-more-news:disabled {
	cursor: wait;
	opacity: 0.7;
}

.site-sidebar {
	min-width: 0;
}

.sidebar-widget {
	margin-bottom: 1.5rem;
	padding: 1.25rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.sidebar-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-categories {
	padding: 0;
	overflow: hidden;
}

.sidebar-categories .sidebar-widget__title {
	margin: 0;
	border-radius: 4px 4px 0 0;
}

.sidebar-categories .category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	padding: 1rem;
}

.category-list a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	font-size: 0.8rem;
	font-weight: 600;
	transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-list a:hover,
.category-list a:focus {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.category-toggle {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: var(--color-accent);
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.category-toggle:hover,
.category-toggle:focus-visible {
	text-decoration: underline;
}

.sidebar-ads {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.sidebar-ad img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.selected-news {
	padding: 0;
	overflow: hidden;
}

.selected-news .sidebar-widget__title {
	margin: 0;
	border-radius: 4px 4px 0 0;
}

.selected-news__item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.75rem;
	padding: 0.85rem;
	border-bottom: 1px solid #e2e8f0;
}

.selected-news__item:last-child {
	border-bottom: 0;
}

.selected-news__thumbnail img {
	display: block;
	width: 72px;
	height: 64px;
	border-radius: 5px;
	object-fit: cover;
}

.selected-news__item h3 {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.35;
}

.selected-news__item time {
	color: #64748b;
	font-size: 0.7rem;
}

.selected-news__item .news-meta {
	font-size: 0.7rem;
}

.sidebar-widget li + li {
	margin-top: 0.65rem;
}

.sidebar-widget a {
	color: var(--color-base);
	text-decoration: none;
}

.sidebar-widget a:hover {
	color: var(--color-accent);
}

/* Keep category bubble labels readable over the accent background. */
.news-feed .feed-card a.news-category:hover,
.news-feed .feed-card a.news-category:focus,
.sidebar-widget .category-list a:hover,
.sidebar-widget .category-list a:focus {
	color: #fff;
}

.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
	gap: 2rem;
	padding-block: 2.5rem;
}

@media (max-width: 900px) {
	.header-top {
		display: none;
	}

	.header-navigation.is-fixed {
		position: relative;
		top: auto;
	}

	.header-navigation .header-container {
		position: relative;
	}

	.primary-navigation {
		align-items: center;
		min-height: 56px;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0.7rem 0.25rem;
		border: 0;
		background: transparent;
		color: #fff;
		font: inherit;
		font-size: 0.9rem;
		font-weight: 700;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.menu-toggle__icon {
		display: grid;
		gap: 5px;
		width: 24px;
	}

	.menu-toggle__icon span {
		display: block;
		width: 100%;
		height: 2px;
		border-radius: 999px;
		background: currentColor;
		transition: transform 180ms ease, opacity 180ms ease;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
		transform: translateY(7px) rotate(45deg);
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
		transform: translateY(-7px) rotate(-45deg);
	}

	.primary-menu-panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 0.5rem;
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 0 0 8px 8px;
		background: var(--color-base);
		box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
	}

	.primary-menu-panel.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.primary-menu {
		display: grid;
		grid-template-columns: 1fr;
	}

	.primary-menu > li {
		display: block;
		min-height: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.primary-menu > li:last-child {
		border-bottom: 0;
	}

	.primary-menu a {
		justify-content: space-between;
		padding: 0.8rem;
		border: 0;
		border-radius: 5px;
	}

	.primary-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 0.45rem 0.8rem;
		padding: 0 0 0 0.6rem;
		border: 0;
		border-left: 2px solid var(--color-accent);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.primary-menu .submenu-open > .sub-menu {
		display: grid;
	}

	.primary-menu .menu-item-has-children > a::after {
		display: none;
	}

	.submenu-toggle {
		position: absolute;
		top: 5px;
		right: 5px;
		display: grid;
		place-items: center;
		width: 38px;
		height: 38px;
		border: 0;
		border-radius: 5px;
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
		cursor: pointer;
	}

	.submenu-toggle span {
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 180ms ease;
	}

	.submenu-toggle[aria-expanded="true"] span {
		transform: translateY(2px) rotate(225deg);
	}

	.primary-menu .menu-item-has-children > a {
		padding-right: 3.2rem;
	}

	.primary-menu .sub-menu a {
		color: #cbd5e1;
	}

	.home-layout {
		grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	}

	.trending-news {
		grid-column: 1 / -1;
	}

	.trending-news,
	.site-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 600px) {
	.trending-news {
		display: none;
	}

	.home-layout {
		padding-top: 1.5rem;
	}
}

@media (max-width: 780px) {
	.home-layout,
	.content-with-sidebar {
		grid-template-columns: 1fr;
	}

	.trending-news {
		grid-column: auto;
	}

	.feed-card {
		grid-template-columns: minmax(110px, 35%) 1fr;
	}
}

@media (max-width: 480px) {
	.feed-card {
		grid-template-columns: 1fr;
	}
}

/* Halaman detail artikel. */
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
	align-items: start;
	gap: 2.5rem;
	padding-block: 2.5rem;
}

.single-article {
	min-width: 0;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	color: #64748b;
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
}

.breadcrumbs a {
	color: var(--color-accent);
	text-decoration: none;
}

.breadcrumbs span[aria-current="page"] {
	overflow: hidden;
	text-overflow: ellipsis;
}

.article-header {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.article-title {
	margin: 0;
	color: var(--color-base);
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.article-byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

.article-author {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.article-author img {
	border-radius: 50%;
}

.article-author span,
.article-author strong {
	display: block;
}

.article-author span {
	color: #64748b;
	font-size: 0.72rem;
}

.article-author strong {
	color: var(--color-base);
	font-size: 0.9rem;
}

.article-featured-image {
	margin: 2rem 0;
}

.article-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.article-featured-image figcaption {
	margin-top: 0.6rem;
	color: #64748b;
	font-size: 0.76rem;
	line-height: 1.5;
}

.article-content {
	color: #1e293b;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.08rem;
	line-height: 1.9;
}

.article-content > * {
	max-width: 760px;
	margin-inline: auto;
}

.article-content p {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3 {
	color: var(--color-base);
	font-family: Arial, sans-serif;
	line-height: 1.25;
}

.article-content img,
.article-content figure,
.article-content .wp-block-image {
	max-width: 100%;
}

.article-content a {
	color: var(--color-accent);
	text-underline-offset: 3px;
}

.inline-related-news {
	margin-block: 2rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	overflow: hidden;
	font-family: Arial, sans-serif;
}

.inline-related-news > h2 {
	margin: 0;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--color-accent);
	background: var(--color-base);
	color: #fff;
	font-size: 1rem;
}

.inline-related-news__list {
	display: grid;
	padding: 1rem;
}

.inline-related-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1rem;
	align-items: center;
}

.inline-related-card__image img {
	display: block;
	width: 120px;
	height: 82px;
	border-radius: 6px;
	object-fit: cover;
}

.inline-related-card h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

.inline-related-card h3 a {
	color: var(--color-base);
	text-decoration: none;
}

.inline-related-card h3 a:hover {
	color: var(--color-accent);
}

.article-footer {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.article-tags,
.article-share__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.article-tags > span,
.article-share > strong {
	color: var(--color-base);
	font-size: 0.85rem;
}

.article-tags a,
.article-share__links a {
	border: 1px solid #e2e8f0;
	color: var(--color-base);
	text-decoration: none;
}

.article-tags a {
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}

.article-share__links a {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
}

.article-share__links svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.article-share__links .share-icon-fill {
	fill: currentColor;
	stroke: none;
}

.article-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.article-tags a:hover,
.article-share__links a:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.post-navigation-modern {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 2rem;
}

.post-navigation-modern > div {
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.post-navigation-modern > div:last-child {
	text-align: right;
}

.post-navigation-modern span,
.post-navigation-modern a {
	display: block;
}

.post-navigation-modern span {
	margin-bottom: 0.25rem;
	color: #64748b;
	font-size: 0.7rem;
	text-transform: uppercase;
}

.post-navigation-modern a {
	color: var(--color-base);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
}

.post-navigation-modern a:hover {
	color: var(--color-accent);
}

.related-news {
	margin-top: 2.5rem;
}

.related-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.related-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	margin-bottom: 0.75rem;
	border-radius: 7px;
	object-fit: cover;
}

.related-card h3 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.4;
}

.related-card h3 a {
	color: var(--color-base);
	text-decoration: none;
}

.related-card h3 a:hover {
	color: var(--color-accent);
}

@media (max-width: 900px) {
	.single-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.single-layout {
		padding-block: 1.5rem;
	}

	.article-title {
		font-size: 2rem;
	}

	.article-byline,
	.article-share {
		align-items: flex-start;
		flex-direction: column;
	}

	.article-content {
		font-size: 1rem;
		line-height: 1.8;
	}

	.post-navigation-modern,
	.related-news__grid {
		grid-template-columns: 1fr;
	}

	.post-navigation-modern > div:last-child {
		text-align: left;
	}

	.inline-related-news__list {
		grid-template-columns: 1fr;
	}
}

/* Halaman archive. */
.archive-page {
	padding-block: 2.5rem;
}

.archive-header {
	position: relative;
	margin-bottom: 2rem;
	padding: 2rem;
	border-radius: 12px;
	background: var(--color-base);
	color: #fff;
	overflow: hidden;
}

.archive-header::after {
	position: absolute;
	top: -70px;
	right: -50px;
	width: 220px;
	height: 220px;
	border: 35px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.archive-breadcrumbs {
	position: relative;
	z-index: 1;
	margin-bottom: 1.5rem;
	color: #cbd5e1;
}

.archive-breadcrumbs a {
	color: #fff;
}

.archive-header__eyebrow {
	position: relative;
	z-index: 1;
	margin: 0 0 0.35rem;
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.archive-header h1 {
	position: relative;
	z-index: 1;
	max-width: 780px;
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.1;
}

.archive-description {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin-top: 0.8rem;
	color: #cbd5e1;
}

.archive-description p {
	margin: 0;
}

.archive-count {
	position: relative;
	z-index: 1;
	margin: 1rem 0 0;
	color: #94a3b8;
	font-size: 0.8rem;
}

.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
	align-items: start;
	gap: 2.5rem;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.archive-card {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.archive-card:hover {
	border-color: color-mix(in srgb, var(--color-accent) 35%, #e2e8f0);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
	transform: translateY(-3px);
}

.archive-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.archive-card__content {
	padding: 1.15rem;
}

.archive-card__title {
	margin: 0 0 0.6rem;
	font-size: 1.15rem;
	line-height: 1.4;
}

.archive-card__title a {
	color: var(--color-base);
	text-decoration: none;
}

.archive-card__title a:hover {
	color: var(--color-accent);
}

.archive-card__excerpt {
	display: -webkit-box;
	margin-top: 0.8rem;
	color: #475569;
	font-size: 0.88rem;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.archive-card__excerpt p {
	margin: 0;
}

.archive-card__more {
	display: inline-flex;
	gap: 0.35rem;
	margin-top: 1rem;
	color: var(--color-accent);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.archive-card__more span {
	transition: transform 180ms ease;
}

.archive-card__more:hover span {
	transform: translateX(3px);
}

.archive-page .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2rem;
}

.archive-page .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 0.7rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: var(--color-base);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.archive-page .page-numbers.current,
.archive-page a.page-numbers:hover {
	border-color: var(--color-accent);
	background: var(--color-accent);
	color: #fff;
}

.archive-empty {
	padding: 3rem 1.5rem;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	text-align: center;
}

.archive-empty h2,
.archive-empty p {
	margin: 0;
}

.archive-empty p {
	margin-top: 0.5rem;
	color: #64748b;
}

@media (max-width: 900px) {
	.archive-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.archive-page {
		padding-block: 1.5rem;
	}

	.archive-header {
		padding: 1.4rem;
	}

	.archive-grid {
		grid-template-columns: 1fr;
	}
}

/* Halaman statis, pencarian, 404, dan komentar. */
.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
	align-items: start;
	gap: 2.5rem;
	padding-block: 2.5rem;
}

.static-page__header {
	margin-bottom: 2rem;
	padding: 2rem;
	border-left: 5px solid var(--color-accent);
	border-radius: 0 10px 10px 0;
	background: var(--color-base);
	color: #fff;
}

.static-page__header p,
.static-page__header h1 {
	margin: 0;
}

.static-page__header p {
	margin-bottom: 0.35rem;
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.static-page__header h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.1;
}

.static-page__image {
	margin: 0 0 2rem;
}

.static-page__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.search-page {
	padding-block: 2.5rem;
}

.search-page__header {
	margin-bottom: 2rem;
	padding: 2rem;
	border-radius: 12px;
	background: #f8fafc;
	text-align: center;
}

.search-page__header > p,
.search-page__header h1 {
	margin: 0;
}

.search-page__header > p {
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.search-page__header h1 {
	margin-top: 0.35rem;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.search-page__header .search-form,
.error-page__search .search-form {
	display: flex;
	max-width: 620px;
	margin: 1.25rem auto 0;
	padding: 5px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
}

.search-page__header .search-form__label,
.error-page__search .search-form__label {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
}

.search-page__header .search-form__leading-icon,
.error-page__search .search-form__leading-icon {
	position: absolute;
	left: 0.8rem;
	width: 18px;
	fill: none;
	stroke: #94a3b8;
	stroke-width: 1.8;
}

.search-page__header .search-field,
.error-page__search .search-field {
	width: 100%;
	padding: 0.7rem 0.7rem 0.7rem 2.4rem;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
}

.search-page__header .search-submit,
.error-page__search .search-submit {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--color-accent);
	color: #fff;
}

.search-page__header .search-submit svg,
.error-page__search .search-submit svg {
	width: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.search-result-count {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.85rem;
}

.error-page {
	max-width: 900px;
	margin-inline: auto;
	padding-block: 4rem;
	text-align: center;
}

.error-page__code {
	margin: 0;
	color: color-mix(in srgb, var(--color-accent) 18%, white);
	font-size: clamp(7rem, 22vw, 14rem);
	font-weight: 900;
	letter-spacing: -0.08em;
	line-height: 0.75;
}

.error-page__eyebrow {
	margin: 2rem 0 0.3rem;
	color: var(--color-accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.error-page h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.3rem);
	line-height: 1.1;
}

.error-page > p:not([class]) {
	color: #64748b;
}

.error-page__home {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	background: var(--color-base);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.error-page__latest {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid #e2e8f0;
}

.error-latest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.error-latest-grid a {
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: var(--color-base);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid #e2e8f0;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1.25rem;
	color: var(--color-base);
	font-size: 1.35rem;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment-body {
	margin-bottom: 1rem;
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata,
.comment-notes,
.logged-in-as {
	color: #64748b;
	font-size: 0.78rem;
}

.comment-content {
	margin-top: 0.8rem;
}

.comment-content p {
	margin: 0;
}

.comment-list .children {
	margin-left: 2rem;
	padding: 0;
	list-style: none;
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.82rem;
	font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
}

.submit-comment {
	padding: 0.75rem 1rem;
	border: 0;
	border-radius: 6px;
	background: var(--color-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 900px) {
	.page-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.page-layout,
	.search-page {
		padding-block: 1.5rem;
	}

	.static-page__header,
	.search-page__header {
		padding: 1.25rem;
	}

	.error-page {
		padding-block: 3rem;
	}

	.error-latest-grid {
		grid-template-columns: 1fr;
	}

	.comment-list .children {
		margin-left: 1rem;
	}
}
