/* style/news.css */

/* Base styles for page-news */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-news__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  text-align: center;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-news__description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Latest News Section */
.page-news__latest-news-section,
.page-news__featured-articles-section,
.page-news__promotions-events-section,
.page-news__faq-section,
.page-news__final-cta-section {
  padding: 60px 0;
}

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

.page-news__news-card,
.page-news__featured-article {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 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,
.page-news__featured-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__card-image-wrapper,
.page-news__article-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

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

.page-news__card-date,
.page-news__article-date {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 10px;
}

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

.page-news__card-title a,
.page-news__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover,
.page-news__article-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__card-excerpt,
.page-news__article-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  color: #F2C14E; /* Gold */
}

.page-news__button-container {
  text-align: center;
  margin-top: 40px;
}

.page-news__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Featured Articles Section */
.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Promotions & Events Section */
.page-news__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__promo-text {
  flex: 1;
  min-width: 300px;
}

.page-news__promo-text p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.page-news__promo-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__promo-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-news__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #57E38D; /* Glow */
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Final CTA Section */
.page-news__final-cta-section {
  text-align: center;
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 20px;
}

.page-news__final-cta-section .page-news__section-title {
  color: #F2FFF6;
}

.page-news__final-cta-section .page-news__description {
  color: #A7D9B8;
  margin-bottom: 40px;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-news__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__promo-content {
    flex-wrap: nowrap;
  }
  .page-news__promo-text {
    order: 1;
  }
  .page-news__promo-image-wrapper {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-news__description,
  .page-news__promo-text p,
  .page-news__faq-answer p {
    font-size: 1rem;
  }

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

  .page-news__section-description {
    font-size: 1rem;
  }

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

  .page-news__news-card,
  .page-news__featured-article {
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-news__card-title,
  .page-news__article-title {
    font-size: 1.2rem;
  }

  .page-news__card-content,
  .page-news__article-content {
    padding: 15px;
  }

  .page-news__promo-content {
    flex-direction: column;
  }

  .page-news__promo-image-wrapper {
    width: 100%;
    max-width: 100%;
  }

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

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

  .page-news__cta-button,
  .page-news__view-all-button,
  .page-news__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* All image/video/button containers */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__promo-image-wrapper,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .page-news__button-container,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding adjustments for sections */
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__promotions-events-section,
  .page-news__faq-section,
  .page-news__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-news__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

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

}

/* Desktop video container width for Flex */
@media (min-width: 769px) {
  .page-news__video-container {
    width: 100%; /* Ensure width: 100% is present with max-width */
  }
}