/* ==========================
   Стили для страницы news.php
   ========================== */

.news-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 2.2rem;
  color: #f25c05;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-card {
  position: relative;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px 25px 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: #f25c05;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-wrapper .material-icons {
  color: #fff;
  font-size: 24px;
}

.news-title {
  font-size: 1.4rem;
  color: #1a3c5e;
  flex: 1;
  margin: 0;
}

.news-date {
  font-size: 0.95rem;
  color: #777;
}

.news-meta-right {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 0.95rem;
  color: #777;
  font-style: italic;
}

.news-content {
  margin-top: 15px;
  font-size: 1rem;
  color: #0d1b2a;
  line-height: 1.6;
  text-align: justify;
}

.news-author {
  position: absolute;
  bottom: 15px;
  right: 25px;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.no-news {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
  margin-top: 50px;
}

/* скрытие глобальных header */
body.page-news .hero,
body.page-news .page-title,
body.page-news .hero-banner,
body.page-news .floating-header,
body.page-news .page-heading,
body.page-news .sticky-title,
body.page-news .page-title-bar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* адаптив */
@media (max-width: 768px) {
  .section-title { font-size: 1.8rem; }
  .news-title { font-size: 1.2rem; }
  .news-content { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .news-section { padding: 20px 15px; }
  .news-title { font-size: 1.1rem; }
  .news-date,
  .news-meta-right,
  .news-author { font-size: 0.85rem; }
  .icon-wrapper { width: 36px; height: 36px; }
  .icon-wrapper .material-icons { font-size: 20px; }
}
