:root {
  --primary: #000000;
  --light: #fff;
  --dark: #333;
  --gray: #f4f4f4;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--light);
  color: var(--dark);
}

header {
  background: var(--primary);
  color: var(--light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center; 
  gap: 10px;
}

.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}


nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 3px 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--primary);
}

.mobile-menu a {
  color: white;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
}

.hero {
  padding: 2rem;
  text-align: center;
  background: var(--gray);
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.post-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.post-card .content {
  padding: 1rem;
}

footer {
  background: var(--gray);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.social-icons {
  margin-top: 0.5rem;
}

.social-icons a {
  color: var(--dark);
  margin: 0 8px;
  text-decoration: none;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.show {
    display: flex;
  }
}

.post-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.post-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: scale(1.02);
}

.post-card img {
  width: 100%;
  height: auto;
  display: block;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 12px 16px 8px;
  color: #333;
}

.post-card p {
  font-size: 1rem;
  margin: 0 16px 16px;
  color: #555;
}

.category-label {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  font-size: 12px;
  background-color: #d1e7dd;
  color: #0f5132;
  border-radius: 6px;
}
