/* style/news.css */

/* Base styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #C61F1F 0%, #7E0D0D 100%); /* Deep Red with main color */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-news__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #F3C54D; /* Gold */
  border: 2px solid #F3C54D;
  box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-news__btn-secondary:hover {
  background: #F3C54D;
  color: #2A1212;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

.page-news__read-more-btn {
  background: #E53030;
  color: #FFF1E8;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 5px;
}

.page-news__read-more-btn:hover {
  background: #C61F1F;
}

/* News Grid Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-news__news-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-news__card-title a {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #FFB04A;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #6A1E1E; /* Border */
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #E53030 0%, #C61F1F 100%); /* Auxiliary to Main */
  color: #FFF1E8;
}

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-news__category-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF1E8;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background: #C61F1F;
}

.page-news__category-title {
  font-size: 1.5em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

.page-news__category-text {
  font-size: 1em;
  color: #FFF1E8;
}

/* Featured Article Section */
.page-news__featured-article-section {
  padding: 60px 0;
  background-color: #140C0C;
  color: #FFF1E8;
}

.page-news__article-content {
  max-width: 900px;
  margin: 0 auto;
  background: #2A1212; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 30px;
}

.page-news__article-content p {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-news__article-content .page-news__btn-primary {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #7E0D0D 0%, #C61F1F 100%); /* Deep Red to Main */
  color: #FFF1E8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 15px;
  }

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

  .page-news__hero-description {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px !important; /* Rely on body for header offset */
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    padding: 20px 15px;
  }

  .page-news__main-title {
    font-size: 2em !important;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__container,
  .page-news__latest-news-section,
  .page-news__categories-section,
  .page-news__featured-article-section,
  .page-news__cta-section,
  .page-news__news-card,
  .page-news__category-card,
  .page-news__article-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* 其他内容模块 - News Grid */
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-title {
    font-size: 1.2em;
  }

  /* 其他内容模块 - Category Grid */
  .page-news__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__category-card {
    padding: 20px;
  }

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

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

  .page-news__article-content p {
    font-size: 1em;
  }
}