#sec-news{
    background-color: #F4F4F3;
}
.news-content{
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10rem;
    height: 30svw; 
    overflow: hidden;

}
.news-carousel{
    height: 100%;
    transition: all 1s ease-in-out;
}
.news-carousel-slide{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap:2rem;
    height: 100%;
    transition: all 0.5s ease-in-out;
}
.news-carousel-slide h3{
    width: 100%;
}
.news-carousel-slide img{
    height: 100%;
    aspect-ratio: 1/1;
    object-fit:cover;
    border-radius: .5rem;
}
time{
    color: var(--color-dark-gray);
    font-size: 0.8rem;
    opacity: .75;
    margin-top: .5rem;
}
.news-text p{
    margin-top: 1rem;
}
.news-dots{
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 50%;
}
.dot{
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--color-dark-gray);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    transform: scale(0.75);

}
.dot-active{
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1200px) {
    .news-content{
        height: 30svw;
        gap: 2rem;
    }
    .dot{
        width: 1.25rem;
        height: 1.25rem;
    }

}
@media (max-width: 1024px){
    .news-content{
        height: 40svw;
    }
    .news-carousel-slide p{
        font-size: 1rem;
    }
}
@media (max-width: 480px){
    .news-content{
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        height: 100svw;
        position: relative;
        width: 100%;

    }
    .news-content *{
        text-align: center;
    }
    .news-carousel{
        width: 100%;
    }
    .news-carousel-slide p{
        width: 80%;
        font-size: 1rem;
    }
    .news-carousel-slide h3{
        width: 100%;
    }
    .news-carousel-slide h3,
    .news-carousel-slide p{
    overflow-wrap: break-word;  
    }
    .news-carousel-slide{
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 1rem;
        width: 100%;
    }
    .news-carousel-slide > *{
        min-width: 0;
    }   
    .news-carousel-slide img{
        height: 30svh;
        aspect-ratio: 1/1;
        object-fit: contain;
    }
    .news-text{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    .news-dots{
        position: absolute;
        bottom: 0rem;
        width: 50%;
        flex-direction: row;
        height: auto;
        ;
    }
    .dot{
        width: 1.55rem;
        height: 1.55rem;
    }

}
@media (max-width: 450px){
    .news-content{
        height: 110svw;
    }
}
@media (max-width: 420px){
    .news-content{
        height: 120svw;
    }
}
@media (max-width: 400px){
    .news-content{
        height: 130svw;
    }
}
@media (max-width: 370px){
    .news-content{
        height: 140svw;
    }
}
@media (max-width: 340px){
    .news-content{
        height: 160svw;
    }
}