/* ============================================================
   Блок «Статьи» на главной странице — Онлайн Око
   Подключается только в index.php
   ============================================================ */

.home-articles {
  margin-top: 60px;
  margin-bottom: 20px;
}

.home-articles__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.home-articles__title {
  color: #1b1d21;
  font-family: "Circe Rounded";
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 58px;
  margin: 0;
}

.home-articles__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 700;
  color: #235abe;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 6px;
}

.home-articles__all:hover {
  text-decoration: none;
  color: #12b9e2;
}

.home-articles__all:after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-articles__all:hover:after {
  transform: translateX(4px);
}

/* ---------- Карточка статьи ---------- */
.home-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border-radius: 25px;
  text-decoration: none;
  color: #1b1d21;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  border-bottom: 2px solid transparent;
}

.home-article-card:hover {
  text-decoration: none;
  color: #1b1d21;
  box-shadow: 0px 14px 25px 0px #dfeaf0;
  border-bottom: 2px solid #235abe;
  transform: translateY(-3px);
}

.home-article-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 14px;
  font-weight: 500;
  color: #235abe;
  margin-bottom: 16px;
}

.home-article-card__date:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b9e2;
}

.home-article-card__title {
  font-family: "Circe Rounded";
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  margin-bottom: 16px;
  color: #1b1d21;
}

.home-article-card__excerpt {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #1b1d21;
  flex-grow: 1;
  margin-bottom: 24px;
}

.home-article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 700;
  color: #235abe;
}

.home-article-card__more:after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-article-card:hover .home-article-card__more:after {
  transform: translateX(4px);
}

/* ---------- Цветовые варианты карточек (как .cure__item1..3) ---------- */
.home-article-card--1 {
  background: #dce7ff;
}

.home-article-card--2 {
  background: #fff1d0;
}

.home-article-card--3 {
  background: #d2f3bd;
}

.home-articles .row > div {
  margin-bottom: 30px;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 768px) {
  .home-articles {
    margin-top: 30px;
    margin-bottom: 0;
  }

  .home-articles__title {
    font-size: 25px;
    line-height: 32px;
  }

  .home-articles__head {
    margin-bottom: 24px;
  }

  .home-article-card {
    padding: 24px;
  }

  .home-article-card__title {
    font-size: 19px;
    line-height: 26px;
  }
}
