/* ========== 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 44.18%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 110px;
}
.t888-quote-box-wrapper.style-2 .t888-quote-left{
    padding-left: 0;
}
.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: 0px;
    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 55.82%;
    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(--ninth-color);
    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(--ninth-color);
}

.t888-quote-left,
.t888-quote-right { position: relative; }

:root{
  --reveal-dur: .7s;
  --reveal-ease: cubic-bezier(.22,.61,.36,1);
}

.reveal-left,
.reveal-right,
.reveal-up { opacity: 0; will-change: transform, opacity; }

.reveal-left  { transform: translate3d(-40px,0,0); }
.reveal-right { transform: translate3d( 40px,0,0); }
.reveal-up    { transform: translate3d(0,24px,0); }

.in-view.reveal-left,
.in-view.reveal-right,
.in-view.reveal-up{
  opacity: 1;
  transform: none;
  transition: transform var(--reveal-dur) var(--reveal-ease),
              opacity   var(--reveal-dur) ease-out;
}


.t888-year-vertical { display: inline-flex; flex-direction: column; gap: 18px; }
.t888-year-vertical .t888-year-char{
  opacity: 0; transform: translateY(12px);
  transition: transform .5s var(--reveal-ease), opacity .5s ease-out;
}
.t888-year-vertical.in-view .t888-year-char{ opacity:1; transform:none; }
.t888-year-vertical.in-view .t888-year-char:nth-child(1){ transition-delay:.00s; }
.t888-year-vertical.in-view .t888-year-char:nth-child(2){ transition-delay:.08s; }
.t888-year-vertical.in-view .t888-year-char:nth-child(3){ transition-delay:.16s; }
.t888-year-vertical.in-view .t888-year-char:nth-child(4){ transition-delay:.24s; }


.t888-quote-logos{ display:flex; flex-wrap:wrap; gap:28px; }
.t888-quote-logo{ opacity:0; transform: translateY(12px);
  transition: transform .5s var(--reveal-ease), opacity .5s ease-out; }
.t888-quote-logos.in-view .t888-quote-logo{ opacity:1; transform:none; }
.t888-quote-logos.in-view .t888-quote-logo:nth-child(1){ transition-delay:.00s; }
.t888-quote-logos.in-view .t888-quote-logo:nth-child(2){ transition-delay:.08s; }
.t888-quote-logos.in-view .t888-quote-logo:nth-child(3){ transition-delay:.16s; }
.t888-quote-logos.in-view .t888-quote-logo:nth-child(4){ transition-delay:.24s; }
.t888-quote-logos.in-view .t888-quote-logo:nth-child(5){ transition-delay:.32s; }
/* hover float */
.t888-quote-logo img{ display:block; transition: transform .35s ease, filter .35s ease; }
.t888-quote-logo:hover img{ transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.12)); }


.t888-quote-image{ overflow:hidden; }
.t888-quote-image img{ display:block; width:100%; height:auto; }


@media (hover:none){
  .t888-quote-logo:active img{ transform: translateY(-6px) scale(1.03); }
}





@media (max-width: 1599px){
    .t888-year-vertical{
        font-size: 72px;
        width: 120px;
        height: 410px;
    }
    .t888-quote-left{
        padding-left: 50px;
    }
    .t888-quote-logos{
        margin-bottom: 40px;
    }
    .t888-quote-content{
        margin-left: -30px;
        padding: 30px;
    }
}
/* Responsive */
@media (max-width: 1024px) {
    .t888-quote-bottom-box{
        padding-left: 0;
    }
     .t888-quote-box-wrapper.style-2 .t888-quote-box-main {
        flex-direction: row;
     }
    .t888-quote-box-main {
        flex-direction: column;
        align-items: center;
    }
    .t888-quote-box-wrapper.style-2 .t888-quote-left{
         flex: 1 1 100%;
        max-width: 100%;
        flex-direction: row;
        margin-bottom: 50px;
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }
    .t888-quote-left{
        flex: 1 1 100%;
        max-width: 100%;
        flex-direction: row;
        margin-bottom: 50px;
        padding-left: 0;
        width: 100%;
    }
    .t888-quote-box-wrapper.style-2 .t888-quote-right,
    .t888-quote-right {
        flex: 1 1 100%;
        max-width: 100%;
        align-items: center;
    }

    .t888-quote-right {
        text-align: center;
    }

    .t888-quote-logos {
        justify-content: space-evenly;
        width: 100%;
    }

    .t888-year-vertical {
        writing-mode: horizontal-tb;
        padding: 10px 20px;
        font-size: 100px;
        position: relative;
        left: 40px;
        margin-bottom: 20px;
        width: auto;
        height: auto;
    }

    .t888-quote-content {
        margin-left: 0;
        padding: 20px;
    }
}
@media (max-width: 575px){
    .t888-quote-left{
        left: 0px;
    }
    .t888-quote-box-wrapper.style-2 .t888-quote-left{
        left: unset;
    }
.t888-year-vertical{
    font-size: 72px;
    position: absolute;
    left: -16px;
}
.t888-bottom-title{
    margin: 40px 0 30px;
}
}
@media (max-width: 480px) {


    .t888-quote-text {
        font-size: 14px;
    }

    .t888-quote-description {
        font-size: 14px;
    }

    .t888-quote-logos {
        gap: 20px;
    }
    .t888-year-vertical{
    font-size: 48px;
        top: 40px;
}
.t888-quote-logo img{
    max-height: 80px;
}

}