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

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--background-color); /* Matches body background */
}

/* Ensure content areas have sufficient padding and max-width */
.page-news__hero-section,
.page-news__video-section,
.page-news__latest-news,
.page-news__featured-articles,
.page-news__cta-section,
.page-news__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Small decorative padding for top sections */
.page-news__hero-section,
.page-news__video-section {
  padding-top: 10px;
}

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 10px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-news__video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 60px 30px;
  margin-top: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-news__video-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-news__news-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: bold;
}

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

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
  padding-top: 15px;
  margin-top: 15px;
}

.page-news__read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--gold-color);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-news__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__articles-list {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.page-news__article-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

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

.page-news__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-news__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--deep-green);
  border-radius: 12px;
  padding: 60px 30px;
  margin-top: 60px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.page-news__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-news__faq-section {
  margin-top: 60px;
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 60px 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--divider-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: rgba(17, 39, 27, 0.5); /* Slightly lighter card bg for contrast */
}

.page-news__faq-item[open] {
  background-color: var(--deep-green);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--card-bg);
  cursor: pointer;
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: bold;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker */
}

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

.page-news__faq-question:hover {
  background-color: var(--deep-green);
}

.page-news__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-news__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: var(--primary-color);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
  color: var(--gold-color);
}

.page-news__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--deep-green);
  border-top: 1px solid var(--divider-color);
}

.page-news__faq-answer p {
  margin: 0;
}

.page-news .highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-news__hero-section,
  .page-news__video-section,
  .page-news__latest-news,
  .page-news__featured-articles,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__video-container,
  .page-news__news-grid,
  .page-news__articles-list,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-news__hero-description,
  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

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

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

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

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

  .page-news__view-all-button-container,
  .page-news__cta-content {
    padding: 0 15px;
  }

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

  /* Video responsive */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-container {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }

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

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