/* ============================================
   BLOG SECTION STYLES
   Original: From blog slider section
   Optimized: Cleaned up, font-face optimized
============================================ */

/* Font optimization - Preconnect added in HTML */
body, .blog-slider-section, .blog-card, .blog-content h4, .section-title-header,
.blog-meta, .blog-excerpt, .blog-author {
    font-family: 'Hind Siliguri', sans-serif !important;
}

.blog-slider-section {
	background: #fff;
	padding: 40px 0;
}

.section-title-header {
	font-size: 28px;
	font-weight: 700;
	color: #222;
	margin-bottom: 20px;
}

.section-title-name {
	position: relative;
}

.section-title-name:after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background: #5fa30f;
	border-radius: 2px;
}

/* Blog Card */
.blog-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.07);
	transition: all .35s ease;
	position: relative;
	border: 2px solid rgba(0, 0, 0, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.12);
	border-color: #5fa30f;
	background-color: rgba(95, 163, 15, 0.03);
}

/* Light effect animation */
.blog-card::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border: 2px solid transparent;
	border-radius: 18px;
	pointer-events: none;
	opacity: 0;
	transition: all 0.5s ease;
}

.blog-card:hover::before {
	opacity: 1;
	border-color: #5fa30f;
	animation: lightenEffect 1.5s infinite alternate;
}

@keyframes lightenEffect {
	0% {
		box-shadow: 0 0 0 0 rgba(95, 163, 15, 0.2);
	}
	100% {
		box-shadow: 0 0 0 8px rgba(95, 163, 15, 0);
	}
}

.blog-card a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Blog Image */
.blog-image {
	position: relative;
	height: 200px;
	overflow: hidden;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
	border-radius: 14px 14px 0 0;
}

.blog-card:hover img {
	transform: scale(1.1);
}

/* Category Badge */
.blog-category-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 2;
}

.blog-category-badge span {
	background: #5fa30f;
	color: #fff;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	display: inline-block;
	box-shadow: 0 3px 10px rgba(95, 163, 15, 0.3);
}

/* Date Badge */
.blog-date-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 12px;
	z-index: 2;
}

.blog-date-badge i {
	margin-right: 5px;
}

/* Overlay */
.blog-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.35);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: .4s;
	border-radius: 14px 14px 0 0;
	z-index: 1;
}

.blog-card:hover .blog-overlay {
	opacity: 1;
}

.blog-overlay span {
	background: #5fa30f;
	color: #fff;
	padding: 8px 20px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.blog-overlay:hover span {
	background: #4a8a0d;
	transform: scale(1.05);
}

/* Blog content */
.blog-content {
	padding: 15px;
	text-align: center;
	transition: background-color .35s ease;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.blog-content h4 {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
}

/* Blog meta */
.blog-meta {
	margin-top: auto;
}

.blog-author {
	font-size: 13px;
	color: #666;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.blog-author i {
	color: #5fa30f;
}

.blog-excerpt {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Owl Carousel Nav */
.owl-nav button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #fff !important;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	box-shadow: 0 5px 15px rgba(0,0,0,.15);
	z-index: 10;
	border: 1px solid rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

.owl-nav button:hover {
	background: #5fa30f !important;
	border-color: #5fa30f;
}

.owl-nav button:hover i {
	color: white !important;
}

.owl-nav .owl-prev { 
	left: -15px; 
}

.owl-nav .owl-next { 
	right: -15px; 
}

.owl-nav i {
	color: #333;
	font-size: 16px;
	transition: color 0.3s ease;
}

/* Owl Carousel Dots */
.owl-dots {
	margin-top: 20px;
	text-align: center;
}

.owl-dot {
	display: inline-block;
	margin: 0 5px;
}

.owl-dot span {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
	transition: all 0.3s ease;
}

.owl-dot.active span {
	background: #5fa30f;
	width: 25px;
	border-radius: 5px;
}

/* Image loading style */
.blog-image img {
	background: #f5f5f5;
}

.blog-image img[src*="default.png"] {
	background: linear-gradient(45deg, #f5f5f5, #e9e9e9);
}

/* Responsive */
@media (max-width: 1200px) {
	.blog-image {
		height: 180px;
	}
}

@media (max-width: 992px) {
	.blog-image {
		height: 160px;
	}
	.blog-content h4 {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.blog-card {
		border-width: 1.5px;
	}
	.blog-image {
		height: 160px;
	}
	.blog-content h4 {
		font-size: 14px;
	}
	.section-title-header {
		font-size: 24px;
	}
}

@media (max-width: 576px) {
	.blog-image {
		height: 140px;
	}
	.blog-content h4 {
		font-size: 13px;
	}
	.owl-nav button {
		width: 32px;
		height: 32px;
		display: none !important;
	}
	.owl-nav i {
		font-size: 14px;
	}
	.blog-category-badge span {
		font-size: 11px;
		padding: 4px 10px;
	}
	.blog-date-badge {
		font-size: 11px;
		padding: 4px 8px;
	}
}