@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
}
main{
    padding-top: 12vh;
    display: flex;
    width: 100%;
    height: 88vh;
}
aside{
    background-color: #03112b;
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: aqua;
    justify-content:space-around;
    min-height: 88vh;
    height: auto;
    max-height: 100vh; 
    overflow-y: auto;
}

aside section{
    display: flex;
    flex-direction: column;
    align-items: center;
}

aside #pfimgfrm{
    height: 154px;
    width: 154px;
    background-color: #03112b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow:  0px 0px 2px  aqua;
}
aside #pfimgfrm::after{
    content: '';
    display: block;
    height: 160px;
    width: 55px;
    background-color: aqua;
    box-shadow: 0px 0px 25px 2px aqua;
    position: absolute;
    animation: rotpfimg 3s infinite linear;
    transition: width 1s;
}
aside #pfimg{
    z-index: 1;
    height: 135px;
    width: 135px;
    border-radius: 50%;
    box-shadow: 0px 0px 4px aqua;
}

@keyframes rotpfimg {
    from {
      transform: rotate(0deg);
    }
  
    to {
      transform: rotate(360deg);
    }
}
aside #pfimgfrm:hover{
    box-shadow: 0px 0px 5px 2px aqua;
}
aside #pfimgfrm:hover::after{
    width: 160px;
}

aside h2{
    padding-top: 25px;
}
aside ul{
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: center;
    height: 40%;
}
aside li{
    list-style: none;
    font-family: 'Montserrat', sans-serif;
}

#dashbord{
    display: grid;
    grid-template-columns: 50% 50%;   
    align-items: center; 
    justify-content: space-evenly;
    width: 75%;
    height: 100%;
    justify-items: center;
}

#dashbord a{
    text-decoration: none;
    background-color: #03112bdf;
    height: 220px;
    width: 55%;
    border-radius: 7px;
    color: white;
    transition-duration: 0.4s;
    box-shadow: aqua 0px 0px 5px 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#dashbord a:hover{
    color: aqua;
    transform: scale(1.1);
    transition-property: all;
    transition-duration: 0.4s;
    box-shadow: aqua 0px 0px 15px 0px;
}

#dashbord a svg{
    height: 45%;
}

#dashbord a svg:nth-of-type(2){
    display: none;
}

#dashbord a:hover svg:nth-of-type(1){
    display: none;
}

#dashbord a:hover svg:nth-of-type(2){
    display: flex;
}


#courses{
    width: 75%;
    display: flex;
    flex-wrap: wrap;  
    padding-block: 25px;
}

#courses > div{
    margin-top: 25px;
    width: 32%;
    height: fit-content;
    min-width: min-content;
    border-radius: 7px;
    overflow: hidden;
    margin: 10px;
    display: flex;
}
#courses div:hover{
    box-shadow: 0px 0px 20px -10px aqua ;
}
#courses img{
    width: 27%;
    display: block;
}
#courses > div > div{
    width: 72%;
    color: white;
    background-color: #03112b;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
}
#courses span{
    color: aqua;
}
#courses div>span:nth-of-type(2){
    display: block;
    width: 100%;
    text-align: right;
    margin-block: 10px 0px;
}



#fees{
    width: 75%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#fees div{
    display: grid;
    align-items: center;
    justify-items: center;
    gap:15px;
    background-color: #03112bdf;
    padding-block: 20px;
    width: 80%;
    border-radius: 7px;
    color: white;
    transition-duration: 0.4s;
    box-shadow: aqua 0px 0px 5px 0px;
}

#fees table, #fees td, #fees th{
    border: 1px solid aqua;
}

#fees td, #fees th{
    text-align: center;
    vertical-align:middle;
    height: 40px;
}

#fees table{
    border-collapse: separate;
    border-spacing: 0;
    width: 90%;
    border-radius: 7px;
}

#fees table th:first-child {
    border-top-left-radius: 7px;
}
#fees table th:last-child {
    border-top-right-radius: 7px;
}
#fees table tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}
#fees table tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}
#fees button{
    width: 70%;
}

button{
    background-color: rgba(0, 255, 255,0.77);
    border-radius: 15px;
    padding: 10px;
    color: white;
    display: flex;
    text-wrap: nowrap;
    overflow: hidden;
    justify-content: center;
    width: 100%;
    border: none;
}

button:hover{
    transform: scale(1.05);
}

#notes{
    display: flex;
    flex-wrap: wrap;  
    justify-content: center;
    gap:2%;
    width: 75%;
    height: 100%;
}

#notes a{
    margin-top: 25px;
    text-decoration: none;
    background-color: #03112bdf;
    height: 170px;
    width: 20%;
    min-width: calc();
    border-radius: 7px;
    color: white;
    transition-duration: 0.4s;
    box-shadow: aqua 0px 0px 5px 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#notes a:hover{
    color: aqua;
    transform: scale(1.1);
    transition-property: all;
    transition-duration: 0.4s;
    box-shadow: aqua 0px 0px 15px 0px;
}

#notes a svg{
    height: 45%; 
}

#notes a svg:nth-of-type(2){
    display: none;
}

#notes a:hover svg:nth-of-type(1){
    display: none;
}

#notes a:hover svg:nth-of-type(2){
    display: flex;
}


/* Tablet styles (typically up to 768px width) */
@media screen and (max-width: 768px) {
    
    main {
        flex-direction: column;
    }
    aside {
        width: 100%;
        height: 100vh;
    }
    aside ul {
        display: flex;          
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    aside li {
        width: 40%;
        margin-inline: 2%;
    }
    #dashbord {
        width: 100%;
        padding-block: 6vh;
        row-gap: 25px;
    }
    #dashbord a{
        width: 75%;
    }
    #fees{
        width: 100%;
        padding-block: 6vh;
   }
   #courses{
        width: 100%;
        justify-content: center;
        padding-inline: 0px;
    }
    #courses > div{
        width: 80%;
    }
    #courses div>span:nth-of-type(2){
        display: flex;
        height: 40%;
        margin-block: 10px 0px;
        justify-content: flex-end;
        align-items: flex-end;
    }

}

/* Mobile styles (typically up to 480px width) */
@media screen and (max-width: 480px) {
    /* Header h1 inside nested div */
    header > div > div > h1 {
        font-size: larger;
    }
    /* Header h1 inside first-level div */
    header > div > h1 {
        font-size: 55px !important;
    }
    h2 {
        font-size: large;
        line-height: normal;
    }
    #dashbord{
        grid-template-columns: 100%;
    }
}