/* ═══════════════════════════════════
   BLOC 6 — CINEMATIC EXCELLENCE SLIDER
═══════════════════════════════════ */

.testimonials-section { 
    background: #070B0F; padding: 0; position: relative; height: 90vh; 
    overflow: hidden; border-top: 1px solid rgba(184, 157, 125, 0.2);
    border-bottom: 1px solid rgba(184, 157, 125, 0.2);
    z-index: 10;
}

/* ═══ NOTCH TOGGLE : Sport (prostables) ↔ Courses (protrot) ═══ */
.testi-slider-wrap { position: relative; width: 100%; height: 100%; }
.testi-mode-protrot { display: none; }
.mode-protrot .testi-mode-prostables { display: none; }
.mode-protrot .testi-mode-protrot { display: block; }

.slider-main { position: relative; width: 100%; height: 100%; margin: 0; padding: 0; }

.slider-item {
    width: 220px; height: 320px; list-style: none; position: absolute;
    top: 50%; transform: translateY(-50%); z-index: 1;
    border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    transition: transform 0.1s, left 0.75s, top 0.75s, width 0.75s, height 0.75s, opacity 0.75s;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.slider-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
}

li.slider-item img {
    height: 100%;
}

.slider-item:nth-child(1), .slider-item:nth-child(2) {
    left: 0; top: 0; width: 100%; height: 100%; transform: none;
    border-radius: 0; box-shadow: none; opacity: 1; border: none;
}

.slider-item:nth-child(3) { left: 60%; opacity: 1; }
.slider-item:nth-child(4) { left: calc(60% + 250px); opacity: 1; }
.slider-item:nth-child(n+5) { left: calc(60% + 500px); opacity: 0; }

.slider-item::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7,11,15,0.95) 0%, rgba(7,11,15,0.4) 50%, transparent 100%);
    z-index: 1; opacity: 0; transition: opacity 0.8s;
}
.slider-item:nth-child(2)::after { opacity: 1; }

.item-content {
    width: min(45vw, 650px); position: absolute; top: 50%; left: 10%;
    transform: translateY(-50%); color: white; opacity: 0; display: none;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.item-content .trust-label-mini {
    color: var(--color-accent); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; display: block;
    transition: color 0.4s;
}

.item-content .title {
    font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1; margin-bottom: 25px; color: white;
}

.item-content .description {
    font-size: 18px; line-height: 1.6; opacity: 0.8; margin-bottom: 30px;
    font-style: italic; border-left: 3px solid var(--color-accent); padding-left: 25px;
    transition: border-color 0.4s;
}

.item-content .author-info {
    display: flex; flex-direction: column; gap: 5px;
}
.item-content .author-name { font-weight: 800; font-size: 20px; color: var(--color-accent); transition: color 0.4s; }
.item-content .author-job { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; }

.slider-item:nth-child(2) .item-content {
    display: block; animation: showSliderContent 0.8s ease-in-out 0.3s forwards;
}

@keyframes showSliderContent {
    0% { filter: blur(10px); transform: translateY(calc(-50% + 50px)); opacity: 0; }
    100% { filter: blur(0); transform: translateY(-50%); opacity: 1; }
}

.slider-nav {
    position: absolute; bottom: 50px; left: 10%; z-index: 10;
    display: flex; gap: 20px;
}
.slider-nav .btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; backdrop-filter: blur(10px);
}
.slider-nav .btn:hover { background: var(--color-accent); color: #0E0338; border-color: var(--color-accent); }

@media (max-width: 1024px) {
    .slider-item:nth-child(3) { left: 50%; }
    .slider-item:nth-child(4) { left: calc(50% + 240px); }
    .item-content { width: 80%; left: 5%; }
}
@media (max-width: 768px) {
    .testimonials-section { height: 80vh; }
    .slider-item { width: 140px; height: 200px; }
    .slider-item:nth-child(3) { display: none !important; }
    .slider-item:nth-child(4) { display: none !important; }
    .slider-item:nth-child(n+5) { display: none !important; }
    
    .item-content { 
        width: 90% !important; 
        left: 5% !important; 
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .item-content .title { font-size: 26px !important; margin-bottom: 15px !important; }
    .item-content .description { 
        font-size: 15px !important; 
        border-left: none !important; 
        padding-left: 0 !important; 
        margin-bottom: 20px !important;
    }
    
    .slider-nav {
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 15px !important;
    }
    
    .slider-nav .btn {
        width: 48px !important;
        height: 48px !important;
    }
    
    .btn-play-testimonial span { display: none; }
    .btn-play-testimonial { padding: 8px; }
}

/* ═══ Single testimonial : make nth-child(1) behave like the active slide ═══ */
.testi-single .slider-item:nth-child(1) {
    left: 0; top: 0; width: 100%; height: 100%; transform: none;
    border-radius: 0; box-shadow: none; opacity: 1; border: none;
}
.testi-single .slider-item:nth-child(1)::after { opacity: 1; }
.testi-single .slider-item:nth-child(1) .item-content {
    display: block;
    animation: showSliderContent 0.8s ease-in-out 0.3s forwards;
}

/* Video Modal */
.testimonial-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 15, 0.25);
    backdrop-filter: blur(15px);
}

.modal-content {
    position: relative;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 73vh;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-video-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 73vh;
    display: block;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.close-modal:hover {
    background: var(--color-accent);
    color: #0E0338;
}

.btn-play-testimonial {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px 8px 8px;
    border-radius: 100px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
}

.btn-play-testimonial:hover {
    background: var(--color-accent);
    color: #0E0338;
    transform: translateX(5px);
}

.play-icon-wrap {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0E0338;
    transition: transform 0.4s;
}

.btn-play-testimonial:hover .play-icon-wrap {
    transform: rotate(360deg);
}
