@import url(../../../../cdn.jsdelivr.net/npm/remixicon%402.5.0/fonts/remixicon.css);

/* ==========================================================================
   Modern Header Styles - Responsive & User-Friendly
   ========================================================================== */

.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1095;
  transition: all 0.3s ease;
}

.modern-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo Styles */
.header-logo-wrapper {
  flex-shrink: 0;
  z-index: 10;
}

.header-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.header-logo-link:hover {
  transform: scale(1.05);
}

.header-logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
}

.modern-header.scrolled .header-logo-img {
  height: 40px;
}

/* Desktop Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.nav-item {
  position: relative;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 20px;
  width: 0;
  height: 2px;
  background-color: #012a40;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #012a40;
  background-color: rgba(1, 42, 64, 0.05);
}

.nav-link:hover::after {
  width: calc(100% - 40px);
}

.nav-link-dropdown {
  padding-right: 35px;
}

.dropdown-icon {
  position: absolute;
  right: 15px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-icon,
.nav-item-mega:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-item {
  margin: 0;
}

.dropdown-link {
  display: block;
  padding: 12px 25px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  text-transform: capitalize;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background-color: rgba(1, 42, 64, 0.05);
  color: #012a40;
  border-left-color: #012a40;
  padding-left: 30px;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 15px;
}

.nav-item-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-container {
  width: 100%;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
}

.mega-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu-item {
  margin: 0;
}

.mega-menu-link {
  display: block;
  padding: 6px 12px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.mega-menu-link:hover {
  background-color: rgba(1, 42, 64, 0.08);
  color: #012a40;
  border-left-color: #012a40;
  transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: #1a1a1a;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
  z-index: 1001;
}

.mobile-menu-overlay.active .mobile-nav {
  right: 0;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 100px 0 30px;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: block;
  padding: 18px 30px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(1, 42, 64, 0.05);
  color: #012a40;
  padding-left: 40px;
}

/* Mobile Accordion */
.mobile-nav-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: transparent;
  border: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.mobile-nav-accordion-btn:hover {
  background-color: rgba(1, 42, 64, 0.05);
  color: #012a40;
}

.accordion-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f8f8f8;
}

.mobile-nav-subitem {
  border-bottom: 1px solid #e8e8e8;
}

.mobile-nav-sublink {
  display: block;
  padding: 15px 30px 15px 50px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.mobile-nav-sublink:hover {
  background-color: rgba(1, 42, 64, 0.08);
  color: #012a40;
  padding-left: 60px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  .nav-link {
    padding: 10px 15px;
    font-size: 14px;
  }

  .mega-menu {
    min-width: 500px;
    max-width: 600px;
  }
}

@media screen and (max-width: 768px) {
  .header-container {
    height: 70px;
    padding: 0 20px;
  }

  .header-logo-img {
    height: 38px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .modern-header.scrolled .header-logo-img {
    height: 35px;
  }
}

@media screen and (max-width: 480px) {
  .header-container {
    padding: 0 15px;
    height: 65px;
  }

  .header-logo-img {
    height: 35px;
  }

  .mobile-nav {
    width: 90%;
  }

  .mobile-nav-link,
  .mobile-nav-accordion-btn {
    padding: 16px 20px;
    font-size: 15px;
  }

  .mobile-nav-sublink {
    padding: 12px 20px 12px 40px;
    font-size: 13px;
  }
}

/* Legacy Support - Keep old classes working */
.mega-header {
  display: none;
}

.a-btn {
  position: relative;
  display: inline-block;
  background-color: #012a40;
  text-align: center;
  height: 45px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 12px 10px;
  border-radius: 24px;
  color: #fff !important;
  font-size: 18px;
  padding-top: 7px;
}

.a-btn i {
  vertical-align: middle;
}

.mega-header {
  display: none !important; /* Hidden - replaced by modern-header */
}

.mega-header .mega {
  background-color: #fff;
  max-width: 100%;
  width: calc(100% - 200px);
  z-index: 10;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  padding: 20px;
}

.mega-header .mega ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.mega-header .mega ul li {
  margin: 10px 22px;
  display: inline-block;
  position: relative;
}

.mega-header .mega ul li:hover .mega-item {
  display: block;
}

.mega-header .mega ul li .mega-item {
  display: none;
}

.mega-header .mega ul a:not(.a-btn) {
  color: #000;
  font-size: 16px;
  line-height: 25px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.mega-header .left-10 {
  -webkit-transform: translateX(-10%);
  transform: translateX(-10%);
}

.mega-header .left-50 {
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.mega-header .mega-item.max-width {
  min-width: 250px;
}

.mega-header .mega-item {
  position: absolute;
  min-width: 600px;
  text-align: left !important;
  top: 20px;
}

.mega-header .mega-item .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 20px;
  background-color: #fff;
  -webkit-box-shadow: 0 0 24px rgba(66, 27, 27, 0.1);
  box-shadow: 0 0 24px rgba(66, 27, 27, 0.1);
  margin-top: 30px;
}

.mega-header .mega-item .row .col-sm-8 {
  max-width: 60%;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 60%;
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
}

.mega-header .mega-item .row .col-sm-4 {
  max-width: 40%;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 40%;
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

.mega-header .mega-item ul {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

.mega-header .mega-item ul a {
  text-transform: capitalize !important;
}

.mega-header .mega-item .mega-preview {
  position: relative;
}

.mega-header .mega-item .thumb {
  position: relative;
}

.mega-header .mega-item .thumb img {
  position: absolute;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  max-width: 100%;
  top: 0;
  left: 0;
  height: inherit;
  /*height: -moz-available;
  height: stretch;*/
  opacity: 0;
  max-height: 280px;
}

.mega-header .mega-item .thumb .visible {
  opacity: 1;
}

.contact-social li {
  margin: 10px 20px;
}

.contact-social li i {
  font-size: 30px;
  color: #000;
}

.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
}

.mega a.icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .mega-header .mega ul {
    display: none !important;
  }

  .mega-header .mega a.icon {
    float: right;
    display: block !important;
  }

  .topnav a {
    padding: 14px 16px;
  }

  .mega-header .mega-item {
    position: relative;
    top: 0px;
  }

  .mega-header .mega-item .row .col-sm-8 {
    display: none;
  }

  .mega-header .mega-item .row {
    -webkit-box-shadow: 0 0 0px rgba(66, 27, 27, 0.1);
    box-shadow: 0 0 0px rgba(66, 27, 27, 0.1);
    padding: 0px;
  }

  .mega-header .mega ul a:not(.a-btn) {
    line-height: 0px;
  }

  .mega-header .left-10 {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }

  .mega-header .left-50 {
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
  }

  .mega-header .mega ul li {
    margin: 4px 22px;
    width: 100%;
  }

  .mega-header .mega-item {
    min-width: 650px;
  }
}

@media screen and (max-width: 600px) {
  .mega-header .mega.responsive {
    margin-bottom: 30px;
    transform: translateX(0);
    height: auto;
    transition-delay: 0.4s;
    position: fixed;
    z-index: 1000;
    top: 0;
    padding-top: 35px;
    padding-bottom: 35px;
    right: 0;
    padding-right: 40px;
    padding-left: 0;
  }

  .mega-header .mega.responsive .icon {
    right: 0;
  }

  .mega-header .mega.responsive ul {
    float: none;
    display: block !important;
    text-align: left;
  }
}

.display-block {
  display: block;
}
