/* Общие стили */
body {
  font-family: 'Rubik', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.page-title {
  text-align: center;
  margin-top: 20px;
  font-size: 4.2rem;
  color: #333;
}

/* Стили для страницы списка коллабораций */
.collaborations-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px;
}

.collaboration-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease;
}

.collaboration-item:hover {
  transform: scale(1.05);
}

.collaboration-photo {
  width: 100%;
  height: 200px; /* Фиксированная высота для фото */
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень снизу */
}

.collaboration-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  flex-grow: 1;
}

.collaboration-title {
  font-size: 1.8rem;
  color: #247291;
  margin-bottom: 10px;
  transition: color 0.3s ease;
  text-align: center;
}

.collaboration-title:hover {
  color: #1a5873;
}

.details-button {
  align-self: center;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  background-color: #f8da5b;
  text-decoration: none;
  border-radius: 8px; /* Закругляем углы больше */
  transition: background-color 0.3s ease;
}

.details-button:hover {
  background-color: #dfc452;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .collaborations-container {
    flex-direction: column;
    align-items: center;
  }

  .collaboration-item {
    width: 90%;
  }

  .collaboration-photo {
    height: 150px; /* Уменьшаем высоту для мобильных устройств */
  }
}
