@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ==============================
   Header Styles
============================== */
.header-area {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 60px;
  display: flex;
  align-items: center;
  /* We remove overflow-x: auto; now
     because we don't want horizontal scrolling. */
  overflow: hidden;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 20px;
}

/* Logo images */
.logo img {
  height: 40px;
  object-fit: contain;
}

/* Default: Single-line navbar */
.navbar {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  white-space: nowrap;
}

/* Links */
.navbar li a {
  color: #333;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s;
  padding: 5px 10px;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
}

.navbar li a.active,
.navbar li a:hover {
  color: #26729e;
}

/* ==============================
   Responsive Adjustments
============================== */

/* Medium screens (max-width: 992px) - reduce spacing */
@media (max-width: 992px) {
  .header-area {
    height: 55px;
  }
  .navbar {
    gap: 15px;
  }
  .navbar li a {
    font-size: 0.85rem;
    padding: 4px 8px;
  }
  .logo img {
    height: 35px;
  }
}

/* Small screens (max-width: 768px) - further reduce */
@media (max-width: 768px) {
  .header-area {
    height: 50px;
    overflow: visible; /* So wrapping doesn't clip the nav */
  }
  .header {
    padding: 0 15px;
  }
  .navbar {
    gap: 10px;
  }
  .navbar li a {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  .logo img {
    height: 30px;
  }
}

/* Very small screens (max-width: 480px)
   => Let the navbar wrap onto multiple lines. */
@media (max-width: 480px) {
  .header-area {
    height: auto;
    overflow: visible;
  }
  .navbar {
    /* Allow wrapping here */
    white-space: normal;
    flex-wrap: wrap;
    gap: 8px;
  }
  .navbar li a {
    font-size: 0.75rem;
    padding: 2px 4px;
  }
  .logo img {
    height: 28px;
  }
}
