/* style/news.css */

/* Custom Colors from palette */
:root {
  --page-news-primary: #11A84E;
  --page-news-secondary: #22C768;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-news-card-bg: #11271B;
  --page-news-bg: #08160F;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border: #2E7A4E;
  --page-news-glow: #57E38D;
  --page-news-gold: #F2C14E;
  --page-news-divider: #1E3A2A;
  --page-news-deep-green: #0A4B2C;

  /* For light background areas, ensure dark text */
  --page-news-light-bg-text: #333333;
  --page-news-light-bg-color: #ffffff;
}

/* Base styles for the page content */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main); /* Default text color for dark body background */
  background-color: var(--page-news-bg); /* Body background is dark, so this section background will be dark */
  line-height: 1.6;
}

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

/* Sections */
.page-news__hero-section,
.page-news__latest-articles,
.page-news__cta-section,
.page-news__faq-section {
  padding: 60px 0;
  overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  text-align: center;
  color: var(--page-news-text-main);
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-news__hero-content {
  padding: 40px 20px;
  background-color: var(--page-news-card-bg); /* Dark background for hero text */
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-news-border);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-news-text-main);
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-news-text-secondary);
}

.page-news__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-news-text-main);
}

.page-news__latest-articles {
  background-color: var(--page-news-bg); /* Consistent dark background */
}

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

.page-news__article-card {
  background-color: var(--page-news-card-bg); /* Dark card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--page-news-border);
  color: var(--page-news-text-main);
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: var(--page-news-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--page-news-secondary);
}

.page-news__article-meta {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

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

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

/* CTA Section */
.page-news__cta-section {
  background-color: var(--page-news-deep-green); /* Use Deep Green for CTA section */
  text-align: center;
  color: var(--page-news-text-main);
  padding: 80px 20px;
}

.page-news__cta-title {
  font-size: clamp(1.8em, 3.5vw, 3em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-news-text-main);
}

.page-news__cta-description {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping for desktop */
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: var(--page-news-text-main); /* White text on dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--page-news-primary); /* Green text on transparent button */
  border: 2px solid var(--page-news-primary);
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-primary);
  color: var(--page-news-text-main); /* White text on hover */
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--page-news-bg); /* Consistent dark background */
  padding-bottom: 80px;
}

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

.page-news__faq-item {
  background-color: var(--page-news-card-bg); /* Dark background for FAQ items */
  border: 1px solid var(--page-news-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-news-text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--page-news-text-main);
  background-color: var(--page-news-card-bg);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(var(--page-news-primary), 0.1);
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
  line-height: 1.7;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -60px;
  }
}

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

  .page-news__description {
    font-size: 1em;
  }

  .page-news__section-title,
  .page-news__cta-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }

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

  .page-news__hero-content {
    margin-top: -40px;
    padding: 30px 15px;
  }

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

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

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

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

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .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; /* Adjust padding for smaller screens */
  }

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

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

  /* Mobile image responsiveness */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding - not applicable here, but keeping the rule for safety */
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}