/* =========================================================
   Syntex Testimonials Widget — Front-end Styles
   ========================================================= */

/* Wrapper */
.syntex-testi-wrap {
    overflow: hidden;
    border: 0.5px solid #e0e7e4;
    border-radius: 8px;
    background: #fff;
}

/* ── Header ── */
.syntex-testi-header {
    text-align: center;
    padding: 32px 24px 20px;
    background: #f7faf8;
}

.syntex-testi-eyebrow {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #888;
    margin: 0 0 8px;
    text-transform: none;
}

.syntex-testi-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0;
}

.syntex-testi-heading em {
    font-style: normal;
    color: #1a5c44;
}

/* ── Cards grid ── */
.syntex-testi-cards {
    display: grid;
    border-top: 0.5px solid #e0e7e4;
}

.syntex-testi-card {
    padding: 28px 28px 24px;
    border-right: 0.5px solid #e0e7e4;
    background: #fff;
    min-width: 0; /* prevent grid blowout */
}

.syntex-testi-card:last-child {
    border-right: none;
}

/* ── Quote icon ── */
.syntex-testi-quote-icon {
    font-size: 36px;
    color: #1a5c44;
    line-height: 1;
    margin-bottom: 12px;
    font-family: Georgia, serif;
    display: block;
}

/* ── Stars ── */
.syntex-testi-stars {
    display: flex;
    gap: 2px;
    font-size: 16px;
    margin-bottom: 10px;
}

.syntex-testi-star.filled { color: #f5a623; }
.syntex-testi-star.empty  { color: #ddd; }

/* ── Quote text ── */
.syntex-testi-quote {
    font-size: 15px;
    color: #2a2a2a;
    line-height: 1.65;
    margin: 0px 36px 20px;
}

/* ── Author ── */
.syntex-testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0px 36px 20px;    
}

.syntex-testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #c8dfd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a5c44;
    overflow: hidden;
}

.syntex-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.syntex-testi-author-info {
    min-width: 0;
}

.syntex-testi-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.syntex-testi-author-role {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* ── Navigation ── */
.syntex-testi-nav {
    display: grid;
    border-top: 0.5px solid #e0e7e4;
}

.syntex-testi-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px !important;
    background: #fff;
    border: none;
    border-right: 0.5px solid #e0e7e4;
    cursor: pointer;
    font-size: 14px;
    color: #2a2a2a;
    font-family: inherit;
    transition: background 0.15s ease;
}

.syntex-testi-nav-btn:last-child {
    border-right: none;
    justify-content: flex-end;
}

.syntex-testi-nav-btn:hover {
    background: #f0f7f4;
}

.syntex-testi-nav-btn:focus-visible {
    outline: 2px solid #1a5c44;
    outline-offset: -2px;
}

.syntex-testi-nav-divider {
    background: #fff;
    border-right: 0.5px solid #e0e7e4;
}

.syntex-testi-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 0.5px solid #c8dfd6;
    color: #1a5c44;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.15s ease;
}

.syntex-testi-nav-btn:hover .syntex-testi-arrow {
    background: #e1f0ea;
}

/* ── Page indicator ── */
.syntex-testi-indicator {
    text-align: center;
    padding: 6px 12px;
    font-size: 11px;
    color: #aaa;
    border-top: 0.5px solid #e0e7e4;
    background: #fff;
}

/* ── Card enter/leave animation ── */
@keyframes syntex-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.syntex-testi-card.is-visible {
    animation: syntex-fade-in 0.28s ease both;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .syntex-testi-quote {
        margin: 0px 0px 20px;
    }    
    .syntex-testi-author {
        margin: 0px 0px 20px;    
    }
    
    .syntex-testi-cards{
        grid-template-columns: 1fr !important;
    }
    .syntex-testi-card {
        border-right: none;
        border-bottom: 0.5px solid #e0e7e4;
    }
    .syntex-testi-card:last-child {
        border-bottom: none;
    }
    .syntex-testi-nav-btn {
        border-right: none;
    }
    .syntex-testi-nav-btn:last-child {
        border-bottom: none;
    }
    .syntex-testi-heading {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .syntex-testi-header {
        padding: 24px 16px 16px;
    }
    .syntex-testi-card {
        padding: 20px 18px;
    }
    .syntex-testi-nav-btn {
        padding: 12px 18px;
    }
}
