/* ==========================================================================
   WeDerm Reviews Carousel Styles
   ========================================================================== */

/* Wrapper and Headline */
.wederm-reviews-wrapper {
    position: relative;
    padding: 60px 0;
    max-width: 100%;
    overflow: hidden;
}

.wederm-reviews-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.wederm-reviews-headline h2 {
    font-size: 44px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -1px;
    color: #333333;
    margin: 0;
}

.wederm-reviews-headline .review-count {
    font-size: 18px;
    font-weight: 600;
    color: #212223;
    margin: 0;
    white-space: nowrap;
}

/* Carousel Container */
.wederm-reviews-carousel {
    position: relative;
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 400px; /* Prevent layout shift during initialization */
}

/* Show carousel after Owl Carousel initializes */
.wederm-reviews-carousel.owl-loaded {
    opacity: 1;
    min-height: 0;
}

/* Review Card Base Styles */
.review-card {
    border-radius: 16px;
    padding: 40px 32px;
    margin: 0 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
}

/* Color Variations */
.review-card.light-teal {
	background-color: #1296b0; 
	/* background-color: #0A5F70; */ 
    color: #FFFFFF !important;
}

.review-card.primary-teal {
    background-color: #00549a;
    color: #FFFFFF;
}

.review-card.black {
    background-color: #000000;
    color: #FFFFFF;
}

/* Star Rating */
.review-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
    font-size: 20px;
}

.review-stars .star {
    color: #f4bb40;
    line-height: 1;
}

.review-stars .star.filled {
    color: #f4bb40;
}

.review-stars .star.empty {
    color: rgba(255, 184, 0, 0.3);
}

/* Review Text */
.review-text {
    flex: 1;
    margin-bottom: 24px;
}

.review-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.review-card.light-teal .review-text p,
.review-card.primary-teal .review-text p,
.review-card.black .review-text p {
    color: #FFFFFF;
}

/* Review Author */
.review-author {
    margin-top: auto;
}

.review-author p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-style: normal;
}

.review-card.light-teal .review-author p,
.review-card.primary-teal .review-author p,
.review-card.black .review-author p {
    color: #FFFFFF;
}

/* Navigation Controls */
.wederm-reviews-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 10;
    max-width: 100%;
}

.review-nav-prev,
.review-nav-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #666666;
    color: #666666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.review-nav-prev:hover,
.review-nav-next:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #333333;
    color: #333333;
}

.review-nav-prev:disabled,
.review-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.review-nav-prev:disabled:hover,
.review-nav-next:disabled:hover {
    background: transparent;
    color: #1BA6A5;
    border-color: #1BA6A5;
}

/* Navigation Counter */
.review-nav-counter {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.review-nav-counter-current,
.review-nav-counter-total {
    color: #000000;
}

/* Owl Carousel Custom Styles */
.wederm-reviews-carousel.owl-carousel {
    overflow: hidden;
}

.wederm-reviews-carousel.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.wederm-reviews-carousel.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.wederm-reviews-carousel.owl-carousel .owl-item {
    opacity: 1;
    display: flex;
    align-items: stretch;
}

.wederm-reviews-carousel.owl-carousel .owl-item .review-card {
    width: 100%;
}

/* Hide default Owl nav and dots */
.wederm-reviews-carousel .owl-nav,
.wederm-reviews-carousel .owl-dots {
    display: none;
}

/* Empty State */
.wederm-reviews-empty {
    text-align: center;
    padding: 60px 20px;
}

.wederm-reviews-empty p {
    color: #666666;
    font-size: 16px;
}

/* Responsive Styles */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .wederm-reviews-headline h2 {
        font-size: 36px;
    }
    
    .wederm-reviews-headline .review-count {
        font-size: 16px;
    }
    
    .review-card {
        padding: 32px 24px;
    }
    
    .review-text p {
        font-size: 15px;
    }
    
    .review-author p {
        font-size: 15px;
    }
}

/* Mobile (540px and below) */
@media (max-width: 540px) {
    .wederm-reviews-wrapper {
        padding: 40px 0;
    }
    
    .wederm-reviews-headline {
        margin-bottom: 32px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .wederm-reviews-headline h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .wederm-reviews-headline .review-count {
        font-size: 14px;
    }
    
    .review-card {
        padding: 24px 20px;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .review-stars {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .review-text {
        margin-bottom: 20px;
    }
    
    .review-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .review-author p {
        font-size: 14px;
    }
    
    .review-nav-prev,
    .review-nav-next {
        width: 44px;
        height: 44px;
    }
    
    .wederm-reviews-nav {
        gap: 20px;
    }
    
    .wederm-reviews-nav {
        gap: 12px;
        margin-top: 12px;
    }
    
    .review-nav-counter {
        font-size: 16px;
    }
}

/* Small mobile (400px and below) */
@media (max-width: 400px) {
    .wederm-reviews-headline h2 {
        font-size: 24px;
    }
    
    .review-card {
        padding: 20px 16px;
    }
}

