﻿/* ===== NAV ACTIVE ===== */
.nav__link--active {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== HERO ===== */
.actu-hero {
  background: var(--navy-grad);
  padding: 80px 0 96px;
  text-align: center;
}
.actu-hero__inner { max-width: 680px; margin: 0 auto; }
.actu-hero .section-eyebrow { margin-bottom: 20px; }

.actu-hero__title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.actu-hero__title-alt {
  display: block;
  font-weight: 300;
  font-size: 0.9em;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}

.actu-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* ===== ARTICLES SECTION ===== */
.articles {
  background: var(--white);
  padding: 72px 0 88px;
}

/* ===== FEATURED ===== */
.article-featured {
  background: var(--navy-grad);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.article-featured.visible { opacity: 1; transform: none; }

.article-featured__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-featured__title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 640px;
}

.article-featured__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}

.article-featured__btn { padding: 12px 24px; font-size: 14px; }

/* ===== TAGS ===== */
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-tag--red    { background: var(--red); color: white; }
.article-tag--blue   { background: #dbeafe; color: #1d4ed8; }
.article-tag--purple { background: #ede9fe; color: #6d28d9; }
.article-tag--green  { background: #dcfce7; color: #166534; }
.article-tag--orange { background: #ffedd5; color: #c2410c; }
.article-tag--gray   { background: #f3f4f6; color: #374151; }

/* Date & readtime */
.article-date,
.article-readtime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.article-date svg,
.article-readtime svg { width: 14px; height: 14px; flex-shrink: 0; }

/* On light cards override color */
.article-card .article-date {
  color: var(--text-muted);
}
.article-card .article-date svg { color: var(--text-muted); }

/* ===== GRID ===== */
.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(18px);
}
.article-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.2s, border-color 0.2s;
}
.article-card:nth-child(2) { transition-delay: 0.08s; }
.article-card:nth-child(3) { transition-delay: 0.16s; }
.article-card:nth-child(4) { transition-delay: 0.04s; }
.article-card:nth-child(5) { transition-delay: 0.12s; }

.article-card:hover {
  box-shadow: var(--shadow);
  border-color: #d1d5db;
  transform: translateY(-3px);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.article-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-top: auto;
  transition: gap 0.2s;
}
.article-card__link:hover { gap: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .articles__grid { grid-template-columns: repeat(2, 1fr); }
  .article-featured { padding: 32px 28px; }
}

@media (max-width: 580px) {
  .articles__grid { grid-template-columns: 1fr; }
  .article-featured { padding: 24px 20px; }
  .actu-hero__subtitle br { display: none; }
}
