/*-- -------------------------- -->
<---          Reviews           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #reviews-section {
        padding: var(--sectionPadding);
        background-color: #f8f9fb;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Crect x='20' y='2' width='11' height='11' rx='0' transform='rotate(45 20 7.5)' fill='none' stroke='%23171e26' stroke-width='0.6' opacity='0.12'/%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 40px 40px;
        overflow: hidden;
    }
    #reviews-section .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    #reviews-section .cs-title {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(1.75rem, 4vw, 2.75rem);
        font-weight: 900;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.15em;
        color: #171e26;
        margin: 0;
    }

    /* Carousel wrapper */
    #reviews-section .cs-carousel-wrap {
        width: 100%;
        overflow: hidden;
    }
    #reviews-section .cs-carousel {
        display: flex;
        gap: 1.5rem;
        transition: transform 0.4s ease;
    }

    /* Individual card */
    #reviews-section .cs-review-card {
        min-width: 100%;
        background-color: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: clamp(1.5rem, 3vw, 2rem);
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        transition: transform 0.3s;
    }
    #reviews-section .cs-review-card.cs-active {
        background-color: var(--primary);
        border-color: var(--primary);
        border-left: 5px solid var(--primaryLight);
    }
    #reviews-section .cs-review-text {
        font-size: 0.9375rem;
        line-height: 1.75em;
        color: var(--bodyTextColor);
        margin: 0;
        flex: 1;
    }
    #reviews-section .cs-review-card.cs-active .cs-review-text {
        color: rgba(255,255,255,0.9);
    }
    #reviews-section .cs-reviewer {
        display: flex;
        align-items: center;
        gap: 0.875rem;
    }
    #reviews-section .cs-avatar {
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid #e2e8f0;
    }
    #reviews-section .cs-review-card.cs-active .cs-avatar {
        border-color: rgba(255,255,255,0.3);
    }
    #reviews-section .cs-reviewer-info {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
    }
    #reviews-section .cs-stars {
        display: flex;
        gap: 0.125rem;
        margin-bottom: 0.125rem;
    }
    #reviews-section .cs-star {
        color: #e53e3e;
        font-size: 1rem;
        line-height: 1;
    }
    #reviews-section .cs-reviewer-service {
        font-size: 0.8125rem;
        font-weight: 700;
        color: var(--headerColor);
        margin: 0;
    }
    #reviews-section .cs-review-card.cs-active .cs-reviewer-service {
        color: #fff;
    }
    #reviews-section .cs-reviewer-name {
        font-size: 0.875rem;
        color: var(--bodyTextColor);
        margin: 0;
    }
    #reviews-section .cs-review-card.cs-active .cs-reviewer-name {
        color: rgba(255,255,255,0.8);
    }

    /* Controls row */
    #reviews-section .cs-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    #reviews-section .cs-arrows {
        display: flex;
        gap: 0.5rem;
    }
    #reviews-section .cs-arrow {
        width: 2.75rem;
        height: 2.75rem;
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 0.375rem;
        font-size: 1.25rem;
        color: var(--headerColor);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    }
    #reviews-section .cs-arrow:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }
    #reviews-section .cs-cta-buttons {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    #reviews-section .cs-btn-solid {
        font-family: 'Outfit', sans-serif;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        background-color: var(--primary);
        color: #fff;
        border-radius: 0.375rem;
        border: 2px solid var(--primary);
        display: inline-block;
        transition: background-color 0.3s, color 0.3s;
    }
    #reviews-section .cs-btn-solid:hover {
        background-color: transparent;
        color: var(--primary);
    }
    #reviews-section .cs-btn-outline {
        font-family: 'Outfit', sans-serif;
        font-size: 0.875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        background-color: transparent;
        color: var(--primary);
        border-radius: 0.375rem;
        border: 2px solid var(--primary);
        display: inline-block;
        transition: background-color 0.3s, color 0.3s;
    }
    #reviews-section .cs-btn-outline:hover {
        background-color: var(--primary);
        color: #fff;
    }
}

/* Tablet - 768px: show 2 cards */
@media only screen and (min-width: 48rem) {
    #reviews-section .cs-review-card {
        min-width: calc(50% - 0.75rem);
    }
}

/* Desktop - 1024px: show 3 cards */
@media only screen and (min-width: 64rem) {
    #reviews-section .cs-review-card {
        min-width: calc(33.333% - 1rem);
    }
}
