.news-post-page {
  background: #f5f7fb;
}

.news-article {
  max-width: 1104px;
  margin: 0 auto;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #0b5fff;
  font-weight: 600;
}

.news-back-link:hover {
  color: #0a4ed1;
}

.news-article-header {
  margin-bottom: 24px;
}

.news-article-header h1 {
  margin: 0 0 14px;
  color: #061536;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #526484;
  font-size: 14px;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.news-meta .icon {
  color: #6b7f9d;
}

.news-article-panel {
  overflow: hidden;
  min-height: 360px;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

.news-featured-image {
  margin: 0;
  background: #fff;
}

.news-featured-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.news-article-content {
  padding: 38px 42px 44px;
  color: #25364d;
  font-size: 16px;
  line-height: 1.72;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  margin: 1.6em 0 0.55em;
  color: #061536;
  line-height: 1.25;
}

.news-article-content h2 {
    font-size: 1.9rem !important;
}

.news-article-content h2:first-child,
.news-article-content h3:first-child,
.news-article-content h4:first-child,
.news-article-content p:first-child {
  margin-top: 0;
}

.news-article-content p,
.news-article-content ul,
.news-article-content ol,
.news-article-content blockquote,
.news-article-content table {
  margin-bottom: 1.1em;
}

.news-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.news-article-content blockquote {
  padding-left: 18px;
  border-left: 4px solid #6576ff;
  color: #364a63;
}

.news-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
}

.news-products {
  margin-top: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
}

.news-products-head {
  margin-bottom: 18px;
}

.news-products-head h2 {
  margin: 0 0 6px;
  color: #061536;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.news-products-head p {
  margin: 0;
  color: #526484;
}

.news-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-product-card:hover {
  color: inherit;
  border-color: #b8c3ff;
  box-shadow: 0 14px 28px rgba(46, 55, 164, 0.12);
  transform: translateY(-4px);
}

.news-product-image {
  display: block;
  background: #f8fafc;
}

.news-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
}

.news-product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
  color: #526484;
  font-weight: 800;
}

.news-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.news-product-id {
  margin-bottom: 6px;
  color: #8094ae;
  font-size: 13px;
  font-weight: 700;
}

.news-product-title {
  color: #061536;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.news-product-link {
  margin-top: auto;
  padding-top: 14px;
  color: #6576ff;
  font-weight: 800;
}

.news-cta h2 {
  margin: 0 0 6px;
  color: #061536;
  font-size: 20px;
  line-height: 1.3;
}

.news-cta p {
  margin: 0;
  color: #526484;
}

.news-related {
  margin-top: 34px;
}

.news-related-head {
  margin-bottom: 18px;
}

.news-related-head h2 {
  margin: 0 0 6px;
  color: #061536;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.news-related-head p {
  margin: 0;
  color: #526484;
}

.news-related-swiper {
  padding-bottom: 44px;
}

.news-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 372px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.news-related-image {
  display: block;
  background: #f8fafc;
}

.news-related-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-related-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.news-related-date {
  margin: 0 0 8px;
  color: #8094ae;
  font-size: 13px;
}

.news-related-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.32;
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-related-body h3 a {
  color: #061536;
}

.news-related-body h3 a:hover {
  color: #6576ff;
}

.news-related-excerpt {
  min-height: 78px;
  margin-bottom: 16px;
  color: #526484;
  overflow: hidden;
}

.news-related-readmore {
  margin-top: auto;
  color: #6576ff;
  font-weight: 700;
}

.news-related-readmore:hover {
  color: #4b58d6;
}

.news-related-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.news-related-prev,
.news-related-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #364a63;
  background: #fff;
  border: 1px solid #dfe6f0;
  border-radius: 50%;
}

.news-related-pagination {
  position: static;
  width: auto !important;
}

.news-related-pagination .swiper-pagination-bullet {
  background: #8094ae;
}

.news-related-pagination .swiper-pagination-bullet-active {
  background: #6576ff;
}

@media (max-width: 767px) {
  .news-article-header h1 {
    font-size: 28px;
  }

  .news-article-content {
    padding: 28px 22px 34px;
  }

  .news-cta {
    display: block;
  }

  .news-cta .btn {
    margin-top: 18px;
  }

  .news-products {
    padding: 22px;
  }

  .news-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .news-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
