.departments-sec {
    width: 70%;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.depts-Boxitem {
    background-position: center;
    background-size: cover;
    height: 8rem;
}

.depts-Boxitem > div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.445);
    font-size: 1rem;
    font-weight: 600;
    color: #FFF;
    cursor: pointer;
    text-align: center;
}

.depts-Boxitem > div:hover {
    background: rgba(0, 0, 0, 0.342);
}

.depts-topRow {
    display: flex;
}

.depts-topRow > * {
    flex: 1;
    margin-bottom: 1rem;
    margin-right: 1rem
}

.depts-bottomRow > * {
    margin-bottom: 0 !important;
    margin-top: 1rem;
}

.depts-topRow .depts-Boxitem:last-child {
    margin-right: 0;
} 

.depts-boxes {
    width: 100%;
    margin-top: 1rem;
}

.depts-middleLeft .depts-Boxitem:first-child {
    margin-bottom: 1rem;
}
.depts-middleRow {
    display: flex;
}

.depts-middleLeft {
    flex: 1;
}

.deptBox-hr {
    background-image: url('../images/depts/deptsbg-hr.png');
}

.deptBox-faculty {
    background-image: url('../images/depts/deptsbg-faculty.png');
}

.deptBox-parent {
    background-image: url('../images/depts/deptsbg-parent.png');
}

.deptBox-health {
    background-image: url('../images/depts/deptsbg-health.png');
}

.deptBox-academic {
    background-image: url('../images/depts/deptsbg-academic.png');
}

.deptBox-it {
    background-image: url('../images/depts/deptsbg-it.png');
}

.deptBox-eca {
    background-image: url('../images/depts/deptsbg-eca.png');
}

.deptBox-exam {
    background-image: url('../images/depts/deptsbg-exam.png');
}

.deptBox-account {
    background-image: url('../images/depts/deptsbg-accounts.png');
}

.deptBox-transport {
    background-image: url('../images/depts/deptsbg-transport.png');
}

.deptBox-student {
    background-image: url('../images/depts/deptsbg-student.png');
}

.deptBox-organising {
    background-image: url('../images/depts/deptsbg-organising.png');
}

.depts-middleMain {
    flex: 2;
    padding-left: 1rem;
    padding-right: 1rem;
}

.depts-middleMain > div {
    background-color: #272727;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFF;
    padding: 2rem;
    height: 100%;
}

.depts-middleMain h2 {
    font-weight: 600;
    font-size: 1.5rem;
}

.depts-middleMain h4 {
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Depts Modal */

.deptModal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000000dc !important;
    z-index: 999999999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

#modal-hint {
    margin-top: 1rem;
    color: #FFF;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.144);
    padding: 0.3rem 1rem;
    border-radius: 5rem;
}

.clubModal-inner {
    width: 75%;
    height: 85%;
}

.swiper {
    width: 100%;
    height: 100%;
  }

.swiper-button-next, .swiper-button-prev {
    color: #FFF !important;
}

.swiper-pagination {
    color: #000000 !important;
}

.deptDet-top {
    background-image: url('../images/depts/deptsbig-sample.png');
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid #0050C2;
}

.deptDet-top2 {
    background-color: rgba(0, 0, 0, 0.644);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4.5rem 0 2rem 0;
}

.deptDet-topContent {
    background: rgba(0, 0, 0, 0.51);
    border: 4px solid rgba(255, 255, 255, 0.71);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF;
    padding: 3.5rem 1rem 0.7rem 1rem;
    max-width: 70%;
    min-width: 40%;
    text-align: center;
}

.deptDet-topContent p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.deptDet-topContent h2 {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.deptDet-topContent h6 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.deptDet-logo {
    position: absolute; 
    height: 6rem !important;
    width: 6rem !important;
    border-radius: 50%;
    top: -3.5rem;
}

.deptDet-bottom {
    background-color: #FFF;
    display: flex;
    padding: 1.5rem 5rem;
}

.deptDet-bottomLeft {
    flex: 0.6;
}

.deptDet-bottomLeft h3 {
    color: #282828;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.deptDet-bottomLeft ul {
    margin-left: 2rem;
}

.deptDet-bottomLeft li {
    margin-bottom: 0.3rem;
    color: #131313;
}

.deptDet-bottomRight {
    flex: 0.4;
    margin-left: 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.deptDet-bottomRightInner {
    border:3px solid #0050C2;
    padding: 1rem 1rem;
    text-align: center;
}

.deptDet-personRow {
    display: flex;
    justify-content: center;
    padding-bottom: 0.5rem;
    border-bottom: 0.5px solid #aaa;
}

.detpDet-personItem {
    margin: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detpDet-personItem img {
    width: 4rem;
    height: 4rem;
    margin-bottom: 0.4rem;
}

.detpDet-personItem h5 {
    font-size: 0.95rem;
    color: #1F1F1F;
    margin-bottom: 0.2rem;
}

.swiperbtn-depts {
    color: #ff0055 !important;
}

.organising-dep-table {
    margin-top: 2rem;
    background-color: #d8d8d8;
    padding: 1.5rem 2rem;
    margin-left: 0.8rem;
}

.organising-dep-table, .organising-dep-table th, .organising-dep-table td {
    border: 1px solid rgb(90, 90, 90);
    border-collapse: collapse;
}

.organising-dep-table th {
    padding: 0.4rem 0.6rem;
}

.organising-dep-table td {
    vertical-align: top;
    padding: 0.3rem 1rem;
}

.dept-eca-item {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.dept-eca-item > h3 {
    font-size: 1rem;
    color: #242424;
    margin-bottom: 0.6rem;
}



/* Media Queries */
@media only screen and (max-width: 800px) {
    .departments-sec {
        width: 80%;
        margin: auto;
        margin-top: 2rem;
        margin-bottom: 4rem;
    }

    .depts-topRow, .depts-middleLeft {
        flex-direction: column;
    }

    .depts-topRow > * {
        margin-right: 0;
    }

    .depts-middleRow {
        flex-direction: column;
    }

    .depts-Boxitem {
        height: 5rem !important;
        margin-bottom: 1rem !important;
    }

    .clubModal-inner {
        width: 90%;
        height: 85%;
    }

    .deptDet-topContent {
        max-width: 95%;
        min-width: 70%;
        padding-top: 6rem;
    }

    .deptDet-logo {
        position: absolute; 
        height: 6rem !important;
        width: 6rem !important;
        border-radius: 50%;
        top: -1rem;
    }

    .deptDet-bottom {
        flex-direction: column;
        padding: 1.5rem 2rem;
    }

    .deptDet-bottomLeft {
        flex: 1;
    }

    .deptDet-bottomRight {
        flex: 1;
        margin-left: 0;
        margin-top: 2rem;
    }

    #modal-close-dept {
        color: rgb(36, 36, 36);
        margin-top: 0.3rem;
        width: 90%;
        background-color: rgba(255, 255, 255, 0.726);
        padding: 0.6rem 1rem;
        display: flex;
        justify-content: center;
        font-weight: 600;
        font-size: 0.95rem;
    }
}