/* style/news.css */
.page-news {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
  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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top */
  background-color: var(--deep-green, #0A4B2C);
  overflow: hidden;
}

.page-news__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Section Titles */
.page-news__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin: 60px 0 40px 0;
  font-weight: bold;
}

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

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

.page-news__news-card {
  background-color: var(--card-bg, #11271B);
  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;
}

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

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

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

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

.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(--glow, #57E38D);
}

.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;
}

.page-news__read-more {
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

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

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  border: 2px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-news__btn-secondary:hover {
  background-color: var(--border, #2E7A4E);
  border-color: var(--glow, #57E38D);
}

/* Featured Topics Section */
.page-news__featured-topics-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-news__topic-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-news__topic-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-news__topic-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-news__topic-title a {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
}

.page-news__topic-title a:hover {
  color: var(--glow, #57E38D);
}

.page-news__topic-description {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* About News Section */
.page-news__about-news-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-news__about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-news__about-image {
  flex: 0 0 400px; /* Fixed width for desktop */
  max-width: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.page-news__about-text {
  flex: 1;
}

.page-news__about-text p {
  margin-bottom: 15px;
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green, #0A4B2C);
}

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

.page-news__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-news__faq-item summary {
  display: block; /* For details tag */
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: var(--border, #2E7A4E);
}

.page-news__faq-qtext {
  margin-right: 30px; /* Space for toggle icon */
}

.page-news__faq-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow, #57E38D);
}

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.5;
}

/* CTA Section */
.page-news__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background, #08160F);
}

.page-news__cta-title {
  font-size: clamp(2em, 5vw, 3em);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-news__about-content {
    flex-direction: column;
    align-items: center;
  }

  .page-news__about-image {
    flex: none;
    max-width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-news__hero-content {
    padding: 20px 15px;
  }

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

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

  .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 15px;
    text-align: center;
  }

  .page-news__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin: 40px 0 30px 0;
  }

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

  .page-news__news-grid,
  .page-news__topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-image,
  .page-news__topic-image,
  .page-news__about-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__hero-video-wrapper,
  .page-news__hero-video-link,
  .page-news__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Allow video height to adjust */
  }

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

  .page-news__faq-qtext {
    margin-right: 25px;
  }

  .page-news__faq-toggle {
    right: 15px;
    font-size: 1.2em;
  }

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

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

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