@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .posts {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .main-menu ul li a {
    display: block;
    padding: 8px 0;
  }

  .hero-img {
    height: 250px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  main {
    flex-direction: column;
  }

  .posts {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    width: 100%;
    margin-top: 20px;
  }

  .hero-img {
    height: 300px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 1025px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }

  main {
    flex-direction: row;
  }
}
