/**
 * CK Testimonial Slider Styles
 * Version: 1.0.0
 */

/* Reset and Base */
.ck-testimonial-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    background: transparent;
    overflow: hidden;
    position: relative;
}

.ck-testimonial-slider {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-testimonial-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide - Base State (Hidden) */
.ck-testimonial-slide {
    position: absolute;
    width: 365px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.7) translateX(0);
    pointer-events: none;
}

/* Left/Previous Slide */
.ck-testimonial-slide.prev {
    opacity: 1;
    transform: scale(0.85) translateX(-420px);
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Center/Active Slide - Highlighted & Larger */
.ck-testimonial-slide.active {
    opacity: 1;
    transform: scale(1) translateX(0);
    z-index: 10;
    pointer-events: auto;
}

/* Right/Next Slide */
.ck-testimonial-slide.next {
    opacity: 1;
    transform: scale(0.85) translateX(420px);
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Card Styling - Gray for inactive */
.ck-testimonial-card {
    background: #4a4a4a;
    border-radius: 12px;
    padding: 35px 30px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Active Card - Yellow/Gold & Taller */
.ck-testimonial-slide.active .ck-testimonial-card {
    background: #EAC863;
    min-height: 400px;
}

/* Quote Icon - Only visible on active */
.ck-quote-icon {
    color: #1a1a1a;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.2s;
}

.ck-testimonial-slide.active .ck-quote-icon {
    opacity: 1;
    transform: translateY(0);
}

.ck-quote-icon svg {
    width: 36px;
    height: 28px;
}

/* Content */
.ck-testimonial-content {
    flex: 1;
    margin-bottom: 25px;
}

.ck-testimonial-content,
.ck-testimonial-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    transition: all 0.6s ease;
}

.ck-testimonial-slide.active .ck-testimonial-content,
.ck-testimonial-slide.active .ck-testimonial-content p {
    color: #1a1a1a;
    font-size: 16px;
}

/* Author Section */
.ck-testimonial-author {
    margin-top: auto;
}

.ck-author-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 30px 0 0 0;
    transition: color 0.6s ease;
}

.ck-testimonial-slide.active .ck-author-name {
    color: #1a1a1a;
}

.ck-author-position {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.6s ease;
}

.ck-testimonial-slide.active .ck-author-position {
    color: rgba(26, 26, 26, 0.6);
}

/* Navigation Dots */
.ck-testimonial-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
}

.ck-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.ck-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ck-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* No Testimonials Message */
.ck-no-testimonials {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .ck-testimonial-slide {
        width: 280px;
    }

    .ck-testimonial-slide.prev {
        transform: scale(0.8) translateX(-350px);
    }

    .ck-testimonial-slide.next {
        transform: scale(0.8) translateX(350px);
    }
}

@media (max-width: 900px) {
    .ck-testimonial-slide {
        width: 260px;
    }

    .ck-testimonial-slide.prev {
        transform: scale(0.75) translateX(-300px);
    }

    .ck-testimonial-slide.next {
        transform: scale(0.75) translateX(300px);
    }

    .ck-testimonial-card {
        padding: 25px 20px;
        min-height: 300px;
    }

    .ck-testimonial-slide.active .ck-testimonial-card {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .ck-testimonial-slider {
        height: 400px;
    }

    .ck-testimonial-slide {
        width: 85%;
        max-width: 320px;
    }

    .ck-testimonial-slide.prev,
    .ck-testimonial-slide.next {
        opacity: 1;
        pointer-events: none;
        transform: scale(0.85) translateX(350px);

    }

    .ck-testimonial-slide.prev {
        transform: scale(0.85) translateX(-350px);
    }

    .ck-testimonial-slide.active {
        transform: scale(1) translateX(0);
        width: 400px;
    }

    .ck-testimonial-card {
        min-height: auto;
        padding: 30px 25px;
    }

    .ck-testimonial-slide.active .ck-testimonial-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .ck-testimonial-wrapper {
        padding: 30px 10px;
    }

    .ck-testimonial-slider {
        height: 350px;
    }

    .ck-testimonial-card {
        padding: 25px 20px;
    }

    .ck-quote-icon svg {
        width: 30px;
        height: 24px;
    }

    .ck-testimonial-content,
    .ck-testimonial-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .ck-author-name {
        font-size: 13px;
    }

    .ck-author-position {
        font-size: 11px;
    }

    .ck-testimonial-dots {
        margin-top: 30px;
        gap: 10px;
    }

    .ck-dot {
        width: 6px;
        height: 6px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .ck-dot:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .ck-dot.active:hover {
        background: #ffffff;
    }
}