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

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #reviews-section {
        padding: calc(clamp(3.75rem, 7.82vw, 6.25rem) + 3.5rem) 1rem;
        background-color: #ffffff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect x='40' y='2' width='26' height='26' rx='1' transform='rotate(45 40 15)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3Crect x='0' y='2' width='26' height='26' rx='1' transform='rotate(45 0 15)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3Crect x='80' y='2' width='26' height='26' rx='1' transform='rotate(45 80 15)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3Crect x='40' y='42' width='26' height='26' rx='1' transform='rotate(45 40 55)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3Crect x='0' y='42' width='26' height='26' rx='1' transform='rotate(45 0 55)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3Crect x='80' y='42' width='26' height='26' rx='1' transform='rotate(45 80 55)' fill='none' stroke='%2322C55E' stroke-width='1' opacity='0.18'/%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 80px 80px;
        position: relative;
        overflow: hidden;
    }

    #reviews-section .cs-container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        position: relative;
        z-index: 3;
    }
    #reviews-section .cs-title {
        font-family: 'Barlow', sans-serif;
        font-size: clamp(1.75rem, 4vw, 2.75rem);
        font-weight: 800;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.15em;
        color: #111510;
        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 — dark themed */
    #reviews-section .cs-review-card {
        min-width: 100%;
        background-color: #1A1F17;
        border: 1px solid #2A3022;
        border-radius: 0.75rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* Left accent strip with avatar */
    #reviews-section .cs-card-accent {
        width: 7rem;
        flex-shrink: 0;
        background-color: #141914;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpolygon points='22,4 28,18 24,18 30,40 16,22 21,22' fill='none' stroke='%2322C55E' stroke-width='0.8' opacity='0.18'/%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 44px 44px;
        border-right: 2px solid #22C55E;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Right content column */
    #reviews-section .cs-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
        padding: clamp(1.25rem, 2.5vw, 1.5rem);
    }

    /* Stars + service title + divider */
    #reviews-section .cs-card-top {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    #reviews-section .cs-stars {
        display: flex;
        gap: 0.1rem;
    }
    #reviews-section .cs-star {
        color: #22C55E;
        font-size: 1.1rem;
        line-height: 1;
    }
    #reviews-section .cs-reviewer-service {
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        margin: 0;
        line-height: 1.3;
    }
    #reviews-section .cs-divider {
        border: none;
        border-top: 2px solid #22C55E;
        margin: 0.35rem 0 0;
    }

    #reviews-section .cs-avatar {
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 0.375rem;
        object-fit: cover;
        flex-shrink: 0;
        border: 2px solid #22C55E;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }
    #reviews-section .cs-review-text {
        font-size: 0.9rem;
        line-height: 1.7em;
        color: var(--bodyTextColor);
        margin: 0;
    }

    /* Reviewer name */
    #reviews-section .cs-reviewer-name {
        font-size: 0.8125rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #22C55E;
        margin: 0;
    }

    /* 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: #1A1F17;
        border: 2px solid #2A3022;
        border-radius: 0.375rem;
        font-size: 1.25rem;
        color: #fff;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s, border-color 0.3s;
    }
    #reviews-section .cs-arrow:hover {
        background-color: #22C55E;
        border-color: #22C55E;
    }
    #reviews-section .cs-cta-buttons {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    #reviews-section .cs-btn-solid {
        font-family: 'Barlow', 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: #22C55E;
        color: #fff;
        border-radius: 0.375rem;
        border: 2px solid #22C55E;
        display: inline-block;
        transition: background-color 0.3s, color 0.3s;
    }
    #reviews-section .cs-btn-solid:hover {
        background-color: transparent;
        color: #22C55E;
    }
    #reviews-section .cs-btn-outline {
        font-family: 'Barlow', 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: #22C55E;
        border-radius: 0.375rem;
        border: 2px solid #22C55E;
        display: inline-block;
        transition: background-color 0.3s, color 0.3s;
    }
    #reviews-section .cs-btn-outline:hover {
        background-color: #22C55E;
        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);
    }
}
