.theme-toggle i {
  font-size: 22px;
  cursor: pointer;
  margin-left: 1rem;
  color: #000;
}

body.dark nav {
  background-color: #121212;
  color: #fff;
}

.theme-toggle i {
    font-size: 34px;
    /* margin-top: .3rem; */
}

body.dark .theme-toggle i {
    color: #fff;
}

.hidden {
    opacity: 0;
    transform: translateY(40px);  
    transition: all 0.8s ease-out; 
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

nav {
    display: flex;
    justify-content: space-between;
    padding: .3rem;
    z-index: 1;
    position: fixed;
    top: 0;
    background: #fff;
    margin: 0 auto;
    width: 100%;
}

/* =========================
   DESKTOP NAVIGATION
========================= */

.mainMenu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.mainMenu > li {
    list-style: none;
    margin: 0;
}

.mainMenu > li > a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.7;
}

.mainMenu .home a {
    opacity: 1;
}

body.dark .mainMenu > li > a {
    color: #fff;
}


/* CATEGORY */

.menu-category {
    position: relative;
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: none;
    border: none;
    padding: 0;

    color: #000;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
    cursor: pointer;
}

body.dark .category-toggle {
    color: #fff;
}

.category-toggle i {
    font-size: 8px;
    transition: transform 0.3s ease;
}


/* ARROW UP WHEN OPEN */

.menu-category.active .category-toggle i {
    transform: rotate(180deg);
}


/* DESKTOP DROPDOWN */

.submenu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;

    min-width: 210px;

    background: #fff;
    padding: 8px 0;
    margin: 0;

    list-style: none;

    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}

body.dark .submenu {
    background: #121212;
}

.menu-category.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu li a {
    display: block;
    padding: 8px 15px;

    color: #000;
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    white-space: nowrap;
}

body.dark .submenu li a {
    color: #fff;
}

.submenu li a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.menu-category.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-category.active .category-toggle i {
    transform: rotate(180deg);
}

.openMenu {
    display: none;
}

/* Hide secondary categories from desktop navigation */
.mobile-only-category {
    display: none;
}

body.dark .logo {
    color: #fff;
}

body.dark .logo-img {
    background:rgba(216, 213, 213, 0.15);
}

.contact-us {
    margin: 0;
    margin-left: 0.5rem;
}

.contact-us a {
    margin-left: 0;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    background-color: blue;
    color: #fff;
    text-decoration: none;
}

body.dark .contact-us a {
    background-color: #000;
}

.stuni {
    margin-left: .5rem;
}

.student {
    font-size: 32px;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: 600;
}

body.dark .student{
    color: #fff;
}

.uni {
    font-size: 7px;
    letter-spacing: 1.5px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
}

body.dark .uni {
    color: #fff;
}

.ayjas {
    background-color: black;
    color: white;
    margin-top: 3rem;
    font-size: 12px;
    border-radius: 6px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-top: .5rem;
}

body.dark .ayjas {
    background-color: #000;
}

.refuge p {
    opacity: 0.7;
    margin-top: 1rem;
    text-align: center;
    border-top: 1px solid #fff;
    font-size: 14px;
    padding: 5px;
    border-bottom: 1px solid #fff;
    color: #fff;
}

.terms {
    display: flex;
    flex-wrap: wrap;
}

.useful {
    margin: 0 auto;
    font-size: 14px;
}

.useful h1 {
    font-size: 14px;
    margin-top: 2rem;
    margin-left: 1rem;
    border-left: 2px solid blue;
    padding: 5px;
}

.lin {
    width: 15%;
    margin-left: 1rem;
    margin-top: .5rem;
    color: #000;
    display: none;
}

.links li {
    list-style: none;
    font-size: 12px;
    color: #fff;
}

.useful, .links {
    list-style: none;
    list-style: square;
}

.links li a {
    color: #fff;
}

.links, .cit {
    margin: 1rem;
}

.cit, .of {
    color: black;
    text-decoration: none;
    opacity: 1;
}

.icons {
    text-decoration: none;
    color: #fff;
}

.icons i {
    color: #fff;
    font-size: 20px;
    padding-left: 14px;
    padding-top: 5px;
    transition: 0.3s ease;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.Ay {
    color: greenyellow;
    font-weight: 200;
}

.create {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    font-weight: 500;
    font-size: 13px;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.create p {
    line-height: 1.8;
}

body.dark .create {
    background-color: #000;
}

@media(max-width: 800px){
    nav {
    display: flex;
    justify-content: space-between;
    padding: .3rem;
    z-index: 1;
    top: 0;
    position: fixed;
    margin: 0;
  }

  .logo {
    margin: 0;
  }

  .logo-img {
    margin: 0;
    width: 44px;
    height: 44px;
    margin-top: 4px;
  }

  .student {
    font-size: 31px;
  }

  .uni {
    font-size: 7px;
  }
  
  .stuni {
        margin-top: 1px;
        font-size: 30px;
    }  

    .mainMenu {
        background-color: #fff;
        position: fixed;
        height: 100vh;
        width: 80%;
        top: 0;
        right: 0;
        z-index: 1;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 2%;

        padding-bottom: 10rem;
        overflow-x: hidden;
        margin-left: 0;

        /* Hidden initially */
        opacity: 0;
        visibility: hidden;
        transform: scale(0.98);
        transform-origin: top right;

        /* Smooth appearance */
        transition:
            opacity 0.35s ease,
            transform 0.35s ease,
            visibility 0.35s ease;
    }

    .menu-category {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .category-toggle {
        width: 100%;
        background: none;
        border: none;
        color: #000;
        font-size: 13px;
        text-align: left;
        padding: 12px 1rem;
        cursor: pointer;
        font-family: "Montserrat", sans-serif;
        color: #000;
        font-weight: 600;
        /* opacity: 0.6; */
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    body.dark .category-toggle {
        color: #fff;
    }

    .category-toggle i {
        font-size: 12px;
        transition: transform 0.3s ease;
        margin-top: 0;
        margin-right: 1.5rem;
    }


   /* MOBILE SUBMENU */

.submenu {
    position: static !important;

    width: 100%;
    min-width: 0;

    display: block;

    margin: 0;
    padding: 0;

    background: transparent !important;

    border: none;
    border-radius: 0;

    box-shadow: none !important;

    list-style: none;

    max-height: 0;
    overflow: hidden;

    opacity: 0;
    visibility: visible;

    transform: none !important;

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
}


    /* Open submenu */
    .menu-category.active .submenu {
        max-height: 600px;
        opacity: 1;
    }


    /* Rotate arrow */
    .menu-category.active .category-toggle i {
        transform: rotate(180deg);
    }


    .submenu li {
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    .submenu li a {
        display: block;

        width: 100%;
        box-sizing: border-box;

        padding: 9px 1rem 9px 2rem;

        background: transparent !important;

        color: #000;

        font-size: 13px;
        font-weight: 500;

        text-decoration: none;

        white-space: normal;
    }

    body.dark .submenu li a {
        color: #fff;
        background: transparent !important;
    }

    .mainMenu.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    body.dark .mainMenu {
        background-color: #121212;
        color: #fff;
    }

    .mainMenu::-webkit-scrollbar {
        width: 6px
    }

    .mainMenu::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 4px;
    }

    .mainMenu::-webkit-scrollbar-track {
        background-color: #f1f1f1;  
    }

    /* .mainMenu.show {
    right: 0;
    } */


    
    .mainMenu li {
        list-style: none;
        margin-top: .6rem;
    }
    
    .mainMenu .home {
        margin-top: 4rem;
        font-size: 13px;
    }
    
    .mainMenu li a {
        text-decoration: none;
        margin-top: .5rem;
        color: #000;
        margin-left: 1rem;
        margin-top: 1rem;
        font-size: 13px;
        opacity: 1;
    }

    body.dark .mainMenu li a {
        color: #fff;
    }

    .mobile-only-category {
        display: block;
    }

  .theme-toggle i {
    color: #000;
    margin-left: 1rem;
  }

  body.dark .theme-toggle i {
    color: #fff;
  }

  .contact-us {
    margin-top: 1rem;
    margin-left: 1rem;
  }
  
  /* .closeMenu {
      display: block;
      position: absolute;
      top: 0;
      right: 30px;
      margin-top: 1rem;
      cursor: pointer;
  }
  
  .closeMenu i {
      color: #000;
      font-size: 26px;
  }

  body.dark .closeMenu i {
    color: #fff;
  } */

    body.dark .openMenu i {
        color: #fff;
    }

.openMenu {
    margin-right: 2rem;
    margin-top: .5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 10;
}

.openMenu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

body.dark .openMenu span {
    background-color: #fff;
}

/* TOP LINE */
.openMenu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

/* MIDDLE LINE */
.openMenu.active span:nth-child(2) {
    opacity: 0;
}

/* BOTTOM LINE */
.openMenu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

    /* Change hamburger into X */
    .openMenu.active i {
        transform: rotate(180deg);
    }

  body.dark .openMenu i {
    color: #fff;
  }

  .cont a {
    margin: 0;
    margin-left: 3rem;
    margin-top: 1rem;
  }

  .ayjas {
        display: block;
        padding-bottom: 3rem;
    }
    
    .terms {
        display: block;
    }

    .lin {
        width: 7%;
    }
    
    .links li a {
        font-size: 11px;
    }

    .useful {
        margin: 0;
    }

    .refuge {
        margin: 0;
        font-size: 15px;
    }

    .refuge p {
        font-size: 11px;
        text-align: center;
        margin-top: 2rem;
        border-top: 1px solid gainsboro;
        padding: 5px;
        border-bottom: 1px solid gainsboro;
    }

    .create {
        font-size: 13px;
        text-align: center;
        padding: 2rem;
        position: relative;
        /* top: -20px; */
    }

    .create p {
        font-size: 12px;
    }

    .icons a i {
        font-size: 14px;
    }

}