/* style/news.css */

/* --- General Styles for page-news scope --- */
.page-news {
  background-color: var(--bg, #08160F); /* Fallback to custom bg color if --bg not set by shared */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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); 
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg, #08160F);
  color: var(--text-main, #F2FFF6);
  padding-bottom: 60px;
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for better text contrast if text were overlaid, but here it's separate */
  border-radius: 8px;
}

.page-news__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over the image for visual flow */
  position: relative;
  z-index: 2;
  background: var(--card-bg, #11271B); /* Use card background for content block */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: var(--gold, #F2C14E); /* Using gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__lead-paragraph {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  line-height: 1.5;
}

/* --- Buttons --- */
.page-news__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gold, #F2C14E);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid var(--gold, #F2C14E);
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--bg, #08160F);
  transform: translateY(-2px);
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
  padding: 80px 0;
  background-color: var(--bg, #08160F);
}

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

.page-news__news-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main, #F2FFF6); /* Ensure card text is light */
}

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

.page-news__card-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
  transform: scale(1.05);
}

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-news__card-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-news__card-meta {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--gold, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

/* --- Featured News Section --- */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C); /* Different background for contrast */
  color: var(--text-main, #F2FFF6);
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__featured-card {
  display: flex;
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #F2FFF6);
}

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

.page-news__featured-content {
  padding: 30px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-news__featured-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-news__featured-meta {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
}

/* --- FAQ Section --- */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--bg, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-news__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Darker green for question background */
  color: var(--text-main, #F2FFF6);
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question:hover {
  background-color: #13994A; /* Slightly lighter on hover */
}

.page-news__faq-item[open] .page-news__faq-question {
  background-color: #13994A;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

/* Hide default marker for details/summary */
.page-news__faq-item summary::-webkit-details-marker,
.page-news__faq-item summary::marker {
  display: none;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-news__faq-answer a {
  color: var(--gold, #F2C14E);
  text-decoration: underline;
}

/* --- Call to Action Section --- */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color, #11A84E) 0%, var(--secondary-color, #22C768) 100%);
  color: #ffffff;
}

.page-news__cta-title {
  font-size: clamp(2em, 4vw, 3em);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* --- Global Image/Video/Button Responsiveness (Critical for mobile) --- */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news video,
.page-news__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-news__video-section,
.page-news__video-container,
.page-news__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-news__cta-button,
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-buttons,
.page-news__button-group,
.page-news__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .page-news__featured-card {
    flex-direction: column;
  }
  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-news__main-title {
    font-size: 2em;
  }
  .page-news__lead-paragraph {
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }

  .page-news__latest-news-section,
  .page-news__featured-news-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 50px 0;
  }

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

  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__card-excerpt {
    font-size: 0.9em;
  }

  .page-news__featured-title {
    font-size: 1.5em;
  }
  .page-news__featured-excerpt {
    font-size: 0.95em;
  }

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

  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile forced responsiveness for images, videos, buttons */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  .page-news__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is just small decorative padding */
  }

  .page-news__cta-button,
  .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-left: 15px; /* Add padding to buttons themselves for better touch targets */
    padding-right: 15px;
  }
}