/* Zhende News — Premium B2B Editorial Layer */

/* Small radius system — aligned with contact.html modules */
.news-page,
.article-page {
  --radius-xs: 6px;
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius: 6px;
  --radius-module: 6px;
  --news-ink: #081830;
  --news-paper: #f7f9fc;
  --news-glass: rgba(255, 255, 255, 0.92);
  --shadow-editorial: 0 24px 64px rgba(8, 24, 48, 0.12);
  --shadow-card: 0 2px 8px rgba(8, 24, 48, 0.04), 0 12px 32px rgba(8, 24, 48, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(8, 24, 48, 0.08), 0 28px 56px rgba(8, 24, 48, 0.12);
}

/* ===== CATEGORY NAV — contact pill + icon pattern ===== */
.news-page .cat-nav-wrap {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--zd-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.news-page .cat-nav-inner {
  height: 58px;
}
.news-page .cat-nav-list {
  gap: 8px;
}
.news-page .cat-nav-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--zd-body);
  background: var(--zd-gray);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-page .cat-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.news-page .cat-nav-btn:hover {
  color: var(--zd-blue);
  background: rgba(0, 59, 142, 0.06);
  border-color: rgba(0, 59, 142, 0.1);
}
.news-page .cat-nav-btn.is-active {
  color: #fff;
  background: var(--zd-blue);
  border-color: var(--zd-blue);
  box-shadow: none;
  font-weight: 600;
}

/* ===== FEATURED ===== */
.news-page .news-featured {
  padding-top: 40px;
  background: #fff;
}
.news-page .news-section-head {
  margin-bottom: 40px;
  padding-bottom: 0;
  border-bottom: none;
}
.news-page .news-section-tag {
  display: none;
}
.news-page .news-section-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: #2a3340;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 16px;
}
.news-page .news-featured-main {
  box-shadow: var(--shadow-editorial);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.news-page .news-featured-main:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.news-page .news-side-card {
  border: none;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.news-page .news-side-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* ===== LISTING ===== */
.news-page .news-listing {
  background: var(--news-paper);
  padding-top: 48px;
}
.news-page .news-toolbar {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zd-border);
  margin-bottom: 40px;
}
.news-page .news-sort select {
  border-color: transparent;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ===== PREMIUM CARDS ===== */
.news-page .news-card,
.article-page .news-card {
  border: none;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.news-page .news-card::before,
.article-page .news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--zd-blue);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-page .news-card:hover::before,
.article-page .news-card:hover::before {
  transform: scaleX(1);
}
.news-page .news-card:hover,
.article-page .news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.news-page .news-card-body h3,
.article-page .news-card-body h3 {
  font-size: 18px;
  letter-spacing: -0.3px;
  transition: color 0.25s;
}
.news-page .news-card:hover h3 a,
.article-page .news-card:hover h3 a {
  color: var(--zd-blue);
}
.news-page .news-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 24, 48, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.news-page .news-card:hover .news-card-thumb::after {
  opacity: 1;
}

/* ===== PAGINATION ===== */
.news-page .news-page-btn {
  border: none;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.news-page .news-page-btn.is-active {
  box-shadow: none;
}

/* ===== CONTACT CTA — matches contact.html .contact-cta-band ===== */
.news-page .news-contact-cta {
  padding: 0;
  background: transparent;
  border: none;
}
.news-contact-cta-band {
  padding: 72px 0;
  background: var(--zd-dark);
  position: relative;
  overflow: hidden;
}
.news-contact-cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.news-contact-cta-band .news-contact-cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.news-contact-cta-band .news-section-tag {
  display: none;
}
.news-contact-cta-band h2 {
  color: #fff !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
  max-width: 560px !important;
  margin: 0 !important;
}
.news-contact-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.news-contact-cta-band .hero-btn-primary {
  background: var(--zd-blue);
}
.news-contact-cta-band .hero-btn-secondary {
  background: #fff;
  border-color: #fff;
  color: var(--zd-blue);
}
.news-contact-cta-band .hero-btn-secondary:hover {
  background: #f5f7fa;
  border-color: #fff;
  color: var(--zd-navy);
}
.article-page .article-hero {
  padding: 56px 0 0;
  background: linear-gradient(180deg, var(--news-paper) 0%, #fff 100%);
}
.article-page .article-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 32px;
}
.article-page .article-title {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -1.2px;
  max-width: 720px;
  margin: 0 auto;
  text-align: start;
  text-wrap: wrap;
}
.article-page .article-lead {
  font-size: clamp(17px, 2vw, 21px);
  color: #444;
  border-inline-start: 3px solid var(--zd-rose);
  padding-inline-start: 20px;
  margin: 24px auto 0;
  max-width: 720px;
  text-align: start;
}
.article-page .article-cover {
  margin-bottom: 0;
  padding: 0 var(--page-gutter);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.article-page .article-cover-frame {
  max-width: min(800px, 100%);
  margin: 0;
  padding: 0 0 36px;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.article-page .article-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(42vw, 420px);
  object-fit: cover;
  object-position: center center;
  margin: 0;
  border-radius: var(--radius-md);
}

.article-page .article-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-gutter) var(--sec-pad);
  display: block;
}
.article-page .article-main {
  max-width: 720px;
  margin: 0 auto;
}
.article-page .article-main {
  min-width: 0;
}
.article-page .article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.article-sidebar-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
}
.article-sidebar-card h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zd-body);
  margin-bottom: 16px;
}

.article-page .article-body-inner p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  text-align: start;
}
.article-page .article-body-inner h2 {
  font-size: 26px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--zd-border);
  text-align: start;
}
.article-page .article-body-inner blockquote {
  font-size: 20px;
  line-height: 1.65;
  padding: 28px 32px;
  border-left: 4px solid var(--zd-rose);
  background: linear-gradient(90deg, var(--news-paper) 0%, #fff 100%);
}

.article-page .article-related {
  background: var(--news-ink);
  color: #fff;
}
.article-page .article-related h2 {
  color: #fff;
}
.article-page .article-related .news-section-tag {
  color: rgba(255, 255, 255, 0.5);
}
.article-page .article-related .news-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-page .article-related .news-card-body h3 a,
.article-page .article-related .news-card-excerpt,
.article-page .article-related .news-card-meta time {
  color: rgba(255, 255, 255, 0.85);
}
.article-page .article-related .news-card-excerpt {
  color: rgba(255, 255, 255, 0.55);
}
.article-page .article-related-header {
  margin-bottom: 40px;
}
.article-page .article-related-header p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}
.news-page .news-featured-main-content .news-cat-badge {
  margin-bottom: 8px;
  padding: 3px 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 59, 142, 0.88);
}

.news-page .news-card-meta .news-cat-badge {
  margin-bottom: 0;
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

.article-page .article-related .news-cat-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  font-size: 9px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 0;
}
.article-page .article-related .news-card-link {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.article-page .article-related .news-card-link svg {
  color: #fff;
}

.article-copy-note {
  display: none;
  font-size: 12px;
  color: #059669;
  margin-top: 8px;
}
.article-copy-note.is-visible {
  display: block;
}

.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(8, 24, 48, 0.08);
}

/* ===== Module corners — 6px like homepage ===== */
.news-page .news-featured-main,
.news-page .news-side-card,
.news-page .news-card,
.news-page .news-media-card,
.article-page .article-cover-frame,
.article-page .article-sidebar-card,
.article-page .news-card {
  border-radius: var(--radius-module, 6px) !important;
}

/* Keep these square / compact */
.news-page .news-cat-badge,
.article-page .article-body-inner blockquote {
  border-radius: 0 !important;
}
.article-page .article-body-inner blockquote {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

.article-page .article-main .article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--zd-border);
}
.article-page .article-main .article-copy-note {
  display: none !important;
}
@media (max-width: 1024px) {
  .article-page .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar .article-sidebar-card:first-child {
    display: none;
  }
  .article-page .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .article-page .article-sidebar {
    grid-template-columns: 1fr;
  }
  .news-contact-cta-band .news-contact-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }
  .news-contact-cta-band {
    padding: 48px 0;
  }
  .article-page .article-title {
    max-width: none;
  }
}