.navbar {
  padding: 1rem 0;
  background-color: transparent;
  position: absolute;
  width: 100%;
  transition: background-color 0.3s ease, padding 0.3s ease;
  z-index: 10;
  padding: 1rem 0;
  /* height: 90px; */
}

.navbar.scrolled {
  position: fixed;
  /* height: 90px; */
  background-color:#0C00A6;
  padding: 1rem 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand img {
  width: 150px;
  height: auto;
  object-fit: cover;
}

.offcanvas-header {
  border-bottom: 1px solid #b9b9b9;
  padding: .4rem 1rem;
}

.offcanvas {
  width: 280px;
  border-left: none;
}

.offcanvas-header .btn-close {
  background-color: #FFF;
  border-radius: 50%;
  width: 20px;
  color: #FFF;
  height: 20px;
}

.close {
  background-color: transparent;
  border: 1px solid #0E404F;
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.navbar-link {
  color: #F6F308;
  font-size: 16px;
  transition: all 0.3s;
  margin: 0 .8rem;
  padding: 0;
  position: relative;
  transition: all .3s;
}

.navbar-link:hover {
  color: #ADADAD;
  transition: all .3s;
}

.navbar-link.active {
  color: #ADADAD !important;
  /* border-bottom: 2px solid #FFF; */
  transition: all 0.3s;
  font-weight: bold;
  position: relative;
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  left: 25%;
  background-color: #ADADAD;
  border-radius: 12px;
  bottom: -5px;
}

.newsletter-button {
  background-color: #2514FF;
  border-radius: 24px;
  border: 1px solid #2514FF;
  color: #FFF;
  font-size: 16px;
  padding: 0.6rem 2rem;
}

.navbar.scrolled .newsletter-button {
  background-color: transparent;
  border: 1px solid #FFF;
}

.navbar.scrolled .navbar-link {
  color: #F6F308;
}

.navbar.scrolled .navbar-link:hover {
  color: #CDCDCD;
}

.bars {
  color: #FFF;
  font-size: 24px;
  font-weight: bold;
  margin-left: 1rem;
  display: none;
}

.offcanvas-header {
  border: none !important;
}

.offcanvas-header img {
  max-width: 120px;
  max-height: 80px;
}

.offcanvas-body .nav-links {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}

.offcanvas-body .nav-link {
  padding: 0;
  font-size: 24px;
  font-weight: bold;
  margin: 0rem 0;
  color: #000000;
}

/* Basic styling for the dropdown button */
.dropdown-button {
  color: #ADADAD !important;
  font-size: 18px;
  transition: all 0.3s;
  margin: 0 1rem;
  opacity: 1;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: all .3s;
  background-color: transparent;
  border: none;
}

.dropdown-button i {
  font-size: 15px;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #FFF;
  border-radius: 24px;
  box-shadow: 0px 8px 40px 0px #00000014;
  min-width: 240px;
  z-index: 1;
  top: 3rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.dropdown-content a:hover {
  background-color: #F6F308;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
}

.dropdown-content-a-active {
  background-color: #F6F308;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
}

/* Show the dropdown content with animation */
.dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  z-index: 1000; /* Ensure it's on top of other content */
  justify-content: center;
  align-items: center;
}

/* Modal content */
.modal-content {
  background-color: transparent;
  /* padding: 20px; */
  border-radius: 10px;
  max-width: 100%;
  height: 80vh;
  /* width: 700px; */
  overflow: auto;
  text-align: center;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  /* font-size: 30px; */
  cursor: pointer;
}

.modal-bg {
  background-image: url('https://via.placeholder.com/800x600'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* Place it behind the modal content */
}

.modal-content .newsletter {
  background-image: url("../../img/image\ \(28\).png");
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0;
}

.modal-content .newsletter-layout {
  background: #1A1A1ADB;
  backdrop-filter: blur(15px);
  width: 100%;
  height: 100%;
  padding: 5rem 3rem;
}

.newsletter-image {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-image img {
  width: 60%;
}

.newsletter-layout form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.newsletter-layout form input {
  width: 60%;
}

.newsletter-layout form button {
  width: 38% !important;
}














@media (max-width: 1024px) {
  .nav {
    flex-flow: column;
    justify-content: center;
  }
  .navbar-links {
    margin: 1rem 0;
  }
}


@media (max-width: 768px) {
  .nav {
    flex-flow: row;
    justify-content: space-between;
  }

  .newsletter-layout form input {
    width: 50%;
  }
  .modal-content .newsletter-layout {
    padding: 2rem;
  }

  .offcanvas {
    width: 100%;
  }
  .offcanvas-body .navbar-links {
    display: block !important;
  }
  .offcanvas-body .navbar-links .navbar-link {
    display: block !important;
    margin-bottom: 1rem;
  }
  .dropdown-content {
    /* display: none; */
    position: unset;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    z-index: 12;
    top: 0;
    opacity: 1;
    /* transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease; */
  }
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0.6rem;
    text-align: start;
  }
  .newsletter-image {
    display: none;
  }
  .navbar-links {
    display: none;
  }
  .newsletter-button {
    display: none;
  }
  .bars {
    display: block;
  }
}
