/**
 * Category archive styles — Song Anh Car Travel
 * Matches layout & look of /tin-tuc/ Elementor page.
 */

body.category,
body.category .site-main,
body.single,
body.single .site-main {
	--sa-primary: #032e59;
	--sa-orange: #f97316;
	--sa-orange-alt: #ff7616;
	--sa-blue: #0068ff;
	--sa-ink: #3c3c3c;
	--sa-text: #4e5f73;
	--sa-card: #f3f4f5db;
	--sa-white: #ffffff;
	--sa-line: #eeeeee;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.category .site-main {
	padding: 0 !important;
	max-width: none !important;
	margin: 0 !important;
}

body.category .content-area {
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
}

body.category .entry .entry-title:before,
body.category .page-title:before,
body.category h1:before,
body.category h2:before,
body.category h3:before {
	display: none !important;
	content: none !important;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.sa-archive-shell {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.sa-archive *,
.sa-archive *::before,
.sa-archive *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Hero (mirrors tin-tuc Elementor hero)
   -------------------------------------------------------------------------- */

.sa-archive-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--sa-white);
	padding: 50px 10px;
	background-color: #000;
	background-image:
		linear-gradient(145deg, #000000 0%, rgba(255, 255, 255, 0.15) 100%),
		var(--sa-hero-image);
	background-position: center, bottom left;
	background-repeat: no-repeat;
	background-size: cover, cover;
	z-index: 1;
}

.sa-archive-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(145deg, rgba(0, 0, 0, 0.72) 0%, rgba(3, 46, 89, 0.45) 100%);
	pointer-events: none;
	z-index: 0;
}

.sa-archive-hero .sa-archive-shell {
	position: relative;
	z-index: 1;
}

.sa-archive-eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 6px 10px;
	border-radius: 30px;
	background: var(--sa-white);
	color: var(--sa-primary);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.sa-archive-title {
	margin: 20px 0 0;
	color: var(--sa-white);
	font-size: clamp(32px, 6vw, 48px);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0;
}

.sa-archive-title span {
	color: var(--sa-orange-alt);
}

.sa-archive-lead {
	margin: 1rem 0 1.5rem;
	max-width: 42em;
	color: var(--sa-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
}

.sa-archive-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.sa-archive-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	border: none;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.sa-archive-btn:hover,
.sa-archive-btn:focus {
	transform: translateY(-1px);
	text-decoration: none !important;
	opacity: 0.95;
}

.sa-archive-btn--orange {
	background: var(--sa-orange);
	color: #fff !important;
	box-shadow: 0 0 10px 0 #f97316;
}

.sa-archive-btn--blue {
	background: var(--sa-blue);
	color: #fff !important;
	box-shadow: 0 0 10px 0 #0068ff;
}

.sa-archive-btn--light {
	background: var(--sa-white);
	color: var(--sa-primary) !important;
	box-shadow: 0 0 10px 0 #ededed;
}

/* --------------------------------------------------------------------------
   Body layout: posts + sidebar (66 / 33)
   -------------------------------------------------------------------------- */

.sa-archive-body {
	padding: 60px 0 80px;
	background: #fff;
}

.sa-archive-layout {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.sa-archive-section-title {
	margin: 0 0 1.25rem;
	color: var(--sa-primary);
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 700;
	line-height: 1.15;
	text-align: start;
}

.sa-archive-sidebar-title {
	margin: 0 0 1rem;
	color: var(--sa-primary);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.sa-archive-sidebar-title span {
	color: var(--sa-orange-alt);
}

/* --------------------------------------------------------------------------
   Post cards
   -------------------------------------------------------------------------- */

.sa-archive-posts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px 20px;
}

.sa-archive-card {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 10px;
	background: var(--sa-card);
	overflow: hidden;
	max-width: none !important;
}

.sa-archive-card + .sa-archive-card {
	margin-top: 0 !important;
}

.sa-archive-card__image {
	display: block;
	line-height: 0;
}

.sa-archive-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.sa-archive-card__content {
	padding: 20px;
}

.sa-archive-card__title {
	margin: 0 0 5px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.sa-archive-card__title a {
	color: var(--sa-primary) !important;
	text-decoration: none !important;
}

.sa-archive-card__title a:hover,
.sa-archive-card__title a:focus {
	color: var(--sa-orange) !important;
}

.sa-archive-card__meta {
	margin: 0 0 15px;
	color: var(--sa-primary);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.sa-archive-card__excerpt {
	margin: 0 0 15px;
	color: var(--sa-ink);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
}

.sa-archive-card__more {
	color: var(--sa-primary) !important;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none !important;
}

.sa-archive-card__more:hover,
.sa-archive-card__more:focus {
	color: var(--sa-orange) !important;
}

/* Hide default Twenty Nineteen entry chrome inside cards */
.sa-archive-card .entry-footer,
.sa-archive-card .svg-icon {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Sidebar categories (shortcode)
   -------------------------------------------------------------------------- */

.sa-archive-sidebar .sa-blog-categories {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sa-archive-sidebar .sa-blog-categories li {
	margin-bottom: 10px;
}

.sa-archive-sidebar .sa-blog-categories a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--sa-line);
	color: #333;
	text-decoration: none !important;
	transition: 0.3s;
	font-size: 16px;
	font-weight: 500;
}

.sa-archive-sidebar .sa-blog-categories a:hover,
.sa-archive-sidebar .sa-blog-categories li.current-cat > a,
.sa-archive-sidebar .sa-blog-categories a[aria-current="page"] {
	background: var(--sa-orange-alt);
	color: #fff;
	border-color: var(--sa-orange-alt);
}

.sa-archive-sidebar .sa-blog-categories span {
	font-size: 14px;
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.sa-archive-nav {
	margin-top: 2rem;
}

.sa-archive-nav .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sa-archive-nav a {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--sa-primary);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
}

.sa-archive-nav a:hover {
	background: var(--sa-orange);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media screen and (min-width: 768px) {
	.sa-archive-layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}

	.sa-archive-layout > .sa-archive-main {
		flex: 0 0 66.6666%;
		max-width: 66.6666%;
	}

	.sa-archive-layout > .sa-archive-sidebar {
		flex: 0 0 calc(33.3333% - 40px);
		max-width: calc(33.3333% - 40px);
	}

	.sa-archive-body {
		padding: 80px 0 100px;
	}

	.sa-archive-shell {
		padding: 0 24px;
	}
}

@media screen and (max-width: 767px) {
	.sa-archive-hero {
		padding: 40px 10px;
	}

	.sa-archive-title {
		font-size: 32px;
	}

	.sa-archive-section-title,
	.sa-archive-sidebar-title {
		font-size: 32px;
	}

	.sa-archive-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sa-archive-btn {
		width: 100%;
		white-space: normal;
		text-align: center;
	}

	.sa-archive-body {
		padding: 40px 0 60px;
	}
}

