/* style/news.css */
.page-news {
  color: #FFF3E6; /* Text Main */
  background-color: var(--bg-color, #0D0E12); /* Fallback for body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  background-color: #0D0E12; /* Background */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__description {
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 165, 58, 0.6);
}

.page-news__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.2);
}

.page-news__btn-secondary:hover {
  transform: translateY(-3px);
  background: #FFA53A;
  color: #17191F;
}

/* Latest Articles Section */
.page-news__latest-articles-section,
.page-news__category-highlights-section,
.page-news__about-news-section,
.page-news__cta-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
  text-align: center;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-news__article-image-wrapper {
  width: 100%;
  height: 225px; /* Fixed height for image consistency */
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
  transform: scale(1.05);
}

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #FFB04D; /* Glow */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFA53A; /* Auxiliary color */
}

.page-news__article-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border color for meta info */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  min-height: 70px; /* Ensure consistent card height */
}

.page-news__read-more-link {
  display: inline-block;
  color: #FFA53A; /* Auxiliary color */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #FFA53A;
  padding-bottom: 3px;
  transition: all 0.3s ease;
}

.page-news__read-more-link:hover {
  color: #FFB04D; /* Glow */
  border-color: #FFB04D;
}

.page-news__view-all-button-container {
  margin-top: 20px;
}

.page-news__btn-view-all {
  min-width: 200px;
}

/* Category Highlights Section */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__category-card {
  background-color: #17191F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-news__category-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  background-color: rgba(255, 165, 58, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__category-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.page-news__category-title {
  font-size: 1.8em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-news__category-description {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 25px;
}

/* About News Section */
.page-news__about-news-section {
  text-align: left;
}

.page-news__about-text {
  font-size: 1.1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.8;
}

/* CTA Section */
.page-news__cta-section {
  padding-bottom: 80px;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */

/* Desktop/Tablet common styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

  .page-news__section-title {
    font-size: 2.2em;
  }

  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }

  .page-news__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
  }

  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__main-title {
    font-size: 2em;
    margin-top: 20px;
  }

  .page-news__description {
    font-size: 1em;
  }

  /* 按钮与按钮容器 */
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 其他内容模块 */
  .page-news__latest-articles-section,
  .page-news__category-highlights-section,
  .page-news__about-news-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card,
  .page-news__category-card {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-news__article-image-wrapper {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 1.3em;
  }

  .page-news__article-excerpt {
    min-height: unset;
  }

  .page-news__category-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-news__category-icon {
    width: 50px;
    height: 50px;
  }

  .page-news__category-title {
    font-size: 1.5em;
  }

  .page-news__about-text,
  .page-news__cta-description {
    font-size: 1em;
  }

  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}