/* Team Profile Section Styles */

.ms-team-profile-section {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    max-width: 950px;
}

.ms-team-profile-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.ms-team-profile-section__left,
.ms-team-profile-section__right {
    flex: 1 1 45%;
}

.ms-team-profile-section__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ms-team-profile-section__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 14px;
}

.ms-team-profile-section__pill--position,
.ms-team-profile-section__pill--sede {
    background-color: #a5f4c2;
    color: #004629;
}

.ms-team-profile-section__title {
    margin: 0 0 12px;
    font-size: 72px;
    line-height: 1.1;
    font-weight: 700;
    color: #004629;
}

.ms-team-profile-section__matricula {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.ms-team-profile-section__pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Image card */
.ms-team-image-card {
    position: relative;
    width: 400px;
    height: 400px;
    margin-left: auto;
}

.ms-team-image-card__bg-shape {
    position: absolute;
    top: -15px;
    left: 35px;
    z-index: 1;
    width: 395px;
    height: 410px;
    pointer-events: none;
}

.ms-team-image-card__bg-shape svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ms-team-image-card__image {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 400px;
    border-radius: 32px;
    overflow: hidden;
    background: #e9e9e9;
}

.ms-team-profile-section__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

@media (max-width: 991px) {
    .ms-team-profile-section__inner {
        gap: 32px;
    }

    .ms-team-profile-section__left,
    .ms-team-profile-section__right {
        flex: 1 1 100%;
    }

    .ms-team-image-card {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .ms-team-profile-section__title {
        font-size: 32px;
    }

    .ms-team-image-card {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .ms-team-image-card__image {
        width: 100%;
        height: 100%;
    }

    .ms-team-image-card__bg-shape {
        width: 98%;
        height: 102%;
        left: 25px;
        top: -25px;
    }
}

@media (max-width: 550px) {
    .single-team [data-id="af2cfd3"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .ms-team-profile-section {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .ms-team-profile-details__inner {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .ms-team-profile-details__right {
        width: 100%;
    }

    .ms-team-schedule-card__title {
        font-size: 18px !important;
    }
}

/* Details Section (The New Part) */
.ms-team-profile-details {
    background-color: #F1F6F2;
    padding: 80px 0;
    border-radius: 28px !important;
    margin-top: 40px;
}

.ms-team-profile-details__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
}

.ms-team-profile-details__left {
    flex: 1.2;
}

.ms-team-profile-details__right {
    flex: 1;
}

.ms-team-profile-details__title {
    font-size: 36px;
    color: #054F31;
    margin-bottom: 30px;
    font-weight: 400;
}

.ms-team-profile-details__content {
    color: #4A4A4A;
    line-height: 1.6;
    font-size: 16px;
}

/* Schedule Card */
.ms-team-schedule-card {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 50px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.ms-team-schedule-card__title {
    font-size: 20px;
    color: #054F31;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E6F0EB;
    display: inline-block;
}

.ms-team-schedule-card__content {
    color: #4A4A4A;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {

    .ms-team-profile-section__inner,
    .ms-team-profile-details__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .ms-team-profile-section__title {
        font-size: 36px;
    }

    .ms-team-profile-details {
        padding: 50px 0;
    }

    .ms-team-schedule-card {
        padding: 30px;
    }
}