header {
  display: flex;
  width: 100%;
  background: #fff;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  /* width: 90rem; */
  height: 6.5rem;
  flex-shrink: 0;
  margin: 0 auto;
  position: relative;
}

.logo {
  width: 10.91275rem;
  height: 2.5rem;
  cursor: pointer;
  flex-shrink: 0;
  aspect-ratio: 174.6/40;
  margin: 1rem 13.52rem 1.37rem 39.6rem;
}

.nav-links {
  display: inline-flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: absolute;
  left: 32.84rem;
  top: 4.88rem;
}

.nav-link {
  position: relative;
  text-decoration: none;
  padding-bottom: 0.4rem;
  color: #474747;
  font-feature-settings: "liga" off;

  /* Button */
  font-family: Gilroy;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25rem;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 3.8125rem;
  height: 0.25rem;
  flex-shrink: 0;
  background: #057bc1;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 1.31rem;
}

.searchbar {
  width: 1.4rem;
  height: 1.4rem;
  cursor: pointer;
}

.submit-project-button {
  background: #fff;
  border: 1px solid #757575;
  border-radius: 0.5rem;
  padding: 0.625rem 1.75rem;
  color: #474747;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-project-button:hover {
  border-color: #057bc1;
  color: #057bc1;
}

.signin-button {
  background: #191919;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  height: 2.5rem;
  padding: 0.625rem 1.75rem;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  color: #fff;
  font-feature-settings: "dlig" on;
  font-family: Montserrat;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.signin-button:hover {
  background: #057bc1;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #191919;
}

.news-ticker {
  background-color: #f4f4f4;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
  position: relative;
  display: flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  gap: 2rem;
  color: var(--Black-700, #474747);
  font-family: Gilroy;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Ticker Wrapper */
.ticker-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

/* Ticker Content */
.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  padding-left: 100%;
}

/* Pause animation on hover */
.news-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* Individual News Items */
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 50px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  position: relative;
}

/* Bullet Point Separator */
.ticker-item::before {
  content: "•";
  position: absolute;
  left: 25px;
  color: #6b7280;
  font-size: 16px;
}

.ticker-item:first-child::before {
  display: none;
}

/* Links */
.ticker-item a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-item a:hover {
  color: #1f2937;
}

/* Scrolling Animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .news-ticker {
    height: 45px;
  }

  .ticker-item {
    font-size: 13px;
    padding: 0 30px;
  }

  .ticker-item::before {
    left: 15px;
  }
}

/* --------- Responsive Breakpoints ---------- */
@media screen and (min-width: 1280px) and (max-width: 1440px) {
  .logo {
    margin-left: 34.56rem;
  }
  .nav-links {
    left: 27.84rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 3%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.75rem;
    padding: 1rem;
    width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .right-section {
    gap: 0.5rem;
  }

  .submit-project-button {
    padding: 0.5rem 1rem;
  }

  .signin-button {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .right-section {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    right: 0;
    left: 0;
    width: 100%;
  }
}
