/* Стили для карточек проектов */
.project {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  padding-left: 15px;
  padding-right: 15px;
}

.project-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.project img,
.project .post_thumbnail {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project img:hover,
.project .post_thumbnail:hover {
  transform: scale(1.02);
}

.projectTitle {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  color: #333;
}

.project-filter {
  margin-bottom: 20px;
}


#show-more {
  margin-top: 20px;
  background-color: #2f7829; /* Основной зелёный цвет сайта */
  color: #fff; /* Белый текст */
  border: none; /* Убираем границу Bootstrap */
  font-family: 'Montserrat', sans-serif; /* Соответствует шрифту сайта */
  font-weight: 500; /* Соответствует весу шрифта */
  text-transform: uppercase; /* Соответствует стилю текста на сайте */
  padding: 10px 20px; /* Улучшенные отступы */
  border-radius: 3px; /* Скругление углов, как у других кнопок */
  -webkit-transition: all 300ms ease-in-out 0s; /* Плавный переход, как у других элементов */
  transition: all 300ms ease-in-out 0s;
}

#show-more:hover {
  background-color: #303030; /* Тёмный фон при наведении, как у других кнопок */
  color: #2f7829; /* Зелёный текст при наведении */
}

@media (min-width: 768px) {
  .project:nth-child(2n+1) {
    clear: left;
  }
}

@media (max-width: 767px) {
  .project img,
  .project .post_thumbnail {
    height: auto;
  }
}