@charset "utf-8";
/* CSS Document */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	background: #f8f6fa;
	color: #1f2235;
}

/* =========================
   HERO
   ========================= */
.blog-hero {
	padding: 120px 7% 90px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #ff4ca7, #c63fd8, #7d43ff);
	background-size: 400% 400%;
	animation: gradientMove 14s ease infinite;
}

.blog-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: .35;
}

.blog-hero h1 {
	position: relative;
	z-index: 2;
	font-size: 82px;
	margin-bottom: 22px;
}

.blog-hero p {
	position: relative;
	z-index: 2;
	font-size: 22px;
	line-height: 1.8;
	max-width: 900px;
	margin: auto;
}

@keyframes gradientMove {
	0% {background-position: 0% 50%;}
	50% {background-position: 100% 50%;}
	100% {background-position: 0% 50%;}
}

/* =========================
   MAIN
   ========================= */
.blog-wrapper {
	padding: 60px 7%;
}

.blog-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 35px;
}

/* =========================
   SIDEBAR
   ========================= */
.sidebar {
	background: #fff;
	border-radius: 30px;
	padding: 35px;
	height: max-content;
	box-shadow:	0 10px 35px rgba(180, 120, 220, .08);
}

.sidebar h3 {
	font-size: 20px;
	margin-bottom: 25px;
}

.category-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 35px;
}

.category-btn {
	border: none;
	background: #f7f4fb;
	padding: 16px 18px;
	border-radius: 18px;
	text-align: left;
	font-size: 15px;
	cursor: pointer;
	transition: .3s ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.category-btn:hover {
	background: #ffe4f7;
}

.category-btn.active {
	background:	linear-gradient(90deg, #ff4ca7, #c63fd8);
	color: #fff;
}

/* =========================
   SEARCH
   ========================= */
.search-box {
	position: relative;
	margin-bottom: 30px;
}

.search-box input {
	width: 100%;
	height: 58px;
	border: none;
	border-radius: 18px;
	padding: 0 55px 0 20px;
	background: #f7f4fb;
	font-size: 15px;
}

.search-box i {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #d94ac0;
}

/* =========================
   GRID
   ========================= */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

/* =========================
   CARD
   ========================= */
.blog-card {
	background: #fff;
	border-radius: 28px;
	overflow: hidden;
	box-shadow:	0 10px 30px rgba(180, 120, 220, .08);
	transition: .35s ease;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow:	0 18px 40px rgba(180, 120, 220, .16);
}

.blog-image {
	position: relative;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	transition: .5s ease;
}

.blog-card:hover img {
	transform: scale(1.06);
}

.blog-tag {
	position: absolute;
	top: 18px;
	left: 18px;
	background: #fff;
	color: #e63eb8;
	padding: 8px 14px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
}

.blog-content {
	padding: 28px;
}

.blog-content h2 {
	font-size: 28px;
	line-height: 1.35;
	margin-bottom: 18px;
}

.blog-meta {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	color: #777;
	font-size: 14px;
	margin-bottom: 20px;
}

.blog-meta i {
	color: #d94ac0;
}

.blog-content p {
	color: #666;
	line-height: 1.9;
	margin-bottom: 22px;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #e63eb8;
	font-weight: 600;
	transition: .3s ease;
}

.read-more:hover {
	gap: 16px;
}

/* =========================
   PAGINATION
   ========================= */
.pagination {
	margin-top: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.page-btn {
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: .3s ease;
	box-shadow:	0 5px 20px rgba(180, 120, 220, .08);
}

.page-btn.active {
	background:	linear-gradient(90deg, #ff4ca7, #c63fd8);
	color: #fff;
}

.page-btn:hover {
	transform: translateY(-4px);
}

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:1300px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media(max-width:1000px) {
	.blog-layout {
		grid-template-columns: 1fr;
	}
}

@media(max-width:700px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-hero h1 {
		font-size: 52px;
	}

	.blog-hero p {
		font-size: 18px;
	}

	.blog-wrapper {
		padding: 40px 20px;
	}
}