/* ARTICLES / MEDIA HUB */
.articles-hero {
  position: relative;
  color: #111;
  padding: 100px 0 60px;
  text-align: center;
  overflow: hidden;
}

.articles-hero .bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.articles-hero .bg-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.12;
  filter: grayscale(0.3) brightness(1.1);
}

.articles-hero .bg-video .overlay {
  position: absolute;
  inset: 0;
}

.articles-hero .container {
  position: relative;
  z-index: 2;
}

.articles-hero h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
}

.articles-hero p {
  color: #555;
  font-size: 18px;
  max-width: 500px;
  margin: 12px auto 24px;
}

.articles-grid-wrap {
  padding: 40px 0 80px;
  background: #fff;
}

/* CAROUSEL STYLES */
.articles-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.articles-grid {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

.article-card {
  flex: 0 0 calc(25% - 18px);
  min-width: 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
  border-color: #ccc;
}

/* Responsive Carousel */
@media (max-width: 1100px) {
  .article-card {
      flex: 0 0 calc(33.333% - 16px);
  }
}

@media (max-width: 900px) {
  .article-card {
      flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .article-card {
      flex: 0 0 100%;
  }
}

@media (max-width: 1024px) {
  .articles-grid {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .articles-grid {
      grid-template-columns: 1fr;
  }

  .article-card.featured {
      grid-column: span 1;
      grid-row: span 1;
  }
}

.read-more-btn {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.article-card:not(.featured) {
  transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1),
    border-color 0.35s ease;
  will-change: transform;
}

.article-card:not(.featured):hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .article-card:not(.featured):hover {
      transform: none;
  }
}
