.page-news {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Apply header offset to the main page content */
  background-color: #0a0a0a; /* Ensure page background matches body if needed */
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-news__hero-section .page-news__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-news__hero-content {
  flex: 1;
  max-width: 600px;
}

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

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

.page-news__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* General Section Styling */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: #ffffff;
}

.page-news__light-bg .page-news__section-title {
  color: #000000; /* Dark text for light background */
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary button */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-news__btn-primary:hover {
  background-color: #c96a06;
  transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news {
  padding: 60px 0;
  background-color: #ffffff; /* White background */
  color: #333333;
}

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

.page-news__article-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;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

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

.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: #1a7fb2;
}

/* Categories Section */
.page-news__categories {
  padding: 60px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff;
}

.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-news__category-item:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Special Reports Section */
.page-news__special-reports {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__report-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.page-news__report-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-news__report-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-news__report-content {
  flex: 2;
}

.page-news__report-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
  font-weight: bold;
}

.page-news__report-subtitle:first-of-type {
  margin-top: 0;
}

.page-news__report-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555555;
}

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

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.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(0deg); /* No rotation for '-' */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

.page-news__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-news__faq-answer a {
  color: #26A9E0; /* Primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__faq-answer a:hover {
  color: #1a7fb2;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__hero-section .page-news__container {
    flex-direction: column;
    text-align: center;
  }
  .page-news__hero-content {
    max-width: 100%;
  }
  .page-news__report-grid {
    flex-direction: column;
  }
  .page-news__report-image-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__container {
    padding: 15px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__hero-cta, .page-news__main-cta {
    width: 100%;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__category-list {
    flex-direction: column;
    align-items: stretch;
  }
  .page-news__category-item {
    width: 100%;
    text-align: center;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__categories,
  .page-news__special-reports,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__container,
  .page-news__article-card,
  .page-news__report-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Fixes (if needed) */
.page-news__dark-bg {
  color: #ffffff;
}
.page-news__light-bg {
  color: #333333;
}
.page-news__btn-primary {
  background: #EA7C07;
  color: #ffffff;
}
.page-news__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
}