/* ══════════════════════════════════════════════
   news-article.css — Сторінка окремої статті новини
   user/themes/imcert/css/news-article.css
   max-width: 1200px (відповідно до стилю сайту)
══════════════════════════════════════════════ */

/* ── Hero title override (менший розмір для статей) ── */
.news-hero .sv-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  max-width: 900px;
}

.news-hero .sv-hero__content {
  padding: 120px 32px 48px;
}

/* ── Breadcrumb ── */
.news-article__breadcrumb {
  background: #f4f8f8;
  border-bottom: 1px solid #e2eeee;
  padding: 16px 32px;
}

.news-article__breadcrumb-wrap {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #7aa0a0;
}

.news-article__breadcrumb a {
  color: #1a7a7a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-article__breadcrumb a:hover {
  color: #124651;
}

.news-article__breadcrumb-sep {
  margin: 0 8px;
  color: #b0cece;
}

.news-article__breadcrumb-current {
  color: #5a7a7d;
}

/* ── Category badge in hero ── */
.news-article__category {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  background: rgba(26, 122, 122, 0.85);
  color: #fff;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ── Date in hero ── */
.news-article__date {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Article Content ── */
.news-article {
  background: #fff;
  padding: 60px 32px 40px;
}

.news-article__wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.news-article__content {
  font-family: 'Philosopher', serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #333;
}

/* ── Typography ── */
.news-article__content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #124651;
  margin: 48px 0 20px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.news-article__content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #42796c, #8dd9c6);
  border-radius: 2px;
}

.news-article__content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a7a7a;
  margin: 36px 0 16px;
  line-height: 1.4;
}

.news-article__content p {
  margin: 0 0 24px;
  text-align: justify;
}

.news-article__content ul,
.news-article__content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.news-article__content li {
  margin-bottom: 12px;
  line-height: 1.65;
}

.news-article__content strong {
  color: #124651;
  font-weight: 700;
}

.news-article__content a {
  color: #1a7a7a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.news-article__content a:hover {
  color: #124651;
}

/* ── Tables ── */
.news-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  font-size: 0.9375rem;
}

.news-article__content th {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
  background: #124651;
  padding: 12px 16px;
  text-align: left;
}

.news-article__content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2eeee;
}

.news-article__content tr:nth-child(even) td {
  background: #f4f8f8;
}

/* ── Blockquotes ── */
.news-article__content blockquote {
  margin: 0 0 24px;
  padding: 20px 24px;
  border-left: 4px solid #42796c;
  background: #f4f8f8;
  border-radius: 0 8px 8px 0;
}

.news-article__content blockquote p {
  margin: 0;
  font-style: italic;
  color: #4a6a6d;
}

/* ── Code blocks ── */
.news-article__content code {
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  background: #f4f8f8;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1a7a7a;
}

.news-article__content pre {
  background: #124651;
  color: #e2eeee;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.news-article__content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ── FAQ section in article ── */
.news-article__faq {
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 1px solid #e2eeee;
}

.news-article__faq .sv-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-article__faq .sv-faq__item {
  border-bottom: 1px solid #e0eaea;
}

.news-article__faq .sv-faq__item:first-child {
  border-top: 1px solid #e0eaea;
}

.news-article__faq .sv-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Philosopher', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a7a7a;
}

.news-article__faq .sv-faq__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: #1a7a7a;
  fill: none;
  stroke-width: 2.5;
  transition: transform 0.25s ease;
}

.news-article__faq .sv-faq__question[aria-expanded="true"] .sv-faq__icon {
  transform: rotate(180deg);
}

.news-article__faq .sv-faq__answer {
  padding: 0 0 20px;
}

.news-article__faq .sv-faq__answer p {
  font-family: 'Philosopher', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #414141;
  margin: 0;
}

/* ── Back button ── */
.news-article__back-wrap {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-article__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a7a7a;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #e2eeee;
  border-radius: 30px;
  transition: all 0.2s;
}

.news-article__back:hover {
  border-color: #1a7a7a;
  background: #f4f8f8;
  gap: 14px;
}

.news-article__back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .news-article {
    padding: 40px 20px 60px;
  }

  .news-hero .sv-hero__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .news-hero .sv-hero__content {
    padding: 100px 20px 40px;
  }

  .news-article__content {
    font-size: 1rem;
  }

  .news-article__content h2 {
    font-size: 1.25rem;
    margin: 36px 0 16px;
  }

  .news-article__content h3 {
    font-size: 1.125rem;
  }

  .news-article__breadcrumb {
    padding: 12px 16px;
  }

  .news-article__back-wrap {
    padding: 20px;
  }

  .news-article__back {
    width: 100%;
    justify-content: center;
  }

  .news-article__faq .sv-faq__question {
    font-size: 1rem;
  }
}
