/* Hero Section */
.header-mda {
    min-height: 810px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.header-mda:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.06);
    z-index: 4;
}

.manage-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/management/cover.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.header-mda h1 {
    font-size: 5rem;
    line-height: 1.5;
    color: var(--main-color);
    z-index: 2;
    position: absolute;
    bottom: 25%;
    text-shadow: 5px 7px 5px rgba(0, 0, 0, 0.6);
}

.bg-img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.valign {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.manage-cover {*/
/*    min-height: 95vh;*/
/*    position: relative;*/
/*    overflow: hidden !important;*/
/*    top: -150px;*/
/*}*/

.manage-cover {
    min-height: 850px;
    position: relative;
    overflow: hidden !important;
    top: -170px;
}

.manage-cover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15%;
    opacity: 1;
    backdrop-filter: blur(2px);
    z-index: 100;
}

.section-padding {
    padding-top: 60px;
}

.team-pg .new-style {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 2rem;
}

.fit-img {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.fit-img img {
    width: 100%;
    height: 100%;;
    display: block;
    object-fit: cover;
    transition: filter 0.5s ease;
}

.fit-img img:hover {
    cursor: pointer;
}

.management-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.management-modal .modal-content {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    width: 45%;
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--theme-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    z-index: 1001;
    animation: modalFade 0.3s ease-in-out;
}

.management-modal .modal-image {
    width: 100%;
    max-height: 480px;
    display: block;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    margin: 10px 0;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.5;
}

.modal-description p {
    color: var(--main-color);
}


.close-modal {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--main-color);
}

.close-modal:hover {
    color: black;
}

@media screen and (max-width: 1440px) {
    .manage-cover {
        min-height: 730px;
        position: relative;
        overflow: hidden !important;
        top: -190px;
    }

    .header-mda h1 {
        bottom: 30%;
    }

}

@media (max-width: 1240px) {
    .team-pg .new-style {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .header-mda {
        min-height: 60vh;
        height: 40vh;
    }

    .manage-cover {
        background-size: contain;
        object-fit: fill;
        top: -10%;
    }

    .header-mda h1 {
        font-size: 3rem;
        bottom: 20%;
    }

    .team-pg .new-style {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-mda h1 {
        font-size: 3rem;
    }

    .header-mda {
        min-height: 430px;
        height: 54vh;
    }

    .manage-cover {
        background-size: contain;
        object-fit: fill;
        height: 100%;
        top: 0%;
    }

    .manage-cover:after {
        height: 40%;
    }

    .header-mda h1 {
        font-size: 1.6rem;
        bottom: 22%;
    }

    .team-pg .new-style {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .section-padding {
        padding-top: 0px;
    }

    .management-modal .modal-content {
        max-width: 95%;
        width: 95%;
        top: 55%;
    }
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
