/* ========================================
   Articles Grid
   ======================================== */
.articles-section {
  padding: 30px 24px 72px;
}

.articles-collection {
  max-width: var(--container-max);
  margin: 0 auto;
}

.articles-grid-server {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #dbe5f3;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: #c9d8ec;
  box-shadow: 0 10px 20px rgba(15, 31, 59, 0.08);
}

.article-image {
  position: relative;
  display: block;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border-bottom: 1px solid #e4ebf6;
  background:
    radial-gradient(circle at 74% 84%, rgba(203, 218, 239, 0.36) 0%, transparent 40%),
    linear-gradient(180deg, #eef3f9 0%, #e8eef8 100%);
}

.article-image::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  border: 1px solid rgba(199, 214, 235, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 247, 255, 0.92) 100%);
  z-index: 1;
}

.article-media-asset {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: block;
  transition: transform 0.24s ease;
}

img.article-media-asset {
  object-fit: contain;
  transition: transform 0.24s ease;
}

div.article-media-asset {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

div.article-media-asset svg {
  width: 100%;
  height: 100%;
  display: block;
}

.article-card:hover .article-media-asset {
  transform: translateY(-1px) scale(1.012);
}

.article-content {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  margin: 3px 0 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.article-title a {
  color: var(--whk-text-900);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: var(--whk-blue-500);
}

.article-excerpt {
  margin: 9px 0 0;
  color: var(--whk-text-500);
  font-size: 0.8rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .article-meta {
  gap: 7px;
  margin-bottom: 6px;
}

.article-card .article-category {
  padding: 3px 6px;
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.article-card .article-date {
  font-size: 0.62rem;
}

.article-card .article-date svg {
  width: 11px;
  height: 11px;
}

.article-footer {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #e7edf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.article-card .read-time {
  font-size: 0.66rem;
  color: #8195b1;
}

.article-card .read-time svg {
  width: 11px;
  height: 11px;
}

.article-author {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--whk-text-700);
  font-size: 0.7rem;
  font-weight: 600;
}

.article-author span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3156c7 0%, #6ce2ff 100%);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  overflow: hidden;
}

.author-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.author-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar.has-logo {
  width: auto;
  min-width: 22px;
  max-width: 86px;
  height: auto;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #e4ecf8;
  background: linear-gradient(135deg, #f7fbff 0%, #edf3ff 100%);
}

.author-avatar.has-logo .author-avatar-img {
  width: auto;
  height: 13px;
  border-radius: 0;
  object-fit: contain;
}

.author-avatar.has-logo .author-initials {
  display: none;
}

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

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--whk-border-300);
  background: var(--whk-surface-0);
  color: var(--whk-text-700);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-btn svg {
  width: 16px;
  height: 16px;
}

.page-btn:hover {
  color: var(--whk-blue-500);
  border-color: #a9c0e8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.w-condition-invisible {
  display: none !important;
}
