/* â"€â"€â"€â"€â"€â"€â"€â"€â"€ GENERAL (desktop base) â"€â"€â"€â"€â"€â"€â"€â"€â"€ */
.testimonials-section {
    position: relative;
    font-family: 'Outfit', sans-serif;
    background-color: #2d8fad !important;
    overflow: hidden;
    width: 100%;
    border-radius: 32px 32px 0 0;
    box-sizing: border-box;
}
  
.testimonials-section-title {
    text-align: center;
    margin: 0 0 24px 0 !important;
    padding: 0 20px !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: clamp(24px, 4vw, 32px);
    color: #ffffff !important;
    line-height: 1.2;
    letter-spacing: -0.2px;
    display: block;
    width: 100%;
    z-index: 5;
    position: relative;
    box-sizing: border-box;
}
  
.testimonials-container {
    position: relative;
    display: flex;
    gap: 16px;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    background-color: transparent;
    box-sizing: border-box;
}
  
.testimonials-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
  
/* Remove any extra content */
.testimonials-section::after,
.testimonials-container::after,
.testimonials-section::before,
.testimonials-container::before {
    display: none !important;
    content: none !important;
}
  
/* Override any theme default spacing */
.testimonials-section * {
    box-sizing: border-box;
}
  
/* Prevent theme overrides */
.testimonials-section h1,
.testimonials-section h2,
.testimonials-section h3,
.testimonials-section h4,
.testimonials-section h5,
.testimonials-section h6 {
    margin-top: 0 !important;
}

/* â"€â"€â"€â"€â"€â"€â"€â"€â"€ DESKTOP (>991 px) â"€â"€â"€â"€â"€â"€â"€â"€â"€ */
@media(min-width: 992px) {
    .testimonials-section {
        padding: 24px 0 !important;
        background-color: #2d8fad !important;
    }
    
    .testimonials-section-title {
        margin: 0 0 24px 0 !important;
        padding: 0 20px !important;
        color: #ffffff !important;
    }
    
    .testimonials-container {
        padding: 0 40px 24px 40px !important;
        background-color: transparent;
        margin: 0 !important;
    }

    .nav-arrow {
        position: absolute;
        top: calc(50% + 12px);
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(5, 68, 94, 0.8);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        font-size: 22px;
        color: #ffffff;
        opacity: 0;
        transition: opacity 300ms ease, background-color 300ms ease;
        font-family: 'Outfit', sans-serif;
    }
    
    .testimonials-section:hover .nav-arrow {
        opacity: 0.9;
    }
    
    .nav-arrow:hover {
        background: rgba(5, 68, 94, 1);
    }
    
    .nav-arrow.left {
        left: 20px;
    }
    
    .nav-arrow.right {
        right: 20px;
    }
    
    .nav-arrow img {
        width: 60%;
        height: 60%;
        object-fit: contain;
        pointer-events: none;
    }
}

/* â"€â"€â"€â"€â"€â"€â"€â"€â"€ CARD â"€â"€â"€â"€â"€â"€â"€â"€â"€ */
.testimonial-card {
    flex: 0 0 240px;
    height: 320px;
    position: relative;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
}

@media(min-width: 992px) {
    .testimonial-card {
        flex: 0 0 240px;
        height: 320px;
        max-width: 500px;
        min-width: 240px;
    }
}

/* Base video styles */
.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 16px;
    background: #000;
}

.testimonial-video::-webkit-media-controls {
    display: none !important;
}

.testimonial-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    background: linear-gradient(to top, rgba(5, 68, 94, 0.9), rgba(5, 68, 94, 0.4), transparent);
    border-radius: 0 0 16px 16px;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    outline: none;
    box-shadow: none;
    background: #fff;
}

.testimonial-name {
    margin: 0;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(5, 68, 94, 0.7);
}

.testimonial-title {
    margin: 0;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(5, 68, 94, 0.7);
}

/* No video placeholder */
.no-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #05445E;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.no-video-placeholder span {
    color: #ffffff;
    opacity: 0.7;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

/* â"€â"€â"€â"€â"€â"€â"€â"€â"€ MOBILE (â‰¤991 px) â"€â"€â"€â"€â"€â"€â"€â"€â"€ */
@media(max-width: 991px) {
    .testimonials-section {
        background-color: #2d8fad !important;
        border-radius: 24px 24px 0 0;
        margin: 0px 0 0 0 !important;
        overflow: hidden;
        padding: 24px 0 24px !important;
    }
    
    .testimonials-section-title {
        font-size: clamp(20px, 6vw, 24px);
        padding: 0 15px !important;
        color: #ffffff !important;
        margin: 0 0 18px 0 !important;
    }
    
    .testimonials-container {
        background-color: transparent;
        padding: 0 5px 0px 20px !important;
        margin: 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .testimonials-container::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 8px);
        height: 260px;
        border-radius: 12px;
        background: transparent;
        border: none;
        outline: none;
        box-shadow: none;
    }
    
    .testimonial-video {
        border-radius: 12px;
    }
    
    .testimonial-content {
        border-radius: 0 0 12px 12px;
        padding: 8px 10px;
    }
    
    .no-video-placeholder {
        border-radius: 12px;
    }
    
    .nav-arrow {
        display: none;
    }
    
    .testimonial-name {
        font-size: 14px;
    }
    
    .testimonial-title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .profile-image {
        width: 32px;
        height: 32px;
    }
}