.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.btn, .btn-outline {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: bold;
}

.btn {
  background: #fff;
  color: #2575fc;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
  
  #latest-posts {
    background-color: black;
    padding: 5rem;
    border-radius: 10px;
    width: 80rem;
    
    margin: -2rem auto 2rem auto;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.4);
  }
  
  #latest-posts h2 {
    text-align: center;
    color: #fff;
  }

 

  
  #latest-posts ul {
    list-style: none;
    margin: 1rem;
    padding: 5rem;
    display: flex;
    gap: 1rem;
  }
  
  #latest-posts li {
    display: flex;
  }

  .post a {
    height: 25rem;
    transform: scale(1,1);
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    background-color: white;
  }

  /* Responsive styles */
@media (max-width: 1200px) {
  #latest-posts {
    width: 95vw;
    padding: 3rem 1rem;
  }
  #latest-posts ul {
    padding: 2rem 0.5rem;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2rem;
  }
  #latest-posts {
    padding: 2rem 0.5rem;
  }
  #latest-posts ul {
    gap: 0.5rem;
    padding: 1rem 0.25rem;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 2rem 0.5rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  #latest-posts {
    width: 100vw;
    border-radius: 0;
    margin: 0;
    padding: 1rem 0.25rem;
  }
  #latest-posts ul {
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
  }
  #latest-posts li {
    justify-content: center;
  }
  .post a {
    height: auto;
    min-height: 12rem;
    width: 100%;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem 0.25rem;
  }
  .hero h1 {
    font-size: 1.1rem;
  }
  .btn, .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  #latest-posts {
    padding: 0.5rem 0.1rem;
  }
}




