/* =========================================================
   BLOG ARCHIVE
   ========================================================= */

.xv-blog-archive {
	background: #fff;
}

.xv-blog-archive-container {
	max-width: 1170px;
	width: 100%;
	margin: 0 auto;
	padding: 50px 15px 75px;
}


/* =========================================================
   ARCHIVE HEADER
   ========================================================= */

.xv-blog-archive-header {
	max-width: 760px;
	margin: 0 auto 45px;
	text-align: center;
}

.xv-blog-archive-header h1 {
	margin: 0;
	color: #262430;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
}

.xv-blog-archive-description {
	margin-top: 15px;
	color: #666;
	font-size: 1.05rem;
	line-height: 1.7;
}

.xv-blog-archive-description p {
	margin: 0;
}


/* =========================================================
   POSTS GRID
   ========================================================= */

.xv-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 22px;
}

.xv-blog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
	box-shadow:
		rgba(50, 50, 105, 0.15) 0 2px 5px,
		rgba(0, 0, 0, 0.05) 0 1px 1px;
	transition:
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.xv-blog-card:hover {
	box-shadow:
		rgba(50, 50, 105, 0.18) 0 10px 25px,
		rgba(0, 0, 0, 0.06) 0 2px 5px;
	transform: translateY(-4px);
}


/* =========================================================
   CARD IMAGE
   ========================================================= */

.xv-blog-card-image {
	display: block;
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: #F6F6FA;
}

.xv-blog-card-thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.xv-blog-card:hover .xv-blog-card-thumbnail {
	transform: scale(1.035);
}

.xv-blog-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	background:
		linear-gradient(
			135deg,
			#F6F6FA 0%,
			#e9e7f5 100%
		);
	color: #4C4497;
	font-weight: 700;
	text-align: center;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.xv-blog-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.xv-blog-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 15px;
	margin-bottom: 13px;
	color: #777;
	font-size: 0.78rem;
}

.xv-blog-card-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.xv-blog-card-meta-item svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #4C4497;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.xv-blog-card-title {
	margin: 0 0 12px;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.35;
}

.xv-blog-card-title a {
	color: #262430;
	text-decoration: none;
	transition: color 0.2s ease;
}

.xv-blog-card-title a:hover {
	color: #4C4497;
}

.xv-blog-card-excerpt {
	margin-bottom: 22px;
	color: #62606a;
	font-size: 0.93rem;
	line-height: 1.65;
}

.xv-blog-card-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	margin-top: auto;
	color: #4C4497;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.xv-blog-card-link span {
	font-size: 1.1rem;
	transition: transform 0.2s ease;
}

.xv-blog-card-link:hover {
	color: #3D3679;
}

.xv-blog-card-link:hover span {
	transform: translateX(4px);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.xv-blog-pagination {
	margin-top: 50px;
}

.xv-blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.xv-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	border: 1px solid #e4e2ec;
	border-radius: 4px;
	background: #fff;
	color: #4C4497;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.xv-blog-pagination .page-numbers:hover,
.xv-blog-pagination .page-numbers.current {
	border-color: #4C4497;
	background: #4C4497;
	color: #fff;
}


/* =========================================================
   EMPTY ARCHIVE
   ========================================================= */

.xv-blog-empty {
	padding: 50px 20px;
	border-radius: 6px;
	background: #F6F6FA;
	text-align: center;
}

.xv-blog-empty h2 {
	margin: 0 0 10px;
	color: #3D3679;
}

.xv-blog-empty p {
	margin: 0;
	color: #666;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
	.xv-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.xv-blog-archive-container {
		padding: 35px 15px 55px;
	}

	.xv-blog-archive-header {
		margin-bottom: 30px;
		text-align: left;
	}

	.xv-blog-archive-header h1 {
		font-size: 2.25rem;
	}

	.xv-blog-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.xv-blog-card-image {
		height: 230px;
	}

	.xv-blog-pagination {
		margin-top: 35px;
	}
}