.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, but explicitly setting for clarity */
}

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

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px;
  display: block;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-news__hero-content {
  z-index: 1;
  position: relative;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-news__btn-primary,
.page-news__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

.page-news__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-news__btn-login:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-news__article-card {
  background-color: #282828;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-thumbnail {
  width: 100%;
  height: 225px; /* 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: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.page-news__article-excerpt {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more:hover {
  color: #ffffff;
}

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

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #121212;
  color: #ffffff;
}

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

.page-news__category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background-color: #282828;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.page-news__category-card:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-news__faq-item {
  background-color: #282828;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For <details> */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For <details> */
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid #26A9E0; /* Keep border on open state */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−'; /* Change to minus sign */
}

.page-news__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #cccccc;
  background-color: #282828;
}

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

/* CTA Banner Section */
.page-news__cta-banner {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-news__cta-banner .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-news__cta-content {
  max-width: 800px;
}

.page-news__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.page-news__cta-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Utility classes for color contrast (if needed, though specific backgrounds are set) */
.page-news__dark-bg {
  background-color: #121212;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-news__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

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

  .page-news__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

  .page-news__hero-image {
    margin-bottom: 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__latest-articles,
  .page-news__categories-section,
  .page-news__faq-section,
  .page-news__cta-banner {
    padding: 40px 0;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-thumbnail {
    height: 180px;
  }

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

  .page-news__category-card {
    font-size: 1rem;
    padding: 20px;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  .page-news__cta-banner .page-news__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__cta-image {
    max-width: 100%;
    width: 100%;
  }

  /* Image responsiveness for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-news__intro-text {
    font-size: 1rem;
  }

  .page-news__btn-primary,
  .page-news__btn-login {
    padding: 12px 20px;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-news__cta-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-news__cta-banner .page-news__container {
    padding: 0 15px;
  }
}