/* Divi Client Reviews Module Styles */

.dcr-reviews-wrapper {
    position: relative;
    margin: 20px 0;
}

.dcr-has-carousel {
    padding: 0 60px;
}

.dcr-has-carousel .dcr-client-reviews {
    overflow: hidden;
}

.dcr-client-reviews {
    display: grid;
    gap: 30px;
}

.dcr-review-item {
    /* Items are visible by default */
}

.dcr-review-item.dcr-hidden {
    display: none !important;
}

.dcr-columns-1 {
    grid-template-columns: 1fr;
}

.dcr-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.dcr-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dcr-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Carousel Arrows */
.dcr-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: #aeaf90;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
button.dcr-carousel-arrow span.et-pb-icon {
    font-size: 40px;
}

.dcr-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.dcr-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.dcr-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dcr-carousel-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1);
}

.dcr-arrow-prev {
    left: 0;
}

.dcr-arrow-next {
    right: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .dcr-columns-3,
    .dcr-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dcr-carousel-enabled {
        padding: 0 50px;
    }
    
    .dcr-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .dcr-columns-2,
    .dcr-columns-3,
    .dcr-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .dcr-carousel-enabled {
        padding: 0 45px;
    }
    
    .dcr-carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

.dcr-review-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 10px;
}

.dcr-review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dcr-review-header {
    margin-bottom: 15px;
}

.dcr-client-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.dcr-rating {
    display: flex;
    gap: 3px;
    font-size: 20px;
    line-height: 1;
}

.dcr-star {
    display: inline-block;
}

.dcr-star-filled {
    color: #ffd742;
}

.dcr-star-empty {
    color: #ddd;
}

.dcr-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.dcr-review-text p {
    margin: 0 0 10px 0;
}

.dcr-review-text p:last-child {
    margin-bottom: 0;
}

.dcr-no-reviews {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.dcr-no-reviews p {
    margin: 0;
    color: #666;
    font-size: 16px;
}
