/* =============================================
   TESTIMONIALS SECTION — Custom Review Card
   public/assets/css/style.css
============================================= */

:root {
    --testi-primary:      #00776d;
    --testi-primary-dark: #0f5650;
    --testi-dark:         #2b2b2c;
    --testi-muted:        #839393;
    --testi-border:       #dde0e3;
}

/* ---- Section Wrapper ---- */
.testi-section {
    background: #f8f9fa;
}

/* ---- Section ---- */
.testi-section {
    background: #f4f5f7;
}

/* ---- Heading ---- */
.testi-section-title {
    margin-bottom: 46px;
}
.testi-section-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--testi-dark);
    line-height: 1.28;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

/* ——▲—— divider: two lines with upward-pointing triangle between them */
.testi-heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 18px;
}
.testi-divider-line {
    display: block;
    width: 62px;
    height: 1.5px;
    background: var(--testi-primary);
    opacity: 0.55;
}
/* CSS upward-pointing triangle */
.testi-divider-diamond {
    display: block;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 12px solid var(--testi-primary);
    flex-shrink: 0;
}
.testi-section-title p {
    color: var(--testi-muted);
    font-size: 14.5px;
    line-height: 1.82;
    max-width: 570px;
    margin: 0 auto;
}

/* ---- Outer bordered box ---- */
.testi-outer {
    border: 1px solid var(--testi-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

/* ---- Two-column flex row ---- */
.testi-inner {
    display: flex;
    align-items: stretch;
    min-height: 360px;
}

/* ================================================================
   LEFT COLUMN — white bg with a muted sage block behind the card
================================================================ */
.testi-left {
    width: 272px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 22px;
    background: #fff;
}

/* Muted sage-teal decorative block that sits BEHIND the card */
.testi-bg-block {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: rgba(0, 119, 109, 0.18);
    border-radius: 8px;
    z-index: 0;
}

/* White profile card floating ON TOP of the bg block */
.testi-profile-wrap {
    position: relative;
    z-index: 1;
    width: 200px;
    background: #fff;
    border: 2px solid rgba(0, 119, 109, 0.52);
    border-radius: 8px;
    padding: 15px 14px 16px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.testi-profile-img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}
.testi-profile-img img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 6px;
}
.testi-profile-info h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--testi-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}
.testi-profile-info span {
    font-size: 12px;
    color: var(--testi-muted);
}

/* ================================================================
   RIGHT COLUMN — review content
================================================================ */
.testi-right {
    flex: 1;
    padding: 40px 48px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-left: 1px solid var(--testi-border);
}

/* fade-transition target */
.testi-content-wrap {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* "Client Reviews" title */
.testi-label {
    font-size: 19px;
    font-weight: 700;
    color: var(--testi-dark);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

/* Thick teal underline bar matching the screenshot */
.testi-label-bar {
    width: 60px;
    height: 4px;
    background: var(--testi-primary);
    border-radius: 2px;
    margin-bottom: 26px;
}

/* ❝ quote icon (large serif character) + paragraph side-by-side */
.testi-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.testi-q-icon {
    font-size: 72px;
    font-family: Georgia, 'Times New Roman', serif;
    color: rgba(0, 0, 0, 0.13);
    line-height: 0.72;
    flex-shrink: 0;
    margin-top: 5px;
    user-select: none;
}
.testi-body p {
    color: var(--testi-muted);
    font-size: 14.5px;
    line-height: 1.9;
    font-style: normal;
    margin: 0;
}

/* ---- Fade class toggled by JS during transition ---- */
.testi-fading {
    opacity: 0 !important;
    transform: translateY(8px) !important;
}

/* ================================================================
   PAGINATION DOTS — three equal circles, active = darker teal
================================================================ */
.testi-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}
.testi-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 119, 109, 0.28);
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition: background 0.3s ease;
    flex-shrink: 0;
}
.testi-dot:hover {
    background: rgba(0, 119, 109, 0.55);
}
.testi-dot.active {
    background: var(--testi-primary);
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 767px) {
    .testi-inner {
        flex-direction: column;
        min-height: auto;
    }
    .testi-left {
        width: 100%;
        min-height: 260px;
        padding: 26px 20px;
    }
    .testi-bg-block {
        width: 178px;
    }
    .testi-profile-wrap {
        width: 178px;
    }
    .testi-profile-img img {
        height: 148px;
    }
    .testi-right {
        border-left: none;
        border-top: 1px solid var(--testi-border);
        padding: 26px 24px 24px;
    }
}
@media (max-width: 480px) {
    .testi-section-title h2 {
        font-size: 23px;
    }
    .testi-body {
        flex-direction: column;
        gap: 4px;
    }
    .testi-q-icon {
        font-size: 48px;
    }
    .testi-right {
        padding: 20px 16px 18px;
    }
}
