:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color */
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Main text color for the page, as body is deep navy */
  background-color: var(--deep-navy); /* Ensure consistency if body bg is not explicitly set by shared */
  line-height: 1.6;
}

.page-news a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

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

.page-news__section {
  padding: 60px 0;
  text-align: center;
}

.page-news__dark-section {
  background-color: var(--card-bg); /* Use card background for dark sections */
  color: var(--text-main);
}

.page-news__section-title {
  font-size: 3em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__highlight-text {
  color: var(--gold-color);
  font-weight: bold;
}

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop too */
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px; /* Apply border-radius to image as well */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__hero-content h1 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Example clamp */
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* News Grid */
.page-news__news-grid,
.page-news__featured-grid,
.page-news__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card,
.page-news__featured-card,
.page-news__promo-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
  text-align: left;
}

.page-news__news-card img,
.page-news__featured-card img,
.page-news__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image size */
  object-fit: cover;
  display: block;
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-news__card-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to grow */
}

.page-news__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__card-date {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to grow */
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align button to start */
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__read-more-button:hover {
  background-color: var(--primary-color);
}

.page-news__view-all-button-container {
  margin-top: 50px;
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: 600;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(var(--primary-color), 0.5); /* Lighter hover for dark background */
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  line-height: 1.5;
  text-align: left;
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color); /* Use gold for toggle */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--primary-color), 0.2); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 1em;
  text-align: left;
}
details.page-news__faq-item .page-news__faq-answer p {
  margin-bottom: 0;
}


/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Use primary color for final CTA */
}

.page-news__text-center {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2.5em;
  }
  .page-news__hero-content h1 {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
  }

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

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

  /* Hero */
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image img {
    border-radius: 4px;
  }
  .page-news__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1.1em;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* News Grid */
  .page-news__news-grid,
  .page-news__featured-grid,
  .page-news__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card img,
  .page-news__featured-card img,
  .page-news__promo-card img {
    height: 200px; /* Adjust image height for mobile cards */
  }

  .page-news__card-content {
    padding: 15px;
  }

  .page-news__card-title {
    font-size: 1.3em;
  }

  .page-news__card-date {
    margin-bottom: 10px;
  }

  .page-news__card-excerpt {
    margin-bottom: 15px;
  }

  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__view-all-button-container {
    margin-top: 30px;
  }
  
  /* FAQ */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 1em; }
  .page-news__faq-toggle { font-size: 24px; margin-left: 10px; width: 24px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }

  /* Ensure all images and containers are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Override padding for sections that have full-width content (like hero) */
  .page-news__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-news__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure buttons also adapt */
  .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;
  }
  /* Button containers */
  .page-news__view-all-button-container,
  .page-news__cta-section .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}