/* ============================================
   ADVANCED TESTIMONIAL SWIPER — style.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=DM+Sans:wght@400;500;600&display=swap');

/* ── SECTION WRAPPER ── */
.ats-section {
    padding: 80px 40px 100px;
    background: #f7f5ff;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

/* subtle decorative blobs */
.ats-section::before,
.ats-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}
.ats-section::before {
    width: 420px; height: 420px;
    background: #6c3df4;
    top: -100px; left: -100px;
}
.ats-section::after {
    width: 360px; height: 360px;
    background: #a78bfa;
    bottom: -80px; right: -80px;
}

/* ── SECTION HEADING ── */
.ats-heading {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}
.ats-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 42px);
    color: #1a0a3c;
    margin: 0 0 10px;
}
.ats-heading p {
    font-size: 16px;
    color: #7c6fa0;
    margin: 0;
}

/* ── SWIPER WRAPPER ── */
.ats-swiper {
    padding: 20px 10px 60px !important;
    position: relative;
    z-index: 1;
}

/* ── CARD ── */
.ats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 28px 26px;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                box-shadow 0.35s ease;
    box-shadow:
        0 2px 6px rgba(108, 61, 244, 0.06),
        0 12px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(108, 61, 244, 0.08);
    overflow: hidden;
}

/* ── LEFT ACCENT BAR ── */
.ats-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 4px;
    height: 50px;
    background: linear-gradient(180deg, #6c3df4, #a78bfa);
    border-radius: 0 4px 4px 0;
    transition: height 0.35s ease;
}

/* ── QUOTE ICON ── */
.ats-card .ats-quote {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 52px;
    line-height: 1;
    color: #ede9fe;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    user-select: none;
    transition: color 0.35s ease;
}

/* ── HOVER ── */
.ats-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 4px 12px rgba(108, 61, 244, 0.10),
        0 22px 50px rgba(0, 0, 0, 0.12);
}
.ats-card:hover::before { height: 70px; }
.ats-card:hover .ats-quote { color: #c4b5fd; }

/* ── STARS ── */
.ats-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.ats-stars .star {
    width: 20px;
    height: 20px;
    display: inline-block;
}
.ats-stars .star svg {
    width: 100%;
    height: 100%;
}
.ats-stars .star.filled svg path { fill: #6c3df4; }
.ats-stars .star.empty  svg path { fill: #e0d9f8; }

/* ── REVIEW TEXT ── */
.ats-card .ats-text {
    font-size: 15px;
    line-height: 1.75;
    color: #4b4468;
    margin: 0 0 22px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* ── DIVIDER ── */
.ats-divider {
    height: 1px;
    background: linear-gradient(90deg, #ede9fe, #f3f0ff, #ede9fe);
    margin-bottom: 20px;
    border: none;
}

/* ── USER ROW ── */
.ats-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── AVATAR ── */
.ats-user img,
.ats-user .ats-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #ede9fe;
    box-shadow: 0 3px 10px rgba(108, 61, 244, 0.15);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}
.ats-card:hover .ats-user img,
.ats-card:hover .ats-avatar-placeholder {
    border-color: #a78bfa;
}
.ats-avatar-placeholder {
    background: linear-gradient(135deg, #6c3df4, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
}

/* ── NAME + ROLE ── */
.ats-user-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a0a3c;
    margin-bottom: 2px;
}
.ats-user-info span {
    font-size: 12.5px;
    color: #9e8fc0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── SWIPER FIX ── */
.swiper-slide { height: auto; }

/* ── PAGINATION ── */
.ats-swiper .swiper-pagination {
    bottom: 0;
}
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #c4b5fd;
    opacity: 1;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: #6c3df4;
    width: 24px;
    border-radius: 4px;
}

/* ── NAVIGATION ARROWS ── */
.ats-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}
.ats-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ede9fe;
    color: #6c3df4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(108,61,244,0.10);
    transition: all 0.25s ease;
}
.ats-nav-btn:hover {
    background: #6c3df4;
    color: #fff;
    border-color: #6c3df4;
    box-shadow: 0 6px 20px rgba(108,61,244,0.30);
    transform: scale(1.08);
}
.ats-nav-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}