/* ==========================================================================
   Modern Homepage Stylesheet (index.php + includes/home-bottom.php)
   Uses dynamic site theme tokens from header.php:
   --theme-color, --theme-accent, --theme-background, --theme-surface,
   --theme-text, --theme-on-color, --theme-on-accent, --surface-soft
   ========================================================================== */

.home-page {
	--home-radius-xl: 24px;
	--home-radius-lg: 18px;
	--home-radius-md: 14px;
	--home-radius-sm: 10px;
	--home-border: color-mix(in srgb, var(--theme-text, #0f172a) 9%, transparent);
	--home-border-strong: color-mix(in srgb, var(--theme-text, #0f172a) 16%, transparent);
	--home-muted: #64748b;
	--home-shadow-sm: 0 4px 14px rgba(15, 23, 42, .05);
	--home-shadow-md: 0 12px 30px rgba(15, 23, 42, .08);
	--home-shadow-lg: 0 20px 46px rgba(15, 23, 42, .14);
	--home-theme-soft: color-mix(in srgb, var(--theme-color, #162b5a) 9%, var(--theme-surface, #ffffff));
	--home-theme-border: color-mix(in srgb, var(--theme-color, #162b5a) 22%, transparent);
	position: relative;
	padding-bottom: 40px;
	background:
		radial-gradient(circle at 6% 0%, color-mix(in srgb, var(--theme-color, #162b5a) 10%, transparent) 0%, transparent 32%),
		radial-gradient(circle at 94% 2%, color-mix(in srgb, var(--theme-accent, #f59e0b) 9%, transparent) 0%, transparent 26%),
		var(--theme-background, #f5f7fb);
	color: var(--theme-text, #0f172a);
}

.home-page a {
	text-decoration: none;
}

.home-page ul,
.home-page ol {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0;
}

/* ==========================================================================
   Popup Announcement Modal (#popupNews)
   ========================================================================== */

.modal-backdrop.show {
	background: rgba(10, 18, 34, .78) !important;
	opacity: 1 !important;
	backdrop-filter: blur(6px);
}

body.modal-open {
	overflow: hidden !important;
}

#popupNews .modal-dialog {
	max-width: 820px;
	margin: 1.5rem auto;
	padding: 0 12px;
}

.home-popup-card {
	position: relative;
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 24px;
	box-shadow: 0 28px 70px rgba(2, 6, 23, .45);
	color: var(--theme-text, #0f172a);
}

.home-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: rgba(15, 23, 42, .65);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	color: #fff;
	font-size: 16px;
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.home-popup-close:hover,
.home-popup-close:focus-visible {
	background: var(--theme-color, #162b5a);
	transform: scale(1.06);
	outline: none;
}

.home-popup-body {
	padding: 20px;
}

.home-popup-img {
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--surface-soft, #f8fafc);
}

.home-popup-img:last-child {
	margin-bottom: 0;
}

.home-popup-img img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	margin: 0 auto;
}

.home-popup-content {
	margin: 0;
	padding: 4px 6px 0;
	font-size: 15px;
	line-height: 1.8;
	text-align: left;
	color: var(--theme-text, #0f172a);
}

.home-popup-footer {
	display: flex;
	justify-content: center;
	padding: 14px 20px 20px;
	border-top: 1px solid var(--home-border);
	background: color-mix(in srgb, var(--theme-surface, #ffffff) 96%, var(--theme-background, #f5f7fb));
}

.home-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 30px;
	background: var(--theme-color, #162b5a) !important;
	border: 0 !important;
	border-radius: 999px;
	color: var(--theme-on-color, #ffffff) !important;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-color, #162b5a) 32%, transparent);
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.home-popup-btn:hover,
.home-popup-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 14px 28px color-mix(in srgb, var(--theme-color, #162b5a) 38%, transparent);
}

/* ==========================================================================
   Top Discovery Bar (Hero Intro + Search + Quick Category Jump Pills)
   ========================================================================== */

.home-discovery {
	padding: 26px 0 14px;
}

.home-discovery-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.home-discovery-copy {
	min-width: 0;
}

.home-discovery-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	margin-bottom: 10px;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: 999px;
	box-shadow: var(--home-shadow-sm);
	color: var(--theme-color, #162b5a);
	font-size: 13px;
	font-weight: 700;
}

.home-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
	flex-shrink: 0;
}

.home-discovery-divider {
	color: #cbd5e1;
}

.home-discovery-date {
	color: var(--home-muted);
	font-weight: 600;
}

.home-discovery-title {
	margin: 0;
	color: var(--theme-text, #0f172a);
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -.02em;
}

.home-search-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 440px;
	padding: 5px;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border-strong);
	border-radius: 999px;
	box-shadow: var(--home-shadow-sm);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.home-search-form:focus-within {
	border-color: var(--theme-color, #162b5a);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color, #162b5a) 13%, transparent);
}

.home-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-left: 14px;
	color: #94a3b8;
	font-size: 15px;
	pointer-events: none;
}

.home-search-form input {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	background: transparent;
	color: var(--theme-text, #0f172a);
	font-size: 15px;
	outline: none;
}

.home-search-form input::placeholder {
	color: #94a3b8;
}

.home-search-form button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--theme-color, #162b5a);
	color: var(--theme-on-color, #ffffff);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}

.home-search-form button:hover,
.home-search-form button:focus-visible {
	filter: brightness(1.1);
	transform: translateY(-1px);
	outline: none;
}

/* Quick Category Navigation Strip */
.home-quick-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	padding: 4px 2px 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.home-quick-nav::-webkit-scrollbar {
	display: none;
}

.home-quick-nav-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding-right: 6px;
	color: var(--home-muted);
	font-size: 13px;
	font-weight: 700;
}

.home-quick-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 7px 14px;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: 999px;
	color: var(--theme-text, #0f172a);
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 2px 6px rgba(15, 23, 42, .03);
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-quick-pill:hover,
.home-quick-pill:focus-visible {
	background: var(--theme-color, #162b5a);
	border-color: var(--theme-color, #162b5a);
	color: var(--theme-on-color, #ffffff);
	transform: translateY(-1px);
	outline: none;
}

/* ==========================================================================
   Featured News Bento Grid
   ========================================================================== */

.home-featured {
	padding: 6px 0 22px;
}

.home-bento-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(236px, 1fr));
	gap: 16px;
}

.home-bento-grid.is-single {
	grid-template-columns: 1fr;
	grid-template-rows: minmax(420px, 1fr);
}

.home-bento-grid.is-pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: minmax(390px, 1fr);
}

.home-bento-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 236px;
	overflow: hidden;
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--home-radius-xl);
	box-shadow: var(--home-shadow-md);
	isolation: isolate;
	transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}

.home-bento-grid:not(.is-single):not(.is-pair) .home-bento-card.is-primary {
	grid-row: 1 / 3;
	min-height: 488px;
}

.home-bento-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--home-shadow-lg);
}

.home-bento-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.home-bento-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.home-bento-card:hover .home-bento-media img {
	transform: scale(1.06);
}

.home-bento-card::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background: linear-gradient(
		180deg,
		rgba(7, 15, 32, .06) 12%,
		rgba(7, 15, 32, .42) 52%,
		rgba(7, 15, 32, .92) 100%
	);
	transition: opacity .3s ease;
}

.home-bento-content {
	position: relative;
	z-index: 1;
	padding: 22px 24px;
	color: #fff;
}

.home-bento-card.is-primary .home-bento-content {
	padding: 28px 30px;
}

.home-bento-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.home-bento-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background: var(--theme-color, #162b5a);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	color: var(--theme-on-color, #ffffff);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
}

.home-bento-badge i {
	color: var(--theme-accent, #f59e0b);
}

.home-bento-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	background: rgba(15, 23, 42, .46);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	color: rgba(255, 255, 255, .92);
	font-size: 12.5px;
	font-weight: 600;
	backdrop-filter: blur(8px);
}

.home-bento-title {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.45;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .42);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.home-bento-card.is-primary .home-bento-title {
	font-size: clamp(22px, 2.3vw, 30px);
	line-height: 1.36;
}

.home-bento-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	color: rgba(255, 255, 255, .9);
	font-size: 13.5px;
	font-weight: 700;
	transition: gap .2s ease, color .2s ease;
}

.home-bento-card:hover .home-bento-cta {
	gap: 11px;
	color: #fff;
}

.home-bento-stretched-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.home-bento-stretched-link:focus-visible {
	outline: 3px solid var(--theme-accent, #f59e0b);
	outline-offset: -3px;
	border-radius: var(--home-radius-xl);
}

/* ==========================================================================
   Banner Ad Carousel Under Featured
   ========================================================================== */

.home-ad-banner {
	padding: 4px 0 24px;
}

.home-ad-carousel {
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-xl);
	box-shadow: var(--home-shadow-sm);
}

.home-ad-carousel .carousel-item {
	background: var(--surface-soft, #f8fafc);
}

.home-ad-carousel .carousel-item img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.home-ad-carousel .carousel-indicators {
	margin-bottom: 12px;
	gap: 6px;
}

.home-ad-carousel .carousel-indicators [data-bs-target] {
	width: 24px;
	height: 5px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .65);
	opacity: .75;
	transition: width .25s ease, background-color .25s ease, opacity .25s ease;
}

.home-ad-carousel .carousel-indicators .active {
	width: 36px;
	background-color: var(--theme-color, #162b5a);
	opacity: 1;
}

.home-ad-carousel .carousel-control-prev,
.home-ad-carousel .carousel-control-next {
	width: 64px;
	opacity: .9;
}

.home-ad-carousel .carousel-control-prev-icon,
.home-ad-carousel .carousel-control-next-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background-color: rgba(15, 23, 42, .68);
	background-size: 16px 16px;
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px rgba(15, 23, 42, .25);
	transition: background-color .2s ease, transform .2s ease;
}

.home-ad-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.home-ad-carousel .carousel-control-next:hover .carousel-control-next-icon {
	background-color: var(--theme-color, #162b5a);
	transform: scale(1.07);
}

/* ==========================================================================
   Category Sections Shell & Editorial Header
   ========================================================================== */

.home-feed {
	padding: 0 0 18px;
}

.home-category-block {
	padding: 26px;
	margin-bottom: 26px;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-xl);
	box-shadow: var(--home-shadow-sm);
	scroll-margin-top: 96px;
}

.home-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--home-border);
}

.home-section-heading {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.home-section-accent {
	width: 5px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--theme-color, #162b5a) 0%, var(--theme-accent, #f59e0b) 100%);
}

.home-section-heading h2 {
	margin: 0;
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.015em;
	color: var(--theme-text, #0f172a);
}

.home-section-heading h2 a {
	color: inherit;
	transition: color .2s ease;
}

.home-section-heading h2 a:hover {
	color: var(--theme-color, #162b5a);
}

.home-section-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 8px 16px;
	background: var(--home-theme-soft);
	border: 1px solid var(--home-theme-border);
	border-radius: 999px;
	color: var(--theme-color, #162b5a);
	font-size: 13.5px;
	font-weight: 700;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.home-section-more i {
	font-size: 12px;
	transition: transform .2s ease;
}

.home-section-more:hover,
.home-section-more:focus-visible {
	background: var(--theme-color, #162b5a);
	border-color: var(--theme-color, #162b5a);
	color: var(--theme-on-color, #ffffff);
	transform: translateY(-1px);
	outline: none;
}

.home-section-more:hover i {
	transform: translateX(3px);
}

/* Shared Card Primitives */
.home-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--home-muted);
	font-size: 13px;
	font-weight: 600;
}

.home-meta i {
	color: color-mix(in srgb, var(--theme-color, #162b5a) 70%, #94a3b8);
}

.home-read-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--theme-color, #162b5a);
	font-size: 13.5px;
	font-weight: 700;
	transition: gap .2s ease;
}

.home-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 36px 18px;
	background: var(--surface-soft, #f8fafc);
	border: 1px dashed var(--home-border-strong);
	border-radius: var(--home-radius-lg);
	color: var(--home-muted);
	font-size: 14.5px;
	text-align: center;
}

.home-empty-state i {
	font-size: 24px;
	opacity: .6;
}

/* ==========================================================================
   Layout 1: Normal 1 Column (Horizontal Editorial Cards)
   ========================================================================== */

.home-list-horizontal {
	display: grid;
	gap: 16px;
}

.home-hcard {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-lg);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
	transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.home-hcard:hover {
	transform: translateY(-3px);
	border-color: var(--home-theme-border);
	box-shadow: var(--home-shadow-md);
}

.home-hcard-media {
	display: block;
	position: relative;
	min-height: 205px;
	overflow: hidden;
	background: #e2e8f0;
}

.home-hcard-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .42s ease;
}

.home-hcard:hover .home-hcard-media img {
	transform: scale(1.05);
}

.home-hcard-body {
	display: flex;
	flex-direction: column;
	padding: 20px 24px;
}

.home-hcard-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.45;
	color: var(--theme-text, #0f172a);
}

.home-hcard-title a {
	color: inherit;
	transition: color .2s ease;
}

.home-hcard:hover .home-hcard-title a {
	color: var(--theme-color, #162b5a);
}

.home-hcard-excerpt {
	margin: 10px 0 14px;
	color: #475569;
	font-size: 15px;
	line-height: 1.72;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.home-hcard-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.home-hcard:hover .home-read-link {
	gap: 10px;
}

/* ==========================================================================
   Layouts 2 & 3: Normal 2 Columns & Normal 3 Columns (Modern Grid Cards)
   ========================================================================== */

.home-card-grid {
	display: grid;
	gap: 20px;
}

.home-card-grid.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card-grid.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-lg);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
	transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.home-card:hover {
	transform: translateY(-4px);
	border-color: var(--home-theme-border);
	box-shadow: var(--home-shadow-md);
}

.home-card-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.home-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .42s ease;
}

.home-card:hover .home-card-media img {
	transform: scale(1.055);
}

.home-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.home-card-title {
	margin: 0 0 10px;
	font-size: 17.5px;
	font-weight: 800;
	line-height: 1.48;
	color: var(--theme-text, #0f172a);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-card-title a {
	color: inherit;
	transition: color .2s ease;
}

.home-card:hover .home-card-title a {
	color: var(--theme-color, #162b5a);
}

.home-card-excerpt {
	margin: 0 0 16px;
	color: #475569;
	font-size: 14.5px;
	line-height: 1.7;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.home-card-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--home-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.home-card:hover .home-read-link {
	gap: 10px;
}

/* ==========================================================================
   Layout 4: 2 Columns (6 posts) — Magazine Split (1 Lead + 5 Stack)
   ========================================================================== */

.home-split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}

.home-split-lead .home-card-media {
	aspect-ratio: 16 / 10;
}

.home-split-lead .home-card-title {
	font-size: 20px;
	-webkit-line-clamp: 3;
}

.home-split-lead .home-card-excerpt {
	-webkit-line-clamp: 4;
}

.home-split-stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.home-mini-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: center;
	flex: 1;
	overflow: hidden;
	background: var(--surface-soft, #f8fafc);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-md);
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-mini-card:hover {
	background: var(--theme-surface, #ffffff);
	border-color: var(--home-theme-border);
	transform: translateX(3px);
	box-shadow: var(--home-shadow-sm);
}

.home-mini-media {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 86px;
	overflow: hidden;
	background: #e2e8f0;
}

.home-mini-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.home-mini-card:hover .home-mini-media img {
	transform: scale(1.06);
}

.home-mini-body {
	padding: 11px 14px;
	min-width: 0;
}

.home-mini-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--theme-text, #0f172a);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-mini-title a {
	color: inherit;
	transition: color .2s ease;
}

.home-mini-card:hover .home-mini-title a {
	color: var(--theme-color, #162b5a);
}

/* ==========================================================================
   Layout 5: List No Image (Clean Bulletin List)
   ========================================================================== */

.home-date-list {
	display: grid;
	gap: 8px;
}

.home-date-list-item a {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: var(--surface-soft, #f8fafc);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-md);
	color: var(--theme-text, #0f172a);
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-date-list-item a:hover,
.home-date-list-item a:focus-visible {
	background: var(--theme-surface, #ffffff);
	border-color: var(--home-theme-border);
	transform: translateX(4px);
	box-shadow: var(--home-shadow-sm);
	outline: none;
}

.home-date-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	background: var(--home-theme-soft);
	border: 1px solid var(--home-theme-border);
	border-radius: 9px;
	color: var(--theme-color, #162b5a);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.home-date-list-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--theme-text, #0f172a);
	transition: color .2s ease;
}

.home-date-list-item a:hover .home-date-list-title {
	color: var(--theme-color, #162b5a);
}

.home-new-badge {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 2px 8px;
	background: #fee2e2;
	border: 1px solid #fecaca;
	border-radius: 999px;
	color: #b91c1c;
	font-size: 11.5px;
	font-weight: 800;
	vertical-align: middle;
}

.home-date-list-arrow {
	color: #94a3b8;
	font-size: 13px;
	transition: transform .2s ease, color .2s ease;
}

.home-date-list-item a:hover .home-date-list-arrow {
	color: var(--theme-color, #162b5a);
	transform: translateX(3px);
}

/* ==========================================================================
   Layout 6: Text Only 2 Columns (Numbered Index Grid)
   ========================================================================== */

.home-text-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}

.home-text-item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	padding: 15px 16px;
	background: var(--surface-soft, #f8fafc);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-md);
	color: var(--theme-text, #0f172a);
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-text-item:hover,
.home-text-item:focus-visible {
	background: var(--theme-surface, #ffffff);
	border-color: var(--home-theme-border);
	transform: translateY(-2px);
	box-shadow: var(--home-shadow-sm);
	outline: none;
}

.home-text-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--home-theme-soft);
	border: 1px solid var(--home-theme-border);
	border-radius: 11px;
	color: var(--theme-color, #162b5a);
	font-size: 13px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	transition: background .2s ease, color .2s ease;
}

.home-text-item:hover .home-text-number {
	background: var(--theme-color, #162b5a);
	color: var(--theme-on-color, #ffffff);
}

.home-text-title {
	display: block;
	margin: 0 0 6px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--theme-text, #0f172a);
	transition: color .2s ease;
}

.home-text-item:hover .home-text-title {
	color: var(--theme-color, #162b5a);
}

/* ==========================================================================
   Layout 7: Featured Mosaic (1 Large + 4 Tiles)
   ========================================================================== */

.home-mosaic {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, 198px);
	gap: 14px;
}

.home-mosaic-card {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: #0f172a;
	border-radius: var(--home-radius-lg);
	box-shadow: var(--home-shadow-sm);
	isolation: isolate;
	transition: transform .25s ease, box-shadow .25s ease;
}

.home-mosaic-card:first-child {
	grid-row: 1 / 3;
}

.home-mosaic-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--home-shadow-md);
}

.home-mosaic-card > a {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
}

.home-mosaic-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .48s cubic-bezier(.22, 1, .36, 1);
}

.home-mosaic-card:hover img {
	transform: scale(1.06);
}

.home-mosaic-card > a::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: linear-gradient(
		180deg,
		rgba(7, 15, 32, .05) 18%,
		rgba(7, 15, 32, .45) 56%,
		rgba(7, 15, 32, .93) 100%
	);
	transition: background .25s ease;
}

.home-mosaic-content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 16px 18px;
	color: #fff;
}

.home-mosaic-card:first-child .home-mosaic-content {
	padding: 24px;
}

.home-mosaic-title {
	margin: 0;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.48;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-mosaic-card:first-child .home-mosaic-title {
	font-size: 21px;
	line-height: 1.38;
	-webkit-line-clamp: 3;
}

.home-mosaic-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: rgba(255, 255, 255, .86);
	font-size: 12.5px;
	font-weight: 600;
}

/* ==========================================================================
   Layout 8: Compact 4 Columns
   ========================================================================== */

.home-compact-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.home-compact-grid.hc-items-1 {
	grid-template-columns: minmax(0, 340px);
}

.home-compact-grid.hc-items-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-compact-grid.hc-items-3,
.home-compact-grid.hc-items-6 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-compact-grid.hc-items-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-compact-card {
	min-width: 0;
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-md);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-compact-card:hover {
	transform: translateY(-4px);
	border-color: var(--home-theme-border);
	box-shadow: var(--home-shadow-md);
}

.home-compact-card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.home-compact-photo {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.home-compact-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.home-compact-card:hover .home-compact-photo img {
	transform: scale(1.06);
}

.home-compact-number {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	background: color-mix(in srgb, var(--theme-color, #162b5a) 90%, #000);
	border: 1.5px solid rgba(255, 255, 255, .75);
	border-radius: 999px;
	color: var(--theme-on-color, #ffffff);
	font-size: 11.5px;
	font-weight: 800;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.home-compact-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 15px 16px;
}

.home-compact-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--theme-text, #0f172a);
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color .2s ease;
}

.home-compact-card:hover .home-compact-title {
	color: var(--theme-color, #162b5a);
}

.home-compact-body .home-meta {
	margin-top: auto;
}

/* ==========================================================================
   Layout 9: Modern Timeline
   ========================================================================== */

.home-timeline {
	position: relative;
	display: grid;
	gap: 4px;
}

.home-timeline::before {
	position: absolute;
	top: 22px;
	bottom: 22px;
	left: 136px;
	width: 2px;
	background: linear-gradient(
		180deg,
		var(--theme-color, #162b5a),
		color-mix(in srgb, var(--theme-color, #162b5a) 22%, #e2e8f0)
	);
	content: "";
}

.home-timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 114px minmax(0, 1fr) 124px;
	align-items: center;
	gap: 32px;
	padding: 12px 14px 12px 0;
	border-radius: var(--home-radius-md);
	transition: background .2s ease;
}

.home-timeline-item:hover {
	background: var(--surface-soft, #f8fafc);
}

.home-timeline-date {
	padding: 7px 10px;
	background: var(--home-theme-soft);
	border: 1px solid var(--home-theme-border);
	border-radius: 10px;
	color: var(--theme-color, #162b5a);
	font-size: 12.5px;
	font-weight: 800;
	text-align: center;
	white-space: nowrap;
}

.home-timeline-dot {
	position: absolute;
	top: 50%;
	left: 130px;
	width: 14px;
	height: 14px;
	background: var(--theme-surface, #ffffff);
	border: 3px solid var(--theme-color, #162b5a);
	border-radius: 50%;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color, #162b5a) 12%, transparent);
	transform: translateY(-50%);
	transition: background .2s ease, transform .2s ease;
}

.home-timeline-item:hover .home-timeline-dot {
	background: var(--theme-color, #162b5a);
	transform: translateY(-50%) scale(1.12);
}

.home-timeline-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--theme-text, #0f172a);
	transition: color .2s ease;
}

.home-timeline-item:hover .home-timeline-title {
	color: var(--theme-color, #162b5a);
}

.home-timeline-thumb {
	display: block;
	width: 124px;
	height: 78px;
	overflow: hidden;
	border-radius: 12px;
	background: #e2e8f0;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}

.home-timeline-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.home-timeline-item:hover .home-timeline-thumb img {
	transform: scale(1.07);
}

/* ==========================================================================
   Home Bottom Sections (Relocated Ads, Popular News, Social Follow)
   ========================================================================== */

.home-bottom {
	padding: 0 0 24px;
}

.home-relocated-ads {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 18px;
	margin-bottom: 26px;
}

.home-relocated-ad {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-lg);
	box-shadow: var(--home-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}

.home-relocated-ad:hover {
	transform: translateY(-2px);
	box-shadow: var(--home-shadow-md);
}

.home-relocated-ad a {
	display: block;
}

.home-relocated-ad img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 280px;
	margin: 0 auto;
	object-fit: contain;
}

.home-relocated-ad small {
	display: block;
	padding: 7px 10px;
	border-top: 1px solid var(--home-border);
	background: var(--surface-soft, #f8fafc);
	color: var(--home-muted);
	font-size: 12px;
	font-weight: 600;
}

.home-popular-section {
	padding: 26px;
	margin-bottom: 26px;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-xl);
	box-shadow: var(--home-shadow-sm);
}

.home-popular-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.home-popular-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--theme-surface, #ffffff);
	border: 1px solid var(--home-border);
	border-radius: var(--home-radius-lg);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
	transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.home-popular-card:hover {
	transform: translateY(-4px);
	border-color: var(--home-theme-border);
	box-shadow: var(--home-shadow-md);
}

.home-popular-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.home-popular-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .42s ease;
}

.home-popular-card:hover .home-popular-media img {
	transform: scale(1.06);
}

.home-popular-rank {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	background: rgba(15, 23, 42, .8);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	backdrop-filter: blur(6px);
}

.home-popular-card.is-top .home-popular-rank {
	background: var(--theme-accent, #f59e0b);
	border-color: rgba(255, 255, 255, .45);
	color: var(--theme-on-accent, #0f172a);
}

.home-popular-copy {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

.home-popular-copy h3 {
	margin: 0 0 12px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--theme-text, #0f172a);
	overflow-wrap: anywhere;
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.home-popular-copy h3 a {
	color: inherit;
	transition: color .2s ease;
}

.home-popular-card:hover .home-popular-copy h3 a {
	color: var(--theme-color, #162b5a);
}

.home-popular-views {
	margin: auto 0 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--home-muted);
	font-size: 13px;
	font-weight: 600;
}

.home-follow-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 24px 28px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #101c31 0%, color-mix(in srgb, var(--theme-color, #162b5a) 84%, #101c31) 100%);
	border-radius: var(--home-radius-xl);
	box-shadow: var(--home-shadow-md);
	color: #fff;
}

.home-follow-copy h2 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
}

.home-follow-copy p {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: 14px;
}

.home-follow-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.home-follow-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	backdrop-filter: blur(6px);
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.home-follow-links a:hover,
.home-follow-links a:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--theme-color, #162b5a);
	transform: translateY(-2px);
	outline: none;
}

.home-adsense-box {
	margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1199.98px) {
	.home-bento-grid {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		grid-template-rows: repeat(2, minmax(215px, 1fr));
	}

	.home-bento-grid:not(.is-single):not(.is-pair) .home-bento-card.is-primary {
		min-height: 446px;
	}
}

@media (max-width: 991.98px) {
	.home-discovery-top {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.home-search-form {
		max-width: none;
	}

	.home-bento-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	.home-bento-grid:not(.is-single):not(.is-pair) .home-bento-card.is-primary {
		grid-column: 1 / 3;
		grid-row: auto;
		min-height: 360px;
	}

	.home-bento-card {
		min-height: 230px;
	}

	.home-card-grid.cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-split-grid {
		grid-template-columns: 1fr;
	}

	.home-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: 260px repeat(2, 185px);
	}

	.home-mosaic-card:first-child {
		grid-column: 1 / 3;
		grid-row: auto;
	}

	.home-compact-grid,
	.home-compact-grid.hc-items-3,
	.home-compact-grid.hc-items-5,
	.home-compact-grid.hc-items-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-popular-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.home-discovery {
		padding: 18px 0 10px;
	}

	.home-bento-grid,
	.home-bento-grid.is-pair {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.home-bento-grid:not(.is-single):not(.is-pair) .home-bento-card.is-primary {
		grid-column: auto;
		min-height: 300px;
	}

	.home-bento-card {
		min-height: 220px;
		border-radius: var(--home-radius-lg);
	}

	.home-bento-card.is-primary .home-bento-content,
	.home-bento-content {
		padding: 18px;
	}

	.home-category-block,
	.home-popular-section {
		padding: 18px;
		margin-bottom: 18px;
		border-radius: var(--home-radius-lg);
	}

	.home-section-header {
		padding-bottom: 14px;
		margin-bottom: 16px;
	}

	.home-section-more span {
		display: none;
	}

	.home-section-more {
		width: 36px;
		height: 36px;
		padding: 0;
		justify-content: center;
	}

	.home-hcard {
		grid-template-columns: 1fr;
	}

	.home-hcard-media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.home-hcard-body {
		padding: 16px;
	}

	.home-card-grid.cols-2,
	.home-card-grid.cols-3 {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.home-text-grid {
		grid-template-columns: 1fr;
	}

	.home-follow-card {
		padding: 20px;
		border-radius: var(--home-radius-lg);
	}
}

@media (max-width: 575.98px) {
	.home-mosaic {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.home-mosaic-card:first-child {
		grid-column: auto;
		height: 230px;
	}

	.home-mosaic-card:not(:first-child) {
		height: 175px;
	}

	.home-compact-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.home-compact-body {
		padding: 11px 12px 13px;
	}

	.home-compact-title {
		font-size: 14px;
	}

	.home-date-list-item a {
		grid-template-columns: 1fr auto;
		gap: 8px 12px;
		padding: 12px 14px;
	}

	.home-date-badge {
		grid-column: 1 / 3;
		justify-self: start;
	}

	.home-timeline::before,
	.home-timeline-dot {
		display: none;
	}

	.home-timeline-item {
		grid-template-columns: minmax(0, 1fr) 84px;
		gap: 10px 12px;
		padding: 12px;
		border: 1px solid var(--home-border);
	}

	.home-timeline-date {
		grid-column: 1 / 3;
		justify-self: start;
	}

	.home-timeline-thumb {
		width: 84px;
		height: 60px;
	}

	.home-popular-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-page *,
	.home-page *::before,
	.home-page *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
