.carousel-card-section {
    margin: 0 8rem;
}

.carousel-card-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40rem;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 40rem;
    width: 100%;
}

.cards {
    width: 100%;
    height: 30rem;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefits-card {
    background: var(--color-card-background-1);
    border-radius: 1.5rem;
    box-shadow: 0 .2rem 1rem var(--color-separator-border);
    padding: 2rem;
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.4s ease;
    z-index: 0;
    text-align: center;
    min-height: 25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 20rem;
    left: 50%;
    transform: translateX(-50%)
}

.benefits-card.center {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 2;
}

.benefits-card.left {
    transform: translateX(-150%) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}

.benefits-card.right {
    transform: translateX(50%) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}


.benefits-card .stars {
    font-size: 1.2rem;
    color: var(--yellow-1);
    margin-bottom: .5rem;
    font-weight: bold;
    letter-spacing: 0;
}

.benefits-card .title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--blue-4);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.benefits-card .text {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.benefits-card .author {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: .2rem;
}

.benefits-card .date {
    font-size: 0.8em;
    color: var(--color-input-placeholder);
    opacity: 0.5;
}

.right svg {
    rotate: 90deg;
}

.left svg {
    rotate: -90deg;
}

.carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 1rem;
}

.carousel-btn svg {
    width: 2rem;
    height: 1.7rem;
}

.carousel-btn:active,
.carousel-btn:focus {
    background: var(--blue-4);
}

@media (width <= 1400px) {
    .carousel-card-section {
        margin: 0 2rem;
    }
}

@media (width <= 1200px) {
    .carousel-card-section {
        margin: 2rem;
    }
}

@media (width <= 576px) {
    .carousel-card-section {
        margin: 1rem;
    }

    .benefits-card.left {
        transform: translateX(-175%) scale(0.8);
    }

    .benefits-card.right {
        transform: translateX(75%) scale(0.8);
    }

    .carousel-card-container {
        min-height: 32rem;
    }

    .carousel {
        height: 32rem;
    }

    .benefits-card {
        width: 14rem;
        padding: 1rem;
        font-size: 0.75em;
    }

    .carousel-btn {
        width: 2rem;
        height: 2rem;
        margin: 0;
    }

    .benefits-card .stars {
        font-size: 1rem;
        margin-bottom: .5rem;
    }
}