/* Header Styles */

.header {
  background: #ffffff;
  color: #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: transform 0.3s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: layout style;
  perspective: 1000px;
  overflow: visible;
  flex-direction: column;
  display: flex;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  transform: translateZ(0);
  will-change: contents;
  position: relative;
  z-index: 200;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateZ(0);
  height: 100%;
  padding: 10px 0;
}

.ds-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #1e293b;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 4px 0;
  font-size: 15px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #00B4D8;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #00B4D8;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  transform: translateZ(0);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 240px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #1e293b;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background: #f1f5f9;
  color: #00B4D8;
}

.dropdown-link .material-icons {
  font-size: 20px;
  color: #64748b;
}

.dropdown-link:hover .material-icons {
  color: #00B4D8;
}

.header-cta {
  margin-left: 24px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #00B4D8;
  color: white;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: #0096b7;
  transform: translateY(-1px);
}

.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0077B6;
  color: #fff;
  padding: 8px 20px;
  font-size: 14px;
  gap: 12px;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 150;
  width: 100%;
  margin: 0;
}

.announcement-bar span {
  background-color: #00B4D8;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.announcement-bar p {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

.announcement-link {
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
}

.announcement-link::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("https://ext.same-assets.com/2730355870/4197957384.svg");
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 4px;
  opacity: 0.8;
}

.announcement-link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Add class for header scroll effect */
.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
}

.header.visible {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .main-nav {
    gap: 24px;
  }
  
  .nav-link {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
    height: 60px;
  }

  .ds-logo {
    height: 32px;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    margin-left: 16px;
  }

  .login-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .announcement-bar {
    padding: 8px 16px;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }

  .announcement-bar p {
    font-size: 13px;
    width: 100%;
  }

  .announcement-bar span {
    padding: 2px 6px;
    font-size: 11px;
  }

  .announcement-link {
    font-size: 13px;
    margin: 2px 0;
  }
}
