/* style/news.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-news {
  color: #ffffff; /* Light text for readability on dark body background #1a1a2e */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-news__description {
  font-size: 1.2em;
  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-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background-color: #C30808; /* Registered color for primary CTA */
  color: #FFFF00; /* Registered font color for primary CTA */
  border: 2px solid transparent;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background to match body, but explicitly set for section */
  color: #ffffff;
}

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

.page-news__latest-articles .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

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

.page-news__article-date {
  font-size: 0.85em;
  color: #999999;
  display: block;
  text-align: right;
}

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

/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
}

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

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

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Subtle overlay for clickability */
  cursor: pointer;
  z-index: 10;
}

.page-news__cta-buttons--video {
  margin-top: 20px;
}

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

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

.page-news__faq-section .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #cccccc;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
  color: #ffffff;
}

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

.page-news__cta-bottom .page-news__section-description {
  color: #f0f0f0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-news__description {
    font-size: 1.1em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__article-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px !important;
  }

  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__featured-video,
  .page-news__faq-section,
  .page-news__cta-bottom {
    padding: 40px 0;
  }
  
  .page-news__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

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

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

  .page-news__article-image {
    height: 200px; /* Adjust height for mobile */
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    padding: 12px 20px !important;
  }

  .page-news__video-wrapper {
    padding-bottom: 75%; /* More square aspect ratio for mobile if needed, or keep 56.25% */
  }

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

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

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

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

  /* Ensure all containers and sections have proper mobile padding and width */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__featured-video,
  .page-news__faq-section,
  .page-news__cta-bottom,
  .page-news__video-wrapper,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Add horizontal padding to main content sections for mobile */
  .page-news__hero-section .page-news__hero-content,
  .page-news__latest-articles .page-news__container,
  .page-news__featured-video .page-news__container,
  .page-news__faq-section .page-news__container,
  .page-news__cta-bottom .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-section .page-news__hero-image-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}