.main-slider {
    position: relative;
    border-radius: 12px;
}

.post-details .swiper-slide img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}


@media (max-width: 768px) {
    .swiper-slide img {
        aspect-ratio: 16 / 10;
        width: 100% !important;
    }
}
/* Navigation arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.swiper-button-prev {
    left: 15px;
    z-index: 1;
}

.swiper-button-next {
    right: 15px;
    z-index: 1;
}

/* Override default Swiper styles */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

/* Pagination bullets */
.swiper-pagination {
    bottom: 10px !important;
    text-align: center;
    z-index: 1;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.3s;
    z-index: 1;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #cd4846; /* Your theme primary */
}

@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .swiper-button-prev {
        left: 8px;
    }

    .swiper-button-next {
        right: 8px;
    }
}
