*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7fafc;
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
}

.header {
  background: #2c3e50;
  color: #fff;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-logo {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
}

.header-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: auto;
}

.header-search input[type="search"] {
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.header-search input[type="text"] {
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.header-search button {
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.header-search button:hover {
  background: #1abc9c;
}

.hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-left: 1rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  background: #34495e;
  padding: 0.5rem 0;
  transition: max-height 0.3s;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  background: #1abc9c;
  color: #fff;
}

.hidden {
  display: none;
}

.main-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.home-section {
  background: #eaf6fb;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.06);
}

.home-section h2 {
  color: #2980b9;
  margin-bottom: 0.7rem;
}

.resources {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.05);
}

.resources h2 {
  color: #2c3e50;
  margin-bottom: 0.7rem;
}

.resources ul {
  list-style: disc inside;
  margin-left: 1rem;
}

.resources li {
  margin-bottom: 0.5rem;
}

#contact {
  background: #eaf6fb;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(41, 128, 185, 0.06);
}

#contact h2 {
  color: #2980b9;
  margin-bottom: 0.7rem;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

#contactForm label {
  font-weight: 500;
}

#contactForm input,
#contactForm textarea {
  padding: 0.5rem;
  border: 1px solid #b2bec3;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

#contactForm textarea {
  min-height: 80px;
}

#contactForm button {
  align-self: flex-start;
  background: #2980b9;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#contactForm button:hover {
  background: #1abc9c;
}

footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
}

@media (max-width: 800px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .main-content {
    padding: 0 0.5rem;
  }
}

@media (max-width: 600px) {
  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .header-search {
    width: 100%;
    margin-top: 0.5rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 1rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

.headername-link {
  color: #fff;
  text-decoration: none;
}