/* ============================================
   SapCod - Testimonials Section New Design
   Author: SapCod Team
   Version: 5.0
   Description: Clean, visible testimonials
   with carousel and modern design
   Compatible with: styles.css
   Namespace: sapcod-testi-new
   ============================================ */

/* ===== Section Container ===== */
.sapcod-testi-new {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

[data-theme="dark"] .sapcod-testi-new {
    background: #0a0a1a;
}

/* ===== Background ===== */
.testi-new-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.testi-new-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
}

.testi-new-circle.tc1 {
    width: 500px;
    height: 500px;
    background: #0066ff;
    top: -150px;
    left: -100px;
}

.testi-new-circle.tc2 {
    width: 400px;
    height: 400px;
    background: #339966;
    bottom: -100px;
    right: -80px;
}

/* ===== Container ===== */
.sapcod-testi-new .testi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.testi-new-header {
    text-align: center;
    margin-bottom: 60px;
}

.testi-new-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

[data-theme="dark"] .testi-new-badge {
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.25);
}

.testi-new-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.2;
}

[data-theme="dark"] .testi-new-title {
    color: #e8e8f0;
}

.testi-new-title span {
    background: linear-gradient(135deg, #0066ff, #339966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testi-new-subtitle {
    font-size: 1.05rem;
    color: #666;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

[data-theme="dark"] .testi-new-subtitle {
    color: #999;
}

/* ===== Stats Row ===== */
.testi-new-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.testi-new-stat {
    text-align: center;
    padding: 25px 15px;
    background: #f8f9fc;
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.06);
    transition: all 0.3s ease;
}

[data-theme="dark"] .testi-new-stat {
    background: #15152a;
    border-color: rgba(0, 102, 255, 0.1);
}

.testi-new-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testi-new-stat .stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.testi-new-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0066ff;
    line-height: 1;
    margin-bottom: 4px;
}

.testi-new-stat .stat-label {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}

/* ===== Testimonials Grid ===== */
.testi-new-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 70px;
}

/* ===== Testimonial Card ===== */
.testi-new-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 26px 26px;
    border: 1px solid rgba(0, 102, 255, 0.06);
    transition: all 0.35s ease;
    position: relative;
}

[data-theme="dark"] .testi-new-card {
    background: #15152a;
    border-color: rgba(0, 102, 255, 0.1);
}

.testi-new-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 102, 255, 0.15);
}

[data-theme="dark"] .testi-new-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Quote icon */
.testi-new-quote {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
    opacity: 0.3;
}

.testi-new-quote.q-blue { color: #0066ff; }
.testi-new-quote.q-green { color: #339966; }
.testi-new-quote.q-purple { color: #8b5cf6; }

/* Stars */
.testi-new-stars-row {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

/* Text */
.testi-new-text {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

[data-theme="dark"] .testi-new-text {
    color: #b0b0c0;
}

/* Author */
.testi-new-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 102, 255, 0.06);
}

[data-theme="dark"] .testi-new-author {
    border-top-color: rgba(0, 102, 255, 0.1);
}

.testi-new-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.testi-new-avatar.av-blue { background: linear-gradient(135deg, #0066ff, #0044cc); }
.testi-new-avatar.av-green { background: linear-gradient(135deg, #339966, #267d52); }
.testi-new-avatar.av-purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.testi-new-author-info h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

[data-theme="dark"] .testi-new-author-info h4 {
    color: #e0e0e0;
}

.testi-new-author-info span {
    font-size: 0.78rem;
    color: #888;
}

.testi-new-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #339966;
    font-weight: 600;
    margin-top: 2px;
}

/* ===== Bottom CTA ===== */
.testi-new-cta {
    text-align: center;
    padding: 45px 35px;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.testi-new-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.testi-new-cta p {
    opacity: 0.9;
    margin-bottom: 22px;
    position: relative;
    font-size: 0.95rem;
}

.testi-new-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #fff;
    color: #0066ff;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    position: relative;
}

.testi-new-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .testi-new-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testi-new-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testi-new-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .sapcod-testi-new {
        padding: 80px 0;
    }
    
    .testi-new-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testi-new-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .testi-new-title {
        font-size: 1.8rem;
    }
    
    .testi-new-cta {
        padding: 30px 20px;
    }
    
    .testi-new-cta h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .testi-new-stats {
        grid-template-columns: 1fr;
    }
    
    .testi-new-card {
        padding: 24px 18px 20px;
    }
}