/* Base reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Header */
header {
  padding: 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo img {
  height: 40px;
  width: auto;
}

.brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

/* Right nav area */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Nav links */
.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: currentColor;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #0077ff;
}

/* Search */
.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: inherit;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Toggle style */
.dropdown-toggle {
  cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 160px;
}

/* Dropdown item */
.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: inherit;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f2f2f2;
  background-color: #f9f9f9;
  color: #333;
  /* or keep inherit */
  background-color: #f9f9f9;
  border-left: 3px solid #0077ff;
  /* or another accent color */
  padding-left: calc(1rem - 3px);
}



/* Responsive styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    display: none;
  }

  .nav-right.active {
    display: flex;
  }

  .search-input {
    width: 100%;
    margin-top: 0.5rem;
  }

  .navbar {
    align-items: flex-start;
  }

  /* ✅ Shrink logo and brand name */
  .brand-logo img {
    height: 32px;
  }

  .brand-name {
    font-size: 1.2rem;
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
}


/* Show dropdown on click for mobile */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}