/* Ensure the container and row use Flexbox for alignment */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo section */
.header__logo {
  display: flex;
  align-items: center;
}
.header__logo img {
  max-height: 75px;
  width: auto;
  display: block;
}

/* Navigation menu */
.header__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.header__menu ul li {
  margin-right: 20px;
  position: relative; /* For badge positioning */
}

.header__menu ul li a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 5px;
}

/* Icon styling */
.header__menu ul li a i {
  font-size: 22px;
}

/* Badge styling */
.header__menu ul li a .badge {
  position: absolute;
  top: 5px;
  right: 10px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Hover state for all links */
.header__menu ul li a:hover {
  color: #ff0000;
  background-color: #f8f8f8;
}

/* Active state */
.header__menu ul li.active a {
  color: #ff0000;
  background-color: #ffe6e6;
  font-weight: 700;
}

/* Mobile menu toggle */
.canvas__open {
  display: none;
}

/* Right-side options (Sign Up, Log In, or Dropdown) */
.header_nav_option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Sign Up button/link */
.sign-in-link {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background-color: #1b1b1b;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 20px;
  text-align: center;
  margin-right: 18px;
  transition: background-color 0.3s ease;
}

.sign-in-link:hover {
  background-color: #ff0000;
}

/* Log In button/link */
.login-link {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background-color: #1b1b1b; /* Matches .sign-in-link */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-size: 20px;
  text-align: center;
  margin-right: 18px; /* Matches .sign-in-link */
  transition: background-color 0.3s ease;
}

.login-link:hover {
  background-color: #ff0000; /* Matches .sign-in-link */
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  right: 0;
  top: 100%;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 991px) {
  .header__menu {
    display: none;
  }

  .canvas__open {
    display: block;
    font-size: 20px;
    cursor: pointer;
  }

  .header_nav_option {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .col-lg-3,
  .col-md-3,
  .col-lg-6,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .header_nav_option {
    justify-content: center;
  }

  .sign-in-link,
  .login-link {
    margin: 5px 0;
  }
}