/* === Баннер с фиксированным размером === */
.project-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.banner-text::after {
  content: "Проектная деятельность ВГУ";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
}

/* Адаптивность баннера */
@media (max-width: 768px) {
  .project-banner {
    height: 150px;
  }

  .banner-text {
    font-size: 1.5rem;
  }
}

/* === Контейнер проектов === */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 1rem;
}

/* === Подкатегории проектов === */
.project-subtype {
  margin-bottom: 2rem;
}

/* === Карточки проектов === */
.project-card {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  width: 100%;
  min-height: 180px;
}

.project-card:hover {
  transform: scale(1.01);
}

.project-card img {
  width: 300px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-content {
  padding: 20px;
  flex: 1;
}

.project-card-content h3 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.project-card-content p {
  margin: 6px 0;
  color: #333;
  font-size: 1.5rem;
}

/* === Кнопки === */
.btn-project {
  margin-top: auto;
  background-color: #0073e6;
  color: white;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

.btn-project:hover {
  background-color: #005bb5;
}

.btn-back {
  display: inline-block;
  margin-top: 20px;
  background-color: #aaa;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-back:hover {
  background-color: #888;
}
.project-card-img {
  width: 100%;
  height: 170px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0 0;
}
.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-card-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* затемнение */
}

.project-card-content {
  background: white;
  padding: 15px;
  font-size: 1.5rem;
  line-height: 1.5;
}
.project-banner {
  width: 100%;
  margin-bottom: 20px;
}

.project-image {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
  border-radius: 10px;
}
.project-header {
  border: 3px solid #3498db;
  padding: 20px;
  border-radius: 12px;
  background-color: #f0f8ff;
  margin-bottom: 20px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
}

.project-subheader {
  border: 2px solid #95a5a6;
  padding: 12px;
  border-radius: 10px;
  background-color: #ecf0f1;
  margin-bottom: 20px;
  font-size: 20px;
  color: #34495e;
}
.project-card-content h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.project-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}


