
/* --- NAVBAR STYLES --- */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 100;
}
/* NEW: This class gets added by JS to solve layering issues */
.navbar.navbar-on-top {
  z-index: 110;
}

.navbar-brand svg {
  height: 40px;
  width: auto;
}
#navbar-logo {
  width: 40px;
  height: auto;
}
/* Custom style to make Bootstrap's toggler icon white */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-toggler {
  /* border-color: rgba(255,255,255,0.2); */
  border: 1px solid white; /* Change border color */
  padding: 0rem 0.2rem;
  background-color: rgba(0,0,0,0);
  border-radius: 5px;
}

/* this should look like the WordPress toggle button */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-dark .navbar-toggler {
  background-color: #d61f42;   /* Red background */
  border: none;                /* No border */
  padding: 0.25rem 0.5rem;      /* Even padding */
  border-radius: 0;            /* Square corners */
  width: 35px;
  height: 35px;
  /*
  display: flex;
  align-items: center;
  justify-content: center;
  */
}
/*---------------------------------------------------*/

/* In your CSS file */
.navbar-custom-bg {
  background-color: rgb(195, 6, 6);
}
.navbar-no-bg {
  background-color: transparent;
}
.navbar-toggler:hover {
  background-color: black;
  opacity: 0.6;
}
.navbar-toggler:focus {
  box-shadow: none;
}
/* In your CSS file or <style> block */
.nav-link.custom-link {
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-right:20px;
  letter-spacing: 1.5px;
  transition: all 0.4s ease;
}

.nav-link.custom-link:hover {
  background-color: #4f4f4f;
  text-decoration: none;
  opacity: 1;
}

.navbar-collapse {
  transition: none !important;
}

@media (min-width: 360px) {
  #navbar-logo {
    width: 40px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

@media (min-width: 480px) {
  #navbar-logo {
    width: 50px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* NEW: Styles for the expanded mobile menu */
@media (max-width: 575.98px) {
  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar-toggler-icon {
    margin: auto;
  }
  .navbar-collapse.show {
    background-color: rgba(0, 0, 0, 0.75); /* Dark, semi-transparent background */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    margin: 0.5rem -0.5rem -0.5rem; /* Fills the container padding */
    padding: 1rem;
    border-radius: 0.5rem;
    border-radius: 0;
    margin-top: 0.5rem;

    /* Use CSS calc() to perfectly counteract the container padding */
    margin-left: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-right: calc(-1 * var(--bs-gutter-x, 0.75rem));
    margin-top: 0.5rem;
    padding: 1rem var(--bs-gutter-x, 0.75rem); /* Add padding back to align content */
    border-radius: 0; /* No radius on a full-width element */       
    z-index: 102; /* This is the key line */
 
  }
  /* Style for nav link hover ONLY when mobile menu is open */
  .navbar-collapse.show .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Adds a subtle white highlight */
    border-radius: 0.25rem;
    border-radius: 0;
  }
}

/* UPDATED Responsive Adjustments (Mobile-First) */
@media (min-width: 576px) {
  #navbar-logo {
    width: 60px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
  .navbar-collapse {
    background-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  #navbar-logo {
    width: 70px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #navbar-logo {
    width: 80px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 1200px) {
  #navbar-logo {
    width: 100px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 2100px) {
  #navbar-logo {
    width: 120px;
  }
  .nav-link.custom-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

