.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: #017439; /* Brand color as background for hero */
  color: #ffffff;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-news__hero-content {
  padding: 40px 20px;
  max-width: 900px;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  color: #ffffff;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Section Titles & Descriptions */
.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Darker text for light background */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333; /* Darker text for light background */
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for content */
  color: #333333;
}

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

.page-news__news-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439; /* Brand color for titles */
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-news__read-more {
  display: flex;
  align-items: center;
  color: #C30808; /* Read more link color */
  font-weight: 600;
}

.page-news__arrow {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
  margin-left: 12px;
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  padding: 15px 40px;
  font-size: 1.1em;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-news__featured-news-section .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-news-section .page-news__section-description {
  color: #f0f0f0;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__featured-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  align-items: center;
}

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

.page-news__featured-content {
  width: 50%;
  padding: 30px;
}

.page-news__featured-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-news__featured-meta {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 1.05em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-news__featured-card .page-news__read-more {
  color: #FFFF00; /* Yellow for dark background */
}

.page-news__featured-card .page-news__read-more:hover .page-news__arrow {
  margin-left: 12px;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  text-align: center;
  color: #333333;
}

.page-news__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #017439;
}

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* Ensure all images are responsive */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for smaller screens */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

  .page-news__featured-card {
    flex-direction: column;
    text-align: center;
  }

  .page-news__featured-image {
    width: 100%;
  }

  .page-news__featured-content {
    width: 100%;
    padding: 20px;
  }

  .page-news__featured-title {
    font-size: 1.6em;
  }

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

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

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

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for smaller screens */
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* 按钮与按钮容器 */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="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 !important;
    padding-right: 15px !important;
  }

  .page-news__hero-cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-news__button-group {
    flex-direction: column;
  }

  /* 其他内容模块 - Section Titles & Descriptions */
  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* 最新新闻区 (Latest News Section) */
  .page-news__latest-news-section {
    padding: 40px 0;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-image {
    height: 180px;
  }

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

  .page-news__card-excerpt {
    font-size: 0.95em;
  }

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

  /* Tin nổi bật (Featured News Section) */
  .page-news__featured-news-section {
    padding: 40px 0;
  }

  .page-news__featured-card {
    flex-direction: column;
  }

  .page-news__featured-image {
    width: 100%;
  }

  .page-news__featured-content {
    width: 100%;
    padding: 20px;
  }

  .page-news__featured-title {
    font-size: 1.4em;
  }

  .page-news__featured-excerpt {
    font-size: 1em;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 40px 0;
  }

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

  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  
  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}