@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =====================
   Blog Listing Page
   ===================== */
.blog-section *,
.single-post-section * {
	font-family: "Poppins", sans-serif !important;
}

.blog-section {
	background-color: #f7f9fb;
	padding: 20px 0 60px;
	min-height: 60vh;
}

.blog-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.blog-heading {
	font-size: 2.5rem;
	color: #147696;
	margin-bottom: 40px;
	text-align: center;
	font-weight: 700;
}

.blog-empty {
	text-align: center;
	color: #54595f;
	font-size: 1.1rem;
	margin-top: 40px;
}

/* ---- Grid ---- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* ---- Card ---- */
.blog-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

/* Featured image */
.blog-card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #e8f0f4;
}

.blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
	transform: scale(1.04);
}

.blog-card-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #cde6ef 0%, #e8f4f8 100%);
}

/* Card body */
.blog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}

.blog-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0 0 12px;
	line-height: 1.4;
}

.blog-card-excerpt {
	font-size: 0.9rem;
	color: #54595f;
	line-height: 1.65;
	flex: 1;
	margin: 0 0 18px;
}

.blog-card-btn {
	display: inline-block;
	align-self: flex-start;
	background-color: #147696;
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 8px 20px;
	border-radius: 50px;
	transition: background-color 0.2s ease;
	text-decoration: none;
}

.blog-card:hover .blog-card-btn {
	background-color: #0f5a73;
}

/* ---- Pagination ---- */
.blog-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 50px;
}

.page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 50px;
	background-color: #ffffff;
	color: #147696;
	border: 2px solid #147696;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.page-btn:hover,
.page-btn.active {
	background-color: #147696;
	color: #ffffff;
}

/* =====================
   Single Post Page
   ===================== */

.single-post-section {
	font-family: "Poppins", sans-serif;
	background-color: #f7f9fb;
	padding: 20px 0 60px;
	min-height: 60vh;
}

.single-post-container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 20px;
}

.back-to-blog {
	display: inline-block;
	color: #147696;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 28px;
	transition: color 0.2s ease;
}

.back-to-blog:hover {
	color: #0f5a73;
}

.single-post-hero {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 30px;
	/* aspect-ratio: 16 / 7; */
}

.single-post-hero img {
	width: 100%;
	/* height: 100%; */
	object-fit: cover;
	display: block;
}

.single-post-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
	margin: 0 0 10px;
}

.single-post-date {
	font-size: 0.875rem;
	color: #888;
	margin: 0 0 30px;
}

.single-post-content {
	font-size: 1rem;
	color: #333;
	line-height: 1.8;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
	color: #147696;
	margin-top: 1.8em;
	margin-bottom: 0.6em;
}

.single-post-content img {
	max-width: 100%;
	border-radius: 8px;
	margin: 16px 0;
}

.single-post-content a {
	color: #147696;
	text-decoration: underline;
}

.single-post-content ul,
.single-post-content ol {
	padding-left: 24px;
	margin-bottom: 1em;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.blog-section {
		padding: 60px 0 40px;
	}

	.blog-heading {
		font-size: 1.8rem;
	}

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