/* Reviews Carousel Styles */
/* Inherits variables from home.css */

.reviews-carousel-section {
    background-color: var(--primary-bg);
    padding: 4rem 2rem 6rem;
    position: relative;
}

.reviews-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent-color);
}

.reviews-hero p {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.reviews-hero h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Carousel Layout */
.carousel-container {
    max-width: 1200px;
    /* Increased for desktop to show 3 cards */
    margin: 0 auto;
    position: relative;
    padding: 0 3rem;
    /* Space for arrows */
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    height: 100%;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    /* Layout slides horizontally */
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-slide {
    flex: 0 0 33.3333%;
    /* Strict percentage width */
    width: 33.3333%;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Review Card Styling (Adapted for Carousel) */
.review-card {
    background: #242866;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    /* Slightly reduced padding */
    position: relative;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.review-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.review-text {
    color: white;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 80%;
}

.service-pill {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-color);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.reviewer-info h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.reviewer-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Navigation Controls */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Dots */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
    padding-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.current-dot {
    background: var(--accent-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 50%;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .reviews-carousel-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .reviews-hero {
        margin-bottom: 2rem;
    }

    .reviews-hero h1 {
        font-size: 1.8rem;
    }

    .carousel-container {
        padding: 0 1rem;
        /* Reduced padding on mobile */
    }

    .carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 0.5rem;
    }

    .review-card {
        padding: 2rem 1.5rem;
    }

    .review-text {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Move arrows to bottom on mobile or hide them? 
       Let's keep them but maybe adjust position 
    */
    .carousel-btn {
        display: none;
        /* Hide arrows on mobile, use dots/swipe */
    }

    .carousel-dots {
        margin-top: 1rem;
    }
}