﻿/*$colorPrimary: #a8d0d7; 
$colorSecondary: #4ca1af;
$colorAccent: #2d3361;*/
/*$colorPrimary: #00404b;
$colorSecondary: #d8e2e9;
$colorAccent: #2d3361;*/
/*--------------------------------------------*/
/*--------------------------------------------*/
/*$colorAccent: #BA1200; //Engineering Orange*/
/*--------------------------------------------*/
header {
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.navbar {
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
  padding: 20px 15%;
  background: #336484;
  color: #ffffff;
  width: 100%;
  position: relative;
  z-index: 1000;
}
@media (max-width: 769px) {
  .navbar {
    justify-content: space-between;
    padding: 20px 5%;
  }
}
.navbar .nav-logo {
  font-size: 1.5rem;
  line-height: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.navbar .nav-left {
  margin-right: 50px;
}
.navbar .nav-right {
  display: flex;
  align-items: center;
}
.navbar .nav-right .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.navbar .nav-right .nav-links > li {
  position: relative;
  margin: 0;
}
.navbar .nav-right .nav-links > li > a {
  color: #fff;
  text-decoration: none;
  padding: 8px 25px;
  display: block;
}
.navbar .nav-right .nav-links > li > a:hover {
  background: #83A4BB;
  border-radius: 6px;
}
.navbar .nav-right .nav-links > li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #83A4BB;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
  border-radius: 0 6px 6px 6px;
  overflow: hidden;
}
.navbar .nav-right .nav-links > li .dropdown-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 25px;
  display: block;
  /*padding: 10px;*/
}
.navbar .nav-right .nav-links > li .dropdown-menu li a:hover {
  background: rgb(180.40625, 200.2578125, 214.09375);
}
.navbar .nav-right .nav-links > li .dropdown-menu li a:last-child {
  padding-bottom: 18px;
}
.navbar .nav-right .nav-links > li .dropdown-menu li:last-child {
  margin-bottom: 0;
}
.navbar .nav-right .hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  width: 40px;
}

.bi.bi-list::before {
  font-size: 2.75rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* hidden off screen */
  width: 70%;
  height: 100%;
  background: #272727;
  color: white;
  transition: right 0.3s ease-in-out;
  padding: 2rem 0;
  z-index: 10000;
}
.mobile-menu > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu > ul li {
  margin: 30px 0;
}
.mobile-menu > ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  margin: 0 20px;
}
.mobile-menu > ul li button {
  margin: 0 20px;
}
.mobile-menu.active {
  right: 0;
}

.nav-child {
  margin-left: 30px;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Dropdown styles for mobile */
.mobile-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
  cursor: pointer;
  display: flex;
  /*justify-content: space-between;*/
  align-items: center;
}

.dropdown-toggle i {
  margin-left: 20px;
  transition: transform 0.5s ease;
  font-size: 1rem;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  background-color: rgb(26.25, 26.25, 26.25);
  padding: 0 20px;
}

.dropdown-content li {
  margin: 0.5rem 0;
}

.dropdown-content li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  display: block;
}

/* Open state */
.mobile-dropdown.open .dropdown-content {
  max-height: 500px; /* large enough to fit contents */
}

.mobile-dropdown.open .dropdown-toggle i {
  transform: rotate(180deg); /* caret flips when open */
}

@media (max-width: 769px) {
  /*.navbar {
    .nav-right {
      .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: $colorSecondary;
        position: fixed;
        left: 0;
        top: 80px;
        height: 100%;
        z-index: 1000;
        padding: 20px 5%;

        li {
          width: 100%;
          margin-left: 30px;
        }
      }

      .hamburger {
        display: block;
      }
    }
  }*/
  /*-------------------------------------------------*/
  .desktop-menu {
    display: none !important;
  }
  .navbar .nav-right .hamburger {
    display: block;
  }
}
footer {
  width: 100%;
  background-color: #272727;
  color: #ffffff;
  padding: 20px;
}
footer a {
  color: #ffffff;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}
