.header {
  height: 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 0;
  margin-right: 0;
  padding: 4px clamp(20px, 5vw, 80px) 4px 5px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;

  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
  border-bottom-style: solid;
  border-bottom-color: rgb(240, 240, 240);
  box-sizing: border-box;
}
.left-section {
  display: flex;
  align-items: center;
  padding-left: clamp(10px, 4vw, 60px);
}

.main-logo {
  width: auto;
  height: 64px;
  max-height: 68px;
  max-width: 195px;
  object-fit: contain;
  display: block;
}

.middle-section {
  display: flex;
  align-items: center;
}
.navbar ul,
.login-nav ul {
  display: flex;
  list-style: none;
  gap: clamp(15px, 2vw, 30px);
  padding: 0;
  margin: 0;
}
.navbar a,
.login-nav a {
  text-decoration: none;
  font-family: "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  color: black;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar a:hover,
.login-nav a:hover {
  background-color: #f5f5f5;
  color: #333;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #4a90e2;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 80%;
}

.right-section {
  display: flex;
}

.dropdown {
  position: relative;
}

.dropbtn::after {
  content: "▼";
  font-size: 10px;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  max-width: 90vw;
  box-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.15);
  z-index: 1;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  box-sizing: border-box;
}
.dropdown:hover .dropdown-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  padding: 20px;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 350px;
  margin: 10px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background-color: white;
  cursor: pointer;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropdown-content a {
  text-decoration: none;
  color: inherit;
}

.dropdown-content a:hover::after {
  width: 0;
}

.dropdown-img {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  object-fit: cover;
  border-radius: 5px;
  margin: 5px;
  flex-shrink: 0;
}
.drop-description {
  margin-left: 10px;
}
.drop-title {
  margin-top: 0;
  padding: 2px 0;
  font-size: clamp(14px, 1.2vw, 15px);
  font-family: "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

.dropdown-item:hover .drop-title {
  color: #4a90e2;
}

.drop-text {
  margin-top: 0;
  padding: 2px 0;
  font-size: clamp(12px, 1vw, 13px);
  font-family: "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(96, 96, 96);
  line-height: 1.4;
}

/* Login/Signup Button Styles */
.login-nav ul {
  gap: 15px;
}

.login-nav li:first-child a {
  background-color: transparent;
  border: 2px solid #4a90e2;
  color: #4a90e2;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
}

.login-nav li:first-child a:hover {
  background-color: #4a90e2;
  color: white;
}

.login-nav li:last-child a {
  background-color: #4a90e2;
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  border: 2px solid #4a90e2;
}

.login-nav li:last-child a:hover {
  background-color: #3a7bc8;
  border-color: #3a7bc8;
}

.login-nav a::after {
  display: none;
}

.profile-greeting {
  display: flex;
  align-items: center;
}

.profile-greeting span {
  font-family: "Segoe UI Semilight", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 25px;
  background-color: #f5f5f5;
}

/* Mobile auth buttons - hidden on desktop */
.mobile-auth-buttons {
  display: none;
}

/* Mobile menu catchphrase - show on all screens */
.mobile-menu-catchphrase {
  display: block;
  text-align: center;
}

.mobile-menu-catchphrase h2 {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.mobile-menu-catchphrase p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  color: #666;
  margin: 5px 0 0 0;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-menu span {
  width: 30px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Large screens */
/* Large screens - slightly smaller styles */
@media (max-width: 1280px) {
  .main-logo {
    height: 60px;
    max-width: 180px;
  }

  .navbar a,
  .login-nav a {
    font-size: 14px;
    padding: 6px 10px;
  }

  .dropdown-item {
    max-width: 300px;
    padding: 12px;
  }

  .login-nav li:first-child a,
  .login-nav li:last-child a {
    padding: 6px 16px;
  }
}

/* Mobile and tablet styles - hamburger menu */
@media (max-width: 1100px) {
  .header {
    padding: 4px 15px;
    height: 70px;
  }

  .left-section {
    padding-left: 0;
  }

  .main-logo {
    width: clamp(95px, 20vw, 120px);
    height: auto;
    max-height: 66px;
  }

  .hamburger-menu {
    display: flex;
  }

  .middle-section {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .middle-section.active {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .navbar li {
    width: 100%;
  }

  .navbar a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
  }

  .dropdown:hover .dropdown-content {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* .dropdown.active .dropdown-content {
    display: grid;
    grid-template-columns: 1fr;
  }
*/
  .dropdown-item {
    width: 100%;
    max-width: 100%;
    margin: 5px 0;
    padding: 12px;
  }

  .dropdown-img {
    width: 50px;
    height: 50px;
  }

  .drop-title {
    font-size: 14px;
  }

  .drop-text {
    font-size: 12px;
  }

  /* Mobile auth buttons */
  .mobile-auth-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
  }

  .mobile-login-btn,
  .mobile-signup-btn {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    padding: 8px 0;
  }

  .mobile-user-greeting {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 0;
  }

  .mobile-login-btn:hover,
  .mobile-signup-btn:hover {
    color: var(--primary-color);
  }

  /* Mobile menu catchphrase - larger on mobile */
  .mobile-menu-catchphrase {
    padding: 20px 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
  }

  .mobile-menu-catchphrase h2 {
    font-size: 22px;
    margin: 0 0 8px 0;
  }

  .mobile-menu-catchphrase p {
    font-size: 14px;
  }

  .right-section {
    display: none;
  }

  .login-nav ul {
    gap: 15px;
  }

  .login-nav a {
    font-size: 13px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .header {
    height: 60px;
    padding: 4px 10px;
  }

  .main-logo {
    width: 78px;
    max-height: 58px;
    height: auto;
  }

  .hamburger-menu {
    width: 25px;
    height: 20px;
  }

  .hamburger-menu span {
    width: 25px;
    height: 2.5px;
  }

  .middle-section {
    top: 60px;
    max-height: calc(100vh - 60px);
    padding: 15px;
  }

  .navbar a {
    font-size: 15px;
    padding: 8px 0;
  }

  .dropdown-item {
    padding: 10px;
  }

  .dropdown-img {
    width: 45px;
    height: 45px;
  }

  .drop-title {
    font-size: 13px;
  }

  .drop-text {
    font-size: 11px;
  }

  .mobile-login-btn,
  .mobile-signup-btn {
    font-size: 15px;
  }

  .mobile-menu-catchphrase {
    padding: 15px 10px;
  }

  .mobile-menu-catchphrase h2 {
    font-size: 20px;
  }

  .mobile-menu-catchphrase p {
    font-size: 13px;
  }
}
