.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding-right: 0;
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #e31b23;
  background-color: rgba(227, 27, 35, 0.05);
}

.nav-link.active {
  color: #e31b23;
  border-bottom: 2px solid #e31b23;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #333;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #e31b23;
  fill: #e31b23;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  color: #333;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #e31b23;
  fill: #e31b23;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #333;
}

.mobile-menu {
  display: flex;
  align-items: center;
}

.mobile-social-container {
  width: 100%;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-social-container .social-links {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.menu-overlay.active {
  display: block;
}

@media (max-width: 1200px) {
  .nav-list {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1012px) and (min-width: 769px) {
  .navbar {
    padding: 1rem;
  }

  .navbar-logo img {
    height: 50px;
  }

  .nav-list {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }

  .navbar-actions {
    margin-right: 0.5rem;
  }

  .social-links {
    gap: 0.5rem;
  }
}

@media (min-width: 871px) {
  .header-controls .search-btn {
    display: none;
  }
}

@media (max-width: 870px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .navbar-logo {
    order: 1;
  }

  .header-controls {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .navbar-nav {
    order: 2;
    width: 100%;
    margin-top: 1rem;
  }

  .mobile-social-container {
    order: 3;
  }

  .nav-list {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-actions .search-btn {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 2rem 1rem 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .mobile-menu .nav-item {
    width: 100%;
  }

  .mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .mobile-menu .navbar-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
    align-items: flex-start;
  }

  .mobile-menu .social-links {
    display: flex;
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .social-links {
    display: none;
  }
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  height: 0;
  overflow: hidden;
  z-index: 1002;
  transition: height 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  height: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.active .search-form {
  opacity: 1;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 2px solid #e31b23;
  background: transparent;
  font-size: 1.2rem;
  color: #333;
  outline: none;
}

.search-submit,
.search-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #333;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-submit:hover,
.search-close:hover {
  color: #e31b23;
}

.search-close {
  margin-right: 0.5rem;
}
