.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.top-nav {
  background-color: maroon;
  color: #fff;
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 64px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 6px;
  opacity: 0.9;
}

.top-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-nav .divider {
  margin: 0 4px;
  opacity: 0.6;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.navbar {
  position: absolute;
  top: 34px;
  /* height of top-nav */
  left: 0;
  width: 100%;
  height: 80px;
  padding: 20px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  z-index: 20;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  background-color: #FFB600;
  /* yellow */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-center a {
  color: white;
}

.navbar.scrolled .nav-center a:hover {
  color: maroon;
}

.navbar.scrolled .button2 {
  background-color: maroon;
}

.navbar.scrolled .button2:hover {
  background-color: #7b0000;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 60px;
  /* space from left */
  right: 60px;
  /* space from right */
  height: .5px;
  background: #FFB600;
}

.nav-left .logo {
  height: 40px;
}

.nav-menu {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  font-size: 12px;
  justify-content: center;
}

.nav-center a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  margin: 0 15px;
}

.nav-right {
  display: flex;
  position: relative;
  gap: 20px;
}

.nav-right a:hover {
  color: #FFB600;
}

.nav-right .button2:hover {
  background-color: #FFB600;
}

.nav-center a:hover {
  color: #FFB600;
  font-weight: 700;
}

.button2 {
  width: 130px;
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  transition-duration: .3s;
  border: none;
  background-color: maroon;
  text-decoration: none;
}

.button2 h3 {
  font-family: "Poppins", sans-serif;
  color: white;
  font-weight: 300;
  font-size: 12px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .top-nav {
    padding: 8px 24px;
    height: auto;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .top-nav-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
  }

  .top-nav .divider {
    display: none;
  }

  .navbar {
    position: relative;
    top: 0;
    padding: 15px 24px;
    height: 70px;
    background-color: maroon;
    transition: all 0.3s ease;
  }

  .navbar::after {
    left: 24px;
    right: 24px;
    background: rgba(255, 182, 0, 0.4);
  }

  .navbar.scrolled {
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: #FFB600;
  }

  /* Hamburger Menu Toggle Button */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle.active {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
  }

  /* Mobile Collapsible Navigation Menu */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: maroon;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-bottom: 3px solid #FFB600;
    gap: 24px;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Center link formatting in mobile view */
  .nav-center {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
  }

  .nav-center a {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
  }

  .nav-center a:hover {
    color: #FFB600 !important;
  }

  /* Right section buttons formatting in mobile view */
  .nav-right {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 5px;
  }

  .nav-right .button2 {
    width: 100%;
    max-width: 280px;
    background-color: #FFB600;
    height: 44px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-right .button2 h3 {
    color: maroon;
    font-weight: 600;
    font-size: 13px;
  }

  .nav-right .button2:hover {
    background-color: white;
    transform: translateY(-2px);
  }

  /* Sticky Scrolled Navbar Custom Styles for Mobile Menu */
  .navbar.scrolled .nav-menu {
    background-color: #FFB600;
    border-bottom: 3px solid maroon;
  }

  .navbar.scrolled .nav-toggle {
    color: maroon;
    background-color: rgba(128, 0, 0, 0.1);
  }

  .navbar.scrolled .nav-toggle:hover {
    background-color: rgba(128, 0, 0, 0.2);
  }

  .navbar.scrolled .nav-toggle.active {
    background-color: rgba(128, 0, 0, 0.25);
  }

  .navbar.scrolled .nav-menu.active .nav-center a {
    color: maroon !important;
  }

  .navbar.scrolled .nav-menu.active .nav-center a:hover {
    color: white !important;
  }

  .navbar.scrolled .nav-right .button2 {
    background-color: maroon;
  }

  .navbar.scrolled .nav-right .button2 h3 {
    color: white;
  }
  
  .navbar.scrolled .nav-right .button2:hover {
    background-color: #7b0000;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}