/* ============================================
   НОВОСТИ — PULKOVO AIR
   ============================================ */

/* Контейнер VK */
.main-content {
  flex: 1 0 auto;
  width: 100%;
  padding: 0 0 40px;
}

.news-vk-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.news-vk-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4680C2;
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.news-vk-link:hover {
  background: #1E3A8A;
  transform: translateY(-2px);
}

/* Сетка */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Карточка */
.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: #4680C2;
}

/* Изображение */
.news-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #F1F5F9;
  position: relative;
  cursor: pointer;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-img-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Контент */
.news-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 10px;
}

.news-card-date i {
  color: #4680C2;
  margin-right: 4px;
}

.news-card-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  white-space: pre-line;
}

/* Футер */
.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #E2E8F0;
}

.news-card-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94A3B8;
}

.news-card-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card-stats .fa-heart { color: #E0245E; }
.news-card-stats .fa-comment { color: #4680C2; }
.news-card-stats .fa-eye { color: #10B981; }

.news-card-link {
  color: #4680C2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.news-card-link:hover {
  color: #1E3A8A;
}

.news-card-link i {
  font-size: 11px;
  margin-left: 4px;
}

/* Загрузить ещё */
.news-more {
  text-align: center;
  margin-top: 36px;
}

.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #1E3A8A;
  padding: 14px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid #1E3A8A;
  transition: all 0.3s ease;
}

.news-more-btn:hover {
  background: #1E3A8A;
  color: white;
  transform: translateY(-2px);
}

/* Модальное окно */
.news-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.news-modal img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  object-fit: contain;
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.2s;
}

.news-modal-close:hover {
  color: #F59E0B;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .news-card-img {
    height: 200px;
  }
  
  .news-card-content {
    padding: 16px;
  }
  
  .news-card-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .news-card-img {
    height: 180px;
  }
  
  .news-card-content {
    padding: 14px;
  }
  
  .news-card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .news-card-stats {
    width: 100%;
    justify-content: space-around;
  }
  
  .news-card-link {
    width: 100%;
    text-align: center;
    padding: 8px;
    background: #F8FAFC;
    border-radius: 8px;
  }
  
  .news-more-btn {
    width: 100%;
    justify-content: center;
  }
  
  .news-vk-link {
    width: 100%;
    justify-content: center;
  }
}