:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #F8F9FA; /* Slightly off-white for sections */
  --border-color: #e0e0e0;
}

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches default body background */
}

/* 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;
  /* body { padding-top: var(--header-offset); } handles main spacing */
  padding-top: 10px; /* Small decorative top padding */
  background-color: var(--background-light);
}

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

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px; /* Constrain text width */
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Clamp for responsive H1 */
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Using login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: #c76706; /* Darken login color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__section-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: 700;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-news__article-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

.page-news__article-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-news__article-date {
  font-size: 0.85rem;
  color: #666;
  display: block;
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-button:hover {
  background: #2087b3; /* Darken primary color */
}

/* Featured Article Section */
.page-news__featured-article-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-news__content-area {
  max-width: 900px; /* Narrower content area for readability */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-news__featured-article-section h3 {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-news__featured-article-section p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background: #2087b3; /* Darken primary color */
}

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

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: var(--background-light);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
}
.page-news__faq-answer p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

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

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px !important; /* body padding-top is handled by shared */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-container {
    padding: 0;
  }

  .page-news__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }

  .page-news__intro-text {
    font-size: 1rem;
    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;
    margin-left: auto;
    margin-right: auto;
  }

  /* General Sections */
  .page-news__container,
  .page-news__content-area {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-news__article-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__article-title {
    font-size: 1.15rem;
  }

  .page-news__article-excerpt {
    font-size: 0.9rem;
  }

  .page-news__view-all-button {
    padding: 10px 25px;
    font-size: 0.9rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Featured Article */
  .page-news__featured-image {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__featured-article-section h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-news__featured-article-section p {
    font-size: 1rem;
    line-height: 1.6;
  }

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

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }
  details.page-news__faq-item .page-news__faq-answer { padding: 0 15px 15px; }
  .page-news__faq-answer p { font-size: 0.95rem; }
}

/* Ensure no image filters are applied */
.page-news img {
  filter: none !important;
}

/* Contrast Fixes (default body is light, so dark text is chosen) */
.page-news__dark-bg {
  background: var(--primary-color);
  color: var(--text-light); /* White text on primary color */
}

.page-news__light-bg {
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on white background */
}

/* Example of contrast fix for specific elements if they have a non-standard background */
.page-news__card {
  background: var(--secondary-color); /* Default white card background */
  color: var(--text-dark); /* Dark text */
  border: 1px solid var(--border-color);
}

/* Specific button colors */
.page-news__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-news__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}