
.dept-container{
    max-height: 0;
    overflow: hidden;
    /* background: #ecf0f1; */
    margin-bottom: 8px;
    border-radius: 5px;
    transition: max-height 0.3s ease;
    padding-left: 15px;
    max-height: 100%;
    padding: 10px 15px;
    /* display: grid;
    grid-template-columns: 1fr;
    gap: 20px; */
}



/* When active */
.dropdown-item.active .dept-container {
  max-height: 100%;
  padding: 10px 15px;
}

/* .dropdown-item.active .arrow {
  transform: rotate(180deg);
} */


.dept-details{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px;
}

.dept-details:nth-child(even){
    background: #f0efefd7;
}

.unit-head-card img{
    border: 1px solid var(--green-theme);
    /* width: 150px; */
    width: 80%;
    margin: 0 auto;

}

.unit-head-card h2{
    color: var(--green-theme);
    font-size: 15px;
    padding: 3px 0;
    text-align: center;
}

.unit-head-card p{
    font-size: 13px;
    font-weight: bolder;
    text-align: center;
    margin-top: 5px;
}

.unit-head-card .unit-title{
    text-align: center;
    color: #7c7c7c;
    font-style: italic;
}




.dept-desc{
    grid-column: 2/-1;
}


.dept-background{
    grid-column: 1 / -1 ;
    padding: 15px 10px;
}

/* .dept-desc ul, .dept-desc ol,
.dept-background ol, .dept-background ul{
    font-weight: lighter;
} */

li{
    margin: 5px 0;
}

.dept-desc ol{
    color: #03754a;
    margin-left: 60px;
}
.dept-desc ul{
    color: #000;
    list-style: disc;
}

.dept-desc h1{
    color: var(--green-theme);
    font-size: 15px;
    text-transform: uppercase;
}

.dept-desc h2{
    text-transform: uppercase;
    font-size: 15px;
    margin: 10px 0;
}

.dept-desc p{
    line-height: 1.5;
    font-weight: lighter;
    margin: 15px 0;
    color: #000;
}

/*  */

.dept-menu h3{
    color: var(--green-theme);
    font-weight: lighter;
}


.dept-item{
    background:#d4d3d3;
    padding:15px 10px;
    border-radius:8px;
    border: none;
    font-weight:500;
    cursor:pointer;
    transition:0.3s ease-in;
    width: 300px;
    font-size: medium;
    margin: 5px 0;
}

.dept-item:hover{
background:var(--green-theme);
color:white;
transform:scale(1.03);
}

.dept-list{
    margin-left: 30px;
    list-style: disc;
    color: var(--green-theme);
}


/* dept-container */
.dept-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 20px;
}

.dept-grid {
    grid-column: 1/4;
}


/* Responsive */
@media (max-width: 768px) {
    .dept-container, .dept-details {
        display: block;
    }

    .dept-details {
        padding: 5px 10px;
        gap: 20px;
        margin: 10px 0;
    }

    .unit-head-card img{
        width: 150px;
        text-align: center;
        margin: 0 auto;
    }

    .unit-head-card h2{
        font-size: medium;
    }

    .unit-head-card p{
        font-size: medium;
        margin: 2px 0;

    }

    .dept-menu{
        margin:  0 auto;
        margin: 5px auto;
    }

    .dept-desc h1, .dept-desc h2{
        font-size: medium;
        text-align: center;
    }

    .dept-desc p{
        margin: 5px 0;
    }

    .dept-space{
        display: none;
    }


    .dropdown-item.active .dept-container {
        max-height: 100%;
        padding: 5px 10px;
    }
    

}
