/* ==================================================
   ОСТАННІ НОВИНИ
================================================== */

.home-news {
  padding: 60px 20px;
  background: #ffffff;
}

.home-news-title {
  margin-bottom: 40px;

  text-align: center;
  font-size: 24px;
  color: #333333;

  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================================================
   GRID
================================================== */

.news-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* ==================================================
   CARD
================================================== */

.news-card {
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==================================================
   IMAGE
================================================== */

.news-thumb img.news-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ==================================================
   CONTENT
================================================== */

.news-content {
  padding: 18px 20px 25px;
  text-align: left;
}

.news-title a {
  font-size: 18px;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
}

.news-title a:hover {
  color: #8DAC99;
}

.news-date {
  display: block;
  margin: 8px 0 10px;

  font-size: 14px;
  color: #888888;
}

.news-excerpt {
  margin-bottom: 15px;

  color: #555555;
  line-height: 1.6;
}

/* ==================================================
   READ MORE
================================================== */

.news-more {
  display: inline-flex;
  align-items: center;

  font-weight: 600;
  color: #8DAC99;
  text-decoration: none;

  transition: color 0.3s ease;
}

.news-more .arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.news-more:hover .arrow {
  transform: translateX(4px);
}

/* ==================================================
   EMPTY STATE
================================================== */

.no-posts {
  grid-column: 1 / -1;

  text-align: center;
  font-size: 16px;
  color: #777777;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
