/* ============================================
   ARTICLES PAGE (articles.php) — Figma match
   Desktop: 3 columns x 4 rows (12 items per page)
   Mobile: single column list
   ============================================ */

.articles-page {
  padding: 30px 0 80px;
  position: relative;
  z-index: 1;
}

/* On this page the content block in Figma is exactly 1400px wide. */
.articles-page .container {
  padding: 0;
}

.articles-page .breadcrumb {
  margin-bottom: 69px;
}

.articles-page-title {
  margin: 0 0 40px 0;
}

/* Grid: 3 columns */
.articles-page .articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 25px; /* row / column gap from Figma */
  margin-top: 0; /* title already has spacing */
}

.articles-page .article-card {
  width: 450px;          /* exact Figma width on 1400px container */
  flex: 0 1 450px;       /* allow slight shrink on narrower desktops */
  min-width: 0;          /* prevent flex min-size from forcing wrap */
}

.articles-page .article-image {
  height: 250px;
}

/* Clamp title/excerpt like in Figma */
.articles-page .article-title,
.articles-page .article-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articles-page .article-title {
  -webkit-line-clamp: 2;
}

.articles-page .article-excerpt {
  -webkit-line-clamp: 3;
}

/* Pagination */
.pagination {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-desktop,
.pagination-mobile {
  display: none;
  align-items: center;
  gap: 16px;
}

.pagination-pages {
  display: flex;
  gap: 4px;
}

.pagination-btn,
.pagination-page {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: #000;
  background: #fff;
  border: none;
}

.pagination-btn {
  background: #4d4d4d;
  color: #fff;
}

.pagination-btn--disabled {
  background: #c7c7c7;
  pointer-events: none;
}

.pagination-page--active {
  background: #f7d59e;
}

.pagination-ellipsis {
  cursor: default;
}

.pagination-arrow {
  width: 24px;
  height: 24px;
  display: block;
  transform: rotate(90deg);
  filter: brightness(0) invert(1);
}

.pagination-btn--prev .pagination-arrow {
  transform: rotate(270deg);
}

/* Desktop */
@media (min-width: 481px) {
  .pagination-desktop { display: flex; }
}

/* Mobile */
@media (max-width: 480px) {
  .articles-page {
    padding: 90px 0 60px;
  }

  .articles-page .container {
    padding: 0 15px; /* Figma: left ~15px */
  }

  .articles-page .breadcrumb {
    margin-bottom: 31px;
  }

  .articles-page-title {
    text-align: center;
    font-size: 28px; /* common.css already sets 28px on mobile, keep explicit */
    margin: 0 0 30px 0;
  }

  .articles-page .articles-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 26px;
  }

  .articles-page .article-card {
    width: 100%;
    max-width: 358px;
  }

  .articles-page .article-image {
    height: 199px;
  }

  .articles-page .article-content {
    padding-right: 20px;
  }

  .articles-page .article-title {
    font-size: 18px;
  }

  .articles-page .article-excerpt {
    font-size: 14px;
  }

  .pagination { margin-top: 60px; }
  .pagination-mobile { display: flex; }
  .pagination-desktop { display: none; }
}


