/* ===== RESET ===== */
.t888-testimonial-wrap,
.t888-testimonial-grid {
    overflow-x: hidden;
}

/* ===== GRID ===== */
.t888-testimonial-grid {
    display: grid;
    grid-template-columns: 41% 59%;
    align-items: stretch;
}

/* ===== LEFT IMAGE ===== */
.t888-testimonial-big {
    border-radius: 16px;
    overflow: hidden;
}

.t888-testimonial-big-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 570/598;
    object-fit: cover;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== RIGHT ===== */
.t888-testimonial-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    left: -60px;
}

/* ===== CONTENT CARD ===== */
.t888-testimonial-card {
    padding: 50px 1px;
}

.t888-testimonial-card-inner {
    border-radius: 10px;
    padding: 80px 56px 120px 120px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #FFFFFF;
    box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
}

.t888-testimonial-thumbs-row {}

/* badge */
.t888-testimonial-badge {
    position: absolute;
    top: -29px;
    left: 120px;
    background: #00377B;
    color: #fff;
    padding: 6px 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.t888-testimonial-badge .present-text {
    font-size: 14px;
    line-height: 19px;
    color: #fff;
}

.t888-testimonial-badge .name-student {
    font-size: 20px;
    font-weight: 700;
    line-height: 27px;
    text-transform: uppercase;
    color: #fff;
}

/* quote */
.t888-testimonial-quote {
    position: absolute;
    top: 10px;
    right: 20px;
}

/* text */
.t888-testimonial-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: var(--third-color);
    margin-top: 0;
    margin-bottom: 12px;
}

.t888-testimonial-text {
    font-size: 18px;
    line-height: 25px;
    color: #757575;
    margin-top: 0;
    margin-bottom: 60px;
}

/* ===== FIX NHÒE CONTENT ===== */
.t888-testimonial-content {
    width: 107%;
}

.t888-testimonial-content .swiper-slide {
    opacity: 0;
    pointer-events: none;
}

.t888-testimonial-content .swiper-slide-active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== THUMBS ===== */
.t888-testimonial-thumbs-row {
    display: flex;
    align-items: center;
    position: absolute;
    left: 120px;
    right: 0px;
    bottom: 110px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.t888-testimonial-prev,
.t888-testimonial-next {
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.t888-testimonial-thumbs {
    flex: 1;
}

.t888-testimonial-thumbs .swiper-slide {
    width: auto;
    opacity: .35;
    cursor: pointer;
}

.t888-testimonial-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.t888-thumb {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    overflow: hidden;
}

.t888-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t888-testimonial-thumbs .swiper-slide-thumb-active .t888-thumb {
    border: 5px solid var(--forth-color);
}
.t888-testimonial-left{
    z-index: 9;
    display: flex;
    align-items: center;
}
.t888-testimonial-readmore{
    display: none;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .t888-testimonial-card-inner{
        padding: 60px 30px 120px 90px;
    }
    .t888-testimonial-title {
        font-size: 20px;
        line-height: 27px;
        margin-bottom: 0;
    }

    .t888-testimonial-text {
        font-size: 16px;
        line-height: 22px;
    }
    .t888-testimonial-thumbs-row{
        left: 90px;
    }
}

@media (max-width: 575px) {
    .t888-testimonial-grid {
        display: block;
        grid-template-columns: none;
        padding: 0;
    }

    .t888-testimonial-left {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

    .t888-testimonial-big {
        width: 100%;
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .t888-testimonial-big-img {
        width: 100%;
        border-radius: 12px;
        object-fit: cover;
    }

    .t888-testimonial-right {
        position: static;
        left: 0;
        width: 100%;
    }

    .t888-testimonial-content {
        width: 100%;
        padding: 0;
    }

    .t888-testimonial-card {
        padding: 0;
    }

    .t888-testimonial-card-inner {
        padding: 0;
    }

    .t888-testimonial-badge {
        position: static;
        margin-bottom: 30px;
        width: fit-content;
    }


    .t888-testimonial-quote {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 32px;
        color: #e6007a;
    }

    .t888-testimonial-thumbs-row {
        position: static;
        left: unset;
        right: unset;
        bottom: unset;
        margin: 12px 0 0 0;
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .t888-testimonial-thumbs {
        flex: unset;
        display: flex;
        gap: 8px;
    }

    



    .t888-testimonial-prev,
    .t888-testimonial-next {
        display: none;
    }
.t888-testimonial-text{
        margin-bottom: 30px;
    }

    /* Text collapse - 3 lines */
    .t888-testimonial-text-wrapper {
        position: relative;
    }

    .t888-testimonial-text {
        transition: all 0.3s ease;
    }

    .t888-testimonial-text.is-collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px;
    }

    .t888-testimonial-readmore {
        display: inline-block;
        color: var(--primary-color, #E90380);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        text-decoration: none;
        margin-top: 8px;
        transition: opacity 0.2s;
    }

    .t888-testimonial-readmore:hover {
        opacity: 0.8;
    }

    .t888-testimonial-readmore.hidden {
        display: none;
    }
}