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

.category-title {
  margin-bottom: 1rem;
}
/* ==================== ARTICLE NEWS ==================== */
.article-news {
  background: var(--primary-4);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid var(--primary-8);
}

.article-news:hover {
  transform: translateY(-5px);
}

.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(--primary-2);
}

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

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

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

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

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

.article-content::before,
.article-content::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--primary-2);
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.article-content::before {
  top: -40px;
  right: -40px;
}
.article-content::after {
  bottom: -40px;
  left: -40px;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  margin: 10px 0;
  color: var(--text-color);
}

.article-excerpt {
  flex-grow: 1;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.4;
}

.view-more {
  color: var(--primary-2);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

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

/* ==================== 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-1);
  color: var(--primary-12);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* Pagination */
.pagination-container {
  margin-top: 40px;
  text-align: center;
}

.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border: var(--primary-1) 1px solid;
  border-radius: 4px;
  color: var(--text-dark-color);
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--primary-1);
  color: #fff;
  border-color: var(--primary-1);
}

.page-numbers.dots {
  border: none;
  background: none;
  color: #b0b0b0;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.description-category {
  margin-bottom: 20px;
}

/* ==================== 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.5rem;
  }

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