/**
 * TESTIMONIAL SLIDER - FIXED HEIGHT & SLOW TRANSITIONS
 * Prevents page jumping + smooth transitions + expanded gradient
 * 
 * @package ContentGo
 * @version 1.6 - Navigation buttons daha az görünür, daha geniş aralık
 */

/* ==========================================================================
   MAIN SLIDER - GENİŞ SABİT YÜKSEKLİK
   ========================================================================== */

.cg-testimonial-slider {
    height: 720px !important;
    min-height: 720px !important;
    max-height: 720px !important;
    overflow: visible !important;
    position: relative !important;
}

.cg-testimonial-slider-wrapper {
    height: 100% !important;
    overflow: visible !important;
}

.cg-testimonial-slider-card {
    height: 100% !important;
    overflow: visible !important;
}

.cg-testimonial-slider-card.active {
    overflow: visible !important;
}

/* ==========================================================================
   GRADİENT - DAHA GENİŞ VE SINIR YOK
   ========================================================================== */

.cg-testimonial-slider-logo {
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

.cg-testimonial-slider-logo::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 2000px !important;
    height: 1400px !important;
    background: radial-gradient(ellipse at center,
        rgba(139, 92, 246, 0.30) 0%,
        rgba(99, 102, 241, 0.22) 20%,
        rgba(59, 130, 246, 0.15) 35%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(59, 130, 246, 0.03) 65%,
        transparent 80%
    ) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.cg-testimonial-slider.theme-light .cg-testimonial-slider-logo::before {
    width: 1800px !important;
    height: 1200px !important;
    background: radial-gradient(ellipse at center,
        rgba(139, 92, 246, 0.40) 0%,
        rgba(99, 102, 241, 0.32) 15%,
        rgba(59, 130, 246, 0.22) 30%,
        rgba(59, 130, 246, 0.12) 45%,
        rgba(59, 130, 246, 0.05) 60%,
        transparent 75%
    ) !important;
}

/* ==========================================================================
   SLIDE GEÇİŞ SÜRESİ - 1.5 SANİYE
   ========================================================================== */

.cg-testimonial-slider-card {
    transition: opacity 1.5s ease-in-out !important, 
                visibility 1.5s ease-in-out !important;
}

/* ==========================================================================
   İÇERİK ALANI
   ========================================================================== */

.cg-testimonial-slider-inner {
    height: 100% !important;
    min-height: 100% !important;
    align-items: center !important;
    padding: 96px 48px !important;
    overflow: visible !important;
}

.cg-testimonial-slider-content {
    padding-top: 0 !important;
    justify-content: center !important;
    height: auto !important;
    overflow: visible !important;
}

.cg-testimonial-slider-quote-wrapper {
    margin-bottom: 36px !important;
}

.cg-testimonial-slider-quote {
    -webkit-line-clamp: 6 !important;
    line-clamp: 6 !important;
    font-size: 1.625rem !important;
    line-height: 1.55 !important;
}

/* ==========================================================================
   AUTHOR WITH PHOTO
   ========================================================================== */

.cg-testimonial-slider-author {
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cg-testimonial-slider-author-photo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.cg-testimonial-slider-author-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.cg-testimonial-slider.theme-light .cg-testimonial-slider-author-photo {
    border-color: rgba(59, 49, 152, 0.2) !important;
    box-shadow: 0 2px 8px rgba(59, 49, 152, 0.1) !important;
}

.cg-testimonial-slider-author-name {
    font-size: var(--text-sm) !important;
    font-weight: 500 !important;
    opacity: 0.85 !important;
    line-height: 1.5 !important;
}

/* ==========================================================================
   METRICS
   ========================================================================== */

.cg-testimonial-slider-metrics {
    margin: 24px 0 !important;
    gap: 48px !important;
}

.cg-metric-value {
    font-size: 3.5rem !important;
}

/* Logo section */
.cg-testimonial-slider-logo {
    align-items: center !important;
    justify-content: center !important;
}

.cg-testimonial-slider-logo-inner {
    max-width: 400px !important;
    padding: 48px !important;
}

.cg-testimonial-slider-logo img {
    max-height: 200px !important;
}

/* ==========================================================================
   NAVİGASYON OKLARI - DAHA AZ GÖRÜNÜR, GENİŞ ARALIK
   ========================================================================== */

.cg-testimonial-slider-nav {
    position: absolute !important;
    top: auto !important;
    bottom: 120px !important;
    left: 0 !important;
    right: auto !important;
    width: 35% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 48px !important; /* Geniş aralık */
    z-index: 100 !important;
}

/* Butonlar - daha az görünür */
.cg-slider-nav-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.cg-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.cg-slider-nav-btn:active {
    transform: scale(0.95) !important;
}

/* Dark theme için oklar */
.cg-testimonial-slider.theme-dark .cg-slider-nav-btn {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.cg-testimonial-slider.theme-dark .cg-slider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Light theme için oklar */
.cg-testimonial-slider.theme-light .cg-slider-nav-btn {
    background: transparent !important;
    border-color: rgba(59, 49, 152, 0.12) !important;
    color: rgba(59, 49, 152, 0.35) !important;
}

.cg-testimonial-slider.theme-light .cg-slider-nav-btn:hover {
    background: rgba(59, 49, 152, 0.05) !important;
    border-color: rgba(59, 49, 152, 0.25) !important;
    color: rgba(59, 49, 152, 0.7) !important;
}

.cg-slider-nav-btn svg {
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.2s ease !important;
}

.cg-slider-prev:hover svg {
    transform: translateX(-2px) !important;
}

.cg-slider-next:hover svg {
    transform: translateX(2px) !important;
}

/* ==========================================================================
   RESPONSIVE - TABLET (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .cg-testimonial-slider {
        height: 840px !important;
        min-height: 840px !important;
        max-height: 840px !important;
    }
    
    .cg-testimonial-slider-inner {
        padding: 72px 36px !important;
        align-items: flex-start !important;
    }
    
    .cg-testimonial-slider-quote {
        font-size: 1.375rem !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
    }
    
    .cg-metric-value {
        font-size: 2.75rem !important;
    }
    
    .cg-testimonial-slider-author-photo {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
    
    .cg-testimonial-slider-nav {
        width: 100% !important;
        bottom: 60px !important;
        gap: 36px !important;
    }
    
    .cg-slider-nav-btn {
        width: 38px !important;
        height: 38px !important;
    }
    
    .cg-slider-nav-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .cg-testimonial-slider-logo::before {
        width: 1400px !important;
        height: 1000px !important;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBİL (640px)
   ========================================================================== */

@media (max-width: 640px) {
    .cg-testimonial-slider {
        height: 780px !important;
        min-height: 780px !important;
        max-height: 780px !important;
    }
    
    .cg-testimonial-slider-inner {
        padding: 60px 24px !important;
    }
    
    .cg-testimonial-slider-quote {
        font-size: 1.125rem !important;
        -webkit-line-clamp: 5 !important;
        line-clamp: 5 !important;
    }
    
    .cg-metric-value {
        font-size: 2.25rem !important;
    }
    
    .cg-testimonial-slider-metrics {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .cg-testimonial-slider-logo-inner {
        max-width: 200px !important;
        padding: 24px !important;
    }
    
    .cg-testimonial-slider-logo img {
        max-height: 100px !important;
    }
    
    .cg-testimonial-slider-author-photo {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    .cg-testimonial-slider-author {
        gap: 10px !important;
    }
    
    .cg-testimonial-slider-nav {
        bottom: 48px !important;
        gap: 30px !important;
    }
    
    .cg-slider-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .cg-slider-nav-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .cg-testimonial-slider-logo::before {
        width: 1000px !important;
        height: 800px !important;
    }
}

/* ==========================================================================
   OVERFLOW PERMISSIONS
   ========================================================================== */

.cg-testimonial-slider,
.cg-testimonial-slider-wrapper,
.cg-testimonial-slider-card,
.cg-testimonial-slider-inner,
.cg-testimonial-slider-logo {
    overflow: visible !important;
}

.elementor-section:has(.cg-testimonial-slider),
.elementor-container:has(.cg-testimonial-slider),
.elementor-column:has(.cg-testimonial-slider),
.elementor-widget-container:has(.cg-testimonial-slider) {
    overflow: visible !important;
}
