.latest-news {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    /* height: 400px; */
    /* height: 60vh; */
    overflow: hidden;
}

.mantain-height > img {
    width: 100%;
}

.news-posts {
    position: relative;
    width: 100%;
    height: 375px;
    height: max-content;
    display: flex;
    flex-direction: column;
    background: rgb(255,0,232);
    background: -moz-linear-gradient(336deg, rgba(255,0,232,1) 0%, rgba(99,215,242,1) 49%, rgba(60,202,253,1) 100%);
    background: -webkit-linear-gradient(336deg, rgba(255,0,232,1) 0%, rgba(99,215,242,1) 49%, rgba(60,202,253,1) 100%);
    background: linear-gradient(336deg, rgba(255,0,232,1) 0%, rgba(99,215,242,1) 49%, rgba(60,202,253,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff00e8",endColorstr="#3ccafd",GradientType=1);
    border-radius: 25px;
    overflow: hidden;
}

.news-post {
    position: absolute;
    width: 100%;
    /* height: 100%; */
    border-radius: 25px;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 1s ease, opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-post.active {
    transform: translateY(0); /* Slide in from the stack */
    opacity: 1; /* Make the active post visible */
    z-index: 1; /* Bring the active post on top */
}

.news-post img {
    width: 100%;
}

/* .previous-news-post, .next-news-post {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
} */
.next-news-post, .previous-news-post {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: none;
}

.previous-news-post {
    left: 10px;
}

.next-news-post {
    right: 10px;
}

.next-prev-btn i {
    color: var(--pink-color);
}

/* .active-dots { */
/* .next-prev-btn {
    position: absolute;
    bottom: -10px;
    left: 50%;
    z-index: 99;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
} */

.next-prev-btn {
    position: relative;
    /* bottom: -10px; */
    /* left: 50%; */
    /* z-index: 99; */
    /* transform: translateX(-50%); */
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 10px; */
    gap: 10px;
}

.active-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--pink-color);
}

@media only screen and (max-width: 767.09px) {
    .banners-for-tab-and-above {
        display: none;
    }
    .news-post {
        border-radius: 10px;
    }
    .news-posts {
        border-radius: 10px;
    }
    .main-section-wrapper {
        flex-direction: column;
    }
    .main-description,
    .main-feature-img {
        width: 100%;
    }
    .main-feature-img {
        justify-content: center;
    }
    .main-feature-img > img {
        width: 70%;
    }
    .post-reading-body > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .latest-news {
        margin-bottom: 5px;
    }
}

@media (min-width: 390px) and (max-width: 767.09px) {
    /* .latest-news {
        height: 12vh;
    }

    .next-prev-btn {
        margin: 10px;
    } */
}

@media (min-width: 768px) and (max-width: 1024px) {
    .news-posts {
        border-radius: 10px;
    }
}

@media only screen and (min-width: 768px) {
    .banners-for-mobile {
        display: none;
    }
}