.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the wrapper area */
  object-position: center;
}

.page-news__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  font-size: 42px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-news__hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* General Section Styling */
.page-news__section {
  padding: 40px 20px;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
}

.page-news__section-description {
  font-size: 16px;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Articles Section */
.page-news__latest-articles {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-news__article-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 20px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1; /* Allow title to take up available space */
}

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

.page-news__article-date {
  font-size: 13px;
  color: #999999;
  text-align: right;
  display: block;
  margin-top: auto; /* Push date to bottom */
}

.page-news__view-all-cta {
  text-align: center;
  margin-top: 20px;
}

/* Featured Categories Section */
.page-news__featured-categories {
  background: #26A9E0; /* Darker background for contrast */
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-news__featured-categories .page-news__section-title {
  color: #ffffff;
}

.page-news__featured-categories .page-news__section-description {
  color: #f0f0f0;
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news__category-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.page-news__category-image {
  width: 100%;
  height: 180px; /* Fixed height for category images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  text-align: center;
  padding: 0 15px;
}

/* FAQ Section */
.page-news__faq-section {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-news__faq-answer p {
  margin: 0;
}

/* CTA Banner Section */
.page-news__cta-banner {
  background: #f0f8ff; /* Light blue background for CTA */
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-top: 40px;
}

.page-news__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure text breaks */
  box-sizing: border-box;
  max-width: 100%;
}

.page-news__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c2;
  border-color: #1e87c2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 38px;
  }
  .page-news__hero-description {
    font-size: 17px;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__cta-title {
    font-size: 32px;
  }
}

@media (max-width: 849px) { /* For hero image object-fit: contain */
  .page-news__hero-image {
    object-fit: contain;
    height: auto;
    max-height: 400px; /* Adjust max height for smaller screens */
  }
}

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

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Still small top padding */
    margin-bottom: 20px;
  }
  .page-news__hero-image-wrapper {
    max-height: 300px;
  }
  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .page-news__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-news__hero-cta {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* General Section Styling */
  .page-news__section {
    padding: 30px 15px;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  /* Latest Articles Section */
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__article-content {
    padding: 15px;
  }
  .page-news__view-all-cta {
    margin-top: 15px;
  }

  /* Featured Categories Section */
  .page-news__featured-categories {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for categories */
    gap: 15px;
    margin-top: 30px;
  }
  .page-news__category-card {
    padding-bottom: 15px;
  }
  .page-news__category-image {
    height: 140px;
  }
  .page-news__category-title {
    font-size: 16px;
  }

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

  /* CTA Banner Section */
  .page-news__cta-banner {
    padding: 40px 15px;
    margin-top: 20px;
  }
  .page-news__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-news__cta-description {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Buttons general mobile */
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for mobile buttons */
    font-size: 15px;
  }
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Image general mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}