/* style/news.css */
.page-news {
  background-color: var(--background-color, #08160F);
  color: var(--text-main, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0;
  text-align: center;
  overflow: hidden;
}

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

.page-news__hero-content {
  padding: 20px;
  max-width: 900px;
  margin-top: 40px;
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

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

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

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

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

.page-news__btn-secondary:hover {
  background-color: var(--border-color, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
}

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

.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 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.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;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.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-date {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
  display: block;
}

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

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

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

.page-news__cta-container {
  text-align: center;
  margin-top: 20px;
}

.page-news__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  font-size: 1.1em;
  border-bottom: 1px solid var(--divider, #1E3A2A);
  list-style: none;
}

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

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid var(--deep-green, #0A4B2C);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--glow, #57E38D);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.5em;
  }
}

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

  .page-news__hero-content {
    margin-top: 20px;
  }

  .page-news__main-title {
    font-size: 2em;
  }

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

  .page-news__section-title {
    font-size: 2em;
  }

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

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

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

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

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

  /* Mobile specific overrides 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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

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

  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-news__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px !important;
  }
}