/* ===== NEWS PAGE STYLES ===== */

/* === Hide stats on news pages === */
.news-page .stats-grid {
  display: none !important;
}
.news-page .stats-section {
  padding: 40px 0 32px;
}

/* === Page Header === */
.page-header-section {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(10, 181, 228, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(245, 166, 35, 0.05) 0%, transparent 55%), #fff;
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header-section h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}
.page-header-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.page-header-sm {
  padding: 28px 0 24px;
}
.page-header-sm h1 {
  font-size: 28px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--blue);
}

/* === Section BG === */
.news-list-section {
  background: #fff;
  position: relative;
}
.news-list-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(10, 181, 228, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(245, 166, 35, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* === Three-Column Layout === */
.news-layout {
  display: flex;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 20px;
  position: relative;
  z-index: 1;
}
.news-sidebar-left {
  width: 20%;
  flex-shrink: 0;
}
.news-main {
  flex: 1;
  min-width: 0;
}
.news-sidebar-right {
  width: 20%;
  flex-shrink: 0;
}

/* === Left Sidebar: Ad Cards === */
.ad-card {
  border-radius: 12px;
  padding: 28px 22px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.ad-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
}
.ad-card p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 18px;
  line-height: 1.6;
}
.ad-card-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.ad-card-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.ad-card-orange {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}
.ad-card-blue {
  background: linear-gradient(135deg, #0ab5e4, #6366f1);
}
.ad-card-purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* === News List Cards === */
.news-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 181, 228, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}
.news-card-link {
  display: flex;
  gap: 18px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.news-card-thumb {
  width: 220px;
  min-height: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #e8f8fd;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
}
.news-card:hover .news-card-thumb {
  transform: scale(1.035);
}
.news-card-thumb svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.68;
}
.news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card:hover .news-card-title {
  color: #f97316;
}
.news-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-date {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Load More === */
.news-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 28px 0 12px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}
a.page-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(10, 181, 228, 0.04);
}
.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.page-btn:disabled {
  color: #aab3bc;
  background: #f5f7f9;
  cursor: not-allowed;
  opacity: 0.75;
}

.news-load-more {
  min-width: 180px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(10, 181, 228, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #f0fbff, #fffaf0);
  color: #087fa1;
  font: 600 14px inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-load-more:hover {
  transform: translateY(-2px);
  border-color: #0ab5e4;
  box-shadow: 0 8px 20px rgba(10, 181, 228, 0.14);
}
.news-load-more:focus-visible {
  outline: 3px solid rgba(10, 181, 228, 0.24);
  outline-offset: 3px;
}

/* === Right Sidebar === */
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.consultant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
  transition: all 0.2s;
}
.consultant-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.consultant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}
.consultant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consultant-info {
  flex: 1;
  min-width: 0;
}
.consultant-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.consultant-name span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}
.consultant-contact {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-contact-btn {
  padding: 2px 8px;
  border: 1px solid rgba(10, 181, 228, 0.2);
  background: rgba(10, 181, 228, 0.05);
  color: #0ab5e4;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-contact-btn:hover {
  background: #0ab5e4;
  color: #fff;
  border-color: #0ab5e4;
}

/* Hot Articles */
.hot-articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hot-article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: color 0.2s;
}
.hot-article-item:last-child {
  border-bottom: none;
}
.hot-article-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e8eaed;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hot-article-item:nth-child(1) .hot-article-rank,
.hot-article-item:nth-child(2) .hot-article-rank,
.hot-article-item:nth-child(3) .hot-article-rank {
  background: #f97316;
  color: #fff;
}
.hot-article-title {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-article-item:hover .hot-article-title {
  color: #f97316;
}

/* === Article Detail === */
.article-detail {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 36px 40px;
}
.article-title {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e5eef3;
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--text-light);
  font-size: 13px;
}
.article-meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-body {
  line-height: 1.8;
  font-size: 17px;
  color: var(--text);
}
.article-body p {
  margin-bottom: 18px;
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text);
}
.article-body img {
  width: 100%;
  height: auto;
  margin: 24px 0 8px;
  border: 1px solid #e8eef2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.article-body figure {
  margin: 24px 0;
}
.article-body figure img {
  margin: 0 0 8px;
}
.article-body figcaption {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.article-body blockquote {
  position: relative;
  margin: 24px 0;
  padding: 20px 24px 20px 28px;
  border-left: 6px solid #f97316;
  background: rgba(249, 115, 22, 0.05);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.article-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 32px;
  color: #ccc;
  font-family: Georgia, serif;
  line-height: 1;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.article-body li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Article Nav */
.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}
.article-nav-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #e5edf2;
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-nav-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-light);
  font-size: 12px;
}
.article-nav-card strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-nav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 181, 228, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}
.article-nav-card:focus-visible {
  outline: 3px solid rgba(10, 181, 228, 0.24);
  outline-offset: 3px;
}
.article-nav-prev {
  text-align: left;
}
.article-nav-next {
  text-align: right;
}

/* === Responsive === */
@media (max-width: 992px) {
  .news-sidebar-left,
  .news-sidebar-right {
    display: none;
  }
  .news-main {
    width: 100%;
  }
  .news-layout {
    padding: 20px 16px;
  }
}
@media (max-width: 768px) {
  .page-header-section {
    padding: 36px 0 30px;
  }
  .page-header-section h1 {
    font-size: 26px;
  }
  .news-card-link {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .news-card-thumb {
    width: 100%;
    min-height: 180px;
  }
  .article-detail {
    padding: 24px 18px;
  }
  .article-title {
    font-size: 22px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card-thumb,
  .news-load-more,
  .article-nav-card {
    transition: none;
  }
  .news-card:hover,
  .news-card:hover .news-card-thumb,
  .news-load-more:hover,
  .article-nav-card:hover {
    transform: none;
  }
}
