/* ==========================================================================
   Shandong Gaoqiang New Material Technology Co., Ltd. - News Center CSS
   Clean Layout without Toolbar / Category Badges
   ========================================================================== */

/* --------------------------------------------------
   1. News Hero Banner & Breadcrumbs
   -------------------------------------------------- */
.news-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: url('../images/about_building.jpg') center / cover no-repeat;
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 29, 60, 0.94) 0%, rgba(8, 29, 60, 0.78) 50%, rgba(8, 29, 60, 0.35) 100%);
}

.news-hero-copy {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

.news-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.news-breadcrumb a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.news-breadcrumb a:hover {
  color: #ffffff;
}

.news-breadcrumb i.fa-chevron-right {
  font-size: 0.65rem;
  color: #94a3b8;
}

.news-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero-decor-line {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px 0 16px;
  background: var(--accent);
  border-radius: 2px;
}

.news-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #cbd5e1;
  font-weight: 500;
}

/* --------------------------------------------------
   2. Main News List Section
   -------------------------------------------------- */
.news-list {
  padding: 56px 0 70px;
  background: #ffffff;
}

/* 3-Column Responsive News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.news-card[hidden] {
  display: none !important;
}

/* Card Image */
.news-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #f8fafc;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

/* Card Body */
.news-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-body time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card-body time i {
  color: #1665d8;
  font-size: 0.95rem;
}

.news-card-body h2 {
  margin: 0 0 10px;
  color: #0f223d;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.8em;
  transition: color 0.25s ease;
}

.news-card:hover .news-card-body h2 {
  color: #1665d8;
}

.news-card-body p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.25s ease;
}

.news-read-more i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.news-read-more:hover {
  color: #1665d8;
}

.news-card:hover .news-read-more i {
  transform: translateX(5px);
}

/* Empty State */
.news-empty {
  margin: 60px 0;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------
   3. Pagination Bar Styles
   -------------------------------------------------- */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}

.news-pagination button,
.news-pagination span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #0f223d;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.news-pagination button.active,
.news-pagination button:hover {
  background: #1665d8;
  color: #ffffff;
  border-color: #1665d8;
  box-shadow: 0 4px 12px rgba(22, 101, 216, 0.25);
}

/* --------------------------------------------------
   4. CTA Banner & Responsive Rules
   -------------------------------------------------- */
.products-cta {
  position: relative;
  min-height: 240px;
  padding: 60px 0;
  overflow: hidden;
  color: #ffffff;
  background: url('../images/index-cta.png') center / cover no-repeat;
}

.products-cta-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8, 29, 60, 0.94) 0%, rgba(8, 29, 60, 0.82) 100%);
}

.products-cta-wave {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
}

.products-cta-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.products-cta-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.products-cta h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
}

.products-cta p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
}

.products-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.products-cta-btn:hover {
  color: #081d3c;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 220px;
  }
  .news-card-img {
    height: 180px;
  }
  .news-card-body {
    padding: 18px;
  }
  .products-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}