.header {
  background-color: #fff;
  width: 100%;
  padding: 10px 0 12px 0;
  // box-shadow: rgba(149, 157, 165, 0.13) 0px 8px 24px;
  border-bottom: 1px solid rgb(226 232 240 / var(--tw-border-opacity, 1));
  --tw-shadow: 0 10px 30px rgba(2, 6, 23, 0.05);
  --tw-shadow-colored: 0 10px 30px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  animation: slideDown 0.8s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.header .header-top {
  display: flex;
  gap: 16px;
}

.logo-img{
  padding-right: 16px;
  border-right: 3px solid $secondaryColor;
}
.logo-img img {
  max-height: 70px;
  object-fit: contain;
}

.header .header-top .header-top-left {
  display: flex;
  gap: 10px;

  span {
    font-size: 28px;
    font-family: $secondaryFont;
    font-weight: 600;
  }
}

.header-content {
  width: 100%;
}

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

.header .header-top p {
  font-weight: 700;
  font-size: 26px;
  color: $primaryColor;
}

.header .header-top .header-info {
  font-size: 14px;
  color: #544e4d;
  font-weight: 300;
  display: flex;
}

.header .header-top .header-info i {
  font-size: 12px;
  height: 22px;
  width: 22px;
  background: rgba(220, 221, 249, 0.7215686275);
  color: #6669be;
  border-radius: 4px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .header-top .social-network h6 {
  font-size: 14px;
  color: #4b4747;
  font-weight: 300;
}

.header .header-top .social-network .social-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header .header-top .social-network .social-links a {
  font-size: 15px;
  height: 26px;
  width: 26px;
  background: rgba(220, 221, 249, 0.7215686275);
  color: #6669be;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  margin-top: 10px;
  justify-content: space-between;
}

.header-nav ul {
  display: flex;
  align-items: center;
}
.header-action{
  a{
    padding: 7px 12px;
    background-color: #000;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
  }
}
.header-nav ul li {
  margin-right: 26px;
}

.header-nav ul li a {
  color: #474747;
  font-size: 17px;
  font-weight: 500;
  border-radius: 3px;
}

.header-nav ul li a:hover {
  color: $primaryColor;
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-icon {
  margin-left: 2px;
  font-size: 10px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}

.dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

/* Enhanced dropdown menu */
.dropdown-menu.simple-dropdown {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  top: 100%;
  min-width: 500px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 1000;
  display: list-item;
  margin-top: 7px;
}

.dropdown.active .dropdown-menu.simple-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu.simple-dropdown li {
  padding: 0;
  transition: background-color 0.15s ease;
  border-top: 1px solid #c5cde15f;
  margin-right: 0px !important;
}

.dropdown-menu.simple-dropdown li:first-child {
  border-top: 1px solid transparent;
}

.dropdown-menu.simple-dropdown li:hover {
  background-color: #f8f9fa;
}

.dropdown-menu.simple-dropdown li a {
  color: #333 !important;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  height: auto;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  transition: all 0.15s ease;
}

.dropdown-menu.simple-dropdown li a:hover {
  color: #05468b !important;
  background-color: transparent;
  padding-left: 22px;
}
.dropdown-menu {
  h6 {
    font-size: 16px;
    font-style: italic;
  }
  .feature-img {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;

    img {
      width: 100%;
      max-height: 320px;
      object-fit: contain;
    }
  }
  h5 {
    font-size: 20px;
    font-family: $secondaryFont;
    font-weight: 400;
    margin-top: 10px;
  }
  p {
    font-size: 13px !important;
    font-weight: 300 !important;
    color: #585858 !important;
    margin-top: 30px;
    span {
      font-family: $secondaryFont;
      font-weight: 500;
      color: #333;
    }
  }
}
.dropdown-menu.simple-dropdown li.divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
  margin: 6px 0;
}
.dropdown-list {
  display: inline !important;
}
// .right-border {
//   border-right: 1px solid #c5cde15f;
//   height: 100%;
// }
/* Optional: Add a subtle arrow at the top of dropdown */
.dropdown-menu.simple-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  z-index: 1;
}

.dropdown-menu.simple-dropdown::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0, 0, 0, 0.08);
  z-index: 0;
}

.hamburger-icon {
  display: flex;
  justify-content: flex-end;
}

.hamburger-icon i {
  height: 40px;
  width: 40px;
  border: 1px solid #c3c3c3b9;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

/* Enhanced Offcanvas Styles */
.offcanvas {
  max-width: 320px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  background: linear-gradient(to right, #05468b, #1a5276);
  color: white;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: $secondaryFont;
  line-height: 12px;
}

.offcanvas-title img {
  height: 30px;
  filter: brightness(0) invert(1);
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.btn-close:hover {
  opacity: 1;
}

.offcanvas-body {
  padding: 0;
  background-color: #f8f9fa;
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  background-color: white;
}

.mobile-menu > li > a:hover {
  background-color: #e3f2fd;
  color: #05468b;
  padding-left: 25px;
}

.mobile-menu .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu .submenu.active {
  max-height: 1000px;
}

.mobile-menu .submenu li a {
  display: flex;
  align-items: center;
  padding: 14px 20px 14px 45px;
  color: #4a5568;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 228, 234, 0.04);
  font-size: 14px;
  transition: all 0.3s;
  position: relative;
}

.mobile-menu .submenu li:last-child a {
  border-bottom: none;
}

.mobile-menu .submenu li a:hover {
  background-color: #e3f2fd;
  color: #05468b;
  padding-left: 48px;
}

.mobile-menu .submenu li a:hover:before {
  content: "";
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #05468b;
  border-radius: 50%;
}

.submenu-toggle {
  transition: all 0.3s ease;
}

.submenu-icon {
  transition: transform 0.4s ease;
}

.submenu-icon.rotated {
  transform: rotate(180deg);
}

.offcanvas-search {
  padding: 15px 20px;
  background-color: white;
  border-bottom: 1px solid #eee;
}
.offcanvas-footer {
  padding: 20px;
  text-align: center;
  background-color: white;
  border-top: 1px solid #eee;
  margin-top: auto;
  p {
    font-family: $secondaryFont;
  }
}

.offcanvas-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.offcanvas-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #e3f2fd;
  color: #05468b;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s;
}

.offcanvas-social a:hover {
  background: #05468b;
  color: white;
  transform: translateY(-3px);
}

/* Animation for menu items */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu li {
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}

.mobile-menu li:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu li:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-menu li:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-menu li:nth-child(4) {
  animation-delay: 0.25s;
}
.mobile-menu li:nth-child(5) {
  animation-delay: 0.3s;
}
.mobile-menu li:nth-child(6) {
  animation-delay: 0.35s;
}
.mobile-menu li:nth-child(7) {
  animation-delay: 0.4s;
}
.mobile-menu li:nth-child(8) {
  animation-delay: 0.45s;
}


.header-search-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
}

/* Search Box */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: #fff;
  border-radius: 8px;
  padding: 10px 38px 10px 12px;
  height: 40px;
  border: 1px solid #ddd;
  width: 100%;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: $secondaryFont;
}

.search-input::placeholder {
  font-size: 14px;
  color: #565353;
  font-weight: 300;
}

.search-input:focus {
  outline: none;
  border-color: $primaryColor;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Search Button */
.search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #9a9999;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: $primaryColor;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y:scroll ;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 1000;

  li{
    border-bottom: 1px solid #8b88881f;
    h5{
      font-size: 16px;
      font-family: 400;
      font-family: $secondaryFont;
      color: #3e3c3c;
      @include text-ellips;
      a{
        &:hover{
          color:$primaryColor !important;
          text-decoration: underline;
        }
      }
    }
    p{
      color:#575555 !important;
      font-weight:300 !important;
      font-size: 14px !important;
      @include text-ellips;
    }
  }
  
}

.search-results li {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}


.header.fixed{
    background-color: $primaryColor;
    .logo-img img {
    filter: brightness(0) invert(1);
}
 .header-top p {
    color: #fff ;
}

.header-nav ul li a{
  color: #fff;
}
}