
.inspiration-section {
  width: 100%;
  height: auto;
  margin: 10px auto;
  padding: 20px;
  background: #f1f6ff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 36px;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tetap 3 kolom */
  gap: 20px;
}

.article {
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  text-align: justify;
  transition: transform 0.2s;
}

.article:hover {
  transform: scale(1.02); /* Sedikit efek hover */
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.image-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background-color: #f0f0f0; /* Warna latar default */
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Isi kotak tanpa distorsi */
}

.article-title {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  -webkit-hyphens: auto; /* Menambahkan pemecahan kata otomatis di WebKit */
  -moz-hyphens: auto; /* Menambahkan pemecahan kata otomatis di Firefox */
  hyphens: auto;
  overflow: hidden;
  text-align: justfiy;
  text-overflow: ellipsis;
  font-size: 16px; /* Ukuran teks khas koran */
  margin: 10px 0;
  line-height: 1.3;
  font-weight: bold;
}

.article-date {
  font-size: 12px; /* Ukuran kecil untuk tanggal */
  color: #000;
  font-style: italic;
  padding-top: 5px;
  margin-bottom: 0px;
}

.view-all-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s;
  border-radius: 4px;
}

.view-all-btn:hover {
  background: #444;
}

/* Responsivitas */
@media screen and (max-width: 768px) {
  .article {
    padding: 10px; /* Kurangi padding di layar kecil */
  }
  .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px; /* Ukuran teks khas koran */
  text-align: justify;
  line-height: 1.2;
  }
  .article-date {
    font-size: 10px; /* Ukuran tanggal lebih kecil */
  }
  .view-all-btn {
    width: 10%; /* Mengatur lebar tombol menjadi 50% pada layar kecil */
    padding: 10px; /* Menyesuaikan padding jika diperlukan */
    font-size: 60%;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 100%;
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr); /* Tetap 3 kolom meskipun layar kecil */
    gap: 5px; /* Kurangi jarak antar artikel */
    
  }
  
  .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px; /* Ukuran teks khas koran */
  text-align: justify;
  line-height: 1.2;
  margin-bottom: 0px;

  }
    .article-date {
    font-size: 7px; /* Ukuran tanggal lebih kecil */
    margin-bottom: 0px;  
  }
    .view-all-btn {
    width: 10%; /* Mengatur lebar tombol menjadi 50% pada layar kecil */
    padding: 7px; /* Menyesuaikan padding jika diperlukan */
    font-size: 10%;
  }
  
}
