body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background: #fff;
  color: #111;
}

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

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

.hero-content {
  position: relative;
  z-index: 1; /* Pastikan teks di atas overlay */
}

.sejarah-hero {
  background-image: url("../images/sejarah-hero.jpg");
}

.visi-hero {
  background-image: url("../images/visi-hero.jpg");
}

.container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; */
}

.timeline-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.timeline-item img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.timeline-item .text {
  flex: 1;
}

.visi,
.misi {
  margin-top: 40px;
}

.misi ol {
  padding-left: 20px;
}

.footer {
  background-color: #1a1237;
  color: white;
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info,
.footer-qr {
  flex: 1 1 45%;
  text-align: left;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 150px;
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
  }

  .timeline-item img {
    max-width: 100%;
  }

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

  .footer-container {
    flex-direction: column;
    align-items: flex-start; /* rata kiri */
    text-align: left; /* pastikan teks juga kiri */
    gap: 1.5rem;
  }

  .footer-info,
  .footer-qr {
    flex: 1 1 100%;
    width: 100%;
  }

  .footer-qr {
    text-align: left; /* Pastikan tetap kiri */
  }

  .footer-qr img {
    margin: 1rem 0;
  }
}

.jadwal-ibadah {
  padding: 1rem 2rem;
  margin-top: 0;
  background-color: #fff;
  text-align: center;
}

.jadwal-ibadah h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.ibadah-card {
  max-width: 800px; /* 🔽 batasi lebar card */
  margin: 1.5rem auto; /* tengah dan beri spasi antar card */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.ibadah-card img {
  width: 50%;
  object-fit: cover;
}

.ibadah-info {
  background-color: #f9f9f9;
  padding: 1.5rem;
  width: 60%;
  text-align: left;
}

.ibadah-info h3 {
  background-color: #2e0834;
  color: white;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  padding: 1rem;
  border-bottom: 2px solid #ccc;
  border-radius: 0 0 12px 0;
}

.ibadah-detail p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: white;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.title-section {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.section-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding: 0 2rem;
}

.section-footer a {
  color: #3366cc;
  text-decoration: none;
  font-weight: bold;
}
