@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

:root {
  --navbar-primary-color: #0a1c2e; 
  /* original - #800000 */
  --navbar-secondary-color: #06121f;
  --navbar-text-c-highlight: #3399ff;  
  --navbar-accent-c-1: #a3d9a5;
  --navbar-accent-c-2: #f1f1f1;
  --navbar-mob-menu-bg-color: #06121f;
}

.mob-navbar {
  display: none;
  position: fixed;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: white;
  font-weight: bold !important;
  font-family: "Montserrat", sans-serif !important;
  width: 100%;
  z-index: 100;
}

@media screen and (max-width: 768px) {
  .school-logo {
    width: 55px;
    margin: auto 8px;
    height: 55px;
  }

  .school-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    margin: auto 0px;
    color: white;
    font-family: "Montserrat", sans-serif;
  }

  .mob-school-logo {
    text-decoration: none;
  }
}

@media screen and (max-width: 450px) {
  .school-name {
    font-size: 0.75rem;
  }

  .school-logo {
    width: 50px;
  }
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: bold !important;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for height, background, and box-shadow */
}

header.solid {
  background-color: var(--navbar-secondary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .logo a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

/*  */

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  /* Center the navbar items */
  align-items: center;
  position: absolute;
  bottom: 0;
  text-align: center;
  /* Optional: Center text inside the navbar */
  width: 100%;
  padding: 10px;
  transition: all 0.3s ease-in-out;
  /* Smooth transition for height, background, and box-shadow */
}

.navbar.solid {
  background-color: var(--navbar-secondary-color);
  /* Vermillion */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  position: fixed; /* Keeps it at the top */
  top: 0; /* Moves it to the top */
  left: 0;
  width: 100%; /* Ensures full width */
  height: 70px; /* Set a fixed height for the navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensures it's above other elements */
  padding: 10px 20px;
}

.nav-list {
  display: flex;
  list-style-type: none;
  justify-content: center;
}

.nav-list li {
  margin: 0 20px;
  /* Adjusted margin for better spacing */
  position: relative;
  font-weight: bold;
  border-radius: 5px;
  padding: 2px 8px;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

.mainmenu:hover {
  text-decoration: underline;
}

.entab {
  margin: auto auto;
  margin-right: 8px;
}

.btn-text {
  margin: auto auto;
  font-weight: 600;
  font-family: "Montserrat";
}

.parent-portal {
  position: fixed;
  top: 9px;
  right: 10px;
  margin-bottom: 5px;
  color: #eaeaeb;
  background-color: var(--navbar-primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  z-index: 10000;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.6s ease;
}

.parent-portal:hover {
  background-color: var(--navbar-secondary-color);
  color: var(--navbar-text-c-highlight);
}

.hamburger {
  background: var(--navbar-primary-color);
  padding: 5px 9.5px;
  border-radius: 5px;
  height: 40px;
  width: 40px;
  border: none;
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  position: fixed;
  z-index: 10000;
}

.mob-menu {
  display: flex;
  position: fixed;
  top: 0;
  transform: translateX(100%);
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--navbar-mob-menu-bg-color);
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.navbar-container {
  list-style: none;
  width: 100%;
  max-width: 300px;
}

.navbar-container li {
  margin: 3px 0;
  list-style: none;
  position: relative;
  text-align: left;
  width: 100%;
}

.menu-header {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
  padding: 8px 5px;
  transition: color 0.3s, background-color 0.3s;
  border-bottom: solid 2px rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.mob-dropdown {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-top: 5px;
  animation: dropdown-fade 0.3s ease-in-out forwards;
}

.shown {
  background-color: var(--navbar-primary-color);
  border-radius: 8px;
  color: var(--navbar-text-c-highlight);
}

.dropdown-header.shown a {
  color: var(--navbar-text-c-highlight);
  transition: background-color 0.3s ease, color 0.6s ease;
}

.mob-dropdown .dropdown-item a {
  font-size: 1rem;
  text-decoration: none;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  display: block;
  padding: 10px;
  padding-top: 0;
  transition: background-color 0.3s;
}

.mob-dropdown .dropdown-item:last-child a,
.contact-dropdown {
  border-bottom: none;
}

.contact-icon {
  margin-right: 10px;
}

.contact-icon.contact-icon-last {
  padding-left: 3px;
  margin-right: 12px;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Dropdown Styling */
.dropdown {
  display: none;
  position: absolute;
  /* margin-top: 0px; */
  top: 100%;
  /* Position below the button */
  left: 0;
  background-color: var(--navbar-primary-color);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: max-content;
  z-index: 10;
  text-align: left;
}

.dropdown a {
  padding: 12px;
  text-decoration: none;
  font-size: 14px;
  height: 100%;
  transition: background-color 0.3s ease, color 0.6s ease;
  border-bottom: var(--navbar-accent-c-2) 0.25px solid;
  border-top: var(--navbar-accent-c-2) 0.25px solid;
  display: block;
  /* Make the options stack vertically */
}

.dropdown a:first-child {
  border: none;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.dropdown a:last-child {
  border: none;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}

.cocur-dropdown {
  width: 115px;
}

/* Hover to display dropdown */
.nav-list li:hover .dropdown {
  display: block;
}

.dropdown a:hover {
  border-top: var(--navbar-accent-c-2) 0.25px solid;
  border-bottom: var(--navbar-accent-c-2) 0.25px solid;
  background-color: var(--navbar-secondary-color);
  color: var(--navbar-text-c-highlight);
}

.dropdown a:hover:first-child {
  border: none;
}

.dropdown a:hover:last-child {
  border: none;
}

.contact-icon {
  margin-right: 8px;
}

.contact-details {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

.position-fixed {
  position: absolute;
  /* width: 100%; */
  overflow: hidden;
}

.max-width-fit-content {
  background-color: transparent;
  width: max-content;
}

.z-index-10000 {
  z-index: 8;
}

.transform-x {
  transform: translateX(0);
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  ul.nav-list {
    justify-content: space-around;
  }

  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    border-radius: 5px;
    right: 8px;
    top: 15px;
  }

  .entab {
    margin: 0;
  }

  .navbar.solid {
    padding: 10px;
  }
}

.active-page {
  color: var(--navbar-text-c-highlight) !important;
}

@media screen and (max-width: 1200px) {
  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    top: 9px;
    height: 50px;
    width: 50px;
  }

  .parent-portal svg {
    margin: 0;
  }
}

@media screen and (max-width: 992px) {
  .mob-navbar {
    display: flex;
    height: 70px;
    background-color: var(--navbar-mob-menu-bg-color);
  }

  .navbar,
  .navbar.solid {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .hamburger {
    display: block;
    position: fixed;
    top: 9px;
    padding: 5px;
    right: 10px;
    height: 50px;
    width: 50px;
  }
  .parent-portal {
    right: 65px;
    top: 9px;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 9px;
    height: 50px;
    padding: 5px;
    width: 50px;
    right: 10px;
  }

  .parent-portal {
    right: 65px;
    top: 9px;
  }
}

@media screen and (max-width: 600px) {
  .hamburger {
    top: 9px;
    right: 10px;
    height: 40px;
    width: 40px;
  }

  .parent-portal {
    right: 55px;
    height: 40px;
    width: 40px;
  }

  .mob-navbar {
    height: 60px;
    display: flex;
  }

  .parent-portal span {
    display: none;
  }

  .parent-portal {
    padding: 5px;
    border-radius: 5px;
    right: 55px;
  }

  .parent-portal:active,
  .parent-portal:visited {
    background-color: var(--navbar-primary-color);
    color: #eaeaeb;
  }

  .parent-portal svg {
    margin-right: 0;
  }
}
