/* ===============================
   HEADER LAYOUT (SAFE & GLOBAL)
================================ */

.ms-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10000;
}

/* Header container */
.header-flex {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ms-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
}

/* ===============================
   LOGO
================================ */

.logo-block {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
}

.site-title {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.site-tagline {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

/* ===============================
   GLOBAL SEARCH (HEADER)
================================ */

.header-search {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-search-form {
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid #ccc;
  outline: none;
}

.header-search-form input:focus {
  border-color: #0077cc;
}

.header-search-form button {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  background: #0077cc;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.header-search-form button:hover {
  background: #005fa3;
}

/* ===============================
   ACCOUNT / NAV
================================ */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
  .header-flex {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search-form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .site-title {
    font-size: 22px;
  }

  .site-tagline {
    font-size: 12px;
  }

  .header-search-form input {
    font-size: 14px;
    padding: 10px 14px;
  }

  .header-search-form button {
    padding: 10px 16px;
    font-size: 13px;
  }
}
