:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000;
  --bg-card-dark: rgba(255, 255, 255, 0.08);
  --bg-section-dark-light: rgba(255, 255, 255, 0.05);
}

.page-news {
  color: var(--text-light); /* Default text color for the page content due to dark body background */
  background-color: var(--bg-dark); /* Ensure main content background matches body */
  min-height: 100vh;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

/* Responsive padding for main content container */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Featured Article Section */
.page-news__featured-article-section {
  margin-bottom: 60px;
  background-color: var(--bg-section-dark-light); /* Slightly transparent white for contrast */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__featured-article-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-news__featured-article-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-news__featured-article-meta {
  font-size: 14px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 20px;
}

.page-news__featured-article-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1em;
  color: #f0f0f0;
}

/* Recent Articles Section */
.page-news__recent-articles-section {
  margin-bottom: 60px;
}

.page-news__section-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.page-news__article-card {
  background-color: var(--bg-card-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__article-card-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-news__article-card-meta {
  font-size: 13px;
  color: #999999;
  text-align: right;
  margin-top: auto;
}

/* Why Choose 8kbey Section */
.page-news__why-choose-section {
  margin-bottom: 60px;
  background-color: rgba(139, 0, 0, 0.1); /* Light transparent secondary color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-news__why-choose-content {
  flex: 2;
}

.page-news__why-choose-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-news__why-choose-content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-news__why-choose-image {
  flex: 1;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

/* FAQ Section */
.page-news__faq-section {
  margin-bottom: 60px;
  background-color: var(--bg-section-dark-light);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__faq-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* FAQ items */
.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ item */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc; /* Light text for answer */
  background-color: #2a2a2a; /* Slightly lighter dark background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Dark background for question */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question:active {
  background: #3a3a3a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Gold text for question */
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Call to Action Section */
.page-news__cta-section {
  text-align: center;
  padding: 60px 0;
  background-color: rgba(255, 215, 0, 0.1); /* Light transparent gold background */
  border-radius: 10px;
  margin-bottom: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.page-news__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrap for mobile */
  word-wrap: break-word; /* Allow text wrap for mobile */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
}

.page-news__cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-dark); /* Darken text on hover for contrast with gold */
}

.page-news__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
  .page-news__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__featured-article-section,
  .page-news__recent-articles-section,
  .page-news__why-choose-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 20px 15px;
    margin-bottom: 40px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__featured-article-title {
    font-size: 28px;
  }

  .page-news__section-title,
  .page-news__why-choose-title,
  .page-news__faq-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-news__article-card-title {
    font-size: 18px;
  }

  .page-news__article-card-excerpt {
    font-size: 14px;
  }

  .page-news__why-choose-section {
    flex-direction: column; /* Stack content and image on mobile */
  }

  .page-news__why-choose-content {
    order: 2; /* Content below image */
  }

  .page-news__why-choose-image {
    order: 1; /* Image above content */
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
  }

  .page-news__faq-question {
    padding: 15px;
  }

  .page-news__faq-question h3 {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

  .page-news__cta-button {
    padding: 14px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Force image responsiveness on mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}