/**
 * HALINK C8 — News archive (Dola /tin-tuc match)
 */

.c8-news-archive {
	padding-bottom: 60px;
	background: var(--c8-bg, #f0efeb);
}

.c8-news-archive__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 1.75rem;
	align-items: start;
}

/* ---------- Featured "Tin mới nhất" ---------- */
.c8-news-featured {
	margin-bottom: 1.25rem;
	padding: 10px;
	background: #121f38;
	border-radius: 5px;
}

.c8-news-featured__head {
	margin-bottom: 12px;
	color: #fff;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 700;
	text-align: center;
}

.c8-news-featured__slider {
	position: relative;
	overflow: hidden;
}

.c8-news-featured__track {
	display: flex;
	transition: transform 0.35s ease;
}

.c8-news-featured__slide {
	display: flex;
	flex: 0 0 100%;
	width: 100%;
	flex-wrap: wrap;
	padding: 20px;
	background: #fff;
	border-radius: 5px;
	box-sizing: border-box;
}

.c8-news-featured__media {
	flex: 0 0 40%;
	max-width: 40%;
	position: relative;
}

.c8-news-featured__media a {
	display: block;
	position: relative;
	overflow: hidden;
	padding-bottom: 67%;
	border-radius: 5px;
	background: #eee;
}

.c8-news-featured__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: auto;
}

.c8-news-featured__content {
	flex: 0 0 60%;
	max-width: 60%;
	padding: 0 20px;
}

.c8-news-featured__title {
	margin: 0 0 0.5rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
}

.c8-news-featured__title a {
	color: #121f38;
	text-decoration: none;
}

.c8-news-featured__title a:hover {
	color: #9a563a;
}

.c8-news-featured__date {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: #6b6b6b;
}

.c8-news-featured__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: #333;
}

.c8-news-featured__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(18, 31, 56, 0.85);
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.c8-news-featured__nav--prev {
	left: 8px;
}

.c8-news-featured__nav--next {
	right: 8px;
}

.c8-news-featured__nav:hover {
	background: #9a563a;
}

/* ---------- Grid list ---------- */
.c8-news-list {
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.c8-news-list__title {
	margin: 0 0 1.5rem;
	text-align: center;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
	font-weight: 700;
	color: #121f38;
}

.c8-news-list__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.c8-news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(18, 31, 56, 0.05);
}

.c8-news-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #e8e6e1;
}

.c8-news-card:hover .c8-news-card__media {
	border-radius: 12px;
}

.c8-news-card__thumb {
	display: block;
	position: relative;
	padding-bottom: 62%;
	overflow: hidden;
}

.c8-news-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.c8-news-card:hover .c8-news-card__img {
	transform: scale(1.04);
}

.c8-news-card__badge {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	padding: 4px 16px 6px;
	background: #121f38;
	border-radius: 0 16px 0 0;
	color: #fff;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

.c8-news-card__badge b {
	display: block;
	font-family: var(--c8-font-body, "Be Vietnam Pro", sans-serif);
	font-size: 0.8rem;
	font-weight: 600;
}

.c8-news-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.85rem 0.15rem 0.25rem;
	color: #121f38;
}

.c8-news-card__title {
	margin: 0 0 0.45rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.c8-news-card__title a {
	color: #121f38;
	text-decoration: none;
}

.c8-news-card__title a:hover {
	color: #9a563a;
}

.c8-news-card__excerpt {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #666;
}

.c8-news-card__more {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	font-size: 0.9375rem;
	color: #121f38;
	text-decoration: none;
	font-weight: 500;
}

.c8-news-card__more:hover {
	color: #9a563a;
}

.c8-news-list__pagination {
	margin-top: 1.5rem;
	text-align: center;
}

.c8-news-list__pagination .nav-links {
	display: inline-flex;
	gap: 0.35rem;
	flex-wrap: wrap;
	justify-content: center;
}

.c8-news-list__pagination a,
.c8-news-list__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.5rem;
	border-radius: 6px;
	background: #f0efeb;
	color: #121f38;
	text-decoration: none;
	font-weight: 600;
}

.c8-news-list__pagination .current {
	background: #121f38;
	color: #fff;
}

.c8-news-list__empty {
	text-align: center;
	color: #6b6b6b;
	padding: 2rem 0;
}

/* ---------- Empty archive / category / search ---------- */
.c8-news-empty {
	width: 100%;
}

.c8-news-empty__hero {
	text-align: center;
	max-width: 36rem;
	margin: 0 auto 2rem;
	padding: clamp(1.75rem, 4vw, 2.5rem) 1.25rem;
	background:
		radial-gradient(90% 70% at 50% 0%, rgba(154, 86, 58, 0.08), transparent 60%),
		#fff;
	border: 1px solid var(--c8-border, #e4e2dc);
	border-radius: var(--c8-radius-cta, 20px 5px);
}

.c8-news-empty__visual {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
	color: var(--c8-primary, #121f38);
}

.c8-news-empty__icon {
	width: 88px;
	height: 88px;
	animation: c8-news-empty-float 3.2s ease-in-out infinite;
}

@keyframes c8-news-empty-float {
	0%,
	100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.c8-news-empty__eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c8-secondary, #9a563a);
}

.c8-news-empty__title {
	margin: 0 0 0.75rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--c8-primary, #121f38);
}

.c8-news-empty__text {
	margin: 0 0 1.35rem;
	font-size: 0.98rem;
	line-height: 1.65;
	color: var(--c8-text-muted, #6b6b6b);
}

.c8-news-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
}

.c8-news-empty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.2rem;
	border-radius: var(--c8-radius-cta, 20px 5px);
	background: var(--c8-primary, #121f38);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.c8-news-empty__btn:hover {
	background: var(--c8-secondary, #9a563a);
	color: #fff;
}

.c8-news-empty__btn--ghost {
	background: transparent;
	border: 1px solid var(--c8-border-strong, #d1cfc8);
	color: var(--c8-primary, #121f38);
}

.c8-news-empty__btn--ghost:hover {
	border-color: var(--c8-secondary, #9a563a);
	color: var(--c8-secondary, #9a563a);
	background: transparent;
}

.c8-news-empty__suggest {
	margin-top: 0.5rem;
}

.c8-news-empty__suggest-head {
	text-align: center;
	margin-bottom: 1.25rem;
}

.c8-news-empty__suggest-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c8-secondary, #9a563a);
}

.c8-news-empty__suggest-title {
	margin: 0;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
	font-weight: 700;
	color: var(--c8-primary, #121f38);
}

.c8-news-empty__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 991px) {
	.c8-news-empty__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.c8-news-empty__grid {
		grid-template-columns: 1fr;
	}

	.c8-news-empty__actions {
		flex-direction: column;
	}

	.c8-news-empty__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c8-news-empty__icon {
		animation: none;
	}
}

/* ---------- Sidebar ---------- */
.c8-news-sidebar__menu {
	margin-bottom: 1.5rem;
	padding: 12px 14px;
	background: #121f38;
	border-radius: 5px;
}

.c8-news-sidebar__menu-title {
	margin-bottom: 0.35rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
}

.c8-news-sidebar__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c8-news-sidebar__nav a {
	display: block;
	padding: 8px 0;
	font-size: 0.9375rem;
	color: #fff;
	text-decoration: none;
	word-break: break-word;
}

.c8-news-sidebar__nav li.is-active > a,
.c8-news-sidebar__nav a:hover {
	color: #9a563a;
}

.c8-news-sidebar__featured-title {
	margin: 0 0 1rem;
	font-family: var(--c8-font-display, Lora, Georgia, serif);
	font-size: 1.35rem;
	font-weight: 700;
	color: #121f38;
}

.c8-news-sidebar__featured-title a {
	color: inherit;
	text-decoration: none;
}

.c8-news-sidebar__featured-title a:hover {
	color: #9a563a;
}

.c8-news-sidebar__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c8-news-sidebar__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.c8-news-sidebar__item:last-child {
	margin-bottom: 0;
}

.c8-news-sidebar__thumb {
	position: relative;
	flex: 0 0 90px;
	width: 90px;
	height: 90px;
	overflow: hidden;
	border-radius: 6px;
	background: #eee;
}

.c8-news-sidebar__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c8-news-sidebar__num {
	position: absolute;
	left: -6px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #9a563a;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.c8-news-sidebar__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.c8-news-sidebar__post-title {
	margin: 0 0 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.c8-news-sidebar__post-title a {
	color: #000;
	text-decoration: none;
}

.c8-news-sidebar__post-title a:hover {
	color: #121f38;
}

.c8-news-sidebar__meta time {
	font-size: 0.8125rem;
	color: #121f38;
}

.c8-news-sidebar__widgets {
	margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.c8-news-archive__layout {
		grid-template-columns: 1fr;
	}

	.c8-news-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.c8-news-featured__media,
	.c8-news-featured__content {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.c8-news-featured__content {
		padding: 12px 0 0;
	}

	.c8-news-featured__media {
		margin-bottom: 0;
	}
}

@media (max-width: 575px) {
	.c8-news-list__grid {
		grid-template-columns: 1fr;
	}

	.c8-news-card {
		border-radius: 20px 8px;
	}
}
