/* ==================== ARTICLE LIST ==================== */
.list-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.category-title {
  margin-bottom: 1rem;
}
/* ==================== ARTICLE NEWS ==================== */
.article-news {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.article-link {
  display: flex;
  flex-direction: column;
}

.article-meta span {
  color: #fff;
}

.article-meta {
  padding: 1rem;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-color);
}

.article-meta a {
  color: #fff;
  font-weight: 600;
}

.article-image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-news:hover .article-image {
  transform: scale(1.05);
}

.article-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  margin: 10px 0;
  display: box;
  box-orient: vertical;
  line-clamp: 2;
}

.article-excerpt {
  flex-grow: 1;
  font-size: 1rem;
  color: #555555;
  margin-bottom: 1rem;
  text-align: justify;
}

.view-more {
  color: #000;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.view-more:hover {
  color: var(--primary-color);
}

/* ==================== NO POSTS MESSAGE ==================== */
.no-posts {
  text-align: center;
  font-size: 1.2rem;
  color: #777777;
  padding: 2rem 0;
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-numbers:hover:not(.current):not(.dots) {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.pagination .prev,
.pagination .next,
.pagination .current {
  color: #ffffff;
  cursor: default;
}

.pagination .dots {
  background: none;
  color: #555555;
  cursor: default;
}

/* ==================== SUB CATEGORY ==================== */
.sub-category {
  font-weight: 600;
  margin: 0 0 1rem 0;
}
.sub-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sub-category-item {
  display: inline-block;
}
.sub-category-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (min-width: 768px) {
  .list-article {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-image-container {
    height: 240px;
  }

  .article-meta {
    font-size: 1rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-excerpt {
    font-size: 1.1rem;
  }

  .view-more {
    font-size: 1rem;
  }

  .pagination {
    gap: 0.75rem;
  }
}

@media screen and (min-width: 1024px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-excerpt {
    font-size: 1.2rem;
  }
}
