.header-top {
  position: relative;
  width: 100%;
}
.header-top::before,
.header-top::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.header-top::before {
  left: 0;
  background: #1a1a1a;
}
.header-top::after {
  right: 0;
  background: #2e2e2e;
}

.header-image-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 1;
}

@media (max-width: 576px) {
  .header-image {
    width: 100%;
    height: 100%;
  }
}

.header-top-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-nav {
  max-height: 40px;
}

@media (min-width: 992px) {
  .header-top-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.header-top-info {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-height: 120px;
  color: white;
  z-index: 2;
}

.header-top-info .left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.5;
}
.contact-info span img {
  width: 20px;
  height: auto;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.header-top-info .center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.header-top-info .right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.header-top-info .right a {
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 1.2rem;
}

.header-bottom {
  background-color: #202020;
  max-height: 50px;
}

/* Center-align navigation menu items */
.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 15px; /* Adjust spacing between menu items */
}

.navbar-nav .nav-link {
  color: white; /* Adjust color as needed */
  font-weight: bold; /* Use Roboto Bold */
  text-transform: uppercase; /* Make text uppercase */
}

.navbar-nav .nav-link:hover {
  color: #ddd; /* Adjust hover color as needed */
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.navbar ul li {
  position: relative;
  font-size: 14px;
}
.navbar ul li a {
  display: block;
}
.navbar ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 0px;
  border-radius: 0 !important;
}
.navbar ul li:hover ul {
  display: block;
}
.navbar ul li ul li {
  margin: 0 !important;
}
.navbar ul li ul li a {
  padding: 0.75rem 1.5rem;
  font-size: 15px;
  text-transform: uppercase;
}

/* Change dropdown item background color on hover */
.navbar .dropdown-menu .dropdown-item:hover {
  background-color: #e6e7e8;
}

a.nav-link {
  font-size: 16px;
}

/* Add custom styles for the dropdown caret */
.navbar-nav .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: 0.05em;
  content: "";
  border-top: 0.5em solid;
  border-right: 0.5em solid transparent;
  border-bottom: 0;
  border-left: 0.5em solid transparent;
}

/* Add styles for the triangular arrow pointing up */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px; /* Adjust this value to position the arrow */
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px; /* Adjust the size of the arrow */
  border-style: solid;
  border-color: transparent transparent #fff transparent; /* Adjust the color of the arrow */
  z-index: 1;
}

/* Adjust the position of the dropdown menu to accommodate the arrow */
.dropdown-menu {
  box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.1);
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile navbar styles */
.navbar.d-lg-none {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.navbar-toggler {
  /* background: #fff; */
  border: none;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1301; /* Above menu */
}
.navbar-toggler-icon {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  position: relative;
  display: block;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s, opacity 0.3s, background 0.3s;
}
.navbar-toggler-icon::before {
  top: -6px;
}
.navbar-toggler-icon::after {
  top: 6px;
}

/* X state */
.navbar-toggler.active .navbar-toggler-icon {
  background: transparent;
}
.navbar-toggler.active .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
  /* left: -3px; */
}
.navbar-toggler.active .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
  /* left: -3px; */
}

/* Blur overlay */
.mobile-navbar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(220, 220, 220, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-navbar-menu.active ~ .mobile-navbar-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Side mobile navbar menu */
.mobile-navbar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 67vw;
  height: 100vh;
  background: #202020;
  color: white;
  z-index: 1200;
  padding: 0;
  box-shadow: -2px 0 16px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 65px;
}
.mobile-navbar-menu.active {
  transform: translateX(0);
}

.menu-list {
  margin: 0;
  padding: 64px 0 0 0;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-list > li {
  width: 100%;
  border-bottom: 1px solid #ededed;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.menu-list > li > a,
.menu-list > li > button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  background: none;
  border: none;
  padding: 16px 24px 16px 16px;
  text-align: right;
  cursor: pointer;
  outline: none;
  transition: background 0.15s, border 0.15s;
  letter-spacing: 0.01em;
  border-left: 5px solid transparent;
  border-radius: 4px 0 0 4px;
}

.menu-list > li > a.active,
.menu-list > li > button.active,
.menu-list > li.open > a,
.menu-list > li.open > button {
  border-left: 5px solid #111;
  box-shadow: 0 0 0 2px #fbbc04;
}

.menu-list > li > button .arrow {
  margin-left: 12px;
  font-size: 1.2em;
  transition: transform 0.2s;
}
.menu-list > li.open > button .arrow {
  transform: rotate(180deg);
}

/* Submenu */
.menu-list .dropdown-menu {
  display: none;
  margin: 0;
  padding: 0 0 0 0;
  width: 100%;
}
.menu-list > li.open > .dropdown-menu {
  display: block;
}
.menu-list .dropdown-menu li {
  border: none;
}
.menu-list .dropdown-menu a {
  display: block;
  padding: 10px 40px 10px 16px;
  color: white;
  font-weight: normal;
  font-size: 14px;
  text-align: right;
  background: none;
  border: none;
  border-radius: 0;
  transition: background 0.15s;
}

/* Remove default list style */
.menu-list li,
.menu-list ul {
  list-style: none;
}

/* Responsive: ensure right alignment on mobile */
@media (max-width: 991.98px) {
  .mobile-navbar-menu {
    display: block;
  }

  .menu-list {
    align-items: flex-end;
  }
  .menu-list > li,
  .menu-list .dropdown-menu {
    align-items: flex-end;
  }

  .menu-list > li > a,
  .menu-list > li > button {
    text-align: right;
    font-size: 18px;
  }

  .dropdown-toggle::after {
    display: none; /* Hide the default caret */
  }
  .dropdown-toggle::before {
    content: "\25BC"; /* Use a downward arrow for the dropdown */
    font-size: 0.8em;
    margin-right: 0.5em;
  }

  .dropdown-menu {
    position: relative;
    width: 100%;
    margin: 0;
    background: #202020;
    border: none;
    box-shadow: none;
    display: none;
    padding: 0;
  }
  .dropdown.show .dropdown-menu {
    display: block;
  }
  .dropdown-menu > .dropdown-item {
    padding: 12px 32px 12px 16px;
    color: white;
    text-align: right;
    font-size: 15px;
    background: none;
    border: none;
    border-radius: 0;
    transition: background 0.15s;
  }
  .dropdown-menu > .dropdown-item:hover,
  .dropdown-menu > .dropdown-item:focus {
    background: #f6f6f6;
    color: #111;
  }

  .dropdown-menu::before {
    content: none; /* Remove the arrow */
  }

  .navbar ul li ul {
    position: relative;
  }
}

/* Add to your main CSS file */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #942522;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: opacity 0.2s;
  animation: scrollBtnBounce 1.2s infinite alternate;
}
@keyframes scrollBtnBounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-16px);
  }
}
@media (max-width: 991.98px) {
  #scrollToTopBtn {
    display: block;
  }
}
