.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for the page, assuming dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Base container for content */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-title--light {
  color: #ffffff; /* White for titles on dark backgrounds */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__hero-button,
.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-news__btn-primary,
.page-news__hero-button {
  background-color: #FFD700; /* Gold background */
  color: #0A2463; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover,
.page-news__hero-button:hover {
  background-color: #e0b800;
  border-color: #e0b800;
}

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Or a suitable height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold for hero title */
}

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

.page-news__hero-button {
  font-size: 1.1em;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background for this section */
  color: #ffffff;
}

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

.page-news__article-card {
  background-color: #1a1a1a; /* Slightly lighter dark for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

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

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

.page-news__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #ffffff;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
}

.page-news__read-more {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #0A2463; /* Main dark blue brand color */
  color: #ffffff;
}

.page-news__category-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); /* Semi-transparent white on dark blue */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-news__category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-news__category-title a:hover {
  color: #ffffff;
}

.page-news__category-description {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 15px;
  flex-grow: 1;
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-news__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 10; /* Ensure it's above the video controls */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block; /* Ensure it behaves as a block element */
}

.page-news__video-description {
  text-align: center;
  font-size: 1.1em;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

/* In-depth Article Section */
.page-news__in-depth-article {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for readability */
  color: #e0e0e0;
}

.page-news__article-intro {
  font-size: 1.2em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-news__article-subtitle {
  font-size: 2em;
  color: #FFD700;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: left;
}

.page-news__in-depth-article p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-news__in-depth-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__article-image--full-width {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-news__article-image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 30px;
  max-width: 50%;
}

.page-news__article-image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 30px;
  max-width: 50%;
}

.page-news__article-conclusion {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 50px;
  text-align: center;
  color: #FFD700;
}

/* Clear floats for images */
.page-news__in-depth-article::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A2463; /* Main dark blue brand color */
  color: #ffffff;
}

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

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

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

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

.page-news__faq-text {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #FFD700;
}

.page-news__faq-item.active .page-news__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  font-size: 1.05em;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
  color: #e0e0e0;
}

.page-news__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

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

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

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

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  max-width: 600px; /* Constrain button group width */
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

/* Global image styles to prevent small icons */
.page-news img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
  /* Keep original colors, no filter */
  filter: none !important;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.2em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image--right,
  .page-news__article-image--left {
    max-width: 45%;
    margin-left: 20px;
    margin-right: 20px;
  }
}

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

  /* Fixed header offset for hero and video section in mobile */
  .page-news__hero-section,
  .page-news__featured-video {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-news__hero-section {
    height: 450px;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

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

  .page-news__article-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-news__article-image {
    height: 200px;
  }

  .page-news__category-image {
    height: 150px;
  }

  .page-news__article-image--right,
  .page-news__article-image--left {
    float: none;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .page-news__in-depth-article p {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video container responsiveness */
  .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;
  }

  /* Mobile button responsiveness */
  .page-news__cta-button,
  .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; /* Ensure it takes full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

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

  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__cta-description {
    font-size: 1.1em;
  }
}

/* Ensure all content containers are responsive */
.page-news__section,
.page-news__card,
.page-news__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}