/* Testimonials Section */
.testimonials-section {
    position: relative;
    width: 100%;
    margin: 60px 0;
    padding: 60px 0 80px;
    overflow: visible;
    background: transparent;
}

/* Container */
.testimonials-container {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: auto;
    overflow: hidden;
    margin-bottom: 60px;
}

/* Background gradients */
.testimonials-background-left,
.testimonials-background-right {
    display: none;
}

/* Slider */
.testimonials-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: 420px;
    overflow: visible;
    gap: 30px;
}

/* Testimonial cards - DEFAULT: HIDDEN */
.testimonial-item {
    width: 402px;
    min-width: 402px;
    max-width: 402px;
    height: 336px;
    position: relative;
    backdrop-filter: blur(2px);
    border-radius: 12px;
    flex-shrink: 0;
    margin: 0;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

/* Active card - VISIBLE */
.testimonial-item.active-testimonial {
    display: flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    visibility: visible !important;
}

.testimonial-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, rgba(255, 201, 8, 0) 0%, rgba(255, 201, 8, 0.55) 100%);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.testimonial-author {
    font-family: 'Rajdhani', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 86.14%;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.testimonial-rating {
    display: flex;
    margin-bottom: 20px;
    gap: 5px;
    flex-wrap: wrap;
}

.star {
    width: 52px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.star.filled {
    background-image: url('https://dragonboosting.com/wp-content/uploads/2025/11/Layer-9.svg');
}

.star:not(.filled) {
    background-image: url('https://dragonboosting.com/wp-content/uploads/2025/11/Layer-10.svg');
}

.testimonial-title {
    font-family: 'Rajdhani', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 86.14%;
    color: #FFFFFF;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.testimonial-content {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 22px;
    line-height: 122%;
    color: #FFFFFF;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* Navigation Arrows */
.testimonial-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    padding: 0 20px;
}

.testimonial-nav-prev,
.testimonial-nav-next {
    pointer-events: all !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 201, 8, 0.3);
    border: 2px solid #FFC908;
    color: #FFC908;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: Arial, sans-serif;
    line-height: 1;
    padding: 0;
    outline: none;
    position: relative;
    z-index: 101;
}

.testimonial-nav-prev:hover:not([style*="pointer-events: none"]),
.testimonial-nav-next:hover:not([style*="pointer-events: none"]) {
    background: rgba(255, 201, 8, 0.5);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 201, 8, 0.8);
}

.testimonial-nav-prev:active,
.testimonial-nav-next:active {
    transform: scale(1.05);
}

/* Empty state */
.testimonials-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    width: 100%;
    min-width: 100%;
}

.testimonials-empty-state h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #FFC908;
}

.testimonials-empty-state p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

/* Floating message styles */
.chaosboost-floating-message {
    font-family: 'Rajdhani', sans-serif !important;
}

.chaosboost-floating-message .message-icon {
    font-size: 24px;
    font-weight: bold;
}

/* Success message banner */
.testimonial-success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

/* Testimonial Form */
.testimonial-form-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 201, 8, 0.3);
}

.testimonial-form-heading {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #FFC908;
    margin-bottom: 30px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form-author,
.comment-form-email,
.comment-form-comment,
.chaosboost-rating-title,
.chaosboost-comment-rating {
    margin-bottom: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 201, 8, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.comment-form textarea {
    height: 150px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-submit {
    margin-top: 10px;
    margin-bottom: 0;
}

.submit-testimonial-button {
    background: linear-gradient(180deg, #FFE278 0%, #FFC908 100%);
    border: none;
    border-radius: 6px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 25px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-testimonial-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 201, 8, 0.5);
}

/* Rating Stars */
.chaosboost-comment-rating {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border: none;
}

.chaosboost-comment-rating > label {
    display: none !important;
}

.chaosboost-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 15px;
    gap: 8px;
}

.chaosboost-rating-stars input {
    display: none;
}

.chaosboost-rating-stars label {
    cursor: pointer;
    width: 35px;
    height: 35px;
    margin: 0;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('https://dragonboosting.com/wp-content/uploads/2025/11/Layer-10.svg');
    transition: transform 0.2s ease;
}

.chaosboost-rating-stars label:hover {
    transform: scale(1.1);
}

.chaosboost-rating-stars input:checked ~ label,
.chaosboost-rating-stars label:hover,
.chaosboost-rating-stars label:hover ~ label {
    background-image: url('https://dragonboosting.com/wp-content/uploads/2025/11/Layer-9.svg');
}

.chaosboost-rating-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.chaosboost-rating-title input {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 201, 8, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.chaosboost-rating-title input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Responsive - Tablet */
@media (max-width: 1200px) {
    .testimonials-slider {
        min-height: 400px;
        gap: 25px;
    }
    
    .testimonial-item {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        height: 320px;
    }
    
    .testimonial-form-wrapper {
        max-width: 90%;
    }
}

/* Responsive - Mobile: SOLO 1 TESTIMONIO */
@media (max-width: 768px) {
    .testimonials-container {
        overflow: hidden;
        padding: 0;
    }
    
    .testimonials-slider {
        min-height: 360px;
        padding: 30px 10px;
        gap: 0;
        overflow: hidden;
        justify-content: center;
    }
    
    .testimonial-item {
        width: 100%;
        min-width: 280px;
        max-width: 350px;
        height: 320px;
        margin: 0 auto;
    }
    
    .testimonial-item.active-testimonial {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .testimonial-nav-arrows {
        padding: 0 5px;
        left: 0;
        right: 0;
    }
    
    .testimonial-nav-prev {
        left: 5px;
    }
    
    .testimonial-nav-next {
        right: 5px;
    }
    
    .testimonial-nav-prev,
    .testimonial-nav-next {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .testimonial-content {
        font-size: 18px;
        -webkit-line-clamp: 3;
    }
    
    .testimonial-title {
        font-size: 24px;
    }
    
    .testimonial-form-wrapper {
        padding: 20px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .testimonials-container {
        overflow: hidden;
    }
    
    .testimonials-slider {
        min-height: 320px;
        padding: 20px 5px;
        overflow: hidden;
    }
    
    .testimonial-item {
        width: 95%;
        min-width: 260px;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .testimonial-item.active-testimonial {
        width: 95%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .testimonial-nav-prev,
    .testimonial-nav-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .testimonial-inner {
        padding: 20px;
    }
    
    .testimonial-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        font-size: 16px;
        -webkit-line-clamp: 3;
    }
    
    .star {
        width: 40px;
        height: 35px;
    }
}