/* Profile portraits must not stretch to match the biography height. */
.team_details .membar_img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center top;
    margin-inline: auto;
}

/* Only the biography row: leave the author's article grid unchanged. */
@media (min-width: 768px) {
    #team_details > .container > .row:has(> div > img.membar_img) {
        display: grid;
        grid-template-columns: minmax(0, 30%) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
        margin-inline: 0;
    }
    #team_details > .container > .row:has(> div > img.membar_img) > div {
        width: 100%;
        min-width: 0;
        padding-inline: 0;
    }
    #team_details > .container > .row:has(> div > img.membar_img) .contanct_bx {
        padding-top: 0;
        text-align: start;
    }
}
@media (min-width: 1200px) {
    #team_details > .container > .row:has(> div > img.membar_img) {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 40px;
    }
}
@media (max-width: 767px) {
    .team_details .membar_img {
        max-width: 240px;
        max-height: 320px;
    }
}

.text-4xl {
    font-style: normal;
    font-weight: 800;
    font-size: 36px;
    line-height: 125%;
    color: #111928;
}

.text-xl {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 125%;
    color: #111928;
}

.text-3xl {
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 125%;
    color: #111928;
}

.team_details .team_center {
    text-align: center;
    width: 100%;
    max-width: 780px;
    margin: 0px auto;
    padding: 40px 0px 80px 0px;

}

.team_details {
    padding-top: 80px;
    padding-bottom: 80px;
}

.team_details .team_center p:nth-child(2) {
    padding-top: 50px;
}

.blogs_section .blg_bx:nth-child(2) {
    padding-top: 32px;
}
@media (max-width: 1024px){
 .team_details .list-group li a {
    font-size: 18px !important;
    }
    .team_details .team_center p:nth-child(2) {
    padding-top: 40px;
}
}

@media screen and (max-width: 991px) {
    .team_details {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .team_details .contanct_bx .text-4xl {
        font-size: 24px;
    }

    .team_details .contanct_bx {
        padding-top: 24px;
        text-align: center;
    }

    .team_details .list-group li a {
        text-align: start !important;
        font-size: 18px !important;
    }

    .team_details .list-group li {
        align-items: baseline !important;
    }

    .blogs_section .text-3xl {
        font-size: 24px;
        text-align: center;
        padding: 0px !important;
    }

    .team_details .team_center {
        padding: 40px 0px 40px 0px;
    }

    .blogs_section .blg_bx:nth-child(1) {
        padding-top: 32px;
    }

    .blogs_section .blg_bx:nth-child(2) {
        padding-top: 32px;
    }
}