/**
 * GS Homepage — Articles Block
 * Recently published/updated content.
 */

.gs-articles {
  padding: 48px 24px;
  border-bottom: 1.5px solid #111;
}
.gs-articles__inner { max-width: 1060px; margin: 0 auto; }
.gs-articles__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.gs-articles__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gs-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gs-article-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #111;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  min-height: 160px;
  transition: all 0.2s;
  background: #fff;
}
.gs-article-card:hover { background: #111; color: #fff !important; }
a.gs-article-card,
a.gs-article-card:visited,
a.gs-article-card:active { color: inherit !important; text-decoration: none !important; }
a.gs-article-card:hover { color: #fff !important; text-decoration: none !important; }
a.gs-article-card:hover .gs-article-card__title { color: #fff !important; }
a.gs-article-card:hover .gs-article-card__date { color: #ccc !important; }
a.gs-article-card:hover .gs-article-card__action { background: #333; color: #ccc !important; }
.gs-article-card__action {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 4px 12px;
  background: #f5f5f5;
  color: #000;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.gs-article-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  flex: 1;
  margin-bottom: 12px;
}
.gs-article-card__date {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

/* ── ARTICLES LIST LAYOUT ── */
.gs-articles--list .gs-articles__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gs-articles--list .gs-article-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
  background: transparent;
  min-height: auto;
}
.gs-articles--list .gs-article-card:first-child { border-top: 1px solid #e0e0e0; }
.gs-articles--list .gs-article-card { cursor: default; }
.gs-articles--list .gs-article-card__title a { color: #000 !important; text-decoration: none !important; }
.gs-articles--list .gs-article-card__title a:hover { text-decoration: underline !important; color: #000 !important; }
.gs-articles--list .gs-article-card__action { margin-bottom: 0; }
.gs-articles--list .gs-article-card__title {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  font-size: 15px;
  color: #000;
}
.gs-articles--list .gs-article-card__date { margin-top: 0; white-space: nowrap; color: #000; }

/* ── ARTICLES TABLET ── */
@media (max-width: 1024px) and (min-width: 641px) {
  .gs-articles__grid { grid-template-columns: 1fr 1fr; }
}

/* ── ARTICLES MOBILE ── */
@media (max-width: 640px) {
  .gs-articles__grid { grid-template-columns: 1fr; }
  .gs-articles__header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gs-articles--list .gs-article-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
