/**
 * Beautiful Blog Page Styles
 * Modern grid layout with Load More functionality
 */

/* =========================
   BLOG HERO
========================= */
.blog-hero {
	background: linear-gradient(135deg, rgba(31, 41, 51, 0.95) 0%, rgba(59, 78, 255, 0.85) 100%);
	padding: 100px 20px 80px;
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.blog-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('../images/DSC04450-Edit.webp') center/cover no-repeat;
	filter: blur(10px);
	opacity: 0.2;
	z-index: 0;
}

.blog-hero-content {
	position: relative;
	z-index: 1;
}

.blog-main-title {
	font-size: 56px;
	font-weight: 700;
	margin: 0 0 15px 0;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
	font-size: 20px;
	margin: 0;
	opacity: 0.95;
	letter-spacing: 0.5px;
}

/* =========================
   BLOG MAIN
========================= */
.blog-main {
	padding: 80px 0;
	background: #f8f9fa;
	min-height: 60vh;
}

.blog-main .container {
	max-width: 1400px;
}

/* =========================
   BLOG POSTS GRID
========================= */
.blog-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 60px;
}

/* =========================
   BLOG CARD
========================= */
.blog-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: #f0f0f0;
}

.blog-card-image a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.blog-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

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

.blog-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(31, 41, 51, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.blog-card:hover .blog-image-overlay {
	opacity: 1;
}

.blog-image-overlay i {
	color: #ffffff;
	font-size: 32px;
	transform: translateX(-10px);
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-image-overlay i {
	transform: translateX(0);
}

.blog-card-placeholder {
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.placeholder-content {
	color: #9ca3af;
	font-size: 48px;
}

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

.blog-card-categories {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.blog-category-tag {
	display: inline-block;
	padding: 6px 14px;
	background: #e11b22;
	color: #ffffff;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.blog-category-tag:hover {
	background: #c5001d;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(225, 27, 34, 0.4);
}

.blog-card-title {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}

.blog-card-title a {
	color: #1f2933;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-card-title a:hover {
	color: #e11b22;
}

.blog-card-excerpt {
	margin-bottom: 20px;
	flex: 1;
}

.blog-card-excerpt p {
	margin: 0;
	color: #555;
	line-height: 1.7;
	font-size: 15px;
}

.blog-card-meta {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
	flex-wrap: wrap;
}

.blog-card-meta .meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #777;
}

.blog-card-meta .meta-item i {
	color: #e11b22;
	font-size: 12px;
}

.blog-card-footer {
	margin-top: auto;
}

.blog-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e11b22;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.blog-read-more:hover {
	color: #c5001d;
	gap: 12px;
}

.blog-read-more i {
	font-size: 12px;
	transition: transform 0.3s ease;
}

.blog-read-more:hover i {
	transform: translateX(4px);
}

/* =========================
   LOAD MORE BUTTON
========================= */
.load-more-wrapper {
	text-align: center;
	margin-top: 60px;
}

.load-more-btn {
	padding: 16px 40px;
	background: #e11b22;
	color: #ffffff;
	border: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(225, 27, 34, 0.3);
	position: relative;
	min-width: 180px;
}

.load-more-btn:hover {
	background: #c5001d;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(225, 27, 34, 0.4);
}

.load-more-btn:active {
	transform: translateY(0);
}

.load-more-btn.loading {
	pointer-events: none;
	opacity: 0.8;
}

.load-more-btn .btn-loader {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.load-more-btn .btn-loader i {
	font-size: 14px;
}

.load-more-btn.hidden {
	display: none;
}

/* =========================
   NO POSTS MESSAGE
========================= */
.no-posts-message {
	text-align: center;
	padding: 80px 20px;
	color: #777;
	font-size: 18px;
	grid-column: 1 / -1;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 1200px) {
	.blog-posts-grid {
		gap: 30px;
	}
	
	.blog-main-title {
		font-size: 48px;
	}
}

@media (max-width: 992px) {
	.blog-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 30px;
	}
	
	.blog-main-title {
		font-size: 42px;
	}
	
	.blog-subtitle {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.blog-hero {
		padding: 80px 20px 60px;
	}
	
	.blog-main-title {
		font-size: 36px;
		letter-spacing: 1px;
	}
	
	.blog-subtitle {
		font-size: 16px;
	}
	
	.blog-main {
		padding: 60px 0;
	}
	
	.blog-posts-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.blog-card-image {
		height: 250px;
	}
	
	.blog-card-content {
		padding: 25px;
	}
	
	.blog-card-title {
		font-size: 22px;
	}
	
	.load-more-wrapper {
		margin-top: 40px;
	}
	
	.load-more-btn {
		padding: 14px 32px;
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.blog-main-title {
		font-size: 28px;
	}
	
	.blog-card-image {
		height: 220px;
	}
	
	.blog-card-content {
		padding: 20px;
	}
	
	.blog-card-title {
		font-size: 20px;
	}
	
	.blog-card-excerpt p {
		font-size: 14px;
	}
}
