﻿.modern-reviews {
    background: radial-gradient(circle at 12% 35%, rgba(249, 115, 22, 0.12), transparent 28%), radial-gradient(circle at 88% 35%, rgba(11, 31, 77, 0.08), transparent 30%), #f8fbff;
    padding: 90px 0;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.reviews-container {
    width: min(94%, 1360px);
    margin: 0 auto;
}

.reviews-heading {
    text-align: center;
    margin-bottom: 48px;
}

    .reviews-heading span {
        color: #f97316;
        font-size: 0.95rem;
        font-weight: 800;
        letter-spacing: 0.12em;
    }

    .reviews-heading h2 {
        color: #0b1f4d;
        font-size: clamp(2.4rem, 5vw, 4.4rem);
        font-weight: 800;
        letter-spacing: -0.055em;
        margin: 14px 0 12px;
    }

    .reviews-heading p {
        color: #53647f;
        font-size: 1.15rem;
        line-height: 1.7;
        max-width: 760px;
        margin: 0 auto;
    }

.reviews-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 0.82fr 1.08fr 0.82fr;
    gap: 34px;
    align-items: center;
}

.review-card {
    background: white;
    border: 1px solid #dfe5ee;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transition: 0.35s ease;
}

.side-card {
    min-height: 360px;
    padding: 42px 38px;
    opacity: 0.86;
}

.active-card {
    min-height: 450px;
    padding: 48px 56px;
    background: #06224b;
    color: white;
    position: relative;
    transform: scale(1.04);
    box-shadow: 0 22px 58px rgba(6, 34, 75, 0.24);
}

.quote-icon {
    color: #f97316;
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.5;
    text-align: center;
}

.review-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef3fb;
    margin-bottom: 26px;
}

    .review-avatar.large {
        width: 96px;
        height: 96px;
        min-width: 96px;
        border: 4px solid white;
        margin: 0;
    }

    .review-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.review-stars {
    color: #f97316;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.active-card .review-stars {
    text-align: center;
    margin-bottom: 24px;
}

.review-card p {
    color: #1f2f46;
    font-size: 1.15rem;
    line-height: 1.75;
    margin: 0 0 32px;
}

.active-card p {
    color: white;
    font-size: 1.55rem;
    line-height: 1.55;
    text-align: center;
    font-weight: 600;
    margin-bottom: 34px;
}

.review-author {
    border-top: 1px solid #dfe5ee;
    padding-top: 24px;
}

    .review-author strong {
        display: block;
        color: #0b1f4d;
        font-size: 1.35rem;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .review-author span {
        color: #53647f;
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .review-author span svg {
            width: 17px;
            height: 17px;
            color: #f97316;
        }

.active-author {
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 24px;
}

    .active-author strong {
        color: white;
        font-size: 1.65rem;
    }

    .active-author span {
        color: rgba(255,255,255,0.78);
    }

.verified-badge {
    width: fit-content;
    margin: 0 auto 28px;
    background: white;
    color: #0b1f4d;
    border: 1px solid #f97316;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .verified-badge svg {
        width: 22px;
        height: 22px;
        color: #f97316;
    }

.review-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #06224b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(6, 34, 75, 0.22);
    transition: 0.2s ease;
}

    .review-arrow:hover {
        background: #f97316;
    }

    .review-arrow svg {
        width: 30px;
        height: 30px;
    }

.review-prev {
    left: -28px;
}

.review-next {
    right: -28px;
}

.review-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 46px 0 36px;
}

    .review-dots span {
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: #cbd5e1;
    }

        .review-dots span.active {
            background: #f97316;
        }

.review-stats {
    background: white;
    border: 1px solid #dfe5ee;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 28px 34px;
}

.review-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-right: 1px solid #dfe5ee;
}

    .review-stat:last-child {
        border-right: none;
    }

    .review-stat > svg {
        width: 64px;
        height: 64px;
        padding: 16px;
        border-radius: 50%;
        background: #f1f6ff;
        color: #0b1f4d;
    }

    .review-stat strong {
        display: block;
        color: #0b1f4d;
        font-size: 1.9rem;
        font-weight: 800;
        line-height: 1;
    }

    .review-stat span {
        color: #53647f;
        font-weight: 700;
    }

@media (max-width: 1050px) {
    .reviews-carousel {
        grid-template-columns: 1fr;
    }

    .side-card {
        display: none;
    }

    .active-card {
        transform: none;
    }

    .review-prev {
        left: 8px;
    }

    .review-next {
        right: 8px;
    }

    .review-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .review-stat {
        border-right: none;
    }
}

.reviews-carousel.slide-left .review-card {
    transform: translateX(-40px);
    opacity: 0.65;
}

.reviews-carousel .review-card {
    transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.45s ease;
}

.reviews-carousel.slide-right .review-card {
    transform: translateX(40px);
    opacity: 0.65;
}

@media (max-width: 650px) {
    .modern-reviews {
        padding: 65px 0;
    }

    .active-card {
        padding: 38px 24px;
    }

        .active-card p {
            font-size: 1.25rem;
        }

    .active-author {
        flex-direction: column;
        text-align: center;
    }

    .review-stats {
        grid-template-columns: 1fr;
    }

    .review-stat {
        justify-content: flex-start;
    }

    .review-arrow {
        width: 48px;
        height: 48px;
    }
}
