
.content-news {
  display: flex;
  justify-content: space-between;
  max-height: 80vh; 
  overflow-y: auto;
  width: 75%;
  margin-left: auto;
  margin-right: 0;
}


.judul-utama {
  color: #000; 
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin: 0;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  height: 8vh;
  font-size: 40px;
  margin-bottom: 10px;
}

.tanggal-judul {
  margin-top: 2%;
  margin-bottom: 2%;
}

.read-more-posisi {
  margin-top: 1.5%;
}

.latest-news-border {
  width: 95%;
  height: 77vh;
  border-radius: 10px;
  /* overflow: auto;  */
  background-color: #fff;
  margin: auto;
}


.latest-news-border::-webkit-scrollbar-thumb {
  background-color: #e0e0e0; /* Warna scrollbar */
  border-radius: 20px; /* Bentuk ujung scrollbar */
}

.latest-news-container {
  width: 100%;
}

.latest-news-article {
  margin-bottom: 20px;
  /* border-bottom: 1px solid #ddd; */
  overflow: hidden;
  height: auto;
}

.latest-news-article:last-child {
  border-bottom: none;
}

.latest-news-article img {
  width: 30%;
  height: 23vh;
  object-fit: cover;
  float: left;
  border-radius: 10px;
  opacity: 0.7; /* Set opasitas awal */
  transition: opacity 0.3s; /* Menambahkan transisi untuk efek fadeIn */
}

.latest-news-article:hover img {
  opacity: 1; /* Meningkatkan opasitas saat hover */
}

.article-content {
  padding: 15px;
  overflow: hidden;
}

.article-content h3 {
  margin-top: 0;
}

.read-more-button {
  display: inline-block; /* Mengubah display ke inline-block agar lebar sesuai kontennya */
  margin-top: 10px;
  padding: 4px 6px;
  background-color: #088db6;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  width: auto; /* Menyesuaikan lebar sesuai kontennya */
  
}
.readmore-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3498db;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
}

.read-more-button:hover {
  background-color: #a80564;
}

.latest-news-wrapper {
  width: 70%; /* Lebar elemen 70% dari lebar layar */
  height: 93vh; /* Tinggi elemen 100% dari tinggi layar */
  margin: auto; /* Membuat elemen berada di tengah halaman */
  padding: 30px; /* Menambahkan padding di luar elemen */
  margin-top: 2%;
  border-radius: 20px; /* Menambahkan border-radius untuk membuat bingkai bulat */
  background-color: #ffffff; /* Warna latar belakang */
  /* border: 2px solid #000000; Border dengan ketebalan 2px dan warna hitam */
  box-sizing: border-box; /* Memastikan bahwa border dan padding tidak mempengaruhi lebar dan tinggi elemen */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Menambahkan efek bayangan */
}
/* Mobile Styles */
/* Mobile Styles */
@media only screen and (max-width: 600px) {
  .content-news {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .judul-utama {
    font-size: 25px;
    height: 6vh;
  }

  .latest-news-border {
    width: 95%;
    height: auto;
    padding: 20px;
    overflow-y: auto;
  }

  .latest-news-article img {
    width: 100%;
    height: auto;
    float: none;
  }
  .latest-news-container {
    width: 100%;
  }

  .latest-news-wrapper {
    width: 100%; /* Lebar elemen 70% dari lebar layar */
    height: 110vh; /* Tinggi elemen 100% dari tinggi layar */
    margin: auto; /* Membuat elemen berada di tengah halaman */
    padding: 0; /* Menambahkan padding di luar elemen */
    padding-top: 20px;
    border-radius: 10px; /* Menambahkan border-radius untuk membuat bingkai bulat */
    background-color: #ffffff; /* Warna latar belakang */
    /* border: 2px solid #000000; Border dengan ketebalan 2px dan warna hitam */
    box-sizing: border-box; /* Memastikan bahwa border dan padding tidak mempengaruhi lebar dan tinggi elemen */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Menambahkan efek bayangan */
  }
}







/* Style teks besar */
.newstitlenw {
  text-align: center;
  font-size: 36px;
  font-family: 'Nexa-ExtraBold', sans-serif;
}

/* Style grid container */
.gridcontainer {
  display: grid;
  grid-template-columns: repeat(4, 320px);
  grid-template-rows: repeat(1, 600px);
  gap: 50px;
  margin-top: 20px;
  justify-content: center;
}

/* Style grid items */
.griditemnw {
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  display: grid;
  padding-top: 25px;
  margin: 10px;
  justify-items: center;
  justify-content: center;
}

/* Style gambar */
.griditemnw img {
  width: 275px;
  height: 310px;
  object-fit: cover;
  border-radius: 10px;
}

/* Style judul */
.judulnw {
  padding: 20px;
  font-family: 'NexaText', sans-serif;
  font-size: 14px;
}

/* Style link judul */
.judulnw a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: bold;
  font-family: 'NexaText', sans-serif;
}

/* Style tanggal */
.tanggalnw {
  font-size: 12px;
  color: gray;
  margin-top: 5px;
}

/* Style teks singkat */
.tekssingkatnw {
  font-size: 13px;
  font-family: 'NexaText', sans-serif;
  margin-top: 5px;
}

/* Style tombol View More */
.viewmore-btn {
  text-align: center;
  margin-top: 20px;
}

.viewmore-btn button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Style hidden grid items */
.hidden {
  display: none;
}

  @media (max-width: 576px) {
    .gridcontainer {
      grid-template-columns: repeat(1, 320px);
    }
    
  }

  @media (min-width: 577px) and (max-width: 1024px) {
    .gridcontainer {
      display: grid;
      grid-template-columns: repeat(2, 320px);
      grid-template-rows: repeat(1, 600px);
      gap: 50px;
      margin-top: 20px;
      justify-content: center;
    }
  }
    @media (min-width: 1025px) and (max-width: 1440px) {
      .gridcontainer {
        display: grid;
        grid-template-columns: repeat(3, 320px);
        grid-template-rows: repeat(1, 600px);
        gap: 50px;
        margin-top: 20px;
        justify-content: center;
      }
    
  }