/* =====================
FOUNDERS
===================== */

.tm-founders{
    padding:100px 0;
    background:transparent;
}

.tm-founders__container{
    max-width:1440px;
    margin:0 auto;
}

.tm-founders__title{
    text-align:left;
    margin-bottom:60px;
}

.tm-founders__title p{
    opacity:.7;
}

/* =====================
SLIDER
===================== */

.tm-founders__slider{
    overflow:hidden;
    width:100%;
    position:relative;
    padding:10px 0;
}

.tm-founders__grid{
    display:flex;
    gap:32px;
    transition:transform .5s ease;
}

/* =====================
CARD
===================== */

.tm-founder-card{
    flex:0 0 calc((100% - 32px) / 2);
    position:relative;
    padding:2px;
    border-radius:28px;
    background:linear-gradient(
        135deg,
        #8B5CF6,
        #3B82F6,
        #06B6D4,
        #EC4899,
        #8B5CF6
    );
    background-size:300% 300%;
    animation:tm-founder-gradient 8s ease infinite;
    transition:.35s;
}

.tm-founder-card:hover{
    transform:translateY(-6px);
}

/* =====================
INNER
===================== */

.tm-founder-card__inner{
    display:flex;
    width:100%;
    min-height:300px;
    background:#fff;
    border-radius:26px;
    overflow:hidden;
}

/* =====================
IMAGE
===================== */

.tm-founder-card__image{
    width:50%;
    aspect-ratio:1 / 1;
    flex-shrink:0;
}

.tm-founder-card__image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    object-position:center;
}

/* =====================
CONTENT
===================== */

.tm-founder-card__content{
    width:50%;
    padding:36px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.tm-founder-card__quote{
    margin:0 0 24px;
    font-size:20px;
    line-height:1.65;
    font-style:italic;
}

.tm-founder-card__signature{
    font-weight:600;
    font-size:17px;
}

/* =====================
NAVIGATION
===================== */

.tm-founders__nav{
    margin-top:40px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
}

.tm-founders__nav button{
    width:46px;
    height:46px;
    border-radius:50%;
    border:1px solid #cfcfcf;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.25s;
}

.tm-founders__nav button:hover{
    border-color:#111;
}

.tm-founders__nav svg{
    width:18px;
    height:18px;
}

.tm-slider-count{
    min-width:60px;
    text-align:center;
    font-weight:600;
}

/* =====================
ANIMATED BORDER
===================== */

@keyframes tm-founder-gradient{
    0%{
        background-position:0% 50%;
    }
    50%{
        background-position:100% 50%;
    }
    100%{
        background-position:0% 50%;
    }
}

/* =====================
TABLET
===================== */

@media (max-width:900px){
    .tm-founders{
        padding:80px 0;
    }
    .tm-founder-card{
        flex:0 0 100%;
    }
    .tm-founder-card__inner{
        flex-direction:column;
        height:auto;
    }
    .tm-founder-card__image{
        width:100%;
        aspect-ratio:1 / 1;
    }
    .tm-founder-card__content{
        width:100%;
        aspect-ratio:1 / 1;
        padding:32px;
    }
    .tm-founder-card__quote{
        font-size:18px;
        line-height:1.6;
    }
}

/* =====================
PHONE
===================== */

@media (max-width:600px){
    .tm-founders{
        padding:60px 0;
    }
    .tm-founders__title{
        margin-bottom:40px;
    }
    .tm-founder-card__content{
        padding:24px;
    }
    .tm-founder-card__quote{
        font-size:17px;
        margin-bottom:20px;
    }
    .tm-founder-card__signature{
        font-size:16px;
    }
    .tm-founders__nav{
        margin-top:28px;
        gap:14px;
    }
    .tm-founders__nav button{
        width:42px;
        height:42px;
    }
    .tm-slider-count{
        font-size:15px;
        min-width:54px;
    }
}
