/* =============================================
   ARTICLES PAGE
   ============================================= */

/* ===== HERO ===== */
.articles-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 780px;
  overflow: hidden;
  background: #0d0d0d;
}

.articles-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.articles-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

.articles-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.articles-hero__text {
  max-width: 620px;
  color: #fff;
}

.articles-hero__text h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeUp .8s ease forwards .2s;
}

.articles-hero__text p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp .8s ease forwards .5s;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.articles-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroFadeIn 1s ease forwards 1s;
}

@keyframes heroFadeIn {
  to { opacity: .85; }
}

.articles-hero__scroll svg {
  display: block;
}

/* Chấm bên trong icon chuột */
.scroll-dot {
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(6px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .articles-hero {
    height: 60vh;
    min-height: 380px;
    max-height: 560px;
  }
  .articles-hero__content {
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: 48px;
  }
  .articles-hero__text h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  .articles-hero__text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .articles-hero__scroll { display: none; }
}

/* ===== ARTICLES PAGE SECTION ===== */
.articles-page-section {
  padding: 48px 0 64px;
  background: var(--white);
}

.articles-page-section .articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.articles-page-section .article-card__img {
  height: 320px;
}

@media (max-width: 900px) {
  .articles-page-section .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-page-section .article-card__img { height: 240px; }
}

@media (max-width: 560px) {
  .articles-page-section .articles-grid { grid-template-columns: 1fr; }
  .articles-page-section .article-card__img { height: 220px; }
}
