/* ============================================================
   Articles Index Page
   ============================================================ */

/* Hero banner */
.articles-hero {
  background: var(--blue);
  padding: 52px 0 48px;
}
.articles-hero__title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}
.articles-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  line-height: 1.7;
}

/* Section label */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* Featured post */
.featured-section {
  background: var(--white);
  padding: 52px 0;
}
.featured-post {
  background: var(--bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  border-top: 3px solid var(--blue);
  padding: 36px 32px;
}
.featured-post__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin: 10px 0 14px;
}
.featured-post__title a { color: inherit; }
.featured-post__title a:hover { color: var(--blue); }
.featured-post__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 720px;
}

/* All articles grid */
.all-articles {
  background: var(--bg);
  padding: 60px 0 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--white);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--blue); }

.article-card__excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.article-card__link { font-size: 0.84rem; margin-top: auto; }

/* Active nav link */
.nav-active { color: var(--gold) !important; }

/* Responsive */
@media (max-width: 700px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-hero__title { font-size: 1.5rem; }
  .featured-post { padding: 24px 20px; }
  .featured-post__title { font-size: 1.2rem; }
}

/* === CARD IMAGE === */
.article-card__img-wrap {
  display: block;
  margin: -24px -24px 16px;
  border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.article-card:hover .article-card__img { transform: scale(1.03); }

/* === FEATURED POST IMAGE === */
.featured-post__img-wrap {
  display: block;
  border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: -36px -32px 28px;
}
.featured-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .featured-post__img-wrap { margin: -24px -20px 20px; }
}
