.articles-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90vw;
  padding: 0 var(--spacing-sm);
}

.articles-section > h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.posts {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(var(--white), 0.04);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px 0 rgba(var(--black), 0.08);
  overflow: hidden;
  text-decoration: none;
  color: rgb(var(--white));
  padding: var(--spacing-lg) 2.2rem var(--spacing-sm) 2.2rem;
  transition: transform 0.22s cubic-bezier(.4, 0, .2, 1), box-shadow 0.22s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  min-height: 180px;
  max-width: 90%;
}

.post-card:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 32px 0 rgba(var(--black), 0.18);
  z-index: 2;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.post-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.2em 0;
  flex: 1 1 auto;
  min-width: 0; /* allow flex child to shrink on small screens */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-date {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin-top: 0.2em;
  white-space: nowrap;
  flex: 0 0 auto; /* keep date size and avoid it being squeezed */
  margin-left: 0.8rem;
}

.post-desc {
  margin: 0.7em 0 0.5em 0;
  font-size: 1.08rem;
  color: #e0e0e0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: 0.7em;
}

.tag {
  font-size: 0.85rem;
  padding: 0.25em 0.9em;
  border-radius: 1em;
  background-color: rgba(var(--white), 0.13);
  color: rgb(var(--white));
  border: 1px solid rgba(var(--white), 0.18);
  margin-right: 0.2em;
  margin-bottom: 0.2em;
  transition: background-color 0.2s;
}

.post-footer {
  margin-top: auto;
  font-size: 0.98rem;
  color: #b3b3b3;
  font-style: italic;
}

@media (min-width: 999px) {
  .posts {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
  }

  .post-card {
    flex: 1 1 0;
    width: 90%;
    padding: 2.5rem auto 1.5rem auto;
  }
}

.see-more-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.see-more-btn {
  background-color: rgba(var(--white), 0.09);
  color: rgb(var(--white));
  border: 1px solid rgba(var(--white), 0.18);
  border-radius: 2em;
  padding: 0.7em 2.2em;
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(var(--black), 0.08);
  cursor: pointer;
  margin: 1 0 2 0;
}

.see-more-btn:hover {
  background-color: rgba(var(--white), 0.18);
  color: rgb(var(--white));
  box-shadow: 0 4px 24px 0 rgba(var(--black), 0.16);
}