/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__dark-section {
  background: #017439; /* Brand primary color for dark section */
  color: #ffffff; /* White text for dark background */
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-news__section-title--light {
  color: #ffffff;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Desktop: cover to fill */
  display: block;
}

.page-news__hero-content {
  padding-top: 120px; /* Adjust based on image overlay */
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
  color: #ffffff; /* White text over darkish hero image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Clamp for responsive H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-width: 180px;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register font */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-news__btn-secondary {
  background: #017439; /* Brand primary color */
  color: #ffffff; /* White text */
  border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

/* Latest Articles Grid */
.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #017439; /* Brand color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-news__article-meta {
  font-size: 14px;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #C30808; /* Red for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #a30606;
  text-decoration: underline;
}

.page-news__view-all {
  text-align: center;
  margin-top: 20px;
}

/* Featured Promotion Section */
.page-news__featured-promo {
  padding: 80px 0;
}

.page-news__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-news__promo-image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-news__promo-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-news__promo-text {
  flex: 2;
  color: #ffffff;
}

.page-news__promo-subtitle {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__promo-description {
  font-size: 18px;
  margin-bottom: 25px;
}

.page-news__promo-list {
  list-style: disc inside;
  margin-bottom: 25px;
  padding-left: 20px;
}

.page-news__promo-list li {
  margin-bottom: 10px;
  font-size: 17px;
}

/* Game Updates Section */
.page-news__updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__update-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-news__update-image {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-news__update-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-news__update-title a {
  color: #017439;
  text-decoration: none;
}

.page-news__update-title a:hover {
  text-decoration: underline;
}

.page-news__update-date {
  font-size: 14px;
  color: #777777;
  margin-bottom: 10px;
}

.page-news__update-text {
  font-size: 16px;
  color: #555555;
  padding: 0 15px;
}

/* Industry Insights Section */
.page-news__insights-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-news__insight-text {
  flex: 2;
}

.page-news__insight-text p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-news__insight-image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-news__insight-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Call to Action Banner */
.page-news__cta-banner {
  padding: 80px 0;
  text-align: center;
  background: #017439; /* Brand primary color */
}

.page-news__cta-content {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439; /* FAQ question text color */
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}
.page-news__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* General image rules for content area - ensure min size and no small icons */
.page-news img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__hero-content {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-news__promo-content,
  .page-news__insights-content {
    flex-direction: column;
    text-align: center;
  }
  .page-news__promo-image-wrapper,
  .page-news__insight-image-wrapper {
    min-width: unset;
    max-width: 80%;
    margin: 0 auto 30px;
  }
  .page-news__promo-text {
    flex: none;
  }
  .page-news__promo-list {
    text-align: left;
    margin: 0 auto 25px;
    max-width: 600px; /* Constrain list width for better readability */
  }
  .page-news__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px;
    padding-bottom: 20px;
  }
  .page-news__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: 250px !important;
  }
  .page-news__hero-content {
    padding-top: 40px;
    padding-bottom: 30px;
    background: rgba(0, 0, 0, 0.6);
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem) !important;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 产品展示图区域 (General article cards for news page) */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__latest-articles {
    overflow-x: hidden;
  }
  .page-news__article-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-news__article-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }
  .page-news__updates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__update-image {
    height: 150px;
  }
  .page-news__update-title {
    font-size: 18px;
  }
  .page-news__update-text {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__promo-content,
  .page-news__insights-content {
    gap: 20px;
  }
  .page-news__insight-text p {
    font-size: 16px;
    margin-bottom: 15px;
  }
  .page-news__promo-list {
    padding-left: 15px;
  }
  .page-news__promo-list li {
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .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;
  }

  /* 按钮与按钮容器 */
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 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: 12px 15px;
    font-size: 16px;
  }
  .page-news__cta-banner {
    padding: 50px 0;
  }
  .page-news__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-news__cta-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 16px; }
  .page-news__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }
}