/* Base styles for the News page */
.page-news {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the page */
}

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

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #ffffff;
  padding-top: 10px; /* Small top padding as body handles header offset */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  max-width: 800px;
  padding: 20px;
}

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

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

/* Latest News Section */
.page-news__latest-news-section {
  padding: 40px 0;
  background-color: #f8f8f8;
}

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

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-date {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
  display: block;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more-btn {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  background-color: #1e87b8;
}

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #26A9E0, #1e87b8);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
}

.page-news__cta-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-news__cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #d16b05;
  transform: translateY(-2px);
}

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

.page-news__faq-list {
  margin-top: 30px;
}

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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  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;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-news__main-title {
    font-size: 36px;
  }
  .page-news__hero-description {
    font-size: 17px;
  }
  .page-news__cta-title {
    font-size: 32px;
  }
  .page-news__cta-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-news__hero-section {
    padding-bottom: 30px;
  }
  .page-news__hero-content {
    padding: 15px;
  }
  .page-news__main-title {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }
  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 15px;
  }
  .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__cta-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__cta-image-wrapper,
  .page-news__news-card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .page-news__faq-question {
    padding: 15px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Ensure contrast for various elements */
.page-news__dark-section {
  background: #26A9E0;
  color: #ffffff;
}
.page-news__btn-primary {
  background: #EA7C07;
  color: #ffffff;
}
.page-news__btn-primary:hover {
  background: #d16b05;
}
.page-news a:not(.page-news__btn-primary) {
  color: #26A9E0;
}
.page-news a:not(.page-news__btn-primary):hover {
  color: #1e87b8;
}

/* Copyright section (placeholder, actual content is in FOOTER_PLACEHOLDER) */
.page-news__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #888888;
  background-color: #ffffff;
  border-top: 1px solid #eeeeee;
}