/* Testimonials Main Wrapper */
.custom-testimonials-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.custom-testimonials-wrapper * {
    box-sizing: border-box;
}

/* Slider Track (Drag & Swipe Container) */
.custom-testimonials-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    /* Touch devices par smooth native scroll */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px 40px 10px; /* Neechay shadow aur dots ke liye space */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab; /* Drag cursor */
}

.custom-testimonials-track:active {
    cursor: grabbing; /* Grabbed state */
    scroll-snap-type: none; /* Dragging ke waqt snap disable takay smooth ho */
}

.custom-testimonials-track::-webkit-scrollbar {
    display: none;
}

.testi-slide {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: center;
    display: flex;
    user-select: none; /* Drag karte waqt text select na ho */
}

/* Premium Card Design (Center Aligned) */
.testi-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #f9fafb;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Premium Quote Badge */
.quote-icon-top {
    margin: 0 auto 25px auto;
    width: 60px;
    height: 60px;
    background: rgba(6, 209, 27, 0.1); /* Light Green Background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-icon-top svg {
    width: 28px;
    height: 28px;
    fill: #06D11B; /* Main Green Color */
}

/* Content */
.testi-text {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    font-style: italic;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* Author Info */
.testi-author-info {
    padding-top: 20px;
    position: relative;
}

/* Small elegant separator line */
.testi-author-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #06D11B;
    border-radius: 2px;
}

.testi-author {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px 0;
}

.testi-company {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fix for Dots Controls */
.testi-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding-bottom: 20px;
}

.testi-dots {
    display: flex;
    gap: 10px;
}

.testi-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testi-dot.active {
    background: #06D11B;
    width: 30px; /* Capsule shape for active dot */
    border-radius: 10px;
}

/* Responsiveness */
@media (max-width: 991px) {
    .testi-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .custom-testimonials-track {
        gap: 20px;
        /* Sides par 20px padding add ki hai taakay card dono taraf se center ho aur edges par na chipkay */
        padding: 20px 20px 40px 20px; 
    }
    .testi-slide {
        /* Card ko padding ke andar 100% width de di hai */
        flex: 0 0 100%; 
        scroll-snap-align: center;
    }
    .testi-card {
        padding: 35px 20px;
        width: 80%;
        margin: 0 auto;
    }
}

/* --- Dedicated Testimonials Page Grid (No Slider) --- */
.custom-testimonials-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

@media (max-width: 991px) {
    .custom-testimonials-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-testimonials-page-grid {
        grid-template-columns: repeat(1, 1fr); 
        gap: 20px;
    }
}

.page-id-16 .testi-card {
    width: 100%;
}