.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-items {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-item {
    height: 500px;
    width: 100%;
    display: none;
    position: relative;
    transition: 0.2s;
}
.carousel-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.carousel-item.active {
    display: block;
    transition: 0.2s;
}
.carousel-item-content{
    max-width: 1500px;
    width: 100%;
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    color: var(--white-color);
    padding: 10px;
}
.carousel-item-content-title{
    font-weight: 700;
    font-size: 48px;
}
.carousel-item-content-description{
    font-size: 24px;
    font-weight: 500;
}
.carousel-button-prev,
.carousel-button-next{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel-button-prev img,
.carousel-button-next img{
    width: 10px;
    height: 10px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.carousel-buttons{
    position: absolute;
    bottom: 5%;
    right: 2.5%;
    z-index: 2;
}


@media (max-width: 950px) {
    .carousel-item-content-title{
        font-size: 30px;
    }
    .carousel-item-content-description{
        font-size: 20px;
    }
}
@media (max-width: 430px) {
    .carousel-item-content-title{
        font-size: 24px;
    }
    .carousel .button-green{
        width: 100%;
    }
    .carousel-buttons{
        bottom: 1%;
        left: 41%;
    }
    .carousel-buttons button{
        width: 24px;
        height: 24px;
    }
    .carousel-item-content{
        gap: 12px;
        top: auto;
        bottom: -7%;
    }
    .main-container h2 {
        font-size: 20px;
    }
}