/* News article detail */

.news-detail-page .site-header {
  background: #ffffff;
}

.news-detail-main {
  margin-top: 88px;
  padding: 48px 0 80px;
  background: #ffffff;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.news-article {
  min-width: 0;
  max-width: calc(100% - 100px);
}

.news-article-date {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.news-article-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8ecf2;
}

.news-article-lead {
  font-size: 15px;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 28px;
}

.news-article-figure {
  margin: 0 0 32px;
  overflow: hidden;
  background: #e2e8f0;
}

.news-article-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-article-body {
  font-size: 15px;
  color: #64748b;
  line-height: 1.85;
}

.news-article-body p {
  margin-bottom: 1.25em;
}

.news-article-body p:last-child {
  margin-bottom: 0;
}

.news-article-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}

.news-article-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-article-nav-row:hover {
  opacity: 0.88;
}

.news-article-nav-btn {
  flex-shrink: 0;
  min-width: 72px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
}

.news-article-nav-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: #94a3b8;
}

.news-article-nav-row--prev .news-article-nav-btn {
  color: #ffffff;
  background: #ef7300;
}

.news-article-nav-row--next .news-article-nav-btn {
  color: #334155;
  background: #ffffff;
  border: 1px solid #d8dde6;
}

/* Sidebar */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-widget {
  padding: 0 0 8px;
}

.news-widget--latest {
  margin-bottom: 8px;
}

.news-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8ecf2;
  letter-spacing: 0.02em;
}

.news-widget-title--caps {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-latest-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.news-latest-item:last-child {
  margin-bottom: 0;
}

.news-latest-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  background: #e8ecf2;
}

.news-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-latest-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-latest-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-latest-body h3 a:hover {
  color: #313695;
}

.news-latest-body p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-latest-date {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.news-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.news-tag {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-tag:hover {
  color: #313695;
  border-color: #c5cce0;
}

.news-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #111111;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-share a:hover {
  color: #313695;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .news-sidebar {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .news-detail-main {
    margin-top: 72px;
    padding: 32px 0 64px;
  }

  .news-article-nav-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .news-article-nav-title {
    min-width: 0;
  }
}
