/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f6;
  margin: 0;
  padding: 0;
}

h1, h2, p {
  margin: 0;
  padding: 0;
}


/* Hero Section */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("/img/tema/header-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden; /* Menjaga agar tidak ada elemen yang melampaui hero */
}

#hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 40%;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgb(255, 255, 255) 20%,
    rgba(255, 255, 255, 0) 50%
  );
  z-index: 1; /* Pastikan di bawah konten */
}

#hero .content {
  position: relative; /* Untuk memastikan konten berada di atas pseudo-element */
  padding: 1.4rem 7%;
  max-width: 60rem;
  z-index: 2;
}

#hero .content h1 {
  font-size: 4em;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

#hero .content h1 span {
  color: #000000;
  text-shadow: 1px 1px 3px rgb(255, 255, 255);
}

#hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);
}

#hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #ffffff;
  background-color: #3B82F6;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}


#productModal {
    overflow-y: auto;
    z-index: 1050; /* Pastikan modal berada di atas elemen lain */
}

#productModal > div {
    max-height: 80vh; /* Membatasi tinggi modal agar tidak melebihi layar */
    overflow-y: auto; /* Mengizinkan scroll vertikal jika konten terlalu tinggi */
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 1040; /* Pastikan tombol navigasi berada di bawah modal */
}

/* Mengatur warna ikon navigasi pada kartu produk dan modal menjadi gelap */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #333; /* Gelap */
}

.carousel-control-prev,
.carousel-control-next {
    filter: invert(1); /* Agar ikon tetap jelas terlihat pada background gelap */
}

#productModal .carousel-control-prev-icon,
#productModal .carousel-control-next-icon {
    background-color: #333; /* Gelap */
}


/* Article Content */
.article-content {
  padding: 20px;
  background: white;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-content .container {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Article Image */
.article-image {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Article Title */
.article-title {
  font-size: 2.5rem;
  margin-top: 20px;
  color: #333;
  font-weight: 700;
}

/* Article Date */
.article-date {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

/* Article Body */
.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin-bottom: 30px;
}

/* Back Link */
.back-link {
  text-decoration: none;
  color: #007BFF;
  font-size: 1rem;
  font-weight: 600;
}

.back-link:hover {
  color: #0056b3;
}

/* Article List Sidebar */
.article-list-container {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  width: 100%;
}

.article-list-container h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 15px;
}

#article-list {
  list-style-type: none;
  padding-left: 0;
}

.article-link {
  text-decoration: none;
  font-size: 1.1rem;
  color: #333;
  transition: color 0.3s;
}

.article-link:hover {
  color: #007bff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .article-content {
    padding: 15px;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-image {
    width: 100%;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-list-container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 1.7rem;
  }

  .article-body {
    font-size: 0.95rem;
  }
}
