/* ===== НОВОСТИ: общие ===== */
.lab-news-section,
.lab-news-archive,
.lab-news-single {
  padding: 60px 15px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lab-news-section {
  background-color: #ffffff;
}
.lab-news-archive {
  background-color: var(--lab-bg-light, #f4f6fa);
}
.lab-news-single {
  background-color: #ffffff;
}

.lab-news-archive__inner,
.lab-news-single__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.lab-news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.lab-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(8, 13, 107, 0.03);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.lab-news-card:hover {
  box-shadow: 0 6px 16px rgba(8, 13, 107, 0.06);
}
.lab-news-card:hover .lab-news-card__title {
  color: var(--lab-color-accent, #ee1160);
}

.lab-news-card__image-wrapper {
  position: relative;
  width: 100%;
  height: 258px;
  background-color: #f1f5f9;
  overflow: hidden;
}

.lab-news-article__image-full img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  height: auto;
  border-radius: 24px;
}

.lab-news-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  margin: 0;
  padding: 0;
}

.lab-news-card__info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lab-news-card__date {
  display: inline-block;
  font-size: 13px;
  color: var(--lab-color-muted, #e13855);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lab-news-card__title {
  font-size: 18px;
  color: var(--lab-text-dark, #1e293b);
  margin: 0 0 8px 0;
  font-weight: 600;
  line-height: 1.35;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Число оставляемых строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lab-news-card__excerpt {
  font-size: 14px;
  color: var(--lab-text-gray, #64748b);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Число оставляемых строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ССЫЛКА «ВСЕ НОВОСТИ» ===== */
.lab-news-more {
  text-align: center;
  margin-top: 40px;
}

.lab-news-more__link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  background: linear-gradient(90deg, #080d6b, #e13855);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.lab-news-more__link:hover {
  opacity: 0.9;
  color: #fff;
}

/* ===== ПАГИНАЦИЯ ===== */
.lab-news-pagination {
  margin-top: 40px;
  text-align: center;
}

.lab-news-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.lab-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--lab-text-dark, #1e293b);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lab-news-pagination .page-numbers:hover,
.lab-news-pagination .page-numbers.current {
  background: var(--lab-color-primary, #080d6b);
  border-color: var(--lab-color-primary, #080d6b);
  color: #fff;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.lab-breadcrumbs {
  font-size: 14px;
  color: var(--lab-text-gray, #64748b);
  margin-bottom: 30px;
  line-height: 1.5;
}

.lab-breadcrumbs a {
  color: var(--lab-color-primary, #080d6b);
  text-decoration: none;
  font-weight: 500;
}

.lab-breadcrumbs a:hover {
  color: var(--lab-color-accent, #ee1160);
}

.lab-bc-sep {
  color: #cbd5e1;
  margin: 0 4px;
}

.lab-bc-current {
  color: var(--lab-text-gray, #64748b);
}

/* ===== ДЕТАЛЬНАЯ СТРАНИЦА НОВОСТИ ===== */
.lab-news-single__inner {
  max-width: 900px;
}

.lab-news-article__header {
  margin-bottom: 30px;
  text-align: center;
}

.lab-news-article__date {
  display: inline-block;
  font-size: 14px;
  color: var(--lab-color-muted, #e13855);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lab-news-article__title {
  font-size: 32px;
  color: var(--lab-color-primary, #080d6b);
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

/* --- Режим "на всю ширину" --- */
.lab-news-article__image-full {
  width: 100%;
  margin: 0 0 30px 0;
  border-radius: 14px;
  overflow: hidden;
}

/* --- Режим "сбоку (слева)" --- */
.lab-news-article__body {
  display: block;
}

.lab-news-article--side .lab-news-article__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.lab-news-article__image-side img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.lab-news-article__content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lab-text-dark, #1e293b);
}

.lab-news-article__content p {
  margin: 0 0 16px 0;
}
.lab-news-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 576px) {
  .lab-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .lab-news-article--side .lab-news-article__body {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
  .lab-news-article__title {
    font-size: 38px;
  }
}

@media (min-width: 992px) {
  .lab-news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .lab-news-section,
  .lab-news-archive,
  .lab-news-single {
    padding: 80px 20px;
  }
}
