/* Hero Section styles */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  width: 35%;
  display: flex;
  flex-direction: column;
  color: #fff;
  z-index: 3;
  gap: 30px;
  padding: 0 20px;
  margin-left: 150px;
}

.hero-section h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 24px;
  margin-bottom: 2rem;
}

.btn-selengkapnya {
  background-color: #f9d541;
  color: #ffffff;
  width: 40%;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.btn-selengkapnya:hover {
  background-color: #ffdd55;
}

/* Center the search container */
.search-container {
  margin: 30px auto; /* Centers the container horizontally */
  width: 30%; /* Adjust width as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Positioning for the icon */
}

/* Position the search icon inside the input */
.search-icon {
  position: absolute;
  left: 15px; /* Icon position on the left inside the input */
  font-size: 16px;
  color: #777;
  pointer-events: none; /* Prevent interaction with the icon */
}

/* Styling for the search input */
.search-input {
  width: 100%;
  padding: 10px 15px;
  padding-left: 40px; /* Add space for the icon */
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  box-sizing: border-box; /* Ensure padding is accounted for */
}

.artikel-terbaru h1 {
  width: 50%;
}

.articles-grid {
  display: flex;
  gap: 120px;
  padding: 50px 0;
  justify-content: center;
}

.outer-card {
  background-color: #41713d;
  border-radius: 15px;
  padding: 15px 0;
  width: 360px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.outer-card:hover {
  transform: scale(1.03);
}

/* Inner article card */
.article-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 10px;
  position: relative;
  width: 360px;
  height: 420px;
  left: 5%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 15px;
}

.article-card img {
  width: 100%;
  height: 200px;
}

.article-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-content h5 {
  font-size: 18px;
  color: #333;
  margin: 10px 0;
}

.clam {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.date {
  font-size: 14px;
  color: #999;
}

.read-btn {
  background-color: #f9d541;
  border: none;
  width: 40%;
  padding: 10px 20px;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  margin-top: auto; /* Menempatkan tombol di paling bawah */
  transition: background-color 0.3s;
}

.read-btn:hover {
  background-color: #ffdd55;
  color: #fff;
  text-decoration: none;
}

.text-center .btn-lg {
  background-color: #f9d541;
  color: #fff;
  padding: 10px 30px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.text-center .btn-lg:hover {
  background-color: #ffdd55;
}

.btn-warning {
  color: white;
  border-radius: 20px;
}

.rekomendasi-artikel {
  width: 70%;
  margin: 0 auto;
}
.rekomendasi-artikel h1 {
  color: #2e7d32;
  margin: 20px 0;
}

.rekomendasi-artikel {
  width: 70%;
  margin: 0 auto;
}
.rekomendasi-artikel h2 {
  font-size: 30px;
  margin: 10px 0;
  text-align: start;
  display: -webkit-box; /* Gunakan box untuk layout */
  -webkit-box-orient: vertical; /* Orientasi kotak vertikal */
  -webkit-line-clamp: 2; /* Batasi hingga 3 baris */
  overflow: hidden; /* Sembunyikan teks yang berlebih */
}
.rekomendasi-artikel-card {
  background-color: white;
  border-radius: 8px;
  display: flex;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.rekomendasi-active {
  opacity: 1;
  transform: translateY(0);
}

.rekomendasi-artikel-card.slide-in {
  transform: translateY(-10px);
  opacity: 0;
}

.rekomendasi-artikel-content {
  flex: 1;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}
.rekomendasi-artikel-text {
  flex-grow: 1;
}
.rekomendasi-artikel-card .img-container {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  overflow: hidden;
}
.rekomendasi-artikel-card img {
  width: 100%;
  height: 100%;
}
.rekomendasi-artikel-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}
.rekomendasi-artikel-card p {
  font-size: 16px;
  margin: 10px 0;
  display: -webkit-box; /* Gunakan box untuk layout */
  -webkit-box-orient: vertical; /* Orientasi kotak vertikal */
  -webkit-line-clamp: 2; /* Batasi hingga 3 baris */
  overflow: hidden; /* Sembunyikan teks yang berlebih */
  line-height: 1.5em; /* Tinggi setiap baris */
}
.rekomendasi-artikel-card .meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}
.rekomendasi-artikel-card .read-more {
  display: inline-block;
  background-color: #f9d541;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  align-self: flex-start;
  margin-top: auto;
}

.rekomendasi-artikel-card .read-more:hover {
  background-color: #ffdd55;
}

.pagination button,
.pagination a {
  border: none;
  outline: none;
  background-color: transparent;
  color: #000000;
  padding: 8px 12px;
  cursor: pointer;
}

.pagination button:hover,
.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination button:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.pagination a.active {
  background-color: #ffdd55;
  color: white;
  border-radius: 4px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  margin: 14px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  padding: 20px;
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kategori1 {
  background-color: #000000;
  color: #ffffff;
  display: flex;
  position: relative;
  padding: 10px;
  width: fit-content;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}

.kategori2 {
  background-color: #000000;
  color: #ffffff;
  padding: 10px;
  width: fit-content;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}

.billboard {
  width: 100%;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

.billboard-carousel-inner {
  position: relative;
  width: 100%;
  height: 200px;
}

.billboard-img {
  width: 50%;
  display: flex;
  margin: auto;
  height: auto;
  min-height: 200px;
}

.billboard-carousel-item {
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.billboard-carousel-item.active {
  display: block;
}

.info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive styles */
@media (max-width: 1280px) {
  .hero-content {
    width: 60%;
    margin: 0 0 0 50px;
  }

  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section p {
    font-size: 24px;
  }
  .btn-selengkapnya {
    font-size: 16px;
    width: fit-content;
  }
  .artikel-terbaru {
    width: 100%;
  }

  .search-container {
    width: 70%;
  }

  .artikel-terbaru h1 {
    width: 100%;
    font-size: 36px;
  }
  .articles-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
  }

  .outer-card {
    width: 300px;
  }

  .article-card {
    width: 100%;
  }

  .rekomendasi-artikel h1 {
    font-size: 36px;
    text-align: center;
  }

  .rekomendasi-artikel {
    width: 100%;
  }
  .rekomendasi-artikel-card {
    width: 85%;
    margin: 20px auto;
  }

  .rekomendasi-artikel-card h2 {
    font-size: 22px;
  }
  .read-btn {
    width: fit-content;
  }
}

@media (max-width: 992px) {
  .hero-content {
    width: 70%;
    margin: 0 0 0 50px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section p {
    font-size: 24px;
  }
  .btn-selengkapnya {
    font-size: 16px;
    width: fit-content;
  }
  .artikel-terbaru {
    width: 100%;
  }

  .search-container {
    width: 50%;
  }

  .artikel-terbaru h1 {
    width: 100%;
    font-size: 36px;
  }
  .articles-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
  }

  .article-card {
    width: 100%;
  }

  .rekomendasi-artikel h1 {
    font-size: 36px;
    text-align: center;
  }

  .rekomendasi-artikel {
    width: 100%;

    gap: 30px;
  }
  .rekomendasi-artikel-card {
    width: 95%;
    margin: 20px auto;
  }

  .rekomendasi-artikel-card h2 {
    font-size: 22px;
  }
  .read-btn {
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .hero-content {
    width: 70%;
    margin: 0 0 0 50px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .billboard-img {
    width: 80%;
    min-height: 150px;
  }

  .hero-section p {
    font-size: 18px;
  }
  .btn-selengkapnya {
    font-size: 16px;
    width: fit-content;
  }
  .artikel-terbaru {
    width: 100%;
  }

  .search-container {
    width: 70%;
  }

  .artikel-terbaru h1 {
    width: 100%;
    font-size: 28px;
  }
  .articles-grid {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
  }

  .outer-card {
    width: 300px;
  }

  .article-card {
    width: 100%;
  }

  .rekomendasi-artikel h1 {
    font-size: 28px;
    text-align: center;
  }

  .rekomendasi-artikel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .rekomendasi-artikel-card {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: 20px auto;
  }

  .rekomendasi-artikel-card h2 {
    font-size: 22px;
  }

  .rekomendasi-artikel-content {
    padding: 10px 0;
  }

  .rekomendasi-artikel-card .img-container {
    width: 100%;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 0;
  }
  .read-btn {
    width: fit-content;
  }
}

@media (max-width: 450px) {
  .hero-content {
    width: 100%;
    margin: 120px 0 0 0;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-section p {
    font-size: 16px;
  }
  .btn-selengkapnya {
    font-size: 16px;
    width: fit-content;
  }
  .artikel-terbaru {
    width: 100%;
  }

  .billboard-img {
    width: 95%;
    min-height: 120px;
  }

  .search-container {
    width: 90%;
  }
  .outer-card {
    width: 65%;
  }

  .artikel-terbaru h1 {
    width: 100%;
    font-size: 28px;
  }
  .rekomendasi-artikel h1 {
    font-size: 28px;
    text-align: center;
  }

  .rekomendasi-artikel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .rekomendasi-artikel-card {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 20px auto;
  }

  .rekomendasi-artikel-card h2 {
    font-size: 22px;
  }

  .rekomendasi-artikel-content {
    padding: 10px 0;
  }

  .rekomendasi-artikel-card .img-container {
    width: 100%;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 0;
  }

  .read-btn {
    width: fit-content;
  }

  .pagination {
    gap: 10px;
  }

  .pagination a {
    padding: 6px 12px;
  }
}

@media (min-width: 1281px) {
}
