/* NEWS & EVENTS SECTION */
.newsContainer-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background: linear-gradient(#ECEFFE, #CED6FB);
    padding: 20px; /* Added padding for spacing */


    animation: apper linear;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
}

.newsContainer {
    width: 90%;
    max-width: 1200px;
}

/* TITLE STYLING */
.newsh {
    position: absolute;
    top: 20px;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

/* NEWS ITEM DESIGN */
.news-list .news-item .news-link {
    width: 100%;
    display: block;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.news-list .news-item .news-link:hover {
    border-color: #1567FD;
    transform: translateY(-5px);
}

.news-item .news-link .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* NEWS TITLE */
.news-list .news-link .news-title {
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
    margin-top: 10px;
}

/* BUTTON STYLING */
.news-list .news-link .news-button {
    height: 40px;
    width: 40px;
    color: #1567FD;
    border-radius: 50%;
    margin-top: 15px;
    background: none;
    cursor: pointer;
    border: 2px solid #1567FD;
    transform: rotate(-45deg);
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-list .news-link:hover .news-button {
    color: #fff;
    background: #1567FD;
}


.btn-sld{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 50px !important;
    width: 50px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* Ensure it's above other elements */
    }
    .btn-sld:hover{
        background: rgba(255, 255, 255, 0.8) !important;;
    }
    
    .btn-sld::before,
    .btn-sld::after {
        font-size: 36px !important;
        font-weight: bold;
        color: #000000;
    }


/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .newsh {
        font-size: 2rem;
    }

    .news-list .news-item .news-link {
        padding: 15px;
    }

    .swiper-button-prev {
        left: -30px;
    }

    .swiper-button-next {
        right: -30px;
    }

    .btn-sld{
        display: none !important;
    }
}

@media (max-width: 768px) {
    .newsh {
        font-size: 1.8rem;
    }

    .news-list .news-item .news-link {
        padding: 12px;
    }

    .news-item .news-link .news-image {
        height: 180px;
    }

    .news-list .news-link .news-title {
        font-size: 1rem;
    }

    .news-list .news-link .news-button {
        height: 35px;
        width: 35px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .newsh {
        font-size: 1.5rem;
    }

    .news-item .news-link .news-image {
        height: 160px;
    }

    .news-list .news-link .news-title {
        font-size: 0.95rem;
    }

    .news-list .news-link .news-button {
        height: 30px;
        width: 30px;
    }
}






@keyframes apper{
    from{
        opacity: 0;
        transform: translateY(-100px);
    }
    to{
        opacity: 1;
        transform: translateY(0px);
    }
}
