/*body {*/
/*    position: relative !important;*/
/*}*/

.header-mda {
    min-height: 80vh;
    width: 100%;
    padding: 0 0;
    position: relative;
    overflow: hidden !important;
}

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

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

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

.team-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/team/team-cover.jpg");
    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: 6%;
    text-shadow: 5px 7px 5px rgba(0, 0, 0, 0.6);
}

.dept-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
    text-transform: uppercase;
}

.team-cover-img {
    height: 80vh;
    min-height: 100%;
    overflow: hidden !important;
    width: 100%;
    object-fit: cover;
}

.serv-details {
    padding: 120px 0;
    position: relative !important;
}

.serv-details p {
    color: var(--main-color);
}

.serv-details .content h3 {
    text-align: center;
    text-transform: uppercase;
    font-size: 48px;
    font-weight: 600;
}

.team-pg .item img {
    position: relative;
    margin-bottom: 30px;
    border-radius: 30px;
    overflow: hidden;
}

.sitting-cst .container-fluid {
    width: 100%;
    padding: 30px;
    margin: 0 0 60px;
    position: relative;
}

.sitting-cst img {
    border-radius: 10px;
}

/* Add these styles to your existing CSS file */
.department-modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
    backdrop-filter: blur(3px);
}

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

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

.modal-body img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}


.modal-body h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--main-color);
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--main-color);
}

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

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

@media (max-width: 992px) {
    .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 {
        min-height: 20vh;
        height: 60vh;
    }

    .header-mda h1 {
        font-size: 2rem;
        bottom: 25%;
    }

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

    .sitting-cst h1 {
        font-size: 3rem;
    }

    .sitting-cst .container-fluid {
        padding: 1rem;
    }

    .sitting-cst > .container-fluid .row.sm-marg > * {
        padding: 0;
    }

    .sitting-cst > .container-fluid .row {
        gap: 1rem;
    }

    .serv-details {
        padding: 3rem 0;
        position: relative !important;
    }

    .department-modal {
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
    }

    .department-modal .modal-content {
        max-width: 95%;
        width: 95%;
        top: 50%;
    }

    .modal-body {
        padding: 0;
        margin: 15px 5px;
    }

    .modal-body img {
        object-fit: contain;
    }
}

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