/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Using custom color for main text */
  background-color: var(--deep-navy); /* Body background from shared */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold); /* Using custom color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 18px;
  color: var(--text-secondary); /* Using custom color for secondary text */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button color */
  color: var(--text-main); /* White text on dark button */
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--text-main); /* White text for secondary button */
  border: 2px solid var(--border); /* Custom border color */
}

.page-news__btn-secondary:hover {
  background: var(--border);
  color: var(--deep-navy);
  transform: translateY(-2px);
}

/* Card styles */
.page-news__card {
  background-color: var(--card-bg); /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* Main text color for cards */
}

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

.page-news__card-image-wrapper {
  width: 100%;
  height: 225px;
  overflow: hidden;
}

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

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

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

.page-news__card-title a {
  color: var(--text-main); /* Card title link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--gold); /* Gold on hover */
}

.page-news__card-date {
  display: block;
  font-size: 14px;
  color: var(--text-secondary); /* Secondary text color */
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--gold); /* Gold for read more link */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  text-decoration: underline;
  color: var(--glow); /* Glow on hover */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  color: var(--text-main);
  overflow: hidden;
}

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

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

.page-news__hero-content {
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  text-align: center;
  z-index: 1;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-news__main-title {
  font-size: clamp(30px, 5vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: var(--gold); /* Gold for H1 */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 900px;
}

.page-news__intro-text {
  font-size: clamp(16px, 2.5vw, 20px); /* Responsive font size */
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 60px 0;
}

.page-news__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

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

.page-news__all-news-cta {
  text-align: center;
  margin-top: 50px;
}

/* Benefits Section */
.page-news__benefits-section {
  padding: 60px 0;
}

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

.page-news__benefit-item {
  text-align: center;
  padding: 30px;
}

.page-news__benefit-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold); /* Gold for benefit titles */
  margin-bottom: 15px;
}

.page-news__benefit-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* How-To Section */
.page-news__how-to-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-news__how-to-content {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  color: var(--text-secondary);
}

.page-news__how-to-content p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-news__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  padding-left: 0;
  color: var(--text-secondary);
}

.page-news__ordered-list li {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-news__ordered-list li strong {
  color: var(--text-main); /* Highlight strong text */
}

/* Reliability Section */
.page-news__reliability-section {
  padding: 60px 0;
}

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

.page-news__reliability-item {
  text-align: center;
  padding: 30px;
}

.page-news__reliability-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-news__reliability-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--deep-navy);
}

.page-news__faq-list {
  margin-top: 40px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: rgba(var(--card-bg-rgb), 0.8);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-news__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--card-bg-rgb), 0.7);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Final CTA Section */
.page-news__final-cta-section {
  padding: 80px 0;
}

.page-news__cta-content {
  text-align: center;
}

/* General image sizing */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Article Body for long text sections */
.page-news__article-body {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  color: var(--text-secondary);
}

.page-news__article-body p {
  margin-bottom: 1em;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-news__article-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-news__article-body ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.page-news__article-body li {
  margin-bottom: 0.5em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .page-news__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-news__intro-text {
    font-size: clamp(15px, 2.2vw, 18px);
  }

  .page-news__section-title {
    font-size: 32px;
  }

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

  .page-news__card-title {
    font-size: 20px;
  }

  .page-news__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px; /* 約10px頂距 */
  }
  .page-news__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important;
    position: relative; /* Make it flow */
    height: auto;
    width: 100%;
  }
  .page-news__hero-image-wrapper {
    position: relative; /* Remove absolute positioning for mobile */
    height: auto;
    margin-bottom: 20px;
  }
  .page-news__hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .page-news__main-title {
    font-size: clamp(26px, 8vw, 40px) !important;
    max-width: 100% !important;
  }
  .page-news__intro-text {
    font-size: clamp(14px, 4vw, 16px) !important;
    max-width: 100% !important;
  }

  /* General Images and Containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__hero-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-news__cta-buttons {
    flex-direction: column !important; /* 移动端垂直排列 */
    gap: 15px !important;
    padding: 0 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Decorative Title + Long SEO text */
  .page-news__section-title {
    font-size: 28px !important;
    margin-bottom: 15px !important;
    padding: 0 10px;
  }
  .page-news__section-description {
    font-size: 15px !important;
    margin-bottom: 25px !important;
    padding: 0 10px;
  }
  .page-news__article-body {
    padding: 20px !important;
    font-size: 16px !important;
    max-width: 100% !important;
  }
  .page-news__article-body p,
  .page-news__article-body li {
    font-size: 16px !important;
  }
  .page-news__article-body h3 {
    font-size: 22px !important;
  }

  /* News Grid */
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image-wrapper {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }

  /* Benefits/Reliability Grid */
  .page-news__benefits-grid,
  .page-news__reliability-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Sections padding */
  .page-news__featured-news-section,
  .page-news__benefits-section,
  .page-news__how-to-section,
  .page-news__reliability-section,
  .page-news__faq-section,
  .page-news__final-cta-section {
    padding: 40px 0;
  }
}