.content-section {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.content-wrapper {
  display: flex;
  width: 80%;
  margin: 0 auto;
  padding-top: 100px;
  justify-content: space-between;
}

/* Left Section Styling */
.content-left {
  width: 65%;
}

.content-left img {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.container-content-right {
  width: 33%;
}

.article-title {
  font-family: "Montserrat";
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.article-body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 30px;
}

.author {
  font-size: 16px;
  color: #888;
  font-style: italic;
  margin-top: 20px;
}

/* Right Section Styling */
.content-right {
  width: 100%;
  height: 800px;
  padding-left: 30px;
  border: 2px solid #42723d;
  padding-top: 20px;
}

.container-iklan {
  position: relative;
  width: 100%;
  margin-top: 100px;
  overflow: hidden;
}
.ad-slide {
  display: none;
  transition: opacity 1s ease;
}

.ad-slide.active {
  display: block;
  opacity: 1;
}

.container-iklan img {
  width: 100%;
  height: 300px;
}

.content {
  width: 100%;
}

.content-right h3 {
  margin-bottom: 30px;
  font-weight: 600;
  color: #42723d;
}

.recommendation-list {
  list-style: none;
  color: #42723d;
  padding: 0;
}

.recommendation-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.recommendation-item img {
  width: 40%;
  height: 200px;
  border-radius: 5px;
  margin-right: 15px;
}

.recommendation-item {
  width: 95%;
}

/* Untuk elemen <a> */
.recommendation-item a {
  text-decoration: none;
  font-size: 18px;
  color: #000000;
  font-weight: 600;
  display: -webkit-box; /* Gunakan box untuk layout */
  -webkit-box-orient: vertical; /* Orientasi kotak vertikal */
  -webkit-line-clamp: 3; /* Batasi hingga 3 baris */
  overflow: hidden; /* Sembunyikan teks yang berlebih */
  line-height: 1.5em; /* Tinggi setiap baris */
}

/* Untuk elemen <p> */
.recommendation-item p {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  display: -webkit-box; /* Gunakan box untuk layout */
  -webkit-box-orient: vertical; /* Orientasi kotak vertikal */
  -webkit-line-clamp: 3; /* Batasi hingga 3 baris */
  overflow: hidden; /* Sembunyikan teks yang berlebih */
  line-height: 1.5em; /* Tinggi setiap baris */
}

.recommendation-item:hover a {
  color: #f1c40f;
}

.other-articles-section {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  margin-bottom: 30px;
}

.container-artikel {
  width: 80%;
  margin: auto;
}

.article-cards {
  display: flex;
  width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 290px;
  height: 480px;
  margin: 10px;
  padding: 20px;
  display: flex;
}

.card img {
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.info-container {
  margin-bottom: auto; /* Push the info content to the top */
}

#article-pembungkus {
  display: flex;
}

.carousel {
  max-width: 100%; /* Membatasi lebar carousel agar tidak melebihi container */
  margin: auto;
  overflow: hidden;
}

.carousel-item.active {
  display: flex;
  justify-content: center;
}
.card h3 {
  font-size: 20px;
  margin: 10px 0;
  text-align: start;
  display: -webkit-box; /* Gunakan box untuk layout */
  -webkit-box-orient: vertical; /* Orientasi kotak vertikal */
  -webkit-line-clamp: 3; /* Batasi hingga 3 baris */
  overflow: hidden; /* Sembunyikan teks yang berlebih */
  line-height: 1.5em; /* Tinggi setiap baris */
}

#articleOtherContainer {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.card p {
  font-size: 14px;
  margin: 10px 0;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.5em;
}

.read-more {
  display: none; /* Initially hide */
  margin-top: 10px;
  color: #007bff;
  cursor: pointer;
}

.btn-custom-article {
  background-color: #f1c40f;
  border: none;
  color: white;
  width: 150px;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
}
.btn-artikel {
  background-color: #f9d541;
  border: none;
  width: 40%;
  padding: 10px 20px;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  margin-top: auto;
  transition: background-color 0.3s;
}

.btn-custom-article:hover {
  background-color: #e0b700;
}

.carousel-item {
  transition: transform 0.5s ease;
  max-width: 100%;
}

/* Dots (indicators) styling */
.carousel-indicators {
  position: relative;
  margin-top: 20px;
  justify-content: center;
}

.carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #bbb;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: #f1c40f;
}

.articles-container {
  display: flex;
}

.carousel-item-next,
.carousel-item-prev {
  display: flex !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev {
  left: 80px;
}

.carousel-control-next {
  right: 80px; /* Position from the right */
}

.article-kategori {
  background-color: #000000;
  color: #ffffff;
  padding: 5px;
  max-width: 15%;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}

.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;
  display: flex;
  position: relative;
  padding: 10px;
  width: fit-content;
  border-radius: 10px;
  text-align: center;
  justify-content: center;
}

/* Responsive styles */
@media (max-width: 1330px) {
  .container-artikel {
    width: 95%;
    margin: auto;
  }

  .container-content-right {
    width: 38%;
  }

  .card {
    width: 28%;
  }

  .content-left {
    width: 60%;
    padding-left: 10px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-body p {
    font-size: 16px;
  }

  .content-right {
    width: 100%;
    padding-top: 50px;
  }

  .content-section {
    padding: 50px 0;
  }

  .other-articles-section {
    width: 100%;
  }

  .btn-custom-article {
    width: 90%;
  }

  .recommendation-list {
    width: 100%;
  }

  .carousel-control-prev {
    left: 0; /* Position from the left */
  }

  .carousel-control-next {
    right: 0; /* Position from the right */
  }
}

@media (max-width: 992px) {
  .container-artikel {
    width: 95%;

    margin: auto;
  }

  .container-content-right {
    width: 40%;
  }

  .content-left {
    width: 50%;
    padding-left: 10px;
  }

  .card {
    width: 40%;
  }

  .carousel-indicators {
    margin-top: 80px;
  }

  .card h3 {
    font-size: 16px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-body p {
    font-size: 16px;
  }

  .content-right {
    width: 100%;
    padding-top: 50px;
  }

  .content-section {
    padding: 50px 0;
  }

  .other-articles-section {
    width: 100%;
  }

  .btn-custom-article {
    width: 90%;
  }

  .recommendation-list {
    width: 100%;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 10%;
  }
  .carousel-control-prev {
    left: 0; /* Position from the left */
  }

  .carousel-control-next {
    right: 0; /* Position from the right */
  }
}

@media (max-width: 767px) {
  .container-artikel {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: auto;
  }

  .container-content-right {
    width: 100%;
  }

  .content-left {
    width: 90%;
    margin-bottom: 100px;
  }

  .carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto;
  }

  .carousel-indicators {
    margin-top: 0;
  }

  .card {
    width: 320px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-body p {
    font-size: 16px;
  }

  .content-right {
    width: 90%;
    margin: auto;
    padding-top: 50px;
  }

  .content-section {
    padding: 50px 0;
  }

  .btn-custom-article {
    width: 50%;
  }

  .other-articles-section {
    width: 100%;
  }

  .row {
    display: flex;
    gap: 40px;
  }

  .carousel-control-next {
    right: 15px;
  }

  .carousel-control-prev {
    left: 15px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .container-artikel {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: auto;
  }

  .container-content-right {
    width: 100%;
  }

  .content-left {
    width: 90%;
    margin: auto;
  }

  .carousel-indicators {
    margin-top: 0;
  }

  .article-title {
    font-size: 28px;
  }

  .carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto;
  }

  .card {
    width: 250px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .article-body p {
    font-size: 16px;
  }

  .content-right {
    width: 90%;
    margin-top: 100px;
    padding-top: 50px;
  }

  .content-right h3 {
    font-size: 24px;
  }

  .content-section {
    padding: 50px 0;
  }

  .other-articles-section {
    width: 100%;
  }

  .carousel-control-next {
    right: 10px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    padding: 15px;
  }

  .btn-custom-article {
    width: 60%;
  }
}

@media (min-width: 1330px) and (max-width: 1650px) {
  .container-artikel {
    width: 80%;
    margin: auto;
  }

  .container-content-right {
    width: 38%;
  }

  .card {
    width: 220px;
  }

  .carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto;
  }

  .content-left {
    width: 60%;
    padding-left: 10px;
  }

  .article-title {
    font-size: 32px;
  }

  .article-body h2 {
    font-size: 26px;
  }

  .article-body p {
    font-size: 16px;
  }

  .content-right {
    width: 100%;
    padding-top: 50px;
  }

  .content-section {
    padding: 50px 0;
  }

  .other-articles-section {
    width: 100%;
  }

  .btn-custom-article {
    width: 90%;
  }

  .recommendation-list {
    width: 100%;
  }

  .carousel-control-prev {
    left: 0; /* Position from the left */
  }

  .carousel-control-next {
    right: 0; /* Position from the right */
  }
}

@media (min-width: 1651px) {
  .carousel {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: auto;
  }

  .card {
    width: 250px;
  }
}
