.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherit from shared.css body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 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-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Hero Section */
.page-news__hero-section {
  padding-top: 0; /* Assumes shared.css handles body padding-top */
  padding-bottom: 80px;
  background: linear-gradient(135deg, rgba(38, 169, 224, 0.8), rgba(18, 18, 18, 0.8)), url('[GALLERY:hero:1920x1080:rikvip.win,news,updates,promotions,official,2026]') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.7); /* Dark overlay */
  z-index: 1;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-news__hero-image-wrapper {
  display: none; /* Hero image integrated into background */
}

.page-news__hero-image {
  display: none;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

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

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

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

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 70px;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #1a8ccb;
}

.page-news__article-summary {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
  min-height: 80px;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1a8ccb;
}

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: #202020;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__category-name {
  font-size: 1.3em;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

.page-news__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #202020;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #1a8ccb;
}

.page-news__faq-item.active .page-news__faq-question {
  background-color: #1a8ccb;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a2a2a;
  color: #cccccc;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.7); /* Dark overlay */
  z-index: 1;
}

.page-news__cta-section .page-news__container {
  position: relative;
  z-index: 2;
}

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

.page-news__cta-section .page-news__section-subtitle {
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-news__cta-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__category-name {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 0;
    padding-bottom: 60px;
    min-height: 400px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__hero-buttons .page-news__btn-primary,
  .page-news__hero-buttons .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 产品展示图区域 (Latest Articles) */
  .page-news__latest-articles {
    padding: 60px 0;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.2em;
    min-height: auto;
    margin-bottom: 10px;
  }
  .page-news__article-summary {
    font-size: 0.9em;
    min-height: auto;
  }

  /* 通用图片与容器 */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__container,
  .page-news__section,
  .page-news__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    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-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-buttons,
  .page-news__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;
    flex-direction: column;
  }

  /* 其他内容模块 (Categories, FAQ, CTA) */
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-news__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-news__categories {
    padding: 60px 0;
  }
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-news__category-image {
    height: 150px;
  }
  .page-news__category-name {
    font-size: 1.1em;
  }

  .page-news__faq-section {
    padding: 60px 0;
  }
  .page-news__faq-list {
    padding: 0 15px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__cta-banner-image {
    opacity: 0.1;
  }
}