/* ============================ 
   HEADER - P_SMmob Theme (Final Responsive)
============================ */
.site-header {
  width: 100%;
  background: #00008B;
  font-family: "Poppins", sans-serif;
  border-bottom: 1px solid #ddd;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: #1E90FF;
  color: #f5f5f5;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid #333;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-menu li a {
  color: #f5f5f5;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 25px;
  background: #2b2b2b;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.topbar-menu li a:hover {
  background: #007bff;
  color: #fff;
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
}

/* ---------- Main Header ---------- */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.logo {
  display: flex;
  align-items: center;
  padding: 0;
}

.site-branding img {
  max-height: 78px;
  width: auto;
}

.site-tagline {
  font-size: 21px;
  font-weight: 500;
  color: #FF5722;
  margin: 0;
}

.header-gap {
  flex: 1;
}

.header-search {
  display: flex;
  justify-content: flex-end;
}

.header-searchbox {
  max-width: 320px;
  width: 100%;
}

/* ---------- Primary Menu (Tab Style) ---------- */
.main-navigation {
  background: #1E90FF;
  border-top: 2px solid #007bff;
  border-bottom: 3px solid #007bff;
  box-shadow: inset 0 1px 0 #333;
}

.primary-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  gap: 10px;
}

.primary-menu a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
  background: #3a3a3a;
  padding: 8px 18px;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: #FF5722;	// tab background
  color: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 992px) {
  .site-tagline {
    font-size: 18px;
  }

  .primary-menu a {
    font-size: 14px;
    padding: 7px 14px;
  }

  .site-branding img {
    max-height: 70px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-bar .container,
  .main-header {
    flex-direction: column;
    text-align: center;
  }

  .header-searchbox {
    max-width: 90%;
    margin-top: 10px;
  }

  /* Hide primary menu for mobile */
  .main-navigation {
    display: none;
  }

  .site-tagline {
    font-size: 16px;
  }
}
