:root {
    ----research-team-font: 20px;
    ----color: #484848;
    ----position-experties-font: 16px;
    ----green-color: #027f30;

    /* Media Query */
    ---title-font-size: 20px;
    ---media-main-font: 14px;
    ---media-sub-title: 16px;
    ---media-title: 18px;
}

.research-team_title {
    font-size: 30px;
    color: #01aa3f;
    font-weight: bold;
    font-family: "bitter", serif;
    text-align: left;
}

.team_box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.box {
    flex: 1 1 calc(25% - 15px);
    max-width: calc(25% - 15px);
    color: #484848;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(----header-font-family);
    padding: 10px;
    gap: 7px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.team_image {
    width: 126px;
    height: 136px;
    overflow: hidden;
    border-radius: 80%;
    border: 3.5px solid #7cc195;
    display: flex;
    justify-content: center;
}

.team_image img {
    object-fit: cover;
    width: 88%;
}

.team_name {
    font-weight: bold;
    font-size: var(----research-team-font);
    margin: 0;
}

.team_position,
.team_expertise {
    font-size: var(----position-experties-font);
    margin: 0;
}

.team_contact-info {
    color: var(----green-color);
}

.team_contact-info a {
    color: var(----green-color);
    text-decoration: none;
}

.team_contact-info a:hover {
    text-decoration: underline;
}

.team_contact-info {
    margin: 0;
}

/* MOBILE VIEW */

@media screen and (max-width: 479px) {
    .research-team_title {
        font-size: var(---media-title);
    }

    .team_box {
        flex-direction: column;
        padding: 10px 0;
        gap: 15px;
    }

    .box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .team_image {
        width: 100px;
        height: 120px;
        border-radius: 50%;
        border: 3px solid #7cc195;
    }

    .team_name {
        font-size: 16px;
    }

    .team_position,
    .team_expertise {
        font-size: 14px;
    }

    .team_contact-info a {
        font-size: 14px;
    }
}

@media screen (min-width: 768px) and (max-width: 768px) {
    .research-team_title {
        font-size: var(---media-title);
    }

    .team_box {
        /* border: 3px solid; */
        flex-direction: column;
        padding: 10px 0;
        gap: 15px;
    }

    .box {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 10px;
        gap: 10px;
    }

    .team_image {
        width: 100px;
        height: 120px;
        border-radius: 50%;
        border: 3px solid #7cc195;
    }

    .team_name {
        font-size: 16px;
    }

    .team_position,
    .team_expertise {
        font-size: 14px;
    }

    .team_contact-info a {
        font-size: 14px;
    }
}

/* Tablet Media Query */
@media (min-width: 769px) and (max-width: 1024px) {
    .research-team_title {
        font-size: 24px;
    }

    .team_box {
        gap: 15px;
        padding: 15px 0;
    }

    .box {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .team_image {
        width: 100px;
        height: 130px;
    }

    .team_name {
        font-size: 18px;
    }

    .team_position,
    .team_expertise {
        font-size: 14px;
    }

    .team_contact-info {
        font-size: 13px;
    }
}
