/* Midnavbar */
.midnavbar {
  height: 20vh;
  overflow: hidden;
  background-color: #ffffff;
}

.midnavbar-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  padding-top: 0;
  font-size: 1.2rem;
  margin: 0 auto;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}

.text-content {
  text-decoration: none !important;
  color: #1f1f1f;
  font-family: "Poppins-Regular";
  cursor: default !important;
}

.midnavbar-logo-mtcl img {
  height: 20vh;
  width: auto;
}

.hamburger-menu {
  display: none;
  cursor: pointer;
}

.hamburger-menu i {
  font-size: 1.5rem;
  color: #1f1f1f;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  padding-bottom: 20px;
  top: 20vh;
  width: 100%;
  z-index: 99;
  opacity: 0;
  transform: translateX(-100%);
  background-color: #ffffff;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.dropdown-menu.hide {
  transform: translateX(-100%);
  opacity: 0;
}

.dropdown-content {
  text-decoration: none !important;
  color: #1f1f1f;
  padding: 15px 20px;
}

.CU {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
  background-color: #293990;
  border: 0px solid;
  border-radius: 5px;
  padding: 5px;
}
.CU:hover {
  color: white;
}
.LI:hover {
  color: white;
}
.LI {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
  background-color: #ed1c24;
  border-radius: 5px;
  padding: 5px;
}

@media screen and (max-width: 1155px) {
  .midnavbar-logo-mtcl img {
    height: 12vh;
    max-width: 100%;
  }
  .midnavbar {
    height: 15vh;
    font-family: "Poppins-Regular" !important;
  }
  .midnavbar-content {
    padding: 15px;
  }
}

@media screen and (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .dropdown-menu.show {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1;
    transform: translateX(0);
    margin-top: -5px;
  }
  .CU {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 5px;
    margin-top: -5px;
    margin: 0 auto;
  }
  .LI {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 5px;
    margin-top: -5px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 390px) {
  .midnavbar-content {
    padding: 10px;
  }
}

/* Animation */
@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  position: absolute;
  z-index: 100;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0 15px;
  top: 20%;
  opacity: 0;
}

.accordion-content ul {
  list-style-type: none;
  margin: 5% 0;
  padding: 0;
  z-index: 100;
}

.accordion-content li {
  text-align-last: left;
  color: #1f1f1f;
  padding: 3% 0;
}

.text-content.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.accordion-content.show {
  max-height: max-content;
  opacity: 1;
  pointer-events: auto;
}

@media screen and (max-width: 900px) {
  /* Accordion Content */
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    position: relative;
    padding: 0 15px;
    opacity: 0;
  }

  /* Show animation */
  .accordion-content.show {
    max-height: 1000px; /* Arbitrarily large to allow full expansion */
    opacity: 1;
  }

  /* For smoothness on height expansion */
  .dropdown-toggle.active + .accordion-content {
    opacity: 1;
    padding: 10px 15px;
  }
}
