/* ========== T888 Quote Box Widget (Final Fix with Overlay) ========== */
.t888-quote-box-wrapper {

}

.t888-quote-box-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Left: Year + Image */
.t888-quote-left {
    flex: 0 0 570px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 110px;
}

.t888-year-vertical {
    background-color: var(--third-color);
    color: var(--secondary-color);
    font-size: 100px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: absolute;
    left: -110px;
    top: 70px;
    z-index: 2;
    width: 160px;
    height: 543px;
    text-align: center;
}
.t888-year-char {
    display: block;
    line-height: 1.2;
}
.t888-quote-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Right: Logos + Box */
.t888-quote-right {
    flex: 1 1 720px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.t888-quote-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 57px;
}

.t888-quote-logo img {
    max-height: 130px;
    width: auto;
    display: block;
    object-fit: cover;
}

.t888-quote-content {
    background: var(--secondary-color);
    border: 1px solid var(--forth-color);
    padding: 60px 77px;
    margin-left: -77px;
    position: relative;
    z-index: 3;
}

.t888-quote-description {
    font-size: 14px;
    line-height: 30px;
    color: var(--primary-color);
    opacity: 0.8;
    margin-bottom: 32px;
}

.t888-quote-text {
    font-style: italic ;
    font-family: var(--font-philosopher);
    font-size: 18px;
    color: var(--primary-color);
    line-height: 30px;
 margin-bottom: 32px;
 position: relative;
}
.t888-quote-text::before {
    content: '';
    position: absolute;
    left: -78px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--third-color); 
    border-radius: 2px;
}
.t888-quote-author {
    font-size: 14px;
    line-height: 30px;
    color: var(--primary-color);
    opacity: 0.5;
}
.t888-quote-box-wrapper.style-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.t888-quote-box-wrapper.style-2 .t888-quote-left{
    flex: 1 1 46.5%;
    margin-left: 0;
}
.t888-quote-box-wrapper.style-2 .t888-quote-right {
    flex: 1 1 53.5%;
}
.t888-quote-box-wrapper.style-2 .t888-quote-right .t888-quote-content{
    margin-left: -7px;
}
.t888-quote-bottom-box {
    padding-left: 45px;
}
.t888-bottom-title {
line-height: 30px;
margin: 50px 0;
}
.t888-bottom-text {
    font-size: 14px;
    line-height: 30px;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .t888-quote-box-main {
        flex-direction: column;
        align-items: center;
    }

    .t888-quote-left,
    .t888-quote-right {
        flex: 1 1 100%;
        max-width: 100%;
        align-items: center;
    }

    .t888-quote-right {
        text-align: center;
    }

    .t888-quote-logos {
        justify-content: center;
    }

    .t888-year-vertical {
        writing-mode: horizontal-tb;
        padding: 10px 20px;
        font-size: 24px;
        position: relative;
        left: 0;
        margin-bottom: 20px;
        width: auto;
    }

    .t888-quote-content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .t888-quote-box-wrapper {
        padding: 40px 15px;
    }

    .t888-quote-text {
        font-size: 14px;
    }

    .t888-quote-description {
        font-size: 14px;
    }

    .t888-quote-logos {
        gap: 20px;
    }
}