@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter"; /* font-family is inherited */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.main-container {
    box-sizing: border-box;
    margin: 0 auto 100px;
    padding: 75px 0 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.main-container > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    font-size: 62px;
    font-weight: 500;
    line-height: 1.25em;
    text-align: center;
}

.management-container {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 70px;
}

.mngmt-team-container {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
    justify-content: space-between;
    align-items: center;
}

.mngmt-team-container > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    font-size: 36px;
    font-weight: 500;
    color: rgba(11, 64, 8, 1);
    text-align: center;
}

.mngmt-boxes {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%; /* 1200px */
    display: flex;
    flex-wrap: wrap;
    column-gap: 2.5%; /* 30px */
    row-gap: 24px;
    align-items: flex-start;
}

.profile-box {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(217, 217, 217, 0.75);
    width: 31.6%; /* 379.2px */
}

.profile-photo {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    /* aspect-ratio: 377.2 / 377.2; */
    aspect-ratio: 300/300;
}

.profile-photo > img {
    display: block;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-labels {
    box-sizing: border-box;
    margin: 0;
    padding: 16px 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-name {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.25em;
}

.profile-role {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.25em;
    color: rgba(0, 0, 0, 0.75);
}

.permanent-consultants, .other-consultants {
    margin-top: 5px;
}

.department-personnel {
    box-sizing: border-box;
    padding: 0;
    margin: 110px 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.dept-heading-outer {
    position: relative;
    box-sizing: border-box;
    padding: 5px 0;
    margin: 0;
    width: 100%;
}

.dept-heading-inner {
    box-sizing: border-box;
    margin: 0;
    padding: 25px 15px;
    width: 100%;
    border-top: 3px solid rgba(217, 217, 217, 0.75);
    border-bottom: 3px solid rgba(217, 217, 217, 0.75);
}

.dept-heading-inner > h1 {
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    font-size: 40px;
    font-weight: 500;
    color: rgba(11, 64, 8, 1);
    text-align: center;
}

.top-block-line, .bottom-block-line {
    position: absolute;
    height: 10%;
    background-color: white;
    z-index: 1000;
}

.top-block-line {
    width: 18.5%;
    top: 1%;
}

.bottom-block-line {
    width: 20.3%;
    right: 0;
    bottom: 1%;
}

.all-departments {
    box-sizing: border-box;
    padding: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 90px;
}

.department {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    row-gap: 18px;
}

.department > h1 {
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0;
    color: rgba(11, 64, 8, 1);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25em;
    text-align: center;
}

.dept-boxes {
    box-sizing: border-box;
    padding: 40px 0 15px;
    margin: 0;
    width: 100%;
    border: 1px solid rgba(217, 217, 217, 0.75);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.dept-head {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 87%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.dept-head-img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 30%;
    min-width: 200px;
    aspect-ratio: 300 / 300;
}

.dept-head-img > img {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dept-head-labels {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dept-head-name {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.25em;
    text-align: center;
}

.dept-head-role {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.25em;
    text-align: center;
    color: rgba(0, 0, 0, 0.75);
}

.team-members-title {
    box-sizing: border-box;
    padding: 13px 0;
    margin: 18px 0 0;
    width: 87%;
    border-top: 1px solid rgba(217, 217, 217, 1);
}

.team-members-title > p {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.dept-members {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    width: 87%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5%;
    row-gap: 10px;
}

.dept-personnel {
    box-sizing: border-box;
    padding: 13px 16px;
    margin: 0;
    width: 32.33333333333333%;
    border: 1px solid rgba(217, 217, 217, 1);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dept-personnel > p {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.personnel-name {
    font-size: 20px;
    line-height: 1.25em;
}

.personnel-role {
    font-size: 15px;
    line-height: 1.25em;
    color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 1128px) {
    .main-container > h1 {
        font-size: 45px;
    }
    .management-container {
        width: 95%;
    }
    .mngmt-team-container > h1 {
        font-size: 28px;
    }
    .profile-name {
        font-size: 20px;
    }
    .dept-heading-inner > h1 {
        font-size: 30px;
    }
    .department > h1 {
        font-size: 28px;
        font-weight: 500;
    }
    .all-departments {
        width: 95%;
        max-width: none;
    }
    .dept-head-name {
        font-size: 18px;
    }
    .team-members-title > p {
        font-size: 18px;
    }
    .personnel-name {
        font-size: 18px;
    }
    .dept-members {
        column-gap: 2%;
    }
    .dept-personnel {
        width: 49%;
    }
    .top-block-line {
        width: 15%;
    }
    .bottom-block-line {
        width: 15%;
    }
    .profile-box {
        border-radius: 10px;
    }
    .profile-box img {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .department-personnel img {
        border-radius: 10px;
    }
}

@media (max-width: 839px) {
    .corporate-directors > .mngmt-boxes {
        column-gap: 4%;
        justify-content: space-between;
    }
    .profile-box {
        width: 47.4%;
    }
}

@media (max-width: 605px) {
    .dept-members {
        column-gap: 0;
    }
    .dept-personnel {
        width: 100%;
    }
}

@media (max-width: 559px) {
    .corporate-directors > .mngmt-boxes {
        justify-content: space-between;
    }
    .corporate-directors .profile-box {
        width: 100%;
    }
}