
.latest-articles {
  width: 100%;
  padding: 80px 16px;
  background: linear-gradient(
    to bottom,
    #e8f1f8 0%,
    #f0f6fb 50%,
    #e5eff7 100%
  );
}

.latest-articles-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 64px;
  letter-spacing: -0.025em;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.categories-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro-content {
  width: 100%;
}

.main-title {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 700;
  line-height: 1.05;

  background: linear-gradient(
    135deg,
    #1a8fd1 0%,
    #353a80 35%,
    #7c3aed 65%,
    #4a0750 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-description {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.category-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;

  border: none;
  border-radius: 8px;

  background: transparent;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.category-button:hover,
.category-button.active {
  background: rgba(255, 255, 255, 0.6);

  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.category-name {
  color: #334155;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
}

.chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #94a3b8;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.category-button:hover .chevron,
.category-button.active .chevron {
  color: #3b9edd;
  transform: translateX(4px);
}

.articles-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  gap: 16px;

  min-height: 496px;
}

.article-card {
  position: relative;

  width: 100%;
  height: 240px;

  overflow: hidden;

  border-radius: 16px;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.12);

  transition:
    box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.18);
}

.article-card.featured {
  grid-row: span 2;
  height: 100%;
}

.article-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4),
    transparent
  );

  opacity: 0;

  transition:
    opacity 0.3s ease;
}

.article-card:hover .article-overlay {
  opacity: 1;
}

.loading-item {
  background: linear-gradient(
    90deg,
    rgba(226, 232, 240, 0.7),
    rgba(241, 245, 249, 0.9),
    rgba(226, 232, 240, 0.7)
  );

  background-size: 200% 100%;

  animation: latestArticlesSkeleton 1.5s infinite;
}

@keyframes latestArticlesSkeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.category-skeleton {
  width: 100%;
  height: 48px;
  border-radius: 8px;
}

.image-skeleton {
  width: 100%;
  height: 240px;
  border-radius: 16px;
}

.large-skeleton {
  grid-row: span 2;
  height: 100%;
}


/* TABLET */

@media (max-width: 1024px) {

  .latest-articles {
    padding: 70px 24px;
  }

  .content-grid {
    gap: 32px;
  }

  .section-heading {
    margin-bottom: 52px;
  }

}


/* MOBILE */

@media (max-width: 768px) {

  .latest-articles {
    padding: 60px 16px;
  }

  .section-heading {
    font-size: 32px;
    margin-bottom: 44px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .main-title {
    font-size: clamp(36px, 11vw, 48px);
  }

  .intro-description {
    font-size: 14px;
  }

  .articles-grid {
    min-height: 400px;
    gap: 12px;
  }

  .article-card {
    height: 190px;
  }

  .article-card.featured {
    height: 100%;
  }

  .image-skeleton {
    height: 190px;
  }

}


/* SMALL MOBILE */

@media (max-width: 480px) {

  .latest-articles {
    padding: 50px 14px;
  }

  .section-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }

  .content-grid {
    gap: 32px;
  }

  .category-name {
    font-size: 16px;
  }

  .articles-grid {
    min-height: 330px;
    gap: 10px;
  }

  .article-card {
    height: 160px;
    border-radius: 12px;
  }

  .image-skeleton {
    height: 160px;
    border-radius: 12px;
  }

}