/* =========================================================
   GENERAL CONTAINER
========================================================= */
.container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 0px;
  flex-wrap: nowrap;
}

.included-header {
  width: 100%;
}

/* =========================================================
   TOP BAR
========================================================= */
.top-bar {
  background-color: #F8F9FA;
  width: 100%;
  padding: 8px 20px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-content span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.divider {
  color: #ccc;
}

.icon {
  height: 16px;
  width: auto;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  background-color: #fff;
  width: 100%;
  padding: 20px 2;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* =========================================================
   LOGO
========================================================= */
.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

/* =========================================================
   NAVIGATION LINKS
========================================================= */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links a {
  position: relative;
  color: #5D6B72;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  overflow: hidden;
  padding-bottom: 4px; /* give space for underline */
}

/* Persistent underline for active item */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #E74F54;
  z-index: 1; /* ensure visible */
}

/* Hover animation line (under text) */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* under the text */
  width: 100%;
  height: 2px;
  background-color: #E74F54;
  transform: translateY(-100%); /* start above the underline zone */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 0; /* stay behind active underline */
}

.nav-links a:hover::before {
  transform: translateY(0); /* slide down to bottom */
  opacity: 1;
}


/* Colors */
.nav-links a:hover,
.nav-links a.active {
  color: #E74F54;
}


/* =========================================================
   DROPDOWN MENU
========================================================= */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: #5D6B72;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.dropbtn:hover {
  color: #E74F54;
}

.arrow {
  display: inline-block;
  transform: rotate(90deg);
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin-top: 2px; /* Align icon vertically */
}

.dropdown:hover .arrow {
  transform: rotate(-90deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  border-top: solid 2px #E74F54;
  min-width: 200px;
  background-color: #0a0a0a ;
  z-index: 1000;
  flex-direction: column;
}

.dropdown-content a {
  color: white;
  border-bottom: solid 1px white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #888;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* =========================================================
   AUTHENTICATION BUTTONS
========================================================= */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn-login,
.btn-signup {
  width: 180px;
  height: 48px;
  border: 1px solid #E74F54;
  background: transparent;
  color: #E74F54;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-top-left-radius: 16px;
  border-bottom-right-radius: 16px;
  white-space: nowrap;
}

.btn-login {
  border: none;
}

.btn-login:hover {
  border: 1px solid #E74F54;
}

.btn-signup:hover {
  background-color: #E74F54;
  color: #fff;
}

/* =========================================================
   MOBILE MENU TOGGLE
========================================================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* =========================================================
   HEADER ICONS
========================================================= */
.header-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   SEARCH INPUT ANIMATION
========================================================= */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input { 
  position: fixed;
    top: 20%;
    left: 30%;
    opacity: 0;
    color: white;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid white;
    padding: 0.8% 3%;
    font-size: 0.9rem;
    background: #00000090!important;
    z-index: 3000;
    width: 39%;
}


.search-input::placeholder {
  color: white;
  font-size: 18px;
}

.search-container.active .search-input {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   MOBILE TOP BAR (VISIBLE ONLY IN MENU)
========================================================= */
.mobile-top-bar {
  padding: 10px 0;
  display: flex;
  justify-content: center;
  border-top: 1px solid #eee;
}

.mobile-auth {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
  border-top: 1px solid #eee;
}
