/* Main swiper container */
.blog-swiper-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Swiper container */
.blog-swiper {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Swiper slide */
.swiper-slide {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
}

/* First slide layout */
.swiper-slide:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* Big post in first slide */
.swiper-slide:first-child .blog-post:first-child {
    grid-row: span 2;
    height: 510px;
}

.swiper-slide:first-child .blog-post:first-child img {
    height: 100%;
}


/* Other slides layout (2x2 grid) */
.swiper-slide:not(:first-child) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

/* Blog post styling */
.blog-post {
    position: relative;
    overflow: hidden;
	height: 240px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: linear-gradient(
    0.21deg, 
    rgba(235, 94, 74, 0.8) -4.55%, 
    rgba(73, 72, 70, 0) 77.59%
);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem;
	justify-content: space-between;
}

.blog-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
	transition: transform 0.5s ease;
    transform: scale(1); /* Initial state */
}

.blog-post:hover .blog-post-image {
    transform: scale(1.1); /* Zoom effect on hover */
}

.blog-post-tag {
    display: inline-block;
    background-color: #EB5E4A;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Manrope", sans-serif;
    font-weight: 700;
	width: fit-content;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
    margin-bottom: 8px;
}

.blog-post-title {
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    font-size: 40px;
	max-width: 400px;
    vertical-align: middle;
    margin: 0;
}

/* Adjust title size for smaller posts */
.swiper-slide:first-child .blog-post:not(:first-child) .blog-post-title,
.swiper-slide:not(:first-child) .blog-post-title {
    font-size: 24px;
    line-height: 130%x;
}

/* Navigation buttons */
.swiper-button-next, .swiper-button-prev {
    display: none!important;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
}

/* Pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
    opacity: 1;
}

@media (max-width: 768px) {
    .blog-swiper {
        height: auto;
    }
    
    /* Force single column layout */
    .swiper-slide {
        display: block !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        padding: 0 10px 20px 10px;
    }
    
    /* Make all posts equal height */
    .blog-post {
        height: 350px !important; /* Adjust this value as needed */
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Reset first post special styling */
    .swiper-slide:first-child .blog-post:first-child {
        grid-row: auto !important;
        height: 350px !important;
    }
    
    /* Adjust title sizes for mobile */
    .blog-post-title {
        font-size: 28px !important;
    }
    
    .swiper-slide:first-child .blog-post:not(:first-child) .blog-post-title,
    .swiper-slide:not(:first-child) .blog-post-title {
        font-size: 24px !important;
    }
    
    /* Adjust hover effect */
    .blog-post:hover .blog-post-image {
        transform: scale(1.05);
    }
    
    /* Ensure only one post per slide */
    .swiper-slide > *:not(:first-child) {
        display: none;
    }
	
	.blog-post-image {
		height: 100%!important;
	}
}