@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #f9fafb;
  color: #333;
}

.btn {
  background-color: #4f46e5;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  background-image: url("images/sejarahhero.png");
  background-size: cover;
  background-position: center;
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 9, 26, 0.8);
  z-index: 0;
}

.hero h1 {
  position: relative;
  font-size: 3rem;
  font-weight: 800;
  z-index: 1;
}

.timeline {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.event {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.event img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
  height: auto;
}

.event-content {
  flex: 1;
  padding: 1.5rem;
}

.event-content h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.event-content p {
  margin: 0;
  font-size: 1rem;
}

footer {
  background-color: #15091A;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .event {
    flex-direction: column;
    align-items: flex-start; /* opsional, jika ingin konten lebih tengah */
  }

  .event img {
    width: 100%;
    max-width: 100%; /* agar gambar isi container */
    height: auto;
  }

  .event-content {
    width: 100%;
    padding: 1.5rem;
    text-align: left; /* atau center jika kamu mau tengah */
  }
}
