/* Header Styles */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

/* Topbar */
.topbar {
  background: var(--bg-light); /* Warm cream background */
  color: var(--secondary-color);
  padding: 10px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.topbar .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.topbar .container > * {
  width: 50%;
}
.topbar-info {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  user-select: text;
}
.topbar-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: var(--transition);
}

.topbar-info a i {
  color: var(--primary-color);
}

.topbar-info a:hover {
  color: var(--primary-color);
}
.topbar-ticker {
  background: white;
  padding: 4px 15px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  max-width: 450px !important;
}

.topbar-ticker .slider-item {
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Mainbar */

.mainbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-menu ul {
  display: flex;
  gap: 35px;
}

.nav-menu > ul > li {
  position: relative;
  padding: 25px 0;
}

/* Megamenu */
.logo {
  height: 70px;
}
.logo img{
    height: 70px;
    width: auto;
}
.has-megamenu {
  position: static !important;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow-lg);
  padding: 40px 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 1001;
  border-top: 2px solid var(--primary-color);
}

.has-megamenu:hover .megamenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.megamenu-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.megamenu-section {
  width: 100%;
}

.megamenu-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.megamenu-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.megamenu-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.megamenu-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  padding: 15px 0;
  gap: 20px;
}

.search-trigger {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.search-trigger:hover {
  color: var(--primary-color);
}
.menu-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--secondary-color);
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-toggle:hover {
  color: var(--primary-color);
}
/* Search Overlay */
.search-overlay {
  position: fixed;
  top: -135px;
  left: 0;
  width: 100%;
  height: 130px;
  background: var(--bg-white);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.4s ease;
}

.search-overlay.active {
  top: 0;
}

.search-form {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 15px 40px 15px 15px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1.1rem;
  outline: none;
}

.search-form input:focus {
  border-color: var(--primary-color);
}

.search-close {
  position: absolute;
  right: 35px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.search-close:hover {
  color: var(--primary-color);
}

/* Responsive Header */
@media (max-width: 1024px) {
  .topbar-ticker {
    /*width: 100% !important;*/
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
    .megamenu{
        display: none;
    }
    .header-actions{
        gap: 5px;
    }
  .topbar-info{
      width: 100% !important;
      justify-content: space-between !important;
  }
  .topbar .container{
    flex-direction: column;
    gap: 20px;
  }
  .tabs-container{
    display: flex;
    gap: 40px;
    flex-direction: column;
  }
  .tabs-nav{
      position: static;
  }
      .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    display: none; /* Initially hidden */
    z-index: 999;
    border-bottom: 3px solid var(--primary-color);
    animation: slideUp 0.3s ease forwards;
  }

  .nav-menu.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu > ul > li {
    padding: 15px 30px;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-menu > ul > li:last-child {
    border-bottom: none;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes slideUp {
    from {
      opacity: 1;
      transform: translateY(0px);
    }
    to {
      opacity: 0;
      transform: translateY(-10px);
    }
  }
}