.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--primary-color, #0A2239); /* Inherit from shared or use default dark blue */
}

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

.page-news__dark-bg {
  background-color: #0A2239;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjust padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* General Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: inherit;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

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

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

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
}

.page-news__read-more {
  display: inline-block;
  margin-top: 15px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  color: #333333;
}

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #0A2239;
}

.page-news__article-title a {
  color: #0A2239;
  text-decoration: none;
}

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

.page-news__article-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
}

/* Categories Section */
.page-news__categories {
  padding: 60px 0;
}

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-news__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-news__category-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-news__promotions {
  padding: 60px 0;
}

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

.page-news__promo-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #333333;
}

.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-news__promo-title {
  font-size: 1.3em;
  padding: 15px 20px 10px;
  color: #0A2239;
}

.page-news__promo-text {
  font-size: 1em;
  padding: 0 20px 15px;
  flex-grow: 1;
  color: #555555;
}

.page-news__promo-card .page-news__btn-secondary {
  margin: 0 20px 20px;
  text-align: center;
}

.page-news__cta-buttons {
  text-align: center;
  margin-top: 20px;
}

/* Industry Insights Section */
.page-news__industry-insights {
  padding: 60px 0;
}

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

.page-news__insight-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__insight-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-news__insight-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-news__insight-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

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

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

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

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

.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;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-news__faq-answer p {
  margin: 0 0 10px;
  color: #555555;
}

/* Final CTA Section */
.page-news__cta-final {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-final .page-news__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-news__cta-final .page-news__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-final .page-news__cta-title {
    font-size: 2.2em;
  }
}

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

  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    padding-bottom: 40px;
  }

  .page-news__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__promotions-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card,
  .page-news__category-card,
  .page-news__promo-card,
  .page-news__insight-card,
  .page-news__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px);
    width: auto; /* Allow content to dictate width within max-width */
  }

  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Videos responsive (if any) */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .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; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Adjust margins for full width buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-final .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-final .page-news__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
  .page-news__cta-final .page-news__cta-title {
    font-size: 1.5em;
  }
}