/* ==========================================================================
   Homepage Components
   ========================================================================== */

/* Section Title */
.section-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-2xl);
	font-weight: 700;
	margin-bottom: var(--spacing-lg);
	padding-bottom: var(--spacing-sm);
	border-bottom: 3px solid var(--color-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.section-title a {
	font-size: var(--font-size-sm);
	font-weight: 400;
	color: var(--color-primary);
}

/* Hero Slider */
.hero-slider {
	position: relative;
	margin-bottom: var(--spacing-2xl);
}

.hero-slider .swiper-slide {
	position: relative;
	height: 280px;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

@media (min-width: 576px) {
	.hero-slider .swiper-slide {
		height: 350px;
	}
}

@media (min-width: 768px) {
	.hero-slider .swiper-slide {
		height: 400px;
	}
}

@media (min-width: 992px) {
	.hero-slider .swiper-slide {
		height: 480px;
	}
}

.hero-slider .slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-slider .slide-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-2xl);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
	color: var(--color-white);
}

.hero-slider .slide-category {
	display: inline-block;
	padding: var(--spacing-xs) var(--spacing-sm);
	background-color: var(--color-accent);
	font-size: var(--font-size-xs);
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: var(--spacing-sm);
	border-radius: var(--radius-sm);
}

.hero-slider .slide-title {
	font-size: var(--font-size-3xl);
	font-weight: 700;
	margin-bottom: var(--spacing-sm);
	line-height: var(--line-height-tight);
}

.hero-slider .slide-title a {
	color: var(--color-white);
	text-decoration: none;
}

.hero-slider .slide-title a:hover {
	text-decoration: underline;
}

.hero-slider .slide-meta {
	font-size: var(--font-size-sm);
	opacity: 0.8;
}

.hero-slider .swiper-pagination {
	bottom: var(--spacing-md);
}

.hero-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: var(--color-white);
	opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--color-accent);
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
	color: var(--color-white);
	background-color: rgba(0, 0, 0, 0.3);
	width: 48px;
	height: 48px;
	border-radius: var(--radius-full);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
	font-size: 20px;
}

/* Hero Featured Post (single sticky) */
.hero-featured-post .hero-featured-post-inner {
	position: relative;
	height: 280px;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

@media (min-width: 576px) {
	.hero-featured-post .hero-featured-post-inner {
		height: 350px;
	}
}

@media (min-width: 768px) {
	.hero-featured-post .hero-featured-post-inner {
		height: 400px;
	}
}

@media (min-width: 992px) {
	.hero-featured-post .hero-featured-post-inner {
		height: 480px;
	}
}

/* Category Section */
.category-section {
	margin-bottom: var(--spacing-3xl);
	padding-top: var(--spacing-xl);
}

.category-section .section-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: var(--spacing-xl);
	position: relative;
}

.category-section .section-header::before,
.category-section .section-header::after {
	content: '';
	flex: 1;
	max-width: 120px;
	height: 2px;
	background-color: var(--color-gray-900);
}

.category-section .section-header::before {
	margin-right: var(--spacing-lg);
}

.category-section .section-header::after {
	margin-left: var(--spacing-lg);
}

.category-section .section-header-content {
	text-align: center;
	min-width: 0;
}

.category-section .section-header h2 {
	font-size: var(--font-size-2xl);
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.category-section .section-header h2 a {
	text-decoration: none;
}

.category-section .section-header h2 a:hover {
	opacity: 0.8;
}

/* Section header with italic accent style - Therex style */
.category-section .section-header h2 .section-title-first {
	font-style: italic;
	color: var(--color-accent);
	font-weight: 700;
}

.category-section .section-header h2 .section-title-rest {
	font-style: normal;
	color: var(--color-gray-900);
	font-weight: 700;
}

.category-section .section-subtitle {
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 400;
	color: var(--color-gray-500);
	text-align: center;
	margin-top: var(--spacing-xs);
	font-family: var(--font-body);
	text-transform: none;
	letter-spacing: normal;
}

.category-section .view-all {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: var(--font-size-sm);
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 400;
}

.category-section .view-all:hover {
	text-decoration: underline;
}

/* Featured Grid - 5 blocks (1 large + 4 small in 2x2) */
.featured-grid-5 {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

@media (min-width: 768px) {
	.featured-grid-5 {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: repeat(2, 1fr);
		height: 500px;
	}

	.featured-grid-5 .featured-large {
		grid-row: span 2;
	}
}

@media (min-width: 992px) {
	.featured-grid-5 {
		grid-template-columns: 1fr 1fr 1fr;
		height: 520px;
	}

	.featured-grid-5 .featured-large {
		grid-column: span 1;
		grid-row: span 2;
	}

	/* Small items form 2x2 grid in remaining 2 columns */
	.featured-grid-5 .featured-small:nth-child(2) {
		grid-column: 2;
		grid-row: 1;
	}

	.featured-grid-5 .featured-small:nth-child(3) {
		grid-column: 3;
		grid-row: 1;
	}

	.featured-grid-5 .featured-small:nth-child(4) {
		grid-column: 2;
		grid-row: 2;
	}

	.featured-grid-5 .featured-small:nth-child(5) {
		grid-column: 3;
		grid-row: 2;
	}
}

.featured-grid-5 .featured-item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.featured-grid-5 .featured-item .featured-image-link {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.featured-grid-5 .featured-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.featured-grid-5 .featured-item:hover img {
	transform: scale(1.05);
}

.featured-grid-5 .featured-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-md);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
	color: var(--color-white);
}

.featured-grid-5 .featured-large {
	min-height: 300px;
}

@media (min-width: 768px) {
	.featured-grid-5 .featured-large {
		min-height: 100%;
	}
}

.featured-grid-5 .featured-large .featured-overlay {
	padding: var(--spacing-xl);
}

.featured-grid-5 .featured-large .featured-title {
	font-size: var(--font-size-2xl);
	text-transform: uppercase;
}

.featured-grid-5 .featured-small {
	min-height: 200px;
}

@media (min-width: 768px) {
	.featured-grid-5 .featured-small {
		min-height: auto;
	}
}

.featured-grid-5 .featured-title {
	font-size: var(--font-size-base);
	font-weight: 700;
	margin: 0;
	line-height: var(--line-height-snug);
}

.featured-grid-5 .featured-small .featured-title {
	font-size: var(--font-size-sm);
}

@media (min-width: 992px) {
	.featured-grid-5 .featured-small .featured-title {
		font-size: var(--font-size-base);
	}
}

.featured-grid-5 .featured-title a {
	color: var(--color-white);
	text-decoration: none;
}

.featured-grid-5 .featured-title a:hover {
	text-decoration: underline;
}

.featured-grid-5 .featured-category {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	margin-bottom: var(--spacing-xs);
}

.featured-grid-5 .featured-category a {
	color: var(--color-white);
	text-decoration: none;
}

.featured-grid-5 .featured-meta {
	font-size: var(--font-size-sm);
	opacity: 0.8;
	margin-top: var(--spacing-sm);
}

/* Legacy Featured Grid (keeping for backwards compatibility) */
.featured-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

@media (min-width: 768px) {
	.featured-grid {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: repeat(2, 1fr);
		max-height: 420px;
	}

	.featured-grid .featured-main {
		grid-row: span 2;
	}
}

@media (min-width: 992px) {
	.featured-grid {
		max-height: 520px;
	}
}

.featured-grid .featured-item {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.featured-grid .featured-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.featured-grid .featured-item:hover img {
	transform: scale(1.05);
}

.featured-grid .featured-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-md);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
	color: var(--color-white);
}

.featured-grid .featured-main {
	min-height: 300px;
}

@media (min-width: 768px) {
	.featured-grid .featured-main {
		min-height: 100%;
		max-height: 420px;
	}
}

@media (min-width: 992px) {
	.featured-grid .featured-main {
		max-height: 520px;
	}
}

.featured-grid .featured-main .featured-overlay {
	padding: var(--spacing-xl);
}

.featured-grid .featured-main .featured-title {
	font-size: var(--font-size-2xl);
}

.featured-grid .featured-secondary {
	min-height: 150px;
}

@media (min-width: 768px) {
	.featured-grid .featured-secondary {
		min-height: auto;
	}
}

.featured-grid .featured-title {
	font-size: var(--font-size-lg);
	margin: 0;
	line-height: var(--line-height-snug);
}

.featured-grid .featured-title a {
	color: var(--color-white);
	text-decoration: none;
}

.featured-grid .featured-title a:hover {
	text-decoration: underline;
}

/* Category Featured Layout (Therex-style: Large left + list right) */
.category-featured-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-lg);
}

@media (min-width: 768px) {
	.category-featured-layout {
		grid-template-columns: 2fr 1fr;
		align-items: stretch;
		max-height: 420px;
	}
}

@media (min-width: 992px) {
	.category-featured-layout {
		max-height: 520px;
	}
}

/* Large Featured Post (left side) */
.category-featured-main {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	min-height: 300px;
	max-height: 520px;
}

@media (min-width: 768px) {
	.category-featured-main {
		min-height: 100%;
		max-height: 420px;
	}
}

@media (min-width: 992px) {
	.category-featured-main {
		max-height: 520px;
	}
}

.category-featured-main .featured-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.category-featured-main .featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.category-featured-main:hover .featured-image img {
	transform: scale(1.05);
}

.category-featured-main .featured-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-xl);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
	color: var(--color-white);
}

/* Date Badge */
.date-badge {
	position: absolute;
	top: var(--spacing-md);
	left: var(--spacing-md);
	background-color: var(--color-gray-800);
	color: var(--color-white);
	padding: var(--spacing-sm) var(--spacing-md);
	text-align: center;
	border-radius: var(--radius-sm);
	line-height: 1;
	z-index: 2;
}

.date-badge .date-day {
	display: block;
	font-size: var(--font-size-2xl);
	font-weight: 700;
	font-family: var(--font-heading);
}

.date-badge .date-month {
	display: block;
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	margin-top: var(--spacing-xs);
	opacity: 0.9;
}

/* Category Badge in Featured */
.featured-category-badge {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: var(--spacing-xs) var(--spacing-sm);
	font-size: var(--font-size-xs);
	font-weight: 700;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	margin-bottom: var(--spacing-sm);
}

.featured-category-badge a {
	color: var(--color-white);
	text-decoration: none;
}

.category-featured-main .featured-title {
	font-size: var(--font-size-2xl);
	margin: 0;
	line-height: var(--line-height-snug);
}

.category-featured-main .featured-title a {
	color: var(--color-white);
	text-decoration: none;
}

.category-featured-main .featured-title a:hover {
	text-decoration: underline;
}

.category-featured-main .featured-meta {
	font-size: var(--font-size-sm);
	opacity: 0.8;
	margin-top: var(--spacing-sm);
}

/* Posts List (right side) - Therex style */
.category-posts-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	height: 100%;
	justify-content: space-between;
}

.category-posts-list .list-post-item {
	display: flex;
	gap: var(--spacing-md);
	padding: var(--spacing-md) 0;
	border-bottom: 1px solid var(--color-gray-200);
	flex: 1;
}

.category-posts-list .list-post-item:first-child {
	padding-top: 0;
}

.category-posts-list .list-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.category-posts-list .list-post-content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.category-posts-list .list-post-thumbnail {
	flex-shrink: 0;
	width: 110px;
	height: 75px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	order: 1;
}

.category-posts-list .list-post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.category-posts-list .list-post-item:hover .list-post-thumbnail img {
	transform: scale(1.05);
}

.category-posts-list .list-post-category {
	display: inline-block;
	color: var(--color-accent);
	padding: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: var(--spacing-xs);
	width: fit-content;
}

.category-posts-list .list-post-category a {
	color: var(--color-accent);
	text-decoration: none;
}

.category-posts-list .list-post-category a:hover {
	color: var(--color-accent-dark, #B84518);
}

.category-posts-list .list-post-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 var(--spacing-xs);
	line-height: var(--line-height-snug);
	text-transform: uppercase;
}

.category-posts-list .list-post-title a {
	color: var(--color-gray-900);
	text-decoration: none;
}

.category-posts-list .list-post-title a:hover {
	color: var(--color-primary);
}

.category-posts-list .list-post-meta {
	font-size: var(--font-size-xs);
	color: var(--color-gray-500);
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.category-posts-list .list-post-meta::before {
	content: '';
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

/* Image Overlay Card Grid (for Fashion News style) */
.overlay-card-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: var(--spacing-md);
}

@media (min-width: 576px) {
	.overlay-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.overlay-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1200px) {
	.overlay-card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.overlay-card {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.overlay-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.overlay-card:hover img {
	transform: scale(1.05);
}

.overlay-card .overlay-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--spacing-md);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
	color: var(--color-white);
}

.overlay-card .overlay-category {
	display: inline-block;
	background-color: var(--color-accent);
	color: var(--color-white);
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: var(--radius-sm);
	margin-bottom: var(--spacing-xs);
}

.overlay-card .overlay-category a {
	color: var(--color-white);
	text-decoration: none;
}

.overlay-card .overlay-meta {
	font-size: var(--font-size-xs);
	opacity: 0.8;
	margin-bottom: var(--spacing-xs);
}

.overlay-card .overlay-title {
	font-size: var(--font-size-base);
	font-weight: 700;
	margin: 0;
	line-height: var(--line-height-snug);
	text-transform: uppercase;
}

.overlay-card .overlay-title a {
	color: var(--color-white);
	text-decoration: none;
}

.overlay-card .overlay-title a:hover {
	text-decoration: underline;
}

/* 3x2 Grid Layout (Fixed 3 columns) */
.grid-3x2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

@media (min-width: 576px) {
	.grid-3x2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.grid-3x2 {
		grid-template-columns: repeat(3, 1fr);
	}
}
/* Note: Does NOT expand to 4 columns at 1200px like overlay-card-grid */

/* 3x2 grid in sidebar area - 2 columns instead of 3 */
.home-with-sidebar-main .grid-3x2 {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
	.home-with-sidebar-main .grid-3x2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.home-with-sidebar-main .grid-3x2 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Featured Section Spacing */
.featured-section {
	margin-bottom: var(--spacing-2xl);
}

/* ==========================================================================
   Post Card List (Horizontal cards - one per row)
   ========================================================================== */

.post-card-list {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-lg);
}

.post-card-horizontal {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition-fast);
}

.post-card-horizontal:hover {
	box-shadow: var(--shadow-md);
}

@media (min-width: 576px) {
	.post-card-horizontal {
		flex-direction: row;
	}
}

/* Card Image */
.post-card-image {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	aspect-ratio: 16 / 10;
}

@media (min-width: 576px) {
	.post-card-image {
		width: 280px;
		aspect-ratio: auto;
	}
}

@media (min-width: 768px) {
	.post-card-image {
		width: 320px;
	}
}

.post-card-image a {
	display: block;
	width: 100%;
	height: 100%;
}

.post-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.post-card-horizontal:hover .post-card-image img {
	transform: scale(1.05);
}

/* Date Badge on Card */
.post-card-image .date-badge {
	position: absolute;
	top: 0;
	left: 0;
	background-color: var(--color-gray-800);
	color: var(--color-white);
	padding: var(--spacing-sm) var(--spacing-md);
	text-align: center;
	line-height: 1;
	z-index: 2;
	border-radius: 0 0 var(--radius-sm) 0;
}

.post-card-image .date-badge .date-day {
	display: block;
	font-size: var(--font-size-xl);
	font-weight: 700;
	font-family: var(--font-heading);
}

.post-card-image .date-badge .date-month {
	display: block;
	font-size: var(--font-size-xs);
	text-transform: uppercase;
	margin-top: 2px;
	opacity: 0.9;
}

/* Card Content */
.post-card-content {
	flex: 1;
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
}

.post-card-title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	line-height: var(--line-height-tight);
	margin: 0 0 var(--spacing-sm);
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.post-card-title {
		font-size: var(--font-size-xl);
	}
}

.post-card-title a {
	color: var(--color-gray-900);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.post-card-title a:hover {
	color: var(--color-primary);
}

/* Card Meta */
.post-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-md);
	font-size: var(--font-size-sm);
}

.post-card-category {
	display: inline-block;
	color: var(--color-accent);
	padding: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.post-card-category a {
	color: var(--color-accent);
	text-decoration: none;
}

.post-card-category a:hover {
	color: var(--color-accent-dark, #B84518);
}

.post-card-date {
	color: var(--color-gray-500);
}

/* Card Excerpt */
.post-card-excerpt {
	color: var(--color-gray-600);
	font-size: var(--font-size-base);
	line-height: var(--line-height-relaxed);
	margin-bottom: var(--spacing-md);
	flex: 1;
}

/* Read More Button */
.post-card-readmore {
	display: inline-block;
	padding: var(--spacing-sm) var(--spacing-lg);
	border: 1px solid var(--color-gray-300);
	color: var(--color-gray-700);
	font-size: var(--font-size-sm);
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all var(--transition-fast);
	align-self: flex-start;
}

.post-card-readmore:hover {
	background-color: var(--color-gray-900);
	border-color: var(--color-gray-900);
	color: var(--color-white);
}

/* Post Card List in Sidebar Layout */
.home-with-sidebar-main .post-card-horizontal {
	flex-direction: column;
}

@media (min-width: 768px) {
	.home-with-sidebar-main .post-card-horizontal {
		flex-direction: row;
	}

	.home-with-sidebar-main .post-card-image {
		width: 240px;
	}
}

@media (min-width: 992px) {
	.home-with-sidebar-main .post-card-image {
		width: 280px;
	}
}

/* Category Featured Main - Therex style */
.category-featured-main .featured-title {
	text-transform: uppercase;
}

/* News Carousel */
.news-carousel {
	margin-bottom: var(--spacing-2xl);
}

.news-carousel .section-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: var(--spacing-xl);
}

.news-carousel .section-header::before,
.news-carousel .section-header::after {
	content: '';
	flex: 1;
	max-width: 120px;
	height: 2px;
	background-color: var(--color-gray-900);
}

.news-carousel .section-header::before {
	margin-right: var(--spacing-lg);
}

.news-carousel .section-header::after {
	margin-left: var(--spacing-lg);
}

.news-carousel .section-header h2 {
	font-family: var(--font-heading);
	font-size: var(--font-size-2xl);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	color: var(--color-gray-900);
}

.news-carousel .swiper-slide {
	width: 300px;
}

.news-carousel .carousel-item {
	background-color: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.news-carousel .carousel-item .thumbnail {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.news-carousel .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.news-carousel .carousel-item:hover img {
	transform: scale(1.05);
}

.news-carousel .carousel-content {
	padding: var(--spacing-md);
}

.news-carousel .carousel-title {
	font-size: var(--font-size-base);
	margin-bottom: var(--spacing-xs);
	line-height: var(--line-height-snug);
}

.news-carousel .carousel-title a {
	color: var(--color-gray-900);
	text-decoration: none;
}

.news-carousel .carousel-title a:hover {
	color: var(--color-primary);
}

/* Breaking News Ticker */
.breaking-news {
	background-color: var(--color-accent);
	padding: var(--spacing-sm) 0;
	overflow: hidden;
}

.breaking-news .container {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}

.breaking-news .breaking-label {
	flex-shrink: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-white);
	text-transform: uppercase;
	font-size: var(--font-size-sm);
}

.breaking-news .breaking-ticker {
	flex: 1;
	overflow: hidden;
}

.breaking-news .ticker-content {
	display: flex;
	animation: ticker 30s linear infinite;
}

.breaking-news .ticker-item {
	flex-shrink: 0;
	padding-right: var(--spacing-2xl);
	white-space: nowrap;
}

.breaking-news .ticker-item a {
	color: var(--color-white);
}

@keyframes ticker {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Homepage Layout - Single Column */
.home-content {
	display: block;
}

.home-main {
	min-width: 0; /* Prevent grid blowout */
}

/* ==========================================================================
   Homepage Sidebar Layout (for specific sections)
   ========================================================================== */

.home-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-xl);
	margin-bottom: var(--spacing-2xl);
}

@media (min-width: 992px) {
	.home-with-sidebar {
		grid-template-columns: 1fr 300px;
		gap: var(--spacing-2xl);
	}
}

@media (min-width: 1200px) {
	.home-with-sidebar {
		grid-template-columns: 1fr 350px;
	}
}

.home-with-sidebar-main {
	min-width: 0;
}

/* Home Sidebar */
.home-sidebar {
	display: none;
}

@media (min-width: 992px) {
	.home-sidebar {
		display: block;
	}
}

.home-sidebar .sidebar-widget,
.home-sidebar .widget {
	background-color: var(--color-white);
	border: 1px solid var(--color-gray-200);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-lg);
}

.home-sidebar .widget-title,
.home-sidebar .sidebar-widget h3 {
	font-family: var(--font-heading);
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--color-gray-900);
	margin: 0 0 var(--spacing-md);
	padding-bottom: var(--spacing-sm);
	border-bottom: 2px solid var(--color-accent);
}

/* Popular Posts Widget */
.popular-posts-widget {
	list-style: none;
	margin: 0;
	padding: 0;
}

.popular-post-item {
	display: flex;
	gap: var(--spacing-md);
	padding: var(--spacing-sm) 0;
	border-bottom: 1px solid var(--color-gray-100);
}

.popular-post-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.popular-post-item:first-child {
	padding-top: 0;
}

.popular-post-number {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--font-size-sm);
	font-weight: 700;
	border-radius: var(--radius-sm);
}

.popular-post-content {
	flex: 1;
	min-width: 0;
}

.popular-post-title {
	font-size: var(--font-size-sm);
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 var(--spacing-xs);
}

.popular-post-title a {
	color: var(--color-gray-900);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.popular-post-title a:hover {
	color: var(--color-accent);
}

.popular-post-date {
	font-size: var(--font-size-xs);
	color: var(--color-gray-500);
}

/* Sidebar sections use simpler layout when in sidebar */
.home-with-sidebar-main .category-featured-layout {
	grid-template-columns: 1fr;
}

@media (min-width: 768px) and (max-width: 991px) {
	.home-with-sidebar-main .category-featured-layout {
		grid-template-columns: 2fr 1fr;
	}
}

@media (min-width: 992px) {
	.home-with-sidebar-main .category-featured-layout {
		grid-template-columns: 1fr 1fr;
		max-height: none;
	}

	.home-with-sidebar-main .category-featured-main {
		max-height: 400px;
	}
}

/* Overlay grid in sidebar area - 2 columns instead of 4 */
.home-with-sidebar-main .overlay-card-grid {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
	.home-with-sidebar-main .overlay-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Hide "View all" link on mobile */
@media (max-width: 767px) {
	.category-section .view-all {
		display: none;
	}
}
