/* ─────────────────────────────────────────────────────────────
   Jieevarra Testimonials  –  testimonials.css  v1.1.0
   Scoped to .jt-section to prevent theme conflicts.
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@300;400;500&family=Onest:wght@300;400&display=swap');

/* ── Box-sizing reset scoped to plugin ── */
.jt-section,
.jt-section * {
    box-sizing: border-box;
}

/* ── Section shell ── */
.jt-section {
    background: #ffffff;
    padding: 100px 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: 'Epilogue', sans-serif;
}

/* ────────────────────────────────────────────
   HEADER
──────────────────────────────────────────── */
.jt-section .jt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    padding: 0 24px;
}

.jt-section .jt-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Epilogue', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #353535;
    
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.jt-section .jt-leaf {
    width: 23px;
    height: 21px;
    flex-shrink: 0;
    display: block;
}

.jt-section .jt-title {
    font-family: 'Epilogue', sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(26px, 3.5vw, 40.5px) !important;
    line-height: 1.375 !important;
    color: #38421b !important;
    text-transform: capitalize;
    text-align: center;
    margin: 0 !important;
    padding: 0;
    letter-spacing: 0;
    border: none;
}

/* ────────────────────────────────────────────
   QUOTE AREA
──────────────────────────────────────────── */
.jt-section .jt-quotes-wrap {
    max-width: 820px;
    margin: 0 auto 56px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.jt-section .jt-quote {
    display: none;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-left: none !important;
    background: none !important;
    box-shadow: none !important;
}

.jt-section .jt-quote.is-active {
    display: block;
    animation: jt-fade 0.4s ease forwards;
}

@keyframes jt-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.jt-section .jt-quote p {
    font-family: 'Onest', sans-serif !important;
    font-weight: 300 !important;
    font-size: clamp(17px, 2vw, 24px) !important;
    line-height: 1.65 !important;
    color: #353535 !important;
    text-align: center;
    margin: 0 !important;
    padding: 0;
}

/* ────────────────────────────────────────────
   CUSTOMER TABS ROW
──────────────────────────────────────────── */
.jt-section .jt-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 120px;
    gap: 0;
    list-style: none;
}

.jt-section .jt-tab {
    flex: 1 1 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    padding: 28px 24px 0 0;
    background: none !important;
    border: none !important;
    border-top: 2px solid #e3e3e3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.3s ease;
    outline-offset: 3px;
    margin: 0;
}

.jt-section .jt-tab:hover {
    border-top-color: rgba(56, 66, 27, 0.45) !important;
    background: none !important;
}

.jt-section .jt-tab.is-active {
    border-top-color: #38421b !important;
    cursor: default;
}

/* ── Avatar ── */
.jt-section .jt-tab-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #e3e3e3;
}

.jt-section .jt-tab-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.jt-section .jt-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #38421b;
    color: #ffffff;
    font-family: 'Epilogue', sans-serif;
    font-weight: 500;
    font-size: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ── Name & role ── */
.jt-section .jt-tab-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.jt-section .jt-tab-info strong {
    font-family: 'Epilogue', sans-serif !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    line-height: 26px !important;
    color: #353535 !important;
    text-transform: capitalize;
    display: block;
}

.jt-section .jt-tab-info em {
    font-family: 'Epilogue', sans-serif !important;
    font-style: normal !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: #828282 !important;
    display: block;
}

/* Base arrow button styles (hidden on desktop) */
.jt-section .jt-arrow {
    display: none;
}

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */

/* Small desktop */
@media (max-width: 1280px) {
    .jt-section .jt-tabs {
        padding: 0 60px;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .jt-section {
        padding: 80px 0;
    }

    .jt-section .jt-tabs {
        padding: 0 40px;
    }

    .jt-section .jt-tab {
        padding: 24px 16px 0 0;
        gap: 10px;
    }

    .jt-section .jt-tab-avatar,
    .jt-section .jt-initials {
        width: 52px;
        height: 52px;
    }

    .jt-section .jt-tab-info strong {
        font-size: 15px !important;
    }

    .jt-section .jt-tab-info em {
        font-size: 13px !important;
    }
}

/* Tablet portrait / Mobile (≤ 768px) */
@media (max-width: 768px) {
    .jt-section {
        padding: 64px 0;
    }

    .jt-section .jt-header {
        margin-bottom: 36px;
    }

    .jt-section .jt-quotes-wrap {
        margin-bottom: 40px;
        min-height: 80px;
    }

    /* Tab row — center the single active tab flanked by arrows */
    .jt-section .jt-tabs {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 0 24px;
        margin: 0 auto;
    }

    /* Hide all tabs except the active one */
    .jt-section .jt-tab {
        display: none !important;
        border-top: 2px solid #38421b !important; /* always active olive color */
        border-left: none !important;
        flex: none !important;
        width: auto;
        min-width: 180px;
        justify-content: center;
        padding: 20px 0 0 0 !important;
        gap: 12px;
        flex-direction: row !important;
        text-align: left;
    }

    .jt-section .jt-tab.is-active {
        display: flex !important;
    }

    .jt-section .jt-tab-info {
        align-items: flex-start;
    }

    .jt-section .jt-tab-info strong {
        font-size: 15px !important;
        white-space: nowrap;
    }

    .jt-section .jt-tab-info em {
        font-size: 13px !important;
    }

    .jt-section .jt-tab-avatar,
    .jt-section .jt-initials {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    /* Show arrow buttons */
    .jt-section .jt-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #D6D6D6;
        background: none;
        cursor: pointer;
        color: #38421b;
        font-size: 20px;
        line-height: 1;
        flex-shrink: 0;
        transition: border-color 0.2s, background 0.2s;
        padding: 0;
    }

    .jt-section .jt-arrow:hover {
        border-color: #38421b;
        background: rgba(56, 66, 27, 0.05);
    }
}

/* Mobile (≤ 540px) scaling */
@media (max-width: 540px) {
    .jt-section {
        padding: 52px 0;
    }

    .jt-section .jt-header {
        padding: 0 20px;
        margin-bottom: 28px;
        gap: 10px;
    }

    .jt-section .jt-quotes-wrap {
        padding: 0 20px;
        margin-bottom: 32px;
        min-height: 60px;
    }

    .jt-section .jt-quote p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
}
