* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: #f7f9fb; color: #333; }
.container { max-width: 1200px; margin: auto; padding: 20px; }
.news-item { margin-bottom: 20px; overflow: hidden; }
.thumb { width: 100px; float: left; margin-right: 10px; object-fit: cover; }
header { background: #0c2d48; padding: 10px 0; }
.site-logo { height: 100px; }
a { text-decoration: none; color: #0066cc; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: 20px;
}
.nav-menu li a {
  text-decoration: none;
  color: white;
  padding: 6px 10px;
}
.nav-menu li a.active {
  background: #1e88e5;
  border-radius: 4px;
}
nav { display: flex; justify-content: space-between; align-items: center; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { color: white; text-decoration: none; font-weight: 500; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5em; font-weight: bold; }
.logo-icon { width: 30px; height: 30px; background: #f5d300; border-radius: 50%; display: inline-block; }
main { margin-top: 40px; }
.footer { background: #0c2d48; color: white; text-align: center; padding: 20px; margin-top: 40px; }

.hero {
  background: #e8f5fc;
  padding: 60px 20px;
  text-align: center;
}
.hero2 {
  background: #e8f5fc;
  padding: 60px 20px;
  text-align: left;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.hero button {
  padding: 10px 20px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}
.news h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.article {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.article img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
}
.article h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.article p {
  font-size: 0.95rem;
  color: #555;
}
.ad {
  background: #ddd;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  margin-top: 30px;
  border-radius: 6px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}
.hero-text {
  flex: 1;
  min-width: 250px;
}
.hero-img {
  max-width: 250px;
  flex-shrink: 0;
}
.tip {
  margin-bottom: 30px;
}
.tip-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
}
        form { max-width: 400px; margin: 0 auto; text-align: left;}
        input { width: 100%; padding: 10px; margin-bottom: 10px; }
        .error { color: red; }
        .success { color: green; }