/* style/news.css */

/* Body background is var(--neon-dark-bg), which is dark. Therefore, general text should be light. */
.page-news {
  color: #ffffff; /* Default text color for the page content */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-news__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__title-light {
  color: #ffffff;
}

.page-news__subtitle-light {
  color: #e0e0e0;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
}

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

.page-news__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  color: #ffffff;
}

.page-news__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 60ch; /* Ensure title doesn't get too long */
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2em, 4vw, 3.5em);
}

.page-news__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__video-cta {
  margin-top: 30px;
  margin-left: 0; /* Override default margin-left for single button */
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: #ffffff; /* Light background for contrast */
  padding: 60px 0;
  color: #333333;
}

.page-news__latest-articles .page-news__section-title {
  color: #26A9E0;
}

.page-news__latest-articles .page-news__section-subtitle {
  color: #555555;
}

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

.page-news__article-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  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.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-news__article-title a:hover {
  text-decoration: underline;
}

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

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

.page-news__read-more {
  display: inline-block;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

/* Video Section */
.page-news__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #000000; /* Dark background for video section */
  color: #ffffff;
}

.page-news__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%; /* Desktop width */
  max-width: 100%;
  background-color: #1a1a1a;
  border-radius: 10px;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

/* In-Depth Article Section */
.page-news__in-depth-article {
  background-color: #ffffff; /* Light background */
  padding: 60px 0;
  color: #333333;
}

.page-news__in-depth-article .page-news__section-title {
  color: #26A9E0;
}

.page-news__in-depth-article .page-news__section-subtitle {
  color: #555555;
}

.page-news__in-depth-article h3 {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-news__in-depth-article p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-news__in-depth-article a {
  color: #EA7C07;
  text-decoration: none;
}

.page-news__in-depth-article a:hover {
  text-decoration: underline;
}

.page-news__read-more-cta {
  margin-top: 30px;
  margin-left: 0;
}

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

.page-news__faq-section .page-news__section-title {
  color: #ffffff;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  list-style: none; /* For <details> */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
}

.page-news__faq-answer a {
  color: #EA7C07;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  background-color: #f0f0f0; /* Light background */
  padding: 60px 0;
  text-align: center;
  color: #333333;
}

.page-news__cta-bottom .page-news__section-title {
  color: #26A9E0;
}

.page-news__cta-bottom .page-news__description {
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

  .page-news__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-news__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

  .page-news__article-title {
    font-size: 1.1em;
  }

  .page-news__in-depth-article h3 {
    font-size: 1.5em;
    margin-top: 30px;
  }

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__faq-list {
    padding: 0 15px;
  }

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

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

  .page-news__latest-articles .page-news__container,
  .page-news__in-depth-article .page-news__container,
  .page-news__cta-bottom .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}