/* ARTICLES>HTML MAIN AREA */
main {
  flex: 1;
}

.articles-header {
  margin-bottom: 1rem;
}

.articles-header h1 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
}

.articles-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.articles-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
 }

 /* --- LAYOUT WRAPPER --- */

.articles-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;

  display: grid;
  grid-template-columns: 1fr;   /* mobile: 1 column */
  gap: 1.25rem;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop: 3 columns (keeps cards “mobile-sized”) */
@media (min-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- CARD LINK WRAPPER --- */

.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Make the card fill its grid cell when the link wraps it */
.article-card-link .article-card {
  height: 100%;
}

/* --- CARD BASE STYLE --- */

.article-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

/* Hover effect on desktop-ish sizes */
@media (hover: hover) and (pointer: fine) {
  .article-card-link:hover .article-card {
    transform: translateY(-2px);
    border-color: #c7d2fe;
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.12);
  }
}

/* --- THUMBNAIL AREA --- */

.article-thumb {
  width: 100%;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 0.35rem;
  background: radial-gradient(circle at top left, #e5e7eb, #f9fafb);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- TEXT META & BODY --- */

.article-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.article-summary {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.2rem;
}

/* “Coming soon” fallback card still looks nice centered */
.article-card code {
  font-size: 0.8rem;
}

.article-card-link {
  text-decoration: none;
  color: inherit;
}

.article-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.article-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.15);
}

.article-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.article-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.article-thumb {
  margin-bottom: 0.6rm;
  overflow: hidden;
  border-radius: 0.9rm;
}

.article-thumb img {
  diplay: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 180px;
}

.article-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}