/* =========================================================
   TEAM MENU
========================================================= */

.team-menu {
    padding: 100px 0 110px;
    background: #ffffff;
}


/* =========================================================
   HEADING
========================================================= */

.team-menu__heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.team-menu__sub {
    display: inline-block;

    margin-bottom: 10px;

    color: #1341a2;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 1.5px;
}

.team-menu__title {
    margin: 0 0 15px;

    color: #16213a;

    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

.team-menu__text {
    max-width: 620px;

    margin: 0 auto;

    color: #6d7482;

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   TEAM GRID
========================================================= */

.team-menu__grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 30px;

    max-width: 1100px;

    margin: 0 auto;
}


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

.team-menu-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid #e5eaf2;

    border-radius: 24px;

    background: #ffffff;

    text-decoration: none;

    box-shadow: 0 10px 35px rgba(19, 65, 162, 0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.team-menu-card:hover {
    transform: translateY(-8px);

    border-color: #d5e0f4;

    box-shadow: 0 20px 50px rgba(19, 65, 162, 0.13);
}


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

.team-menu-card__image {
    position: relative;

    width: 100%;
    height: 330px;

    overflow: hidden;

    background: #edf3ff;
}

.team-menu-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    transition: transform 0.5s ease;
}

.team-menu-card:hover .team-menu-card__image img {
    transform: scale(1.04);
}


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

.team-menu-card__overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(19, 65, 162, 0) 50%,
            rgba(19, 65, 162, 0.35) 100%
        );

    pointer-events: none;
}


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

.team-menu-card__content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 260px;

    padding: 30px;
}


/* =========================================================
   LABEL
========================================================= */

.team-menu-card__label {
    display: block;

    margin-bottom: 9px;

    color: #8a92a2;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 1px;
}


/* =========================================================
   TITLE
========================================================= */

.team-menu-card__content h3 {
    margin: 0 0 14px;

    color: #16213a;

    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.team-menu-card__content p {
    max-width: 520px;

    margin: 0;

    color: #707887;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.75;
}


/* =========================================================
   BUTTON
========================================================= */

.team-menu-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;

    gap: 9px;

    width: fit-content;

    min-height: 48px;

    margin-top: auto;
    padding: 11px 19px;

    border-radius: 9px;

    background: #1341a2;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.team-menu-card__button i {
    display: inline-block;

    font-size: 12px;

    transition: transform 0.25s ease;
}

.team-menu-card:hover .team-menu-card__button {
    background: #0d3387;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(19, 65, 162, 0.18);
}

.team-menu-card:hover .team-menu-card__button i {
    transform: translate(3px, -3px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .team-menu {
        padding: 80px 0 90px;
    }

    .team-menu__title {
        font-size: 32px;
    }

    .team-menu__grid {
        gap: 22px;
    }

    .team-menu-card__image {
        height: 280px;
    }

    .team-menu-card__content {
        min-height: 250px;

        padding: 25px;
    }

    .team-menu-card__content h3 {
        font-size: 26px;
    }

}


@media (max-width: 767px) {

    .team-menu {
        padding: 70px 0 70px;
    }

    .team-menu__heading {
        margin-bottom: 35px;
    }

    .team-menu__sub {
        font-size: 11px;
    }

    .team-menu__title {
        font-size: 28px;
    }

    .team-menu__text {
        font-size: 14px;
        line-height: 1.7;
    }

    .team-menu__grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .team-menu-card__image {
        height: 280px;
    }

    .team-menu-card__content {
        min-height: 240px;

        padding: 24px;
    }

    .team-menu-card__content h3 {
        font-size: 24px;
    }

    .team-menu-card__content p {
        font-size: 14px;
    }

    .team-menu-card__button {
        width: 100%;
    }

}
