/* =====================================================
   RESET / BASE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */
header {
  width: 100%;
  background-color: #f7f9ff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
}

.navbar-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

/* =====================================================
   LOGO
===================================================== */
.logo {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
}

/* =====================================================
   NAV SCROLLER
===================================================== */
.nav-wrapper {
  overflow-x: auto;
  flex: 1;
  margin-left: 20px;
  cursor: grab;
}

.nav-wrapper::-webkit-scrollbar {
  height: 5px;
}

.nav-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

/* =====================================================
   NAV LINKS
===================================================== */
nav {
  display: flex;
  gap: 15px;
  white-space: nowrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: bolder;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0073aa;
}

/* =====================================================
   GLOBAL SEARCH
===================================================== */
#global-search-icon {
  font-size: 22px;
  cursor: pointer;
  user-select: none;
}

/* Overlay */
#global-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 99999;
}

/* Search Box */
.search-box {
  max-width: 600px;
  margin: 80px auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

#global-search-input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: none;
  outline: none;
  border-bottom: 1px solid #eee;
}

#global-search-results {
  max-height: 400px;
  overflow-y: auto;
}

#global-search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none;
  color: #0073aa;
  font-size: 15px;
}

#global-search-results a:hover {
  background: #f4f8ff;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-wrapper {
    width: 100%;
    margin-left: 0;
  }

  nav {
    gap: 10px;
    padding: 5px 0;
  }

  nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}