/* ==========================================================
   REVIEWS
========================================================== */

.ua-reviews {

    position: relative;
    margin: 34px;
    padding: 34px;

    background: #fff;

    border: 1px solid #edf2f7;

    border-radius: 32px;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, .06);

    overflow: hidden;

}

.ua-reviews::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(244, 180, 0, .05),
            transparent 35%);

    pointer-events: none;

}

/* ==========================================================
   HEADER
========================================================== */

.ua-section-head {

    position: relative;

    z-index: 2;

    text-align: center;

    max-width: 720px;

    margin: 0 auto 42px;

}

.ua-section-head h2 {

    margin: 0;

    color: #111827;

    font-size: 2.35rem;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -.03em;

}

.ua-section-head h2 span {

    color: var(--primary);

}

.ua-section-head p {

    margin: 18px auto 0;

    color: #6b7280;

    font-size: 1rem;

    line-height: 1.8;

}

/* ==========================================================
   REVIEW SUMMARY
========================================================== */

.ua-review-summary {

    display: flex;
    justify-content: center;
    margin: 34px 0 42px;

}

.ua-review-pill {

    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 14px 22px;

    background: #fff;

    border: 1px solid #edf2f7;

    border-radius: 999px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, .06);

}

.ua-review-stars {

    display: flex;
    gap: 3px;

    color: #F4B400;

    font-size: .95rem;

}

.ua-review-rating {

    font-size: 1.05rem;

    font-weight: 800;

    color: #111827;

}

.ua-review-dot {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #d1d5db;

}

.ua-review-count {

    font-size: .95rem;

    font-weight: 600;

    color: #6b7280;

}

@media (max-width:767px) {

    .ua-review-summary {

        margin: 24px 0 30px;

    }

    .ua-review-pill {

        padding: 12px 18px;

        gap: 10px;

    }

    .ua-review-stars {

        font-size: .82rem;

    }

    .ua-review-rating {

        font-size: .95rem;

    }

    .ua-review-count {

        font-size: .85rem;

    }

}

/* ==========================================================
   SLIDER
========================================================== */

.ua-review-slider {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

}

/* ==========================================================
   CARD
========================================================== */

.ua-review-card {

    display: flex;

    flex-direction: column;

    height: 100%;

    padding: 28px;

    background: #fff;

    border: 1px solid #edf2f7;

    border-radius: 24px;

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

}

.ua-review-card:hover {

    transform: translateY(-6px);

    border-color: rgba(244, 180, 0, .18);

    box-shadow:
        0 22px 55px rgba(15, 23, 42, .08);

}

/* ==========================================================
   REVIEW TOP
========================================================== */

.ua-review-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    margin-bottom: 18px;

}

/* ==========================================================
   REVIEW SOURCE
========================================================== */

.ua-review-source {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #111827;

    font-size: .9rem;

    font-weight: 700;

}

.ua-review-source img {

    width: 20px;

    height: 20px;

    object-fit: contain;

}

/* ==========================================================
   VERIFIED
========================================================== */

.ua-verified {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #16A34A;

    font-size: .8rem;

    font-weight: 700;

    white-space: nowrap;

}

.ua-verified i {

    font-size: .95rem;

}

/* ==========================================================
   STARS
========================================================== */

.ua-stars {

    margin-bottom: 16px;

    color: #F4B400;

    font-size: 1rem;

    letter-spacing: 3px;

    line-height: 1;

}

/* ==========================================================
   REVIEW TEXT
========================================================== */

.ua-review-text {

    margin: 0;

    color: #4B5563;

    font-size: .95rem;

    line-height: 1.9;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 5;

    overflow: hidden;

    min-height: 170px;

}

/* ==========================================================
   READ MORE
========================================================== */

.ua-read-more {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    padding: 0;

    border: none;

    background: none;

    color: var(--primary);

    font-size: .9rem;

    font-weight: 700;

    cursor: pointer;

    transition: .3s ease;

}

.ua-read-more:hover {

    color: #111827;

}

.ua-read-more i {

    transition: transform .3s ease;

}

.ua-read-more:hover i {

    transform: translateX(5px);

}

/* ==========================================================
   FOOTER
========================================================== */

.ua-review-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: auto;

    padding-top: 22px;

    border-top: 1px solid #EEF2F7;

}

/* ==========================================================
   REVIEWER
========================================================== */

.ua-review-name {

    color: #111827;

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.2;

}

.ua-review-country {

    margin-top: 5px;

    color: #6B7280;

    font-size: .85rem;

}

/* ==========================================================
   MODAL
========================================================== */

.ua-reviews .modal-content {

    border: none;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, .15);

}

.ua-reviews .modal-header {

    padding: 22px 26px;

    border-bottom: 1px solid #eef2f7;

}

.ua-reviews .modal-title {

    color: #111827;

    font-size: 1.15rem;

    font-weight: 800;

}

.ua-reviews .modal-body {

    padding: 24px 26px 28px;

}

.ua-reviews .modal-body p {

    margin: 0;

    color: #4b5563;

    font-size: .96rem;

    line-height: 1.9;

}

.ua-reviews .btn-close {

    box-shadow: none;

}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991.98px) {

    .ua-reviews {

        margin: 28px 20px;
        padding: 36px 28px;
        border-radius: 28px;

    }

    .ua-section-head {

        margin-bottom: 32px;

    }

    .ua-section-head h2 {

        font-size: 2rem;

    }

    .ua-review-summary {

        margin-bottom: 32px;

    }

    .ua-review-slider {

        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

    }

    .ua-review-card {

        width: 100%;
        padding: 24px;
        flex: none;

    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767.98px) {

    .ua-reviews {

        margin: 20px 16px;
        padding: 24px 0;
        border-radius: 24px;

    }

    .ua-section-head {

        margin-bottom: 28px;
        padding: 0 20px;

    }

    .ua-section-head h2 {

        font-size: 1.75rem;

    }

    .ua-section-head p {

        font-size: .92rem;
        line-height: 1.75;

    }

    /* Horizontal Slider */

    .ua-review-slider {

        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 20px;

        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;

        scrollbar-width: none;
        -ms-overflow-style: none;

        -webkit-overflow-scrolling: touch;

    }

    .ua-review-slider::-webkit-scrollbar {

        display: none;

    }

    .ua-review-card {

        flex: 0 0 88%;
        max-width: 340px;
        min-width: 300px;

        scroll-snap-align: start;

        padding: 22px;
        border-radius: 20px;

    }

    .ua-review-top {

        align-items: flex-start;
        gap: 10px;

    }

    .ua-review-source {

        font-size: .85rem;

    }

    .ua-verified {

        font-size: .75rem;

    }

    .ua-stars {

        font-size: .9rem;
        letter-spacing: 2px;

    }

    .ua-review-text {

        min-height: auto;
        font-size: .9rem;
        line-height: 1.8;
        -webkit-line-clamp: 4;

    }

    .ua-read-more {

        margin-top: 14px;
        font-size: .84rem;

    }

    .ua-review-footer {

        padding-top: 18px;

    }

    .ua-review-name {

        font-size: .95rem;

    }

    .ua-review-country {

        font-size: .8rem;

    }

}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:575.98px) {

    .ua-reviews {

        margin: 16px 12px;
        padding: 22px 0;

    }

    .ua-section-head {

        padding: 0 16px;

    }

    .ua-review-slider {

        padding: 0 16px;

    }

    .ua-review-card {

        flex: 0 0 92%;
        min-width: 280px;
        padding: 18px;

    }

    .ua-review-score {

        width: 100%;
        justify-content: center;

    }

}

.ua-review-slider {

    display: flex;

    gap: 24px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    -ms-overflow-style: none;

}

.ua-review-slider::-webkit-scrollbar {

    display: none;

}

.ua-review-card {

    flex: 0 0 380px;

    scroll-snap-align: start;

}

.ua-review-slider.dragging {

    cursor: grabbing;

    scroll-behavior: auto;

}

.modal-dialog {

    transition: .28s ease;

}

/* ==========================================
   REVIEW MODAL
========================================== */

.ua-review-modal .modal-dialog {

    transform: scale(.85);

    opacity: 0;

    transition:
        transform .28s cubic-bezier(.22, .61, .36, 1),
        opacity .28s ease;

}

.ua-review-modal.show .modal-dialog {

    transform: scale(1);

    opacity: 1;

}

.ua-review-modal .modal-content {

    border: 0;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 0 30px 80px rgba(15, 23, 42, .18);

}