/* ─── BASE & RESET ─── */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f6f7fb;
  color: #222;
  line-height: 1.65;
}

a { text-decoration: none; }

/* ─── HEADER ─── */
.header {
  background: linear-gradient(90deg, #1275e0 60%, #4fb7ff 100%);
  color: #fff;
  box-shadow: 0 4px 15px #1274e04a;
  padding: 0;
}

.header .container {
  max-width: 1140px;
  margin: 0 auto;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: #fff;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-size: 1.12em;
  padding: 8px 20px;
  border-radius: 5px;
  transition: background 0.23s;
}

.nav a:hover {
  background: #195eae;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  height: 38px;
  width: 38px;
  margin-left: 10px;
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── SEARCH OVERLAY ─── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 40px;
}
.search-overlay.active { display: flex; }

.search-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.search-box input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #dce3ed;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  margin-bottom: 14px;
}
.search-box input:focus { border-color: #1275e0; }

.search-results { max-height: 350px; overflow-y: auto; }
.search-result-item {
  display: block;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.search-result-item:hover { background: #eaf6ff; }
.search-result-item h4 { font-size: 15px; color: #1275e0; margin: 0 0 4px; }
.search-result-item p { font-size: 13px; color: #70788a; margin: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .header .container { padding: 0 13px; }
  .logo { font-size: 1rem; }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1275e0;
    flex-direction: column;
    align-items: center;
    width: 100%;
    display: none;
    z-index: 99;
  }
  .nav a {
    padding: 16px;
    font-size: 1.22em;
    border-bottom: 1px solid #1d374d;
  }
  .container { position: relative; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .hamburger { display: flex; }
  .header .container { justify-content: space-between; }
}

@media (max-width: 600px) {
  .logo { font-size: 1.33em; }
  .header .container { height: 55px; padding: 0 16px; }
  .nav a { font-size: 1.4em; }
}

@media (max-width: 1175px) {
  .logo { font-size: 1.5rem; }
}
