/* --- Reset & Font Dasar --- */
.artikel-widget-container { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 16px;
  box-sizing: border-box;
}

.artikel-widget-container *,
.artikel-widget-container *::before,
.artikel-widget-container *::after {
  box-sizing: border-box;
}

.artikel-widget-container a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.artikel-widget-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Bagian 1: Artikel Unggulan --- */
.featured-post-card {
  display: flex;
  flex-direction: row;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.featured-image-wrapper {
  flex-basis: 45%;
  min-width: 45%;
}
.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-content-wrapper {
  flex-basis: 55%;
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Styling Meta & Ikon (Featured) --- */
.featured-content-wrapper .post-meta {
  display: flex;
  flex-wrap: wrap; 
  gap: 15px; 
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}
.featured-content-wrapper .post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px; 
}
.featured-content-wrapper .post-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0; 
}

.featured-content-wrapper .featured-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 15px 0;
  color: #222;
}
.featured-content-wrapper .featured-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

/* --- Styling Tombol & Hover --- */
.featured-content-wrapper .read-more-btn {
  display: inline-block;
  width: fit-content;
  background-color: #00597E;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid #00597E; 
  transition: all 0.3s ease; 
}
.featured-content-wrapper .read-more-btn:hover {
  background-color: #ffffff; 
  color: #00597E; 
  border-color: #00597E; 
}


/* --- Pemisah --- */
.section-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 40px 0;
}
.grid-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: left;
  color: #222;
}

/* --- Bagian 2: Grid Artikel --- */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.artikel-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex; 
  flex-direction: column;
}
.artikel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.artikel-card .card-image-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.artikel-card .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; 
}

/* --- [UPDATE] Styling Meta & Ikon (Grid Card) - Dibuat Satu Baris --- */
.artikel-card .card-meta {
  display: flex; /* Ganti dari column */
  flex-wrap: wrap;
  align-items: center; /* Rata tengah vertikal */
  gap: 15px; /* Jarak antar item */
  font-size: 13px;
  font-weight: 600;
  color: #777;
  margin-bottom: 12px; 
}
.artikel-card .card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px; 
}
.artikel-card .card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #999;
}
.artikel-card .card-meta-item .card-category {
  color: #00597E;
  text-transform: uppercase;
  font-weight: 700;
}
.artikel-card .card-meta-item .card-category:hover {
  text-decoration: underline;
}

/* CSS ini tidak dibutuhkan lagi, tapi tetap aman jika ada sisa */
.artikel-card .card-meta-item .card-author {
  display: none; /* Disembunyikan total */
}


.artikel-card .card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #222;
  flex-grow: 1; 
  margin-top: 0; 
}
.artikel-card .card-title a:hover {
  color: #00597E;
}

/* --- Bagian 3: Pagination --- */
.pagination-container {
  margin-top: 40px;
}
.pagination-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.pagination-list li {
    display: inline-block;
}
.pagination-link {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #555;
  background-color: #f0f0f0;
}
.pagination-link:hover {
  background-color: #e0e0e0;
  color: #111;
}
.pagination-link.prev,
.pagination-link.next {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination-link.dots {
  background-color: transparent;
  color: #999;
}
.pagination-link.active {
  background-color: #00597E;
  color: #ffffff;
  border-color: #00597E;
}
.pagination-link.active:hover {
  background-color: #004663;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .featured-post-card {
    flex-direction: column;
  }
  .featured-image-wrapper {
    width: 100%;
    flex-basis: auto;
    height: 300px;
  }
  .featured-content-wrapper {
    width: 100%;
    flex-basis: auto;
  }
  .artikel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .artikel-widget-container {
    padding: 15px;
  }
  .artikel-grid {
    grid-template-columns: 1fr;
  }
  .featured-content-wrapper {
    padding: 25px 20px;
  }
  .featured-content-wrapper .featured-title {
    font-size: 22px;
  }
  .pagination-link {
    padding: 8px 12px;
    font-size: 14px;
  }
  .pagination-link.prev span,
  .pagination-link.next span {
    display: none;
  }
}