/* ========================================
   Team Page — tpl-team-new.php
   ======================================== */

/* --- Layout --- */

#meet-the-team {
    padding-top: 100px;
    margin-bottom: 150px;
}

@media (min-width: 1200px) {
    #meet-the-team {
        padding-top: 200px;
    }
}

#seasoned-pros {
    margin-bottom: 100px;
    @media (min-width: 992px) {
        margin-bottom: 200px;
    }
}

.main-content .container-fluid {
    max-width: 1560px;
}

/* --- Page intro (reusable: page title + description) --- */

.page-intro {
    margin-bottom: 80px;
    font-size: 16px;
    font-family: "body Swiss", sans-serif;
    line-height: 1.4;

    @media only screen and (min-width: 768px) {
        font-size: 20px;
    }
}

.page-intro__title {
    font-size: 36px;
    font-family: "Gilmer-Heavy", sans-serif;
    line-height: 1;

    @media only screen and (min-width: 768px) {
        font-size: 50px;
    }
}

/* --- Section header --- */

.section-header {
    margin-bottom: 80px;
    font-size: 16px;
    font-family: "body Swiss", sans-serif;
    line-height: 1.4;

    @media only screen and (min-width: 768px) {
        font-size: 20px;
    }
}



.section-header h3 {
    font-size: 22px;
    font-family: "Gilmer-Heavy", sans-serif;
    line-height: 1;

    @media only screen and (min-width: 768px) {
        font-size: 30px;
    }
}

/* --- Bio info section (front face bottom) --- */

.inner-wrapper .bio {
    background-color: #f8f8f8;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Bio card — 3D flip container --- */

.bio-card {
    perspective: 1000px;
    cursor: pointer;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .bio-card {
        max-width: unset;
        margin: 0;
    }
}

/* Card inner — handles the 3D rotation */
.bio-card__inner {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.bio-card:hover .bio-card__inner {
    transform: rotateY(180deg);
}

/* Both faces hidden when facing away */
.bio-card__front,
.bio-card__back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* --- Front face --- */

.bio-card__front {
    transform: rotateY(0deg);
    background-color: #00d9ff;
    position: relative;
}

/* White overlay strip (top 17.5%) */
.bio-card__front::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleY(0.175);
    transform-origin: top;
    background-color: #fff;
    pointer-events: none;
    z-index: -1;
}

.bio-card__front h4.staff-name {
    font-family: "Swiss721MediumBT", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

@media (min-width: 1200px) {
    .bio-card__front h4.staff-name {
        font-size: 22px;
    }
}

.bio-card__front .staff-title {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
}

@media (min-width: 1200px) {
    .bio-card__front .staff-title {
        font-size: 18px;
    }
}

.bio-card__front .bio-separator {
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00d9ff;
    margin: 20px auto;
}

.bio-card__front button.bio-btn {
    background-color: #fff !important;
    color: #6d6e71 !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    margin: 0 auto;
}

/* --- Back face --- */

.bio-card__back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    z-index: 0;
}

@media (min-width: 1200px) {
    .bio-card__back {
        padding: 30px 60px;
    }
}

/* --- ARCHIVED (kept for possible client revert) ---
   Previously the back face mirrored the front's white overlay strip and
   reserved space for it via extra top padding.

.bio-card__back {
    padding: calc(17.5% + 30px) 30px 30px;
}
@media (min-width: 1200px) {
    .bio-card__back {
        padding: calc(17.5% + 30px) 60px 30px;
    }
}
.bio-card__back::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: scaleY(0.175);
    transform-origin: top;
    background-color: #fff;
    pointer-events: none;
    z-index: -1;
}
--- end archived --- */

.bio-card__back h4 {
    font-family: "Swiss721MediumBT", sans-serif;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .bio-card__back h4 {
        font-size: 22px;
    }
}

.bio-card__back .bio-role {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    color: #6d6e71;
    margin-bottom: 20px;
}

@media (min-width: 1200px) {
    .bio-card__back .bio-role {
        font-size: 18px;
        margin-bottom: 30px;
    }
}

.bio-card__back .bio-text {
    font-family: "Swiss721MediumBT", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #6d6e71;
    margin-bottom: 0;
}

.bio-card__back .bio-text p:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .bio-card__back .bio-text {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .bio-card__back .bio-text {
        font-size: 16px;
    }
}