/* ============================================
   PREMIUM CNC TESTIMONIALS SECTION - SCOPED STYLES
   ============================================ */

.cnc-testimonials-wrapper {
    position: relative;
    padding: 100px 20px;
    background: transparent;
    overflow: hidden;
}

.cnc-testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ===================================
   SECTION HEADER
   =================================== */
.cnc-testimonials-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: end;
    animation: cnc-testimonials-fade-in 0.8s ease-out;
}

@keyframes cnc-testimonials-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cnc-testimonials-header-left {
    flex: 1;
}

.cnc-testimonials-header-right {
    flex: 1;
}

/* Tag */
.cnc-testimonials-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cnc-testimonials-tag-icon {
    font-size: 8px;
    color: #3b82f6;
    animation: cnc-testimonials-pulse 2s ease-in-out infinite;
}

@keyframes cnc-testimonials-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cnc-testimonials-tag-text {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Heading */
.cnc-testimonials-heading {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.cnc-testimonials-heading-accent {
    display: block;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 8px;
}

/* Description */
.cnc-testimonials-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.cnc-testimonials-description strong {
    color: #ffffff;
}

/* ===================================
   CAROUSEL
   =================================== */
.cnc-testimonials-carousel-wrapper {
    position: relative;
}

.cnc-testimonials-carousel {
    position: relative;
}

/* Grid */
.cnc-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0;
}

/* Testimonial Card */
.cnc-testimonials-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: cnc-testimonials-card-fade-in 0.6s ease-out backwards;
}

@keyframes cnc-testimonials-card-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cnc-testimonials-card:nth-child(1) {
    animation-delay: 0.1s;
}

.cnc-testimonials-card:nth-child(2) {
    animation-delay: 0.2s;
}

.cnc-testimonials-card:nth-child(3) {
    animation-delay: 0.3s;
}

.cnc-testimonials-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Card Header */
.cnc-testimonials-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Logo */
.cnc-testimonials-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    padding: 8px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.cnc-testimonials-card:hover .cnc-testimonials-logo {
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Rating */
.cnc-testimonials-rating {
    display: flex;
    gap: 4px;
    color: #EE6C4D;
}

/* Company Name */
.cnc-testimonials-company {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial Text */
.cnc-testimonials-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

/* ===================================
   CAROUSEL CONTROLS
   =================================== */
.cnc-testimonials-control-prev,
.cnc-testimonials-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.cnc-testimonials-control-prev {
    left: -60px;
}

.cnc-testimonials-control-next {
    right: -60px;
}

.cnc-testimonials-control-prev:hover,
.cnc-testimonials-control-next:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Desktop */
@media (max-width: 1400px) {
    .cnc-testimonials-control-prev {
        left: -24px;
    }

    .cnc-testimonials-control-next {
        right: -24px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .cnc-testimonials-wrapper {
        padding: 80px 20px;
    }

    .cnc-testimonials-header {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 50px;
    }

    .cnc-testimonials-heading {
        font-size: 40px;
    }

    .cnc-testimonials-description {
        font-size: 15px;
    }

    .cnc-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cnc-testimonials-card {
        padding: 28px 20px;
    }

    .cnc-testimonials-control-prev {
        left: 0;
    }

    .cnc-testimonials-control-next {
        right: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cnc-testimonials-wrapper {
        padding: 60px 16px;
    }

    .cnc-testimonials-header {
        margin-bottom: 40px;
    }

    .cnc-testimonials-heading {
        font-size: 32px;
    }

    .cnc-testimonials-description {
        font-size: 14px;
    }

    .cnc-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cnc-testimonials-card {
        padding: 24px 20px;
    }

    .cnc-testimonials-logo {
        width: 70px;
        height: 70px;
    }

    .cnc-testimonials-company {
        font-size: 15px;
        min-height: auto;
    }

    .cnc-testimonials-text {
        font-size: 13px;
    }

    .cnc-testimonials-control-prev,
    .cnc-testimonials-control-next {
        width: 40px;
        height: 40px;
    }

    .cnc-testimonials-control-prev svg,
    .cnc-testimonials-control-next svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .cnc-testimonials-heading {
        font-size: 28px;
    }

    .cnc-testimonials-company {
        font-size: 14px;
    }

    .cnc-testimonials-text {
        font-size: 12px;
    }

    .cnc-testimonials-control-prev,
    .cnc-testimonials-control-next {
        display: none;
    }
}