/* Контейнер карточек */
.dissertation-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  align-items: stretch;
}

/* Карточка */
.dissertation-card {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 250px;
  min-height: 460px; /* Установить нужную высоту */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
}

/* Контент карточки */
.card-content {
  flex-grow: 1;
}

/* Заголовок */
.dissertation-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

/* Текст */
.dissertation-card p {
  font-size: 14px;
  margin: 5px 0;
  color: #555;
}
  
  /* Кнопки */
  .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color:#fff;
  }
  
  .buttons button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .buttons button:hover {
    background-color: #0056b3;
  }
  
  /* Эффект при наведении на карточку */
  .dissertation-card:hover {
    transform: scale(1.05);
  }
  
  /* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1; /* Скрыто поверх всех элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Черный фон с прозрачностью */
    padding-top: 60px;
    text-align: center;
  }
  
 /* Содержимое модального окна */
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px 20px 20px 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  position: relative; /* Обязательно для абсолютного позиционирования кнопки внутри */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  top: 10px;           /* немного ниже от верхнего края */
  right: 10px;         /* немного левее от правого края */
  color: #888;
  font-size: 24px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
  color: #000;
}

/* Адаптация под телефоны */
@media (max-width: 768px) {
  .dissertation-card {
    max-width: 100%;
  }
}

/*ПАГИНАЦИЯ*/

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px auto;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 8px 14px;
  font-size: 16px;
  border: none;
  background-color: white;
  color: #3742fa;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pagination-btn:hover {
  background-color: #f1f2f6;
}

.pagination-btn.active {
  background-color: #feca57;
  color: #000;
  font-weight: bold;
}

.pagination-btn.nav {
  background-color: #3742fa;
  color: white;
  font-weight: bold;
}

.pagination span {
  font-size: 16px;
  color: #888;
}


/*ПОИСК*/

.search-bar {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 20px;
  padding: 0 20px;
  text-align: center;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 45px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' viewBox='0 0 24 24' width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 2a8 8 0 105.293 14.707l4 4a1 1 0 001.414-1.414l-4-4A8 8 0 0010 2zm0 2a6 6 0 110 12A6 6 0 0110 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 20px 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar input:focus {
  border-color: #007BFF;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
