/* =========================================================
   OUR TEAM INTRO
========================================================= */

.team-intro-section {

    width: 100%;

    background: #ffffff;

    padding: 45px 0 55px;

    overflow: hidden;

}


/* =========================================================
   CONTAINER
========================================================= */

.team-intro-container {

    width: min(1030px, calc(100% - 80px));

    margin: 0 auto;

    display: grid;

    grid-template-columns: 46% 54%;

    align-items: center;

}


/* =========================================================
   LEFT SIDE
========================================================= */

.team-intro-left {

    position: relative;

    min-height: 170px;

}


/* 400+ */

.team-number {

    position: absolute;

    top: -5px;

    left: 72px;

    z-index: 2;

    color: #f4ca00;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 52px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

    transform: rotate(-4deg);

}


/* Heading */

.team-intro-left h2 {

    position: relative;

    z-index: 1;

    margin: 32px 0 0;

    color: #050505;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 62px;

    line-height: .98;

    letter-spacing: -2.5px;

    font-weight: 900;

}


/* =========================================================
   YELLOW ACCENT
========================================================= */

.team-accent {

    position: absolute;

    left: 108px;

    bottom: 7px;

    color: #f4ca00;

    font-size: 37px;

    line-height: 1;

    font-weight: 900;

    transform: rotate(-2deg);

}


/* =========================================================
   RIGHT TEXT
========================================================= */

.team-intro-right {

    padding-left: 30px;

}


.team-intro-right p {

    margin: 0;

    max-width: 560px;

    color: #111111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 20px;

    line-height: 1.42;

    font-weight: 400;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .team-intro-container {

        width: calc(100% - 55px);

        grid-template-columns: 45% 55%;

    }


    .team-number {

        left: 45px;

        font-size: 45px;

    }


    .team-intro-left h2 {

        font-size: 52px;

    }


    .team-accent {

        left: 78px;

    }


    .team-intro-right {

        padding-left: 20px;

    }


    .team-intro-right p {

        font-size: 17px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .team-intro-section {

        padding: 35px 0 45px;

    }


    .team-intro-container {

        width: calc(100% - 30px);

        display: block;

    }


    .team-intro-left {

        min-height: 145px;

    }


    .team-number {

        top: -5px;

        left: 48px;

        font-size: 42px;

    }


    .team-intro-left h2 {

        margin-top: 28px;

        font-size: 49px;

        line-height: .95;

        letter-spacing: -2px;

    }


    .team-accent {

        left: 78px;

        bottom: 2px;

        font-size: 30px;

    }


    .team-intro-right {

        padding: 20px 0 0;

    }


    .team-intro-right p {

        max-width: 100%;

        font-size: 16px;

        line-height: 1.5;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .team-intro-left {

        min-height: 130px;

    }


    .team-number {

        left: 42px;

        font-size: 36px;

    }


    .team-intro-left h2 {

        font-size: 43px;

    }


    .team-accent {

        left: 70px;

        font-size: 27px;

    }


    .team-intro-right p {

        font-size: 15px;

    }

}

/* =========================================================
   OUR TEAM MEMBERS
========================================================= */

.team-members-section {

    width: 100%;

    background: #ffffff;

    padding: 20px 0 80px;

    overflow: hidden;
}


.team-members-container {

    width: min(1200px, calc(100% - 70px));

    margin: 0 auto;
}


/* =========================================================
   GRID
========================================================= */

.team-members-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}


/* =========================================================
   CARD
========================================================= */

/* =========================================================
   TEAM MEMBER CARD
========================================================= */

.team-member-card {
    position: relative;
    height: 430px;
    padding: 0;
    overflow: hidden;

    border-radius: 18px;
    background: #111;

    cursor: pointer;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .10);

    transition:
        height .5s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .45s ease;
}


/* =========================================================
   FULL CARD IMAGE
========================================================= */

.team-member-image-wrap {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    overflow: hidden;

    border-radius: 0;

    transition:
        width .6s cubic-bezier(.22, 1, .36, 1),
        height .6s cubic-bezier(.22, 1, .36, 1),
        top .6s cubic-bezier(.22, 1, .36, 1),
        left .6s cubic-bezier(.22, 1, .36, 1),
        border-radius .6s ease,
        box-shadow .5s ease;
}


.team-member-image-wrap img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        width .6s ease,
        height .6s ease,
        transform .6s ease;
}


/* =========================================================
   DARK GRADIENT OVER IMAGE
========================================================= */

.team-member-image-wrap::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.85) 0%,
            rgba(0,0,0,.35) 35%,
            rgba(0,0,0,0) 65%
        );

    pointer-events: none;
}


/* =========================================================
   CONTENT
========================================================= */

.team-member-content {
    position: absolute;

    z-index: 5;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px 25px 25px;

    text-align: center;

    color: #fff;

    transition:
        all .5s ease;
}


.team-member-content h3 {
    margin: 0;

    color: #fff;

    font-size: 25px;
    font-weight: 900;
}


.team-member-role {
    display: block;

    margin-top: 6px;

    color: #ffd21a;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;
}


.team-member-content p {
    margin: 14px auto 0;

    max-width: 310px;

    color: #333;

    font-size: 13px;
    line-height: 1.55;

    opacity: 0;

    max-height: 0;

    overflow: hidden;

    transform: translateY(15px);

    transition:
        opacity .4s ease,
        max-height .5s ease,
        transform .5s ease;
}


/* =========================================================
   HOVER
========================================================= */

.team-member-card:hover {
    transform: translateY(-8px);

    background: #fff;

    box-shadow:
        0 22px 50px rgba(0,0,0,.16);
}


/* IMAGE BECOMES CIRCLE */

.team-member-card:hover .team-member-image-wrap {

    inset: auto;

    top: 25px;
    left: 50%;

    width: 135px;
    height: 135px;

    transform: translateX(-50%);

    border-radius: 50%;

    border: 5px solid #fff;

    box-shadow:
        0 8px 25px rgba(0,0,0,.20);

    background: #eee;
}


.team-member-card:hover .team-member-image-wrap img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.02);
}


/* Remove dark overlay after image becomes circle */

.team-member-card:hover
.team-member-image-wrap::after {

    display: none;
}


/* CONTENT MOVES BELOW CIRCLE */

.team-member-card:hover .team-member-content {

    top: 175px;
    bottom: auto;

    padding: 15px 25px 20px;

    color: #111;
}


.team-member-card:hover
.team-member-content h3 {

    color: #050505;
}


.team-member-card:hover
.team-member-content p {

    opacity: 1;

    max-height: 120px;

    transform: translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .team-member-card {
        height: 420px;
    }

    .team-member-content {
        padding: 30px 20px 22px;
    }

    .team-member-content h3 {
        font-size: 22px;
    }

    .team-member-card.team-card-active
    .team-member-image-wrap {

        inset: auto;

        top: 22px;
        left: 50%;

        width: 120px;
        height: 120px;

        transform: translateX(-50%);

        border-radius: 50%;

        border: 4px solid #fff;

        box-shadow:
            0 8px 25px rgba(0,0,0,.18);
    }

    .team-member-card.team-card-active
    .team-member-image-wrap img {

        width: 100%;
        height: 100%;

        object-fit: cover;
    }

    .team-member-card.team-card-active
    .team-member-image-wrap::after {

        display: none;
    }

    .team-member-card.team-card-active
    .team-member-content {

        top: 160px;
        bottom: auto;

        padding: 15px 20px;
    }

    .team-member-card.team-card-active
    .team-member-content h3 {

        color: #050505;
    }

    .team-member-card.team-card-active
    .team-member-content p {

        opacity: 1;

        max-height: 130px;

        transform: translateY(0);
    }
}


/* =========================================================
   SUBTLE CARD BACKGROUND
========================================================= */

.team-member-card:hover {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 72%,
            #fffdf5 100%
        );

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .team-members-container {

        width: calc(100% - 45px);

    }


    .team-members-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 22px;

    }


    .team-member-card {

        min-height: 400px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .team-members-section {

        padding-bottom: 50px;

    }


    .team-members-container {

        width: calc(100% - 25px);

    }


    .team-members-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }


    .team-member-card {

        min-height: 390px;

        padding: 22px;

    }


    .team-member-image-wrap {

        height: 255px;

    }


    /*
       Mobile par hover available nahi hota,
       isliye card focus/touch state bhi same
       animation trigger karega.
    */

    .team-member-card:active
    .team-member-image-wrap,
    .team-member-card:focus
    .team-member-image-wrap {

        width: 120px;

        height: 120px;

        margin: 0 auto;

        border-radius: 50%;

        border: 4px solid #ffffff;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, .16);

    }


    .team-member-card:active
    .team-member-image-wrap img,
    .team-member-card:focus
    .team-member-image-wrap img {

        width: 100%;

        height: 100%;

        object-fit: cover;

    }


    .team-member-card:active
    .team-member-content p,
    .team-member-card:focus
    .team-member-content p {

        opacity: 1;

        max-height: 120px;

        transform: translateY(0);

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .team-member-card {

        min-height: 370px;

        padding: 18px;

    }


    .team-member-image-wrap {

        height: 240px;

    }


    .team-member-content h3 {

        font-size: 21px;

    }


    .team-member-content p {

        font-size: 12px;

    }

}


/* =========================================================
   MOBILE TAP STATE
========================================================= */

@media (max-width: 600px) {

    .team-member-card.team-card-active
    .team-member-image-wrap {

        width: 120px;

        height: 120px;

        margin: 0 auto;

        border-radius: 50%;

        border: 4px solid #ffffff;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, .16);

    }


    .team-member-card.team-card-active
    .team-member-image-wrap img {

        width: 100%;

        height: 100%;

        object-fit: cover;

        object-position: center top;

    }


    .team-member-card.team-card-active
    .team-member-content p {

        opacity: 1;

        max-height: 120px;

        transform: translateY(0);

    }

}