/* ===== Font + Reset (ORIGINAL) ===== */
body {
  font-family: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  background-color: #111822;
  padding: 10px 20px;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center; /* 🔥 RESTORED */
  align-items: center;
  position: relative;
}

.header-logo {
  max-width: 200px;
  height: auto;
}

/* ===== Toggle Button (ORIGINAL BEHAVIOR) ===== */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px; /* 🔥 keeps mobile alignment */
}

/* ===== Navbar ===== */
.navbar {
  background-color: #7a1c1a;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: center;
  padding: 10px 20px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 20px;
  padding: 10px 0;
}

/* LINKS — ORIGINAL COLORS */
.nav-menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: #ffcccc;
  transform: scale(1.05);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease-in-out;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ===== Search (100% ORIGINAL LOOK) ===== */
.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  filter: brightness(0) invert(1);
}

.nav-search-form {
  display: none;
  position: absolute;
  top: -8px;
  left: 34px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease forwards;
  z-index: 10;
  align-items: center;
}

.nav-search-form input {
  padding: 5px 10px;
  border: none;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
  font-size: 13px;
}

.nav-search-form button {
  margin-left: 8px;
  padding: 5px 12px;
  background-color: #ffffff;
  color: #7a1c1a;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.nav-search-form input::placeholder {
  color: #ffffff;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== MOBILE ONLY — DO NOT AFFECT DESKTOP ===== */
@media (max-width: 768px) {

  .header-inner {
    justify-content: space-between; /* 🔥 mobile only */
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #7a1c1a;
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }
}

/* ===== Responsive Logo Scaling ===== */

/* Tablets */
@media (max-width: 1024px) {
  .header-logo {
    max-width: 180px;
  }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
  .header-logo {
    max-width: 161px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .header-logo {
    max-width: 149px;
  }
}

/* At the END of header.css */
.header,
.navbar,
.navbar nav,
.navbar nav a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
